mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 20:58:30 +01:00
Issue #125 The require_once() cleanup.
This commit is contained in:
parent
b8b8a3e726
commit
31e658a2ae
@ -67,9 +67,7 @@ if(is_array($pref['lan_log_list'])) //... and for any plugins which support it
|
||||
unset($qs);
|
||||
|
||||
require_once (e_ADMIN.'auth.php');
|
||||
require_once (e_HANDLER.'message_handler.php');
|
||||
require_once (e_HANDLER.'form_handler.php');
|
||||
//$frm = new e_form(false);
|
||||
|
||||
$mes = e107::getMessage();
|
||||
$frm = e107::getForm();
|
||||
|
||||
|
@ -33,10 +33,6 @@ include_lan(e_LANGUAGEDIR.e_LANGUAGE.'/admin/lan_'.e_PAGE);
|
||||
$e_sub_cat = 'admin';
|
||||
require_once('auth.php');
|
||||
|
||||
|
||||
require_once(e_HANDLER."form_handler.php");
|
||||
require_once(e_HANDLER."message_handler.php");
|
||||
//$frm = new e_form(true);
|
||||
$frm = e107::getForm();
|
||||
$mes = e107::getMessage();
|
||||
$prm = e107::getUserPerms();
|
||||
|
@ -25,7 +25,7 @@ include_lan(e_LANGUAGEDIR.e_LANGUAGE.'/admin/lan_'.e_PAGE);
|
||||
$e_sub_cat = 'emoticon';
|
||||
|
||||
require_once("auth.php");
|
||||
require_once(e_HANDLER."message_handler.php");
|
||||
|
||||
$mes = e107::getMessage();
|
||||
|
||||
if(!$sql->db_Count("core", "(*)", "WHERE e107_name = 'emote_default' AND e107_value !='' "))
|
||||
|
@ -26,11 +26,9 @@ include_lan(e_LANGUAGEDIR.e_LANGUAGE.'/admin/lan_'.e_PAGE);
|
||||
$e_sub_cat = 'filemanage';
|
||||
require_once("auth.php");
|
||||
require_once(e_HANDLER.'upload_handler.php');
|
||||
require_once(e_HANDLER."form_handler.php");
|
||||
$frm = e107::getForm();
|
||||
|
||||
require_once (e_HANDLER."message_handler.php");
|
||||
$mes = e107::getMessage(); //FIXME
|
||||
$frm = e107::getForm();
|
||||
$mes = e107::getMessage();
|
||||
|
||||
$pubfolder = (str_replace("../","",e_QUERY) == str_replace("../","",e_UPLOAD)) ? TRUE : FALSE;
|
||||
|
||||
|
@ -25,10 +25,7 @@ include_lan(e_LANGUAGEDIR.e_LANGUAGE.'/admin/lan_'.e_PAGE);
|
||||
$e_sub_cat = 'failed_login';
|
||||
require_once('auth.php');
|
||||
|
||||
require_once(e_HANDLER.'form_handler.php');
|
||||
$frm = e107::getForm();
|
||||
|
||||
require_once(e_HANDLER.'message_handler.php');
|
||||
$mes = e107::getMessage();
|
||||
|
||||
$tmp = (e_QUERY) ? explode('.', e_QUERY) : '';
|
||||
|
@ -32,11 +32,8 @@ include_lan(e_LANGUAGEDIR.e_LANGUAGE.'/admin/lan_'.e_PAGE);
|
||||
|
||||
$e_sub_cat = 'frontpage';
|
||||
require_once ('auth.php');
|
||||
require_once (e_HANDLER.'form_handler.php');
|
||||
require_once (e_HANDLER.'message_handler.php');
|
||||
$mes = e107::getMessage();
|
||||
|
||||
require_once (e_HANDLER.'userclass_class.php');
|
||||
$mes = e107::getMessage();
|
||||
|
||||
$frontPref = e107::pref('core'); // Get prefs
|
||||
|
||||
@ -344,7 +341,7 @@ class frontpage
|
||||
|
||||
public function __construct($fp)
|
||||
{
|
||||
$this->frm = new e_form();
|
||||
$this->frm = e107::getForm();
|
||||
$this->frontPage = $fp;
|
||||
}
|
||||
|
||||
|
@ -22,8 +22,8 @@ e107::coreLan('language', true);
|
||||
|
||||
$e_sub_cat = 'language';
|
||||
require_once ("auth.php");
|
||||
require_once (e_HANDLER."form_handler.php");
|
||||
require_once (e_HANDLER."message_handler.php");
|
||||
|
||||
|
||||
$frm = e107::getForm();
|
||||
$mes = e107::getMessage();
|
||||
$tabs = table_list(); // array("news","content","links");
|
||||
|
@ -22,7 +22,7 @@ include_lan(e_LANGUAGEDIR.e_LANGUAGE.'/admin/lan_'.e_PAGE);
|
||||
|
||||
$e_sub_cat = 'meta';
|
||||
require_once("auth.php");
|
||||
require_once(e_HANDLER."message_handler.php");
|
||||
|
||||
$mes = e107::getMessage();
|
||||
$frm = e107::getForm();
|
||||
$ns = e107::getRender();
|
||||
|
@ -37,7 +37,7 @@ require_once('auth.php');
|
||||
|
||||
require_once(e_HANDLER.'userclass_class.php');
|
||||
require_once(e_HANDLER.'form_handler.php');
|
||||
require_once(e_HANDLER.'message_handler.php');
|
||||
|
||||
|
||||
//$emessage = &eMessage::getInstance();
|
||||
|
||||
|
@ -25,8 +25,7 @@ include_lan(e_LANGUAGEDIR.e_LANGUAGE.'/admin/lan_'.e_PAGE);
|
||||
$e_sub_cat = 'search';
|
||||
require_once('auth.php');
|
||||
require_once(e_HANDLER.'userclass_class.php');
|
||||
require_once(e_HANDLER."message_handler.php");
|
||||
require_once (e_HANDLER.'form_handler.php');
|
||||
|
||||
$frm = e107::getForm();
|
||||
$mes = e107::getMessage();
|
||||
$e_userclass = new user_class();
|
||||
|
Loading…
x
Reference in New Issue
Block a user