Added more wrapper, commented out another noisy debug line
authorRoland Häder <roland@mxchange.org>
Thu, 4 Oct 2012 18:40:39 +0000 (18:40 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 4 Oct 2012 18:40:39 +0000 (18:40 +0000)
inc/libs/admins_functions.php
inc/wrapper-functions.php

index 5f5075a574ff7e8f131933632b448db9ea4fd8cf..df2023fc3cb830c4b9b1fc64dac8052955e8c02d 100644 (file)
@@ -180,13 +180,17 @@ function adminsChangeAdminAccount ($postData, $element = '', $displayMessage = t
        foreach ($postData['login'] as $id => $login) {
                // Secure id number
                $id = bigintval($id);
-               /* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'id=' . $id . ',login=' . $login);
+               //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'id=' . $id . ',login=' . $login);
 
                // When both passwords match update admin account
                if ((!empty($element)) && (isset($postData[$element]))) {
                        // Save this setting
                        SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_admins` SET `%s`='%s' WHERE `id`=%s LIMIT 1",
-                               array($element, $postData[$element][$id], $id), __FUNCTION__, __LINE__);
+                               array(
+                                       $element,
+                                       $postData[$element][$id],
+                                       $id
+                               ), __FUNCTION__, __LINE__);
 
                        // Admin account saved
                        $message = '{--ADMIN_ACCOUNT_SAVED--}';
index 4079b8fef9c991461b2cb71a3e693dfadceba7d7..733d25ce18a201d0046bf6e7b18401f9fec0e134 100644 (file)
@@ -1835,7 +1835,7 @@ function getMtWord2 () {
        return $GLOBALS[__FUNCTION__];
 }
 
-// "Getter" for mt_word2
+// "Getter" for mt_word3
 function getMtWord3 () {
        // Do we have cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
@@ -1847,6 +1847,30 @@ function getMtWord3 () {
        return $GLOBALS[__FUNCTION__];
 }
 
+// "Getter" for START_TDAY
+function getStartTday () {
+       // Do we have cache?
+       if (!isset($GLOBALS[__FUNCTION__])) {
+               // Determine it
+               $GLOBALS[__FUNCTION__] = getConfig('START_TDAY');
+       } // END - if
+
+       // Return cache
+       return $GLOBALS[__FUNCTION__];
+}
+
+// "Getter" for START_YDAY
+function getStartYday () {
+       // Do we have cache?
+       if (!isset($GLOBALS[__FUNCTION__])) {
+               // Determine it
+               $GLOBALS[__FUNCTION__] = getConfig('START_YDAY');
+       } // END - if
+
+       // Return cache
+       return $GLOBALS[__FUNCTION__];
+}
+
 // "Getter" for main_title
 function getMainTitle () {
        // Do we have cache?