Make array available in session

Used by files that don't load settings.php
This commit is contained in:
Matt Pass
2014-08-08 09:29:19 +01:00
parent 664d8058b5
commit ec05132fa8

View File

@@ -41,6 +41,7 @@ $ICEcoder = $ICEcoderSettings + $ICEcoderUserSettings;
// Include language file
include(dirname(__FILE__)."/../lang/english.php");
$_SESSION['text'] = $text;
// Login not required or we're in demo mode and have password set in our settings, log us straight in
if ((!$ICEcoder['loginRequired'] || $ICEcoder['demoMode']) && $ICEcoder['password']!="") {$_SESSION['loggedIn']=true;};