]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/sponsor_functions.php
Cache file does no longer output fatal messages when it can't find file for deletion
[mailer.git] / inc / libs / sponsor_functions.php
index c16023477f8bdbb21250a93aaa418cdca4a3c7f9..499abe7e9fee74877bf93b5e78c91720c9461fcb 100644 (file)
@@ -283,7 +283,7 @@ function SPONSOR_TRANSLATE_STATUS($status)
                break;
 
        default:
-               DEBUG_LOG(__FILE__, __LINE__, sprintf("Unknown status %s detected.", $status));
+               DEBUG_LOG(__FUNCTION__, __LINE__, sprintf("Unknown status %s detected.", $status));
                $ret = UNKNOWN_STATUS_1.$status.UNKNOWN_STATUS_2;
                break;
        }
@@ -445,7 +445,7 @@ function UPDATE_SPONSOR_LOGIN()
 
        // Calculate cookie lifetime, maybe we have to change this so the admin can setup a
        // seperate timeout for these two cookies?
-       $life = (time() + $_CONFIG['online_timeout']);
+       $life = (time() + getConfig('online_timeout'));
 
        // Is confirmed so both is fine and we can continue with login procedure
        $login = ((setcookie("sponsorid"  , bigintval($_COOKIE['sponsorid']), $life, COOKIE_PATH)) &&
@@ -455,7 +455,7 @@ function UPDATE_SPONSOR_LOGIN()
        if ($login)
        {
                // Update last online timestamp
-               $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_sponsor_data
+               SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_sponsor_data
 SET last_online='".time()."'
 WHERE id='%s' AND password='%s' LIMIT 1",
  array(bigintval($_COOKIE['sponsorid']), $_COOKIE['sponsorpass']), __FILE__, __LINE__);
@@ -568,7 +568,7 @@ function SPONSOR_SAVE_DATA($POST, $content)
                break;
 
        default: // Unknown sponsor what value!
-               DEBUG_LOG(__FILE__, __LINE__, sprintf("Unknown sponsor module (what) %s detected.", $GLOBALS['what']));
+               DEBUG_LOG(__FUNCTION__, __LINE__, sprintf("Unknown sponsor module (what) %s detected.", $GLOBALS['what']));
                $MSG = SPONSOR_UNKNOWN_WHAT_1.$GLOBALS['what'].SPONSOR_UNKNOWN_WHAT_2;
                $templ = ""; $subj = "";
                break;