X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Ffilters.php;h=df664c279ed92e2b75b909f8745215d5e41baf4b;hb=bebd6c9b98a4e1a0219e3e2b0ce382fbe7d8335c;hp=fea4d142fd393beb224031759ad8b34a2e00ab65;hpb=c4ceb98e54f072c262519fc2ea31ccf6f8559049;p=mailer.git diff --git a/inc/filters.php b/inc/filters.php index fea4d142fd..df664c279e 100644 --- a/inc/filters.php +++ b/inc/filters.php @@ -10,7 +10,12 @@ * -------------------------------------------------------------------- * * Kurzbeschreibung : Funktionen fuer Filter-System * * -------------------------------------------------------------------- * - * * + * $Revision:: 856 $ * + * $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 - 2008 by Roland Haeder * * For more information visit: http://www.mxchange.org * @@ -238,6 +243,12 @@ function FILTER_FLUSH_FILTERS () { // Clear all previous SQL queries INIT_SQLS(); + // Are we installing? + if (isInstalling()) { + // Then silently skip this filter + return true; + } // END - if + // Is a database link here and not in installation mode? if ((!SQL_IS_LINK_UP()) && (!isInstalling())) { // Abort here @@ -446,11 +457,11 @@ function FILTER_UPDATE_LOGIN_DATA () { if (!IS_MEMBER()) return false; // Secure user ID - $GLOBALS['userid'] = bigintval(get_session('userid')); + setUserId(get_session('userid')); // Load last module and last online time $result = SQL_QUERY_ESC("SELECT last_module, last_online FROM `{!_MYSQL_PREFIX!}_user_data` WHERE userid=%s LIMIT 1", - array($GLOBALS['userid']), __FUNCTION__, __LINE__); + array(getUserId()), __FUNCTION__, __LINE__); // Entry found? if (SQL_NUMROWS($result) == 1) { @@ -474,7 +485,7 @@ function FILTER_UPDATE_LOGIN_DATA () { // Update last module / online time SQL_QUERY_ESC("UPDATE `{!_MYSQL_PREFIX!}_user_data` SET last_module='%s', last_online=UNIX_TIMESTAMP(), REMOTE_ADDR='%s' WHERE userid=%s LIMIT 1", - array($GLOBALS['what'], GET_REMOTE_ADDR(), $GLOBALS['userid']), __FUNCTION__, __LINE__); + array($GLOBALS['what'], GET_REMOTE_ADDR(), getUserId()), __FUNCTION__, __LINE__); } else { // Destroy session, we cannot update! destroy_user_session();