1
0
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:
Cameron
2013-05-09 03:27:32 -07:00
parent ba5ce647f2
commit f9c157817a
2 changed files with 11 additions and 6 deletions

View File

@@ -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)

View File

@@ -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);
}