mirror of
https://github.com/e107inc/e107.git
synced 2025-08-16 03:24:20 +02:00
Path fixes.
This commit is contained in:
@@ -667,10 +667,13 @@ class admin_shortcodes
|
||||
}
|
||||
unset($tmp);
|
||||
|
||||
|
||||
$curScript = basename($_SERVER['SCRIPT_FILENAME']);
|
||||
|
||||
// Obsolete
|
||||
ob_start();
|
||||
//Show upper_right menu if the function exists
|
||||
$tmp = explode('.',e_PAGE);
|
||||
$tmp = explode('.',$curScript);
|
||||
$adminmenu_parms = "";
|
||||
|
||||
$adminmenu_func = $tmp[0].'_adminmenu';
|
||||
@@ -687,6 +690,8 @@ class admin_shortcodes
|
||||
}
|
||||
}
|
||||
$plugindir = (str_replace('/','',str_replace('..', '', e_PLUGIN)).'/');
|
||||
|
||||
// FIXME @TODO $plugPath is using the URL to detect the path. It should use $_SERVER['SCRIPT_FILENAME']
|
||||
$plugpath = e_PLUGIN.str_replace(basename(e_SELF),'',str_replace('/'.$plugindir,'','/'.strstr(e_SELF,$plugindir))).'admin_menu.php';
|
||||
|
||||
if(file_exists($plugpath))
|
||||
|
Reference in New Issue
Block a user