mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 21:27:25 +02:00
Legacy plugin admin theme fix.
This commit is contained in:
@@ -3831,6 +3831,8 @@ class e107
|
|||||||
|| ($isPluginDir && (strpos(e_PAGE,'_admin.php') !== false || strpos(e_PAGE,'admin_') === 0 || strpos($e107Path, 'admin/') !== FALSE)) // Plugin admin file or directory
|
|| ($isPluginDir && (strpos(e_PAGE,'_admin.php') !== false || strpos(e_PAGE,'admin_') === 0 || strpos($e107Path, 'admin/') !== FALSE)) // Plugin admin file or directory
|
||||||
|| (vartrue($eplug_admin) || deftrue('ADMIN_AREA')) // Admin forced
|
|| (vartrue($eplug_admin) || deftrue('ADMIN_AREA')) // Admin forced
|
||||||
|| (preg_match('/^\/(.*?)\/user(settings\.php|\/edit)(\?|\/)(\d+)$/i', $_SERVER['REQUEST_URI']) && ADMIN)
|
|| (preg_match('/^\/(.*?)\/user(settings\.php|\/edit)(\?|\/)(\d+)$/i', $_SERVER['REQUEST_URI']) && ADMIN)
|
||||||
|
|| ($isPluginDir && e_PAGE == 'prefs.php') //BC Fix for old plugins
|
||||||
|
|| ($isPluginDir && e_PAGE == 'config.php') // BC Fix for old plugins
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
$inAdminDir = TRUE;
|
$inAdminDir = TRUE;
|
||||||
|
@@ -3171,6 +3171,8 @@ class e107plugin
|
|||||||
{
|
{
|
||||||
$tp = e107::getParser();
|
$tp = e107::getParser();
|
||||||
|
|
||||||
|
$PLUGINS_FOLDER = '{e_PLUGIN}'; // Could be used in plugin.php file.
|
||||||
|
|
||||||
$eplug_conffile = null;
|
$eplug_conffile = null;
|
||||||
$eplug_table_names = null;
|
$eplug_table_names = null;
|
||||||
$eplug_prefs = null;
|
$eplug_prefs = null;
|
||||||
|
@@ -10,6 +10,9 @@
|
|||||||
**
|
**
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
if(!class_exists("_blank_setup"))
|
||||||
|
{
|
||||||
class _blank_setup
|
class _blank_setup
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -81,4 +84,5 @@ class _blank_setup
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
|
}
|
Reference in New Issue
Block a user