X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fsession.php;h=1849e2f9a8016f3e9d5729d232f2a0178e227a55;hb=77669502ccc2779d32a842f6d523fb68169fadda;hp=f26fc26296aafaab3595ee674e080494a706a129;hpb=263a089d8a499e0e26d0af9e7aa7639f88b8ca60;p=mailer.git diff --git a/inc/session.php b/inc/session.php index f26fc26296..1849e2f9a8 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 - 2012 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,41 +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 (!isSessionValid()) { // Start the session - session_start(); + $GLOBALS['valid_session'] = session_start(); + $GLOBALS['isSessionValid'] = TRUE; } // END - if // Load language file(s) loadLanguageFile(); -// Determine and set referal id -determineReferalId(); - -// Transfer userid from session and validate it -if (isSessionVariableSet('userid')) { - // Get it secured from session - setMemberId(getSession('userid')); - - // Is it valid? - if (!isMember()) { - // Then destroy the user id - destroyMemberSession(); - } // END - if -} // END - if - // [EOF] ?>