mirror of
https://github.com/e107inc/e107.git
synced 2025-08-13 18:14:26 +02:00
Core Cleanup.
This commit is contained in:
@@ -76,10 +76,10 @@ new admin_start;
|
||||
require_once(e_ADMIN.'auth.php');
|
||||
|
||||
|
||||
e107::getDb()->db_Mark_Time('(Start Admin Checks)');
|
||||
e107::getDebug()->logTime('(Start Admin Checks)');
|
||||
|
||||
|
||||
e107::getDb()->db_Mark_Time('(After Admin Checks)');
|
||||
e107::getDebug()->logTime('(After Admin Checks)');
|
||||
$mes = e107::getMessage();
|
||||
|
||||
if (!isset($pref['adminstyle'])) $pref['adminstyle'] = 'infopanel'; // Shouldn't be needed - but just in case
|
||||
@@ -140,34 +140,34 @@ class admin_start
|
||||
unset($_SESSION['lancheck']);
|
||||
|
||||
|
||||
e107::getDb()->db_Mark_Time('Check Paths');
|
||||
e107::getDebug()->logTime('Check Paths');
|
||||
$this->checkPaths();
|
||||
|
||||
e107::getDb()->db_Mark_Time('Check Timezone');
|
||||
e107::getDebug()->logTime('Check Timezone');
|
||||
$this->checkTimezone();
|
||||
|
||||
e107::getDb()->db_Mark_Time('Check Writable');
|
||||
e107::getDebug()->logTime('Check Writable');
|
||||
$this->checkWritable();
|
||||
|
||||
e107::getDb()->db_Mark_Time('Check Incompatible Plugins');
|
||||
e107::getDebug()->logTime('Check Incompatible Plugins');
|
||||
$this->checkIncompatiblePlugins();
|
||||
|
||||
e107::getDb()->db_Mark_Time('Check Filetypes');
|
||||
e107::getDebug()->logTime('Check Filetypes');
|
||||
$this->checkFileTypes();
|
||||
|
||||
e107::getDb()->db_Mark_Time('Check Suspect Files');
|
||||
e107::getDebug()->logTime('Check Suspect Files');
|
||||
$this->checkSuspiciousFiles();
|
||||
|
||||
e107::getDb()->db_Mark_Time('Check Deprecated');
|
||||
e107::getDebug()->logTime('Check Deprecated');
|
||||
$this->checkDeprecated();
|
||||
|
||||
e107::getDb()->db_Mark_Time('Check HTMLArea');
|
||||
e107::getDebug()->logTime('Check HTMLArea');
|
||||
$this->checkHtmlarea();
|
||||
|
||||
e107::getDb()->db_Mark_Time('Check Htaccess');
|
||||
e107::getDebug()->logTime('Check Htaccess');
|
||||
$this->checkHtaccess();
|
||||
|
||||
e107::getDb()->db_Mark_Time('Check Core Update');
|
||||
e107::getDebug()->logTime('Check Core Update');
|
||||
$this->checkCoreUpdate();
|
||||
|
||||
if($this->exit === true)
|
||||
@@ -175,16 +175,16 @@ class admin_start
|
||||
return null;
|
||||
}
|
||||
|
||||
e107::getDb()->db_Mark_Time('Check New Install');
|
||||
e107::getDebug()->logTime('Check New Install');
|
||||
$this->checkNewInstall();
|
||||
|
||||
/* e107::getDb()->db_Mark_Time('Check Plugin Update');
|
||||
/* e107::getDebug()->logTime('Check Plugin Update');
|
||||
$this->checkPluginUpdate();
|
||||
|
||||
e107::getDb()->db_Mark_Time('Check Theme Update');
|
||||
e107::getDebug()->logTime('Check Theme Update');
|
||||
$this->checkThemeUpdate();
|
||||
*/
|
||||
e107::getDb()->db_Mark_Time('Check Password Encryption');
|
||||
e107::getDebug()->logTime('Check Password Encryption');
|
||||
$this->checkPasswordEncryption();
|
||||
|
||||
|
||||
|
@@ -20,7 +20,7 @@ if (!defined('e107_INIT'))
|
||||
}
|
||||
|
||||
|
||||
e107::getDb()->db_Mark_Time('(Start auth.php)');
|
||||
e107::getDebug()->logTime('(Start auth.php)');
|
||||
|
||||
define('e_CAPTCHA_FONTCOLOR','#F9A533');
|
||||
|
||||
|
@@ -15,7 +15,7 @@ if (!defined('e107_INIT'))
|
||||
exit;
|
||||
}
|
||||
|
||||
e107::getDb()->db_Mark_Time('(Start boot.php)');
|
||||
e107::getDebug()->logTime('(Start boot.php)');
|
||||
header('Content-type: text/html; charset=utf-8', TRUE);
|
||||
define('ADMINFEED', 'https://e107.org/adminfeed');
|
||||
|
||||
@@ -216,7 +216,7 @@ e107::coreLan('footer', true);
|
||||
continue;
|
||||
}
|
||||
|
||||
e107::getDb()->db_Mark_Time('[boot.php: Loading LANS for '.$_p.']');
|
||||
e107::getDebug()->logTime('[boot.php: Loading LANS for '.$_p.']');
|
||||
e107::loadLanFiles($_p, 'admin');
|
||||
}
|
||||
}
|
||||
@@ -224,7 +224,7 @@ e107::coreLan('footer', true);
|
||||
|
||||
|
||||
// Get Icon constants, theme override (theme/templates/admin_icons_template.php) is allowed
|
||||
e107::getDb()->db_Mark_Time('[boot.php: Loading admin_icons]');
|
||||
e107::getDebug()->logTime('[boot.php: Loading admin_icons]');
|
||||
include_once(e107::coreTemplatePath('admin_icons'));
|
||||
|
||||
|
||||
|
@@ -26,7 +26,7 @@ if(!defined('USER_AREA'))
|
||||
define("USER_AREA", FALSE);
|
||||
}
|
||||
|
||||
e107::getDb()->db_Mark_Time('(Header Top)');
|
||||
e107::getDebug()->logTime('(Header Top)');
|
||||
|
||||
|
||||
if(!deftrue('e_MENUMANAGER_ACTIVE'))
|
||||
@@ -559,7 +559,7 @@ function getAlert()
|
||||
// Header included notification, from this point header includes are not possible
|
||||
define('HEADER_INIT', TRUE);
|
||||
|
||||
e107::getDb()->db_Mark_Time("End Head, Start Body");
|
||||
e107::getDebug()->logTime("End Head, Start Body");
|
||||
|
||||
//
|
||||
// K: (The rest is ignored for popups, which have no menus)
|
||||
@@ -597,7 +597,7 @@ if ($e107_popup != 1)
|
||||
// (legacy?) function admin_purge_related moved to boot.php
|
||||
|
||||
|
||||
e107::getDb()->db_Mark_Time('Parse Admin Header');
|
||||
e107::getDebug()->logTime('Parse Admin Header');
|
||||
|
||||
//NEW - Iframe mod
|
||||
if (!deftrue('e_IFRAME'))
|
||||
@@ -610,7 +610,7 @@ if ($e107_popup != 1)
|
||||
e107::css("inline","body { padding:0px } "); // default padding for iFrame-only.
|
||||
}
|
||||
|
||||
e107::getDb()->db_Mark_Time('(End: Parse Admin Header)');
|
||||
e107::getDebug()->logTime('(End: Parse Admin Header)');
|
||||
}
|
||||
|
||||
// XXX - we don't need this (use e107::getMessage()) - find out what's using it and remove it
|
||||
|
@@ -401,7 +401,7 @@ function update_check()
|
||||
if(function_exists('update_' . $func))
|
||||
{
|
||||
|
||||
$sql->db_Mark_Time('Check Core Update_' . $func . ' ');
|
||||
e107::getDebug()->logTime('Check Core Update_' . $func . ' ');
|
||||
if(!call_user_func('update_' . $func, false))
|
||||
{
|
||||
$dbUpdatesPref[$func] = 0;
|
||||
|
Reference in New Issue
Block a user