]> git.mxchange.org Git - mailer.git/blobdiff - inc/mysql-manager.php
Extension loader rewritten and no more needed cache elements removed
[mailer.git] / inc / mysql-manager.php
index 2aa4d8b7715346c749bf9ceb639272b68c16b3be..39a7f86b4d60380dca84b185cb05dfceb0db87c1 100644 (file)
@@ -972,7 +972,8 @@ function GET_ACTION ($MODE, &$wht)
        // Return action value
        return $ret;
 }
-//
+
+// Get category name back
 function GET_CATEGORY ($cid) {
        // Default is not found
        $ret = _CATEGORY_404;
@@ -997,7 +998,8 @@ function GET_CATEGORY ($cid) {
        // Return result
        return $ret;
 }
-//
+
+// Get a string of "mail title" and price back
 function GET_PAYMENT ($pid, $full=false) {
        // Default is not found
        $ret = _PAYMENT_404;
@@ -1023,7 +1025,8 @@ function GET_PAYMENT ($pid, $full=false) {
        // Return result
        return $ret;
 }
-//
+
+// Get (basicly) the price of given payment id
 function GET_PAY_POINTS($pid, $lookFor="price")
 {
        $ret = "-1";
@@ -1037,8 +1040,9 @@ function GET_PAY_POINTS($pid, $lookFor="price")
        }
        return $ret;
 }
+
 // Remove a receiver's ID from $ARRAY and add a link for him to confirm
-function REMOVE_RECEIVER(&$ARRAY, $key, $uid, $pool_id, $stats_id="", $bonus=false)
+function REMOVE_RECEIVER (&$ARRAY, $key, $uid, $pool_id, $stats_id="", $bonus=false)
 {
        $ret = "failed";
        if ($uid > 0)
@@ -1405,7 +1409,7 @@ WHERE sid='%s' LIMIT 1",
        $result = SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM "._MYSQL_PREFIX."_online WHERE timestamp <= (UNIX_TIMESTAMP() - %s)",
         array($_CONFIG['online_timeout']), __FILE__, __LINE__);
 }
-// OBSULETE: Sends out mail to all administrators
+// OBSOLETE: Sends out mail to all administrators
 function SEND_ADMIN_EMAILS ($subj, $msg) {
        // Load all admin email addresses
        $result = SQL_QUERY("SELECT email FROM "._MYSQL_PREFIX."_admins ORDER BY id ASC", __FILE__, __LINE__);
@@ -1728,7 +1732,7 @@ function IS_DEMO() {
        return ((EXT_IS_ACTIVE("demo")) && (get_session('admin_login') == "demo"));
 }
 //
-function LOAD_CONFIG($no="0") {
+function LOAD_CONFIG ($no="0") {
        global $cacheArray;
        $CFG_DUMMY = array();
 
@@ -1852,6 +1856,13 @@ function SUB_POINTS ($subject, $uid, $points) {
 
 // Update config entries
 function UPDATE_CONFIG ($entries, $values, $updateMode="") {
+       global $CSS;
+
+       // Do not update config in CSS mode
+       if (($CSS == "1") || ($CSS == -1)) {
+               return;
+       } // END - if
+
        // Do we have multiple entries?
        if (is_array($entries)) {
                // Walk through all