mirror of
https://github.com/e107inc/e107.git
synced 2025-09-01 18:32:44 +02:00
General cleanup for left-side admin-menu navigation
This commit is contained in:
@@ -801,9 +801,9 @@ class page_admin_ui extends e_admin_ui
|
||||
}
|
||||
|
||||
|
||||
require_once('auth.php');
|
||||
new page_admin();
|
||||
|
||||
new page_admin();
|
||||
require_once('auth.php');
|
||||
|
||||
e107::getAdminUI()->runPage();
|
||||
|
||||
@@ -1011,38 +1011,13 @@ class page
|
||||
*/
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
function cpage_adminmenu()
|
||||
{
|
||||
global $page;
|
||||
global $action;
|
||||
$page->show_options($action);
|
||||
// $page->show_options($action);
|
||||
}
|
||||
*/
|
||||
|
||||
/**
|
||||
* Handle page DOM within the page header
|
||||
*
|
||||
* @return string JS source
|
||||
*/
|
||||
function headerjs()
|
||||
{
|
||||
return;
|
||||
require_once(e_HANDLER.'js_helper.php');
|
||||
$ret = "
|
||||
<script type='text/javascript'>
|
||||
if(typeof e107Admin == 'undefined') var e107Admin = {}
|
||||
|
||||
/**
|
||||
* OnLoad Init Control
|
||||
*/
|
||||
e107Admin.initRules = {
|
||||
'Helper': true,
|
||||
'AdminMenu': false
|
||||
}
|
||||
</script>
|
||||
<script type='text/javascript' src='".e_FILE_ABS."jslib/core/admin.js'></script>
|
||||
";
|
||||
|
||||
return $ret;
|
||||
}
|
||||
?>
|
@@ -263,7 +263,7 @@ class media_admin_ui extends e_admin_ui
|
||||
protected $fields = array(
|
||||
'checkboxes' => array('title'=> '', 'type' => null, 'data'=> null, 'width' =>'5%', 'forced'=> TRUE, 'thclass'=>'center', 'class'=>'center'),
|
||||
'media_id' => array('title'=> LAN_ID, 'type' => 'number', 'data'=> 'int', 'width' =>'5%', 'forced'=> TRUE, 'nolist'=>TRUE),
|
||||
'media_url' => array('title'=> 'Preview', 'type' => 'image', 'data'=> 'str', 'thclass' => 'center', 'class'=>'center', 'readParms'=>'thumb=60&thumb_urlraw=0&thumb_aw=60','readonly'=>TRUE, 'writeParams' => 'path={e_MEDIA}', 'width' => '110px'),
|
||||
'media_url' => array('title'=> 'Preview', 'type' => 'image', 'data'=> 'str', 'thclass' => 'center', 'class'=>'center', 'readParms'=>'thumb=60&thumb_urlraw=0&thumb_aw=60','readonly'=>TRUE, 'writeParms'=>'thumb=180&thumb_urlraw=0&thumb_aw=180', 'width' => '110px'),
|
||||
'media_category' => array('title'=> LAN_CATEGORY, 'type' => 'method', 'data'=> 'str', 'width' => 'auto', 'filter' => true, 'batch' => true,'writeParms'=>'multiple=1'),
|
||||
|
||||
// Upload should be managed completely separately via upload-handler.
|
||||
|
@@ -81,12 +81,15 @@ if (isset ($_POST['updateRanks']))
|
||||
updateRanks();
|
||||
}
|
||||
$e_sub_cat = 'users';
|
||||
require_once ('auth.php');
|
||||
$user = new users;
|
||||
require_once (e_HANDLER.'form_handler.php');
|
||||
require_once (e_HANDLER.'userclass_class.php');
|
||||
include_once (e_HANDLER.'user_extended_class.php');
|
||||
require_once (e_HANDLER.'validator_class.php');
|
||||
$user = new users;
|
||||
require_once ('auth.php');
|
||||
|
||||
|
||||
|
||||
// require_once (e_HANDLER.'user_handler.php');
|
||||
// $userMethods = new UserHandler;
|
||||
// $colList = $userMethods->getNiceNames(TRUE);
|
||||
@@ -2189,7 +2192,7 @@ function users_adminmenu()
|
||||
{
|
||||
global $user;
|
||||
global $action;
|
||||
$user->show_options($action);
|
||||
$user->show_options($action); // FIXME
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user