]> git.mxchange.org Git - mailer.git/blobdiff - inc/session.php
More language constants rewritten ({--LANGUAGE--} is for constants)
[mailer.git] / inc / session.php
index 46dd7e3913f8339919befcbe03e89bc6542f9e49..9e0876c97fee12ee0203882fa82a138059b2214e 100644 (file)
@@ -46,21 +46,19 @@ if (empty($VIEW))  $VIEW  = 0;
 if (($VIEW == 1) && ($_SERVER['PHP_SELF'])) return;
 
 // Set session save path if set
-if (!empty($_CONFIG['session_save_path'])) {
+if (getConfig('session_save_path') != "") {
        // Please make sure this valid!
-       @session_save_path($_CONFIG['session_save_path']);
+       session_save_path(getConfig('session_save_path'));
 } // END - if
 
 // Start the session
-@session_start();
-global $PHPSESSID;
-$PHPSESSID = @session_id();
+session_start();
 
 // Load language system
-require_once(PATH."inc/language.php");
+LOAD_INC_ONCE("inc/language.php");
 
 // Load extensions here
-require_once(PATH."inc/load_extensions.php");
+LOAD_INC_ONCE("inc/load_extensions.php");
 
 // Determine and set referal id
 DETERMINE_REFID();