1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-16 03:24:20 +02:00

Path fixes.

This commit is contained in:
Cameron
2017-02-10 07:39:03 -08:00
parent 573d204cc0
commit 49a998b6d9
2 changed files with 16 additions and 5 deletions

View File

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