X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fsession.php;h=355d77307ae34aeb4b7a6649782b5b9ac78f71a6;hp=82c472d0f2de5306a0627001538f193a504ba6e1;hb=e5527fd38a6585c8466dc28d013f12d21eb7c07a;hpb=60403e95910ee466e0ef685b068facb88237721f diff --git a/inc/session.php b/inc/session.php index 82c472d0f2..355d77307a 100644 --- a/inc/session.php +++ b/inc/session.php @@ -14,11 +14,10 @@ * $Date:: $ * * $Tag:: 0.2.1-FINAL $ * * $Author:: $ * - * Needs to be in all Files and every File needs "svn propset * - * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * For more information visit: http://www.mxchange.org * + * Copyright (c) 2009 - 2013 by Mailer Developer Team * + * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * @@ -38,29 +37,27 @@ // Some security stuff... if (!defined('__SECURITY')) { - die(); + exit(); } // END - if // Is ext-sql_patches there and newer? if (isExtensionInstalledAndNewer('sql_patches', '0.5.3')) { // Set session save path if set - if (getConfig('session_save_path') != '') { + if ((isConfigEntrySet('session_save_path')) && (getConfig('session_save_path') != '')) { // Please make sure this valid! session_save_path(getConfig('session_save_path')); } // END - if } // END - if // Is a session id there? -if (session_id() == '') { +if (!isValidSession()) { // Start the session - $GLOBALS['valid_session'] = session_start(); + $GLOBALS['valid_session'] = session_start(); + $GLOBALS['isValidSession'] = TRUE; } // END - if // Load language file(s) loadLanguageFile(); -// Determine and set referal id -determineReferalId(); - // [EOF] ?>