Don't both loading all the Object code until after auth.
This commit is contained in:
parent
cfe51d7349
commit
7aa625ea8e
|
@ -47,10 +47,6 @@ require_once('includes/config.php');
|
||||||
require_once('includes/session.php');
|
require_once('includes/session.php');
|
||||||
require_once('includes/logger.php');
|
require_once('includes/logger.php');
|
||||||
require_once('includes/Server.php');
|
require_once('includes/Server.php');
|
||||||
require_once('includes/Storage.php');
|
|
||||||
require_once('includes/Event.php');
|
|
||||||
require_once('includes/Group.php');
|
|
||||||
require_once('includes/Monitor.php');
|
|
||||||
|
|
||||||
// Useful debugging lines for mobile devices
|
// Useful debugging lines for mobile devices
|
||||||
if ( 0 and ZM\Logger::fetch()->debugOn() ) {
|
if ( 0 and ZM\Logger::fetch()->debugOn() ) {
|
||||||
|
@ -196,6 +192,11 @@ require_once('includes/auth.php');
|
||||||
# Any file/page that sets session variables must re-open it.
|
# Any file/page that sets session variables must re-open it.
|
||||||
session_write_close();
|
session_write_close();
|
||||||
|
|
||||||
|
require_once('includes/Storage.php');
|
||||||
|
require_once('includes/Event.php');
|
||||||
|
require_once('includes/Group.php');
|
||||||
|
require_once('includes/Monitor.php');
|
||||||
|
|
||||||
// lang references $user[Language] so must come after auth
|
// lang references $user[Language] so must come after auth
|
||||||
require_once('includes/lang.php');
|
require_once('includes/lang.php');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue