mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 22:27:34 +02:00
Updated to use "SetEnv E_DEV_MENU true" in .htaccess - Experimental code.
This commit is contained in:
@@ -310,7 +310,7 @@ if(strpos(e_QUERY, 'configure') !== FALSE || vartrue($_GET['enc']))
|
||||
|
||||
|
||||
|
||||
if($_SERVER['E_ENV_MENUS'] == 'developer')
|
||||
if($_SERVER['E_DEV_MENU'] == 'true')
|
||||
{
|
||||
if(isset($_GET['configure']) || isset($_GET['iframe']))
|
||||
{
|
||||
@@ -325,10 +325,16 @@ if($_SERVER['E_ENV_MENUS'] == 'developer')
|
||||
exit;
|
||||
}
|
||||
|
||||
if($_SERVER['E_ENV_MENUS'] == 'developer')
|
||||
{
|
||||
// if($_SERVER['E_DEV_MENU'] == 'true')
|
||||
//{
|
||||
function e_help()
|
||||
{
|
||||
if($_SERVER['E_DEV_MENU'] != 'true')
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
$p = e107::getPref('e_menu_list'); // new storage for xxxxx_menu.php list.
|
||||
$sql = e107::getDb();
|
||||
|
||||
@@ -370,7 +376,7 @@ if($_SERVER['E_ENV_MENUS'] == 'developer')
|
||||
|
||||
return array('caption'=>'Menu Items','text'=>$text);
|
||||
}
|
||||
}
|
||||
//}
|
||||
|
||||
|
||||
// XXX Menu Manager Re-Write with drag and drop and multi-dimensional array as storage. ($pref)
|
||||
|
@@ -61,9 +61,8 @@ class admin_shortcodes
|
||||
$ns = e107::getRender();
|
||||
$pref = e107::getPref();
|
||||
|
||||
if(function_exists('e_help')) // new in v2.x for non-admin-ui admin pages.
|
||||
if(function_exists('e_help') && ($tmp = e_help())) // new in v2.x for non-admin-ui admin pages.
|
||||
{
|
||||
$tmp = e_help();
|
||||
return $ns->tablerender($tmp['caption'],$tmp['text'],'e_help',true);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user