mirror of
https://github.com/e107inc/e107.git
synced 2025-08-12 09:34:54 +02:00
Bootstrap3 admin is now the default.
This commit is contained in:
@@ -88,6 +88,7 @@ class admin_start
|
||||
$this->checkIncompatiblePlugins();
|
||||
$this->checkFileTypes();
|
||||
$this->checkSuspiciousFiles();
|
||||
$this->checkDeprecated();
|
||||
|
||||
}
|
||||
|
||||
@@ -147,6 +148,40 @@ class admin_start
|
||||
|
||||
}
|
||||
|
||||
|
||||
function checkDeprecated()
|
||||
{
|
||||
$deprecated = array(
|
||||
e_ADMIN."ad_links.php",
|
||||
e_PLUGIN."tinymce4/e_meta.php", e_THEME."bootstrap3/css/bootstrap_dark.css",
|
||||
e_PLUGIN."search_menu/languages/English.php",
|
||||
e_LANGUAGEDIR."English/lan_parser_functions.php",
|
||||
e_HANDLER."np_class.php",
|
||||
e_CORE."shortcodes/single/user_extended.sc",
|
||||
e_ADMIN."download.php"
|
||||
);
|
||||
|
||||
$found = array();
|
||||
foreach($deprecated as $path)
|
||||
{
|
||||
if(file_exists($path))
|
||||
{
|
||||
$found[] = $path;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
if(!empty($found))
|
||||
{
|
||||
$text = "The following old files can be safely deleted from your system: ";
|
||||
$text .= "<ul><li>".implode("</li><li>", $found)."</li></ul>";
|
||||
|
||||
e107::getMessage()->addWarning($text);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
function checkFileTypes()
|
||||
{
|
||||
|
Reference in New Issue
Block a user