]> git.mxchange.org Git - mailer.git/commitdiff
More rewrites, and output-mode fixed (we should documentate this)
authorRoland Häder <roland@mxchange.org>
Thu, 29 Oct 2009 01:06:50 +0000 (01:06 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 29 Oct 2009 01:06:50 +0000 (01:06 +0000)
137 files changed:
DOCS/TODOs.txt
beg.php
birthday_confirm.php
doubler.php
inc/autopurge/purge-general.php
inc/autopurge/purge-inact.php
inc/autopurge/purge-unconfirmed.php
inc/config-functions.php
inc/databases.php
inc/db/lib-mysql3.php
inc/extensions-functions.php
inc/extensions/ext-admins.php
inc/extensions/ext-beg.php
inc/extensions/ext-bonus.php
inc/extensions/ext-doubler.php
inc/extensions/ext-holiday.php
inc/extensions/ext-html_mail.php
inc/extensions/ext-newsletter.php
inc/extensions/ext-nickname.php
inc/extensions/ext-optimize.php
inc/extensions/ext-order.php
inc/extensions/ext-other.php
inc/extensions/ext-rallye.php
inc/extensions/ext-sql_patches.php
inc/extensions/ext-theme.php
inc/extensions/ext-transfer.php
inc/filters.php
inc/footer.php
inc/functions.php
inc/header.php
inc/install-inc.php
inc/language-functions.php
inc/libs/admins_functions.php
inc/libs/beg_functions.php
inc/libs/bonus_functions.php
inc/libs/doubler_functions.php
inc/libs/holiday_functions.php
inc/libs/rallye_functions.php
inc/libs/security_functions.php
inc/libs/sponsor_functions.php
inc/libs/surfbar_functions.php
inc/libs/task_functions.php
inc/libs/user_functions.php
inc/loader/load_cache-
inc/loader/load_cache-admin.php
inc/loader/load_cache-config.php
inc/loader/load_cache-extension.php
inc/loader/load_cache-filter.php
inc/loader/load_cache-impressum.php
inc/loader/load_cache-modules.php
inc/loader/load_cache-refdepths.php
inc/loader/load_cache-refsystem.php
inc/loader/load_cache-revision.php
inc/loader/load_cache-them.php
inc/mails/doubler_mails.php
inc/modules/admin/admin-inc.php
inc/modules/admin/overview-inc.php
inc/modules/admin/what-add_points.php
inc/modules/admin/what-add_rallye.php
inc/modules/admin/what-admins_contct.php
inc/modules/admin/what-admins_edit.php
inc/modules/admin/what-admins_mails.php
inc/modules/admin/what-config_mediadata.php
inc/modules/admin/what-config_rallye_prices.php
inc/modules/admin/what-config_secure.php
inc/modules/admin/what-del_email.php
inc/modules/admin/what-del_holiday.php
inc/modules/admin/what-del_transfer.php
inc/modules/admin/what-email_archiv.php
inc/modules/admin/what-email_details.php
inc/modules/admin/what-extensions.php
inc/modules/admin/what-list_autopurge.php
inc/modules/admin/what-list_beg.php
inc/modules/admin/what-list_bonus.php
inc/modules/admin/what-list_doubler.php
inc/modules/admin/what-list_holiday.php
inc/modules/admin/what-list_links.php
inc/modules/admin/what-list_notifications.php
inc/modules/admin/what-list_payouts.php
inc/modules/admin/what-list_primera.php
inc/modules/admin/what-list_rallyes.php
inc/modules/admin/what-list_refs.php
inc/modules/admin/what-list_sponsor.php
inc/modules/admin/what-list_task.php
inc/modules/admin/what-list_transfer.php
inc/modules/admin/what-list_unconfirmed.php
inc/modules/admin/what-list_user.php
inc/modules/admin/what-list_wernis.php
inc/modules/admin/what-send_newsletter.php
inc/modules/admin/what-sub_points.php
inc/modules/admin/what-surfbar_stats.php
inc/modules/admin/what-theme_check.php
inc/modules/admin/what-unlock_emails.php
inc/modules/admin/what-unlock_sponsor.php
inc/modules/admin/what-updates.php
inc/modules/admin/what-usr_online.php
inc/modules/guest/what-active.php
inc/modules/guest/what-confirm.php
inc/modules/guest/what-doubler.php
inc/modules/guest/what-mediadata.php
inc/modules/guest/what-rallyes.php
inc/modules/guest/what-register.php
inc/modules/guest/what-sponsor_reg.php
inc/modules/guest/what-stats.php
inc/modules/guest/what-top10.php
inc/modules/member/what-beg2.php
inc/modules/member/what-bonus.php
inc/modules/member/what-holiday.php
inc/modules/member/what-mydata.php
inc/modules/member/what-order.php
inc/modules/member/what-payout.php
inc/modules/member/what-points.php
inc/modules/member/what-primera.php
inc/modules/member/what-rallyes.php
inc/modules/member/what-stats.php
inc/modules/member/what-surfbar_list.php
inc/modules/member/what-surfbar_start.php
inc/modules/member/what-transfer.php
inc/modules/member/what-unconfirmed.php
inc/modules/member/what-wernis.php
inc/monthly/monthly_surfbar.php
inc/mysql-connect.php
inc/mysql-manager.php
inc/pool/pool-bonus.php
inc/pool/pool-user.php
inc/reset/reset_100_bonus.php
inc/reset/reset_holiday.php
inc/reset/reset_profile.php
inc/stylesheet.php
inc/weekly/weekly_surfbar.php
login.php
mailid.php
mailid_top.php
sponsor_confirm.php
sponsor_ref.php
templates/de/html/member/member_pool_row.tpl
templates/de/html/member/member_stats_row.tpl

index d06dea0e68e100fdf95d568a958a47739d62a2c2..779093bcdf526831734ec069408b4cf32115ec06 100644 (file)
 ./inc/modules/member/what-payout.php:229:                                      // @TODO Rewrite this to a filter
 ./inc/modules/member/what-points.php:54:// @TODO Should we rewrite this to a filter?
 ./inc/modules/member/what-rallyes.php:89:      // @TODO Reactivate this: $content['admin'] = "<a href=\"{?URL?}/modules.php?module=index&amp;what=impressum&amp;admin=".$content['admin_id']."\">".$content['login']."</a>";
 ./inc/modules/member/what-payout.php:229:                                      // @TODO Rewrite this to a filter
 ./inc/modules/member/what-points.php:54:// @TODO Should we rewrite this to a filter?
 ./inc/modules/member/what-rallyes.php:89:      // @TODO Reactivate this: $content['admin'] = "<a href=\"{?URL?}/modules.php?module=index&amp;what=impressum&amp;admin=".$content['admin_id']."\">".$content['login']."</a>";
-./inc/modules/member/what-stats.php:115:               // @TODO Rewrite in template: stamp->timestamp_ordered,recs->max_rec,clix->clicks,perc->percents
-./inc/modules/member/what-stats.php:68:                // @TODO Rewrite in template subj->subject,stamp->timestamp,recs->target_send
+./inc/modules/member/what-stats.php:118:               // @TODO Rewrite in template: clix->clicks
 ./inc/modules/member/what-transfer.php:101:                    // @TODO Rewrite this to a filter
 ./inc/modules/member/what-transfer.php:143:                            // @TODO Rewrite this to a filter
 ./inc/modules/member/what-transfer.php:233:                            // @TODO Try to rewrite his to $content = SQL_FETCHARRAY(), see some lines above for two different queries
 ./inc/modules/member/what-transfer.php:101:                    // @TODO Rewrite this to a filter
 ./inc/modules/member/what-transfer.php:143:                            // @TODO Rewrite this to a filter
 ./inc/modules/member/what-transfer.php:233:                            // @TODO Try to rewrite his to $content = SQL_FETCHARRAY(), see some lines above for two different queries
diff --git a/beg.php b/beg.php
index 139a4e633e3cba850102d3fe06e622d1b1f3aab7..15bfb4f5c9ce1dac0582f16296fb6297d60c9b78 100644 (file)
--- a/beg.php
+++ b/beg.php
@@ -204,7 +204,7 @@ if (isGetRequestElementSet('userid')) {
        } elseif (($status != 'CONFIRMED') && ($status != 'failed')) {
                // Maybe locked/unconfirmed account?
                $errorCode = generateErrorCodeFromUserStatus($status);
        } elseif (($status != 'CONFIRMED') && ($status != 'failed')) {
                // Maybe locked/unconfirmed account?
                $errorCode = generateErrorCodeFromUserStatus($status);
-       } elseif (($userid == '0') || ($status == 'failed')) {
+       } elseif (($userid == 0) || ($status == 'failed')) {
                // Inalid or locked account, so let's find out
                $result = SQL_QUERY_ESC("SELECT `userid` FROM `{?_MYSQL_PREFIX?}_user_data` WHERE nickname='%s' LIMIT 1",
                        array(getRequestElement('userid')), __FILE__, __LINE__);
                // Inalid or locked account, so let's find out
                $result = SQL_QUERY_ESC("SELECT `userid` FROM `{?_MYSQL_PREFIX?}_user_data` WHERE nickname='%s' LIMIT 1",
                        array(getRequestElement('userid')), __FILE__, __LINE__);
index 68738e58d9e540a1d07dc21cdc328b6a2f7c36d4..e60f59c985468c9d96f35dcd1971a3c889a2c33b 100644 (file)
@@ -92,7 +92,7 @@ if (SQL_NUMROWS($result) == 1) {
                // Add points to account
                // @TODO Try to rewrite the following unset()
                unset($GLOBALS['ref_level']);
                // Add points to account
                // @TODO Try to rewrite the following unset()
                unset($GLOBALS['ref_level']);
-               addPointsThroughReferalSystem('birthday_confirm', $userid, $data['points'], false, '0', $locked, strtolower(getConfig('birthday_mode')));
+               addPointsThroughReferalSystem('birthday_confirm', $userid, $data['points'], false, 0, $locked, strtolower(getConfig('birthday_mode')));
 
                // Remove entry from table
                SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_user_birthday` WHERE `userid`=%s AND `chk_value`='%s' LIMIT 1",
 
                // Remove entry from table
                SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_user_birthday` WHERE `userid`=%s AND `chk_value`='%s' LIMIT 1",
index 9b6745a31d70cf50ebfdfa030a2bdb9889e126cf..5fd52022b57b6bb2268b91ea14f27ac76513e772 100644 (file)
@@ -243,7 +243,7 @@ if (isExtensionActive('nickname')) {
 $content['payout_time'] = getMessage('DOUBLER_PAYOUT_TIME_' . getConfig('doubler_send_mode'));
 
 // Generate table with already payed out doubles
 $content['payout_time'] = getMessage('DOUBLER_PAYOUT_TIME_' . getConfig('doubler_send_mode'));
 
 // Generate table with already payed out doubles
-$content['payout_history'] = generateDoublerTable('0', 'Y', 'N', 'DESC');
+$content['payout_history'] = generateDoublerTable(0, 'Y', 'N', 'DESC');
 
 // Generate timemark
 $content['timeout_mark'] = createFancyTime(getConfig('doubler_timeout'));
 
 // Generate timemark
 $content['timeout_mark'] = createFancyTime(getConfig('doubler_timeout'));
index c1e0ffa31f4af83910b392c1443fbf7a2a32aeb0..c9e9bcbea2320e36ddac5c77eab940bd98e68035 100644 (file)
@@ -153,7 +153,7 @@ ORDER BY
        // Add points from deleted accounts to jackpot, but here just add to notify mail
        if ($admin_points > 0) {
                // Send mail to admin
        // Add points from deleted accounts to jackpot, but here just add to notify mail
        if ($admin_points > 0) {
                // Send mail to admin
-               sendAdminNotification(getMessage('AUTOPURGE_ADMIN_SUBJECT'), "admin_autopurge_points", translateComma($points), '0');
+               sendAdminNotification(getMessage('AUTOPURGE_ADMIN_SUBJECT'), "admin_autopurge_points", translateComma($points), 0);
        } // END - if
 
        // Run all SQLs here
        } // END - if
 
        // Run all SQLs here
index 93dcb5b2b65a0a62ba27171f8e3e1653ed612ea5..97b2dbb4334b1b2f1bc1bf64eeae1333529906a3 100644 (file)
@@ -99,7 +99,7 @@ ORDER BY
                        $UIDs .= $content['userid'].", ";
 
                        // Get date/time from timestamp
                        $UIDs .= $content['userid'].", ";
 
                        // Get date/time from timestamp
-                       $content['last_online'] = generateDateTime($content['last_online'], '0');
+                       $content['last_online'] = generateDateTime($content['last_online'], 0);
 
                        // Load mail template
                        $message = loadEmailTemplate('member_autopurge_inactive', $content, bigintval($content['userid']));
 
                        // Load mail template
                        $message = loadEmailTemplate('member_autopurge_inactive', $content, bigintval($content['userid']));
@@ -143,14 +143,14 @@ ORDER BY `userid` ASC",
                        $UIDs .= $content['userid'] . ', ';
 
                        // Get date/time from timestamp
                        $UIDs .= $content['userid'] . ', ';
 
                        // Get date/time from timestamp
-                       $content['last_online'] = generateDateTime($content['last_online'], '0');
+                       $content['last_online'] = generateDateTime($content['last_online'], 0);
 
                        // Finnaly delete this inactive account
                        deleteUserAccount($content['userid'], loadEmailTemplate('member_autopurge_delete', $content['last_online'], ''));
                } // END - while
 
                // Remove last comma
 
                        // Finnaly delete this inactive account
                        deleteUserAccount($content['userid'], loadEmailTemplate('member_autopurge_delete', $content['last_online'], ''));
                } // END - while
 
                // Remove last comma
-               $UIDs = str_replace(", ", "\n", substr($UIDs, 0, -2));
+               $UIDs = str_replace(', ', "\n", substr($UIDs, 0, -2));
 
                // Send mail notification to admin
                if (getConfig('ap_in_notify') == 'Y') {
 
                // Send mail notification to admin
                if (getConfig('ap_in_notify') == 'Y') {
index 1b566c7a77b1fc4d3514dd88935a674732c85925..cdfd391b596b973dbc90ce365aa7dbb2d5de87a7 100644 (file)
@@ -69,14 +69,14 @@ ORDER BY
                        $UIDs .= $content['userid'] . ', ';
 
                        // Get date/time from timestamp
                        $UIDs .= $content['userid'] . ', ';
 
                        // Get date/time from timestamp
-                       $content['joined'] = generateDateTime($content['joined'], '0');
+                       $content['joined'] = generateDateTime($content['joined'], 0);
 
                        // Finnaly delete this inactive account
                        deleteUserAccount($content['userid'], loadEmailTemplate('member_autopurge_unconfirmed', $content, ''));
                } // END - while
 
                // Remove last comma
 
                        // Finnaly delete this inactive account
                        deleteUserAccount($content['userid'], loadEmailTemplate('member_autopurge_unconfirmed', $content, ''));
                } // END - while
 
                // Remove last comma
-               $UIDs = str_replace(", ", "\n", substr($UIDs, 0, -2));
+               $UIDs = str_replace(', ', "\n", substr($UIDs, 0, -2));
 
                // Send mail notification to admin
                if (getConfig('ap_un_notify') == 'Y') {
 
                // Send mail notification to admin
                if (getConfig('ap_un_notify') == 'Y') {
index 02563b99353adeba374ca1750f7086d2133604b5..48e6d0a63af13b9b3f4831a41d78d7ea4c740714 100644 (file)
@@ -294,7 +294,7 @@ function updateOldConfigFile () {
 // Update config entries
 function updateConfiguration ($entries, $values, $updateMode='') {
        // Do not update config in CSS mode
 // Update config entries
 function updateConfiguration ($entries, $values, $updateMode='') {
        // Do not update config in CSS mode
-       if ((getOutputMode() == '1') || (getOutputMode() == -1) || (isInstallationPhase())) {
+       if ((getOutputMode() == 1) || (getOutputMode() == -1) || (isInstallationPhase())) {
                return;
        } // END - if
 
                return;
        } // END - if
 
@@ -349,7 +349,7 @@ function updateConfiguration ($entries, $values, $updateMode='') {
 }
 
 // Filter for loading configuration
 }
 
 // Filter for loading configuration
-function FILTER_LOAD_CONFIGURATION ($no = '0') {
+function FILTER_LOAD_CONFIGURATION ($no = 0) {
        // Check for cache extension, cache-array and if the requested configuration is in cache
        if ((isset($GLOBALS['cache_array']['config'][$no])) && (is_array($GLOBALS['cache_array']['config'][$no]))) {
                // Load config from cache
        // Check for cache extension, cache-array and if the requested configuration is in cache
        if ((isset($GLOBALS['cache_array']['config'][$no])) && (is_array($GLOBALS['cache_array']['config'][$no]))) {
                // Load config from cache
index ef12560a0a1cc41143ad72fc02792926c63fb821..15c81b861f9826e415ec50c90da91a63bc36e1a2 100644 (file)
@@ -93,7 +93,7 @@ $GLOBALS['replacer'] = array(
 setConfigEntry('ONE_DAY', (60*60*24));
 
 // Current date
 setConfigEntry('ONE_DAY', (60*60*24));
 
 // Current date
-setConfigEntry('CURRENT_DATE', generateDateTime(time(), '3'));
+setConfigEntry('CURRENT_DATE', generateDateTime(time(), 3));
 
 // Timestamp for yesterday, today ... all at 00:00 am
 setConfigEntry('START_YDAY', makeTime(0, 0, 0, time() - getConfig('ONE_DAY')));
 
 // Timestamp for yesterday, today ... all at 00:00 am
 setConfigEntry('START_YDAY', makeTime(0, 0, 0, time() - getConfig('ONE_DAY')));
index e709c8a0d95d03dcc8c3a4584c58be7297c97a60..cb1d236f3d401e4caf6dd226acb54ac7ce33efc4 100644 (file)
@@ -104,7 +104,7 @@ Query string:<br />
        incrementConfigEntry('sql_count');
 
        // Debug output
        incrementConfigEntry('sql_count');
 
        // Debug output
-       if ((getOutputMode() != '1') && (isDebugModeEnabled()) && (getConfig('DEBUG_SQL') == 'Y')) {
+       if ((getOutputMode() != 1) && (isDebugModeEnabled()) && (getConfig('DEBUG_SQL') == 'Y')) {
                //
                // Debugging stuff...
                //
                //
                // Debugging stuff...
                //
index bed7a9c3ce66c1e0186c4284a981d8a6154ca9e4..59e2e95ded0f601a09d53dabb77eed19b259741c 100644 (file)
@@ -102,7 +102,7 @@ function loadExtension ($ext_name, $ext_mode = 'init', $ext_ver = '', $dry_run =
                        // Download functions file
                        loadIncludeOnce($funcsInclude);
                } // END - if
                        // Download functions file
                        loadIncludeOnce($funcsInclude);
                } // END - if
-       } elseif ((!isset($GLOBALS['cache_array']['extension']['ext_func'][$ext_name])) && (isDebugModeEnabled()) && (getOutputMode() == '0') && ($ext_name != 'sql_patches') && (substr($ext_name, 0, 10) != 'admintheme') && (getExtensionMode() == 'test')) {
+       } elseif ((!isset($GLOBALS['cache_array']['extension']['ext_func'][$ext_name])) && (isDebugModeEnabled()) && (getOutputMode() == 0) && ($ext_name != 'sql_patches') && (substr($ext_name, 0, 10) != 'admintheme') && (getExtensionMode() == 'test')) {
                // No functions file is not so good...
                logDebugMessage(__FUNCTION__, __LINE__, sprintf("NOTICE: Extension %s has no own functions file or we cannot read from it. mode=%s",
                        $ext_name,
                // No functions file is not so good...
                logDebugMessage(__FUNCTION__, __LINE__, sprintf("NOTICE: Extension %s has no own functions file or we cannot read from it. mode=%s",
                        $ext_name,
@@ -534,7 +534,7 @@ function getExtensionVersion ($ext_name) {
 
                // Count cache hits
                incrementStatsEntry('cache_hits');
 
                // Count cache hits
                incrementStatsEntry('cache_hits');
-       } elseif ((!isCacheInstanceValid()) || (isset($GLOBALS['cache_array']['extension'])) || (getOutputMode() != '0')) {
+       } elseif ((!isCacheInstanceValid()) || (isset($GLOBALS['cache_array']['extension'])) || (getOutputMode() != 0)) {
                // Load from database
                $result = SQL_QUERY_ESC("SELECT `ext_version` FROM `{?_MYSQL_PREFIX?}_extensions` WHERE `ext_name`='%s' LIMIT 1",
                        array($ext_name), __FUNCTION__, __LINE__);
                // Load from database
                $result = SQL_QUERY_ESC("SELECT `ext_version` FROM `{?_MYSQL_PREFIX?}_extensions` WHERE `ext_name`='%s' LIMIT 1",
                        array($ext_name), __FUNCTION__, __LINE__);
index 7bf9ef602821141a5818a53f709a1ece5de38af0..b2b26ee80575962d9b9266bf152d1c316e67d0fe 100644 (file)
@@ -128,7 +128,7 @@ mail_template VARCHAR(255) NOT NULL,
 KEY (admin_id),
 PRIMARY KEY (id)
 ) TYPE={?_TABLE_TYPE?}");
 KEY (admin_id),
 PRIMARY KEY (id)
 ) TYPE={?_TABLE_TYPE?}");
-                               addExtensionSql("INSERT INTO  `{?_MYSQL_PREFIX?}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('admins','admins_mails','Admin-Mails','Stellen Sie hier ein, welcher Admin welche Mail erhalten soll. Sie k&ouml;nnen dies (derzeit) jedoch erst, wenn einmal die Mail versendet wurde!','5')");
+                               addExtensionSql("INSERT INTO  `{?_MYSQL_PREFIX?}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('admins','admins_mails','Admin-Mails','Stellen Sie hier ein, welcher Admin welche Mail erhalten soll. Sie k&ouml;nnen dies (derzeit) jedoch erst, wenn einmal die Mail versendet wurde!',5)");
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Kontrollieren Sie, welche Mails welcher Admin oder alle (admin_id=0) bekommen soll oder im UserLog (admin_id=-1) verzeichnet werden soll. Standartm&auml;ssig wird weiter an alle versendet.");
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Kontrollieren Sie, welche Mails welcher Admin oder alle (admin_id=0) bekommen soll oder im UserLog (admin_id=-1) verzeichnet werden soll. Standartm&auml;ssig wird weiter an alle versendet.");
index e6f17737b918e6561b51fc931e65d764a5c5c9c5..923abf88062f817fa471d40050ef53738902cbe7 100644 (file)
@@ -235,8 +235,8 @@ PRIMARY KEY (id)
                                break;
 
                        case '0.2.4': // SQL queries for v0.2.4
                                break;
 
                        case '0.2.4': // SQL queries for v0.2.4
-                               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `action`='extras', `sort`='1' WHERE `what`='beg' LIMIT 1");
-                               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `action`='rals', `sort`='3', `title`='Bettel-Rallye' WHERE `what`='beg2' LIMIT 1");
+                               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `action`='extras', `sort`=1 WHERE `what`='beg' LIMIT 1");
+                               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `action`='rals', `sort`=3, `title`='Bettel-Rallye' WHERE `what`='beg2' LIMIT 1");
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Mitgliedsmen&uuml; komplett umgebaut.");
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Mitgliedsmen&uuml; komplett umgebaut.");
index 822c154a5dfedebdba5977942b5f74f5a3187c07..f16ac0143d856170194cc8003c4a98af8cc1bbdd 100644 (file)
@@ -113,7 +113,7 @@ PRIMARY KEY  (id)
                                break;
 
                        case '0.2.0': // SQL queries for v0.2.0
                                break;
 
                        case '0.2.0': // SQL queries for v0.2.0
-                               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_bonus` SET target_send=mails_sent WHERE target_send='0' AND mails_sent>0 AND receivers != ''");
+                               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_bonus` SET target_send=mails_sent WHERE target_send=0 AND mails_sent>0 AND receivers != ''");
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Behebt ein Versand-Problem mit den Bonus-Mails. Es wurde die Spalte target_send nicht beim Einf&uuml;gen der Buchung gessetzt. Bitte laden Sie sich dazu - wenn nicht bereits geschehen - alle Patches bis mindestens Patch 240 unter <a href=\"{?URL?}/modules.php?module=admin&amp;what=updates\">Updates pr&uuml;fen</a> herunter.");
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Behebt ein Versand-Problem mit den Bonus-Mails. Es wurde die Spalte target_send nicht beim Einf&uuml;gen der Buchung gessetzt. Bitte laden Sie sich dazu - wenn nicht bereits geschehen - alle Patches bis mindestens Patch 240 unter <a href=\"{?URL?}/modules.php?module=admin&amp;what=updates\">Updates pr&uuml;fen</a> herunter.");
@@ -188,7 +188,7 @@ KEY userid (userid)
                                break;
 
                        case '0.2.8': // SQL queries for v0.2.8
                                break;
 
                        case '0.2.8': // SQL queries for v0.2.8
-                               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_bonus` SET timestamp='0' WHERE timestamp='0000000000'");
+                               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_bonus` SET timestamp=0 WHERE timestamp='0000000000'");
                                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_bonus_turbo` CHANGE points points FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 0.00000");
                                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` CHANGE turbo_bonus turbo_bonus FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 0.00000");
                                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` CHANGE login_bonus login_bonus FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 0.00000");
                                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_bonus_turbo` CHANGE points points FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 0.00000");
                                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` CHANGE turbo_bonus turbo_bonus FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 0.00000");
                                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` CHANGE login_bonus login_bonus FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 0.00000");
@@ -355,7 +355,7 @@ KEY userid (userid)
                        case '0.5.6': // SQL queries for v0.5.6
                                // Get current month
                                $curr = date('m', time());
                        case '0.5.6': // SQL queries for v0.5.6
                                // Get current month
                                $curr = date('m', time());
-                               if (strlen($curr) == 1) $curr = '0'.$curr;
+                               if (strlen($curr) == 1) $curr = 0 . $curr;
                                if ($curr == "00") $curr = "12";
 
                                // Generate timemark...
                                if ($curr == "00") $curr = "12";
 
                                // Generate timemark...
@@ -421,7 +421,7 @@ WHERE `last_online` < ".$mark." ORDER BY `userid` ASC");
                                break;
 
                        case '0.6.8': // SQL queries for v0.6.8
                                break;
 
                        case '0.6.8': // SQL queries for v0.6.8
-                               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_bonus` SET `data_type`='SEND' WHERE `data_type` != 'SEND' AND `data_type` != 'DELETED' AND `receivers`='' AND `target_send`='0'");
+                               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_bonus` SET `data_type`='SEND' WHERE `data_type` != 'SEND' AND `data_type` != 'DELETED' AND `receivers`='' AND `target_send`=0");
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Eingegebene Anzahl auszusendener Bonus-Mails wurde bei der Empf&auml;nderauswahl nicht ber&uuml;cksichtigt. Zudem wird jetzt das eingestellte Auswahlverfahren mitber&uuml;cksichtigt.");
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Eingegebene Anzahl auszusendener Bonus-Mails wurde bei der Empf&auml;nderauswahl nicht ber&uuml;cksichtigt. Zudem wird jetzt das eingestellte Auswahlverfahren mitber&uuml;cksichtigt.");
@@ -506,7 +506,7 @@ WHERE `last_online` < ".$mark." ORDER BY `userid` ASC");
                                break;
 
                        case '0.8.3': // SQL queries for v0.8.3
                                break;
 
                        case '0.8.3': // SQL queries for v0.8.3
-                               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `action`='rals', `sort`='2', `title`='Aktiv-Rallye' WHERE `what`='bonus' LIMIT 1");
+                               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `action`='rals', `sort`=2, `title`='Aktiv-Rallye' WHERE `what`='bonus' LIMIT 1");
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Mitgliedsmen&uuml; komplett umgebaut.");
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Mitgliedsmen&uuml; komplett umgebaut.");
index 44588a96a09b21879563693a1d3fbc53bb18a840..dda6a6794e37ec69b06ef318db69d2b411a990f6 100644 (file)
@@ -215,7 +215,7 @@ PRIMARY KEY (id)
                                        break;
 
                                case '0.1.4': // SQL queries for v0.1.4
                                        break;
 
                                case '0.1.4': // SQL queries for v0.1.4
-                                       addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `action`='extras', `sort`='4' WHERE `what`='doubler' LIMIT 1");
+                                       addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `action`='extras', `sort`=4 WHERE `what`='doubler' LIMIT 1");
 
                                        // Update notes (these will be set as task text!)
                                        setExtensionUpdateNotes("Mitgliedsmen&uuml; komplett umgebaut.");
 
                                        // Update notes (these will be set as task text!)
                                        setExtensionUpdateNotes("Mitgliedsmen&uuml; komplett umgebaut.");
index 86d16dc43cd83d5fb6707da8b67130e4ee7d0e9d..84b2544eea8113b94687414ce7be0077cefe1189 100644 (file)
@@ -74,7 +74,7 @@ PRIMARY KEY (id)
                addAdminMenuSql('holiday','config_holiday','Einstellungen','Maximale Tage f&uuml;r Urlaub usw. einstellen.',3);
 
                // Remove 0 max mails per day
                addAdminMenuSql('holiday','config_holiday','Einstellungen','Maximale Tage f&uuml;r Urlaub usw. einstellen.',3);
 
                // Remove 0 max mails per day
-               addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_max_receive` WHERE value='0' LIMIT 1");
+               addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_max_receive` WHERE value=0 LIMIT 1");
                break;
 
        case 'remove': // Do stuff when removing extension
                break;
 
        case 'remove': // Do stuff when removing extension
@@ -82,8 +82,8 @@ PRIMARY KEY (id)
                addExtensionSql("DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_user_holidays`");
                addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_member_menu` WHERE `what`='holiday' LIMIT 1");
                addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_admin_menu` WHERE `action`='holiday' LIMIT 4");
                addExtensionSql("DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_user_holidays`");
                addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_member_menu` WHERE `what`='holiday' LIMIT 1");
                addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_admin_menu` WHERE `action`='holiday' LIMIT 4");
-               addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_max_receive` WHERE value='0' LIMIT 1");
-               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (value, comment) VALUES ('0','Urlaub')");
+               addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_max_receive` WHERE value=0 LIMIT 1");
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (value, comment) VALUES (0,'Urlaub')");
                break;
 
        case 'activate': // Do stuff when admin activates this extension
                break;
 
        case 'activate': // Do stuff when admin activates this extension
@@ -156,7 +156,7 @@ PRIMARY KEY (id)
 
                        case '0.1.3': // SQL queries for v0.1.3
                                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_data` ADD holiday_active ENUM('Y','N') NOT NULL DEFAULT 'N'");
 
                        case '0.1.3': // SQL queries for v0.1.3
                                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_data` ADD holiday_active ENUM('Y','N') NOT NULL DEFAULT 'N'");
-                               addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_max_receive` WHERE value='0' LIMIT 1");
+                               addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_max_receive` WHERE value=0 LIMIT 1");
                                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD holiday_lock BIGINT(20) UNSIGNED NOT NULL DEFAULT '".(getConfig('ONE_DAY')*2)."'");
 
                                // Update notes (these will be set as task text!)
                                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD holiday_lock BIGINT(20) UNSIGNED NOT NULL DEFAULT '".(getConfig('ONE_DAY')*2)."'");
 
                                // Update notes (these will be set as task text!)
@@ -202,7 +202,7 @@ PRIMARY KEY (id)
                                break;
 
                        case '0.1.9': // SQL queries for v0.1.9
                                break;
 
                        case '0.1.9': // SQL queries for v0.1.9
-                               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `action`='account', `sort`='2', `title`='In Urlaub' WHERE `what`='holiday' LIMIT 1");
+                               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `action`='account', `sort`=2, `title`='In Urlaub' WHERE `what`='holiday' LIMIT 1");
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Mitgliedsmen&uuml; komplett umgebaut.");
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Mitgliedsmen&uuml; komplett umgebaut.");
index 3b36479df5a371c7be36453d2fe77024788c97dd..654f940b64c80730dec471541ca3eb27fbd4fd50 100644 (file)
@@ -166,8 +166,8 @@ switch (getExtensionMode()) {
                $GLOBALS['valid_email_chars'] = array(
                        'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s',
                        't','u','v','w','x','y','z','a','B','C','D','E','F','G','H','I','J','K','L',
                $GLOBALS['valid_email_chars'] = array(
                        'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s',
                        't','u','v','w','x','y','z','a','B','C','D','E','F','G','H','I','J','K','L',
-                       'M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','-','.','_','0','1',
-                       '2','3','4','5','6','7','8','9'
+                       'M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','-','.','_',0,1,
+                       2,3,4,5,6,7,8,9
                );
                break;
 
                );
                break;
 
index 6e6d0174b12fd4a4ee61c5b06144b732bc6da71b..5f9e9f34ea6a2db9d7fc3433d3a21ec2d838de51 100644 (file)
@@ -165,7 +165,7 @@ PRIMARY KEY (`nl_id`)
                                addExtensionSql("DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_newsletter_topics`");
                                addExtensionSql("CREATE TABLE `{?_MYSQL_PREFIX?}_newsletter_topics` (
 `nl_topic_id` BIGINT(20) NOT NULL AUTO_INCREMENT,
                                addExtensionSql("DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_newsletter_topics`");
                                addExtensionSql("CREATE TABLE `{?_MYSQL_PREFIX?}_newsletter_topics` (
 `nl_topic_id` BIGINT(20) NOT NULL AUTO_INCREMENT,
-`nl_id` BIGINT(20) NOT NULL DEFAULT '0',
+`nl_id` BIGINT(20) NOT NULL DEFAULT 0,
 `nl_topic_title` VARCHAR(255) NOT NULL DEFAULT '',
 `nl_topic_text` MEDIUMTEXT,
 INDEX `newsletter_id` (`nl_id`),
 `nl_topic_title` VARCHAR(255) NOT NULL DEFAULT '',
 `nl_topic_text` MEDIUMTEXT,
 INDEX `newsletter_id` (`nl_id`),
@@ -224,8 +224,8 @@ PRIMARY KEY (`nl_order_id`)
                $GLOBALS['valid_email_chars'] = array(
                        'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s',
                        't','u','v','w','x','y','z','a','B','C','D','E','F','G','H','I','J','K','L',
                $GLOBALS['valid_email_chars'] = array(
                        'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s',
                        't','u','v','w','x','y','z','a','B','C','D','E','F','G','H','I','J','K','L',
-                       'M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','-','.','_','0','1',
-                       '2','3','4','5','6','7','8','9'
+                       'M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','-','.','_',0,1,
+                       2,3,4,5,6,7,8,9
                );
                break;
 
                );
                break;
 
index b7ac3ca38d69297ffdbc73a217f73ebb184ef926..011811443156f96ef83d90e437547643b5da163e 100644 (file)
@@ -100,7 +100,7 @@ switch (getExtensionMode()) {
                                break;
 
                        case '0.0.6': // SQL queries for v0.0.6
                                break;
 
                        case '0.0.6': // SQL queries for v0.0.6
-                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD `nickname_len` TINYINT(3) UNSIGNED NOT NULL DEFAULT '5'");
+                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD `nickname_len` TINYINT(3) UNSIGNED NOT NULL DEFAULT 5");
                                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD `nickname_pattern` VARCHAR(255) NOT NULL DEFAULT 'a-zA-Z0-9_'");
                                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD `nickname_chars` VARCHAR(255) NOT NULL DEFAULT 'a-z, A-Z, 0-9, _'");
                                addAdminMenuSql('setup','config_nickname','Nicknamen','Stellen Sie minimale Nicknamenl&auml;nge, sowie erlaubte Zeichen hier ein.', 12);
                                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD `nickname_pattern` VARCHAR(255) NOT NULL DEFAULT 'a-zA-Z0-9_'");
                                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD `nickname_chars` VARCHAR(255) NOT NULL DEFAULT 'a-z, A-Z, 0-9, _'");
                                addAdminMenuSql('setup','config_nickname','Nicknamen','Stellen Sie minimale Nicknamenl&auml;nge, sowie erlaubte Zeichen hier ein.', 12);
@@ -157,7 +157,7 @@ switch (getExtensionMode()) {
                                break;
 
                        case '0.1.6': // SQL queries for v0.1.6
                                break;
 
                        case '0.1.6': // SQL queries for v0.1.6
-                               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `action`='extras', `sort`='2' WHERE `what`='nickname' LIMIT 1");
+                               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `action`='extras', `sort`=2 WHERE `what`='nickname' LIMIT 1");
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Mitgliedsmen&uuml; komplett umgebaut.");
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Mitgliedsmen&uuml; komplett umgebaut.");
index 79ce41bff5be7b27b89ec3353f37602e6c2f7d6e..cd58bc17f92e6593ef765432cce29325afff275d 100644 (file)
@@ -58,7 +58,7 @@ switch (getExtensionMode()) {
   gain decimal(10,3) NOT NULL DEFAULT '0.000',
   PRIMARY KEY (id)
 ) TYPE={?_TABLE_TYPE?}");
   gain decimal(10,3) NOT NULL DEFAULT '0.000',
   PRIMARY KEY (id)
 ) TYPE={?_TABLE_TYPE?}");
-               addAdminMenuSql('misc','optimize','DB optimieren','F&uuml;hren Sie dies ab und an aus, damit &uuml;berfl&uuml;ssige Daten aus der Datenbank entfernt werden.','5');
+               addAdminMenuSql('misc','optimize','DB optimieren','F&uuml;hren Sie dies ab und an aus, damit &uuml;berfl&uuml;ssige Daten aus der Datenbank entfernt werden.',5);
                break;
 
        case 'remove': // Do stuff when removing extension
                break;
 
        case 'remove': // Do stuff when removing extension
index 9b7993c3edade50bb560aa41d307adf2d05bdf48..501125434df40a09a13ec5c2af4ad8a272eb7838 100644 (file)
@@ -74,7 +74,7 @@ switch (getExtensionMode()) {
                switch (getCurrentExtensionVersion()) {
                        case '0.1.0': // SQL queries for v0.1
                                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD order_max_full ENUM('ORDER','MAX') NOT NULL DEFAULT 'MAX'");
                switch (getCurrentExtensionVersion()) {
                        case '0.1.0': // SQL queries for v0.1
                                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD order_max_full ENUM('ORDER','MAX') NOT NULL DEFAULT 'MAX'");
-                               addAdminMenuSql('setup','config_order','Mailbuchungsseite','7','Einstellungen am Mailbuchungsformular.');
+                               addAdminMenuSql('setup','config_order','Mailbuchungsseite',7,'Einstellungen am Mailbuchungsformular.');
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Maximale Mailbuchungen sind nun vom maximalen Empfang abh&auml;gig.");
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Maximale Mailbuchungen sind nun vom maximalen Empfang abh&auml;gig.");
@@ -82,7 +82,7 @@ switch (getExtensionMode()) {
 
                        case '0.1.1': // SQL queries for v0.1.1
                                addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_admin_menu` WHERE `what`='config_order' LIMIT 1");
 
                        case '0.1.1': // SQL queries for v0.1.1
                                addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_admin_menu` WHERE `what`='config_order' LIMIT 1");
-                               addAdminMenuSql('setup','config_order','Mailbuchungsseite','7','Einstellungen am Mailbuchungsformular.');
+                               addAdminMenuSql('setup','config_order','Mailbuchungsseite',7,'Einstellungen am Mailbuchungsformular.');
                                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_data` ADD mail_orders BIGINT(20) UNSIGNED NOT NULL DEFAULT 0");
 
                                // Update notes (these will be set as task text!)
                                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_data` ADD mail_orders BIGINT(20) UNSIGNED NOT NULL DEFAULT 0");
 
                                // Update notes (these will be set as task text!)
@@ -272,7 +272,7 @@ nicht die vom Mitglied eingegebene. Resultat: Das Script beschwerte sich, der Us
                        case '0.4.6': // SQL queries for v0.4.6
                                addMemberMenuSql('order',NULL,'Mailbuchungen','N','Y',3);
                                addMemberMenuSql('order','order2','Framekiller-Mails','N','Y',2);
                        case '0.4.6': // SQL queries for v0.4.6
                                addMemberMenuSql('order',NULL,'Mailbuchungen','N','Y',3);
                                addMemberMenuSql('order','order2','Framekiller-Mails','N','Y',2);
-                               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `action`='order', `sort`='1', `title`='Klick-Mails' WHERE `what`='order' LIMIT 1");
+                               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `action`='order', `sort`=1, `title`='Klick-Mails' WHERE `what`='order' LIMIT 1");
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Mitgliedsmen&uuml; komplett umgebaut.");
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Mitgliedsmen&uuml; komplett umgebaut.");
index 02e16d3baf3ccdf2760f1c25d05ecdfdb82bf91a..fd0c94b00a548c0fcc5abb33aa2ad96e4685a436 100644 (file)
@@ -89,7 +89,7 @@ switch (getExtensionMode()) {
                                break;
 
                        case '0.0.4': // SQL queries for v0.0.4
                                break;
 
                        case '0.0.4': // SQL queries for v0.0.4
-                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD max_comma TINYINT(3) UNSIGNED NOT NULL DEFAULT '3'");
+                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD max_comma TINYINT(3) UNSIGNED NOT NULL DEFAULT 3");
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Angezeigte Kommastellen k&ouml;nnen zwischen 0 und 5 eingestellt werden.");
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Angezeigte Kommastellen k&ouml;nnen zwischen 0 und 5 eingestellt werden.");
index fa87340920e8f826d35035a99d638e2984d0e3ca..88da04d69569fd0babd912f7233b51ee8df26759 100644 (file)
@@ -217,7 +217,7 @@ PRIMARY KEY (id)
 
                        case '0.2.0': // SQL queries for v0.2.0
                                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_rallye_data` ADD min_users BIGINT(20) UNSIGNED NOT NULL DEFAULT 0");
 
                        case '0.2.0': // SQL queries for v0.2.0
                                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_rallye_data` ADD min_users BIGINT(20) UNSIGNED NOT NULL DEFAULT 0");
-                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_rallye_data` ADD min_prices BIGINT(20) UNSIGNED NOT NULL DEFAULT '3'");
+                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_rallye_data` ADD min_prices BIGINT(20) UNSIGNED NOT NULL DEFAULT 3");
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Ablaufen der Rallyes intergriert. Bauen Sie in Ihr Template <strong>templates/de/emails/member/member_rallye_notify.tpl</strong> folgende zwei Zeilen ein:<br />
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Ablaufen der Rallyes intergriert. Bauen Sie in Ihr Template <strong>templates/de/emails/member/member_rallye_notify.tpl</strong> folgende zwei Zeilen ein:<br />
@@ -289,7 +289,7 @@ Zudem sollten Sie mindestens folgende Templates (in <strong>templates/".getLangu
                                break;
 
                        case '0.3.2': // SQL queries for v0.3.2
                                break;
 
                        case '0.3.2': // SQL queries for v0.3.2
-                               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `action`='rals', `sort`='1', `title`='Referal-Rallye' WHERE `what`='rallyes' LIMIT 1");
+                               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `action`='rals', `sort`=1, `title`='Referal-Rallye' WHERE `what`='rallyes' LIMIT 1");
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Mitgliedsmen&uuml; komplett umgebaut.");
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Mitgliedsmen&uuml; komplett umgebaut.");
@@ -327,7 +327,7 @@ Zudem sollten Sie mindestens folgende Templates (in <strong>templates/".getLangu
        case 'init': // Do stuff when extension is initialized
                // Do stuff only when not in CSS mode
                // @TODO Move this code into rallye_functions.php
        case 'init': // Do stuff when extension is initialized
                // Do stuff only when not in CSS mode
                // @TODO Move this code into rallye_functions.php
-               if (getOutputMode() != '1') {
+               if (getOutputMode() != 1) {
                        // Get total member count
                        $total = countSumTotalData('CONFIRMED', 'user_data', 'userid', 'status', true);
 
                        // Get total member count
                        $total = countSumTotalData('CONFIRMED', 'user_data', 'userid', 'status', true);
 
index 77fcb369214a48e302e9f510890b338486b54cc4..95971868ca700c1eaac0082e54315bdab5ca9828 100644 (file)
@@ -456,15 +456,15 @@ PRIMARY KEY (`id`)
                                addMemberMenuSql('extras',NULL,'Extras','Y','N',5);
                                addMemberMenuSql('rals',NULL,'Rallyes','Y','N',6);
                                addMemberMenuSql('account',NULL,'Ihr Account','Y','N',7);
                                addMemberMenuSql('extras',NULL,'Extras','Y','N',5);
                                addMemberMenuSql('rals',NULL,'Rallyes','Y','N',6);
                                addMemberMenuSql('account',NULL,'Ihr Account','Y','N',7);
-                               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `action`='stats', `sort`='1', `title`='Klick-Mails' WHERE `what`='stats' LIMIT 1");
-                               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `action`='extras', `sort`='3' WHERE `what`='reflinks' LIMIT 1");
+                               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `action`='stats', `sort`=1, `title`='Klick-Mails' WHERE `what`='stats' LIMIT 1");
+                               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `action`='extras', `sort`=3 WHERE `what`='reflinks' LIMIT 1");
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Mitgliedsmen&uuml; komplett umgebaut.");
                                break;
 
                        case '0.3.6': // SQL queries for v0.3.6
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Mitgliedsmen&uuml; komplett umgebaut.");
                                break;
 
                        case '0.3.6': // SQL queries for v0.3.6
-                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD `salt_length` TINYINT(3) UNSIGNED NOT NULL DEFAULT '9'");
+                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD `salt_length` TINYINT(3) UNSIGNED NOT NULL DEFAULT 9");
                                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD `pass_scramble` VARCHAR(255) NOT NULL DEFAULT ''");
                                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_admins` MODIFY `password` VARCHAR(255) NOT NULL DEFAULT ''");
                                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD `rand_no` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0");
                                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD `pass_scramble` VARCHAR(255) NOT NULL DEFAULT ''");
                                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_admins` MODIFY `password` VARCHAR(255) NOT NULL DEFAULT ''");
                                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD `rand_no` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0");
index e4b77c799b39b069783bb5aeecc1949e217f91e9..a44d29b92c963d3b4435bd08a61de5243237914e 100644 (file)
@@ -140,8 +140,8 @@ INDEX (`theme_active`)
                                // Memember menu
                                addMemberMenuSql('themes',NULL,'Design-Auswahl','N','Y',3);
                                addMemberMenuSql('main','themes','Designs','N','Y',6);
                                // Memember menu
                                addMemberMenuSql('themes',NULL,'Design-Auswahl','N','Y',3);
                                addMemberMenuSql('main','themes','Designs','N','Y',6);
-                               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `sort`='8' WHERE `action`='themes' LIMIT 1");
-                               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `action`='account', `sort`='1', `title`='Designs' WHERE `what`='themes' LIMIT 1");
+                               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `sort`=8 WHERE `action`='themes' LIMIT 1");
+                               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `action`='account', `sort`=1, `title`='Designs' WHERE `what`='themes' LIMIT 1");
 
                                // User data
                                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_data` ADD `curr_theme` VARCHAR(255) NOT NULL DEFAULT 'default'");
 
                                // User data
                                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_data` ADD `curr_theme` VARCHAR(255) NOT NULL DEFAULT 'default'");
index 3c5ab03e499d4afd9038e9c7bdf5b3541b3f4c1d..7ef77d5816bf4d5e85d147084e6605be04839fee 100644 (file)
@@ -247,7 +247,7 @@ PRIMARY KEY (id)
                                break;
 
                        case '0.2.5': // SQL queries for v0.2.5
                                break;
 
                        case '0.2.5': // SQL queries for v0.2.5
-                               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `action`='extras', `sort`='5' WHERE `what`='transfer' LIMIT 1");
+                               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `action`='extras', `sort`=5 WHERE `what`='transfer' LIMIT 1");
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Mitgliedsmen&uuml; komplett ge&auml;ndert.");
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Mitgliedsmen&uuml; komplett ge&auml;ndert.");
index 1b7eb19dae2e94f9a2dd606c71f265bb96cd59b7..5b007f3d2132d9721e619a87cf183e076d3acee6 100644 (file)
@@ -603,7 +603,7 @@ function FILTER_DETERMINE_WHAT_ACTION () {
 // Sends out pooled mails
 function FILTER_TRIGGER_SENDING_POOL () {
        // Are we in normal output mode?
 // Sends out pooled mails
 function FILTER_TRIGGER_SENDING_POOL () {
        // Are we in normal output mode?
-       if (getOutputMode() != '0') {
+       if (getOutputMode() != 0) {
                // Only in normal output mode to prevent race-conditons!
        } // END - if
 
                // Only in normal output mode to prevent race-conditons!
        } // END - if
 
index 0e9518d91faaa20d1975dc2a5a065214e309ae94..d4f6a4d1d7ac95be0f5017e865ee50462a16b9ed 100644 (file)
@@ -43,13 +43,13 @@ if (!defined('__SECURITY')) {
 
 // Footer disabled or already sent?
 // 1234      5                       54    45                              5    5                              543    3                              321
 
 // Footer disabled or already sent?
 // 1234      5                       54    45                              5    5                              543    3                              321
-if ((((!isset($GLOBALS['footer_sent'])) || (($GLOBALS['footer_sent'] != '1') && ($GLOBALS['footer_sent'] != '2'))) && (getOutputMode() != '1'))) {
+if ((((!isset($GLOBALS['footer_sent'])) || (($GLOBALS['footer_sent'] != 1) && ($GLOBALS['footer_sent'] != 2))) && (getOutputMode() != 1))) {
        // @TODO Rewrite these all into filters
        // Handle fatal errors
        handleFatalErrors();
 
        // Shall we display the copyright notice?
        // @TODO Rewrite these all into filters
        // Handle fatal errors
        handleFatalErrors();
 
        // Shall we display the copyright notice?
-       if ((!isGetRequestElementSet('frame')) && (basename($_SERVER['PHP_SELF']) != 'mailid_top.php') && ((getConfig('WRITE_FOOTER') == 'Y') || (isInstalling())) && ($GLOBALS['header_sent'] == '2')) {
+       if ((!isGetRequestElementSet('frame')) && (basename($_SERVER['PHP_SELF']) != 'mailid_top.php') && ((getConfig('WRITE_FOOTER') == 'Y') || (isInstalling())) && ($GLOBALS['header_sent'] == 2)) {
                // Backlink enabled?
                if ((getConfig('ENABLE_BACKLINK') == 'Y') || (isInstalling())) {
                        // Copyright with backlink, thanks! :-)
                // Backlink enabled?
                if ((getConfig('ENABLE_BACKLINK') == 'Y') || (isInstalling())) {
                        // Copyright with backlink, thanks! :-)
@@ -61,19 +61,20 @@ if ((((!isset($GLOBALS['footer_sent'])) || (($GLOBALS['footer_sent'] != '1') &&
        } // END - if
 
        // Shall we display the parsing time and number of queries?
        } // END - if
 
        // Shall we display the parsing time and number of queries?
-       if ((((isExtensionInstalledAndNewer('sql_patches', '0.4.1')) && (getConfig('show_timings') == 'Y') && (!isGetRequestElementSet('frame'))) || (isInstallationPhase())) && (getOutputMode() != 0) && ($GLOBALS['header_sent'] == '2')) {
+       // 1234                            5                      54    4         5              5       4    4                       5       543    3                   4432    2             33     2    2                              21
+       if ((((isExtensionInstalledAndNewer('sql_patches', '0.4.1')) && (getConfig('show_timings') == 'Y') && (!isGetRequestElementSet('frame'))) || (isInstallationPhase())) && (getOutputMode() == 0) && ($GLOBALS['header_sent'] == 2)) {
                // Then display it here
                displayParsingTime();
        } // END - if
 
        // Shall we display SQL queries?
                // Then display it here
                displayParsingTime();
        } // END - if
 
        // Shall we display SQL queries?
-       if ((isAdmin()) && (isExtensionInstalledAndNewer('other', '0.2.2')) && (getConfig('display_debug_sqls') == 'Y') && (!isGetRequestElementSet('frame')) && ($GLOBALS['header_sent'] == '2')) {
+       if ((isAdmin()) && (isExtensionInstalledAndNewer('other', '0.2.2')) && (getConfig('display_debug_sqls') == 'Y') && (!isGetRequestElementSet('frame')) && ($GLOBALS['header_sent'] == 2)) {
                // Then display it here
                displayDebugSqls();
        } // END - if
 
        // Shall we include the uberwach snippet?
                // Then display it here
                displayDebugSqls();
        } // END - if
 
        // Shall we include the uberwach snippet?
-       if ((!isGetRequestElementSet('frame')) && (isExtensionActive('uberwach')) && (getModule() != 'admin') && ($GLOBALS['header_sent'] == '2')) {
+       if ((!isGetRequestElementSet('frame')) && (isExtensionActive('uberwach')) && (getModule() != 'admin') && ($GLOBALS['header_sent'] == 2)) {
                // Then display it here
                loadUberwachSnippet();
        } // END - if
                // Then display it here
                loadUberwachSnippet();
        } // END - if
index 0048109565812153f65ca8df08c1c64097237ab6..c7064dccf77d16a91138714a7e402e26674855cd 100644 (file)
@@ -116,7 +116,7 @@ function outputHtml ($htmlCode, $newLine = true) {
                sendHeader('Content-language: ' . getLanguage());
 
                // Extension 'rewrite' installed?
                sendHeader('Content-language: ' . getLanguage());
 
                // Extension 'rewrite' installed?
-               if ((isExtensionActive('rewrite')) && (getOutputMode() != '1')) {
+               if ((isExtensionActive('rewrite')) && (getOutputMode() != 1)) {
                        $GLOBALS['output'] = rewriteLinksInCode($GLOBALS['output']);
                } // END - if
 
                        $GLOBALS['output'] = rewriteLinksInCode($GLOBALS['output']);
                } // END - if
 
@@ -148,7 +148,7 @@ function outputHtml ($htmlCode, $newLine = true) {
                outputRawCode($GLOBALS['output']);
        } elseif ((getConfig('OUTPUT_MODE') == 'render') && (!empty($GLOBALS['output']))) {
                // Rewrite links when rewrite extension is active
                outputRawCode($GLOBALS['output']);
        } elseif ((getConfig('OUTPUT_MODE') == 'render') && (!empty($GLOBALS['output']))) {
                // Rewrite links when rewrite extension is active
-               if ((isExtensionActive('rewrite')) && (getOutputMode() != '1')) {
+               if ((isExtensionActive('rewrite')) && (getOutputMode() != 1)) {
                        $GLOBALS['output'] = rewriteLinksInCode($GLOBALS['output']);
                } // END - if
 
                        $GLOBALS['output'] = rewriteLinksInCode($GLOBALS['output']);
                } // END - if
 
@@ -241,7 +241,7 @@ function loadTemplate ($template, $return=false, $content=array()) {
                if (empty($GLOBALS['refid'])) $GLOBALS['refid'] = 0;
 
                // Generate date/time string
                if (empty($GLOBALS['refid'])) $GLOBALS['refid'] = 0;
 
                // Generate date/time string
-               $date_time = generateDateTime(time(), '1');
+               $date_time = generateDateTime(time(), 1);
 
                // Is content an array
                if (is_array($content)) $content['date_time'] = $date_time;
 
                // Is content an array
                if (is_array($content)) $content['date_time'] = $date_time;
@@ -410,7 +410,7 @@ function loadTemplate ($template, $return=false, $content=array()) {
 }
 
 // Loads an email template and compiles it
 }
 
 // Loads an email template and compiles it
-function loadEmailTemplate ($template, $content = array(), $UID = '0') {
+function loadEmailTemplate ($template, $content = array(), $UID = 0) {
        global $DATA;
 
        // Our configuration is kept non-global here
        global $DATA;
 
        // Our configuration is kept non-global here
@@ -600,7 +600,7 @@ function sendEmail ($toEmail, $subject, $message, $isHtml = 'N', $mailHeader = '
                        // Free result
                        SQL_FREERESULT($result_email);
                }
                        // Free result
                        SQL_FREERESULT($result_email);
                }
-       } elseif ($toEmail == '0') {
+       } elseif ($toEmail == 0) {
                // Is the webmaster!
                $toEmail = getConfig('WEBMASTER');
        }
                // Is the webmaster!
                $toEmail = getConfig('WEBMASTER');
        }
@@ -731,7 +731,7 @@ function generatePassword ($length = 0) {
 }
 
 // Generates a human-readable timestamp from the Uni* stamp
 }
 
 // Generates a human-readable timestamp from the Uni* stamp
-function generateDateTime ($time, $mode = '0') {
+function generateDateTime ($time, $mode = 0) {
        // Filter out numbers
        $time = bigintval($time);
 
        // Filter out numbers
        $time = bigintval($time);
 
@@ -744,10 +744,10 @@ function generateDateTime ($time, $mode = '0') {
        switch (getLanguage()) {
                case 'de': // German date / time format
                        switch ($mode) {
        switch (getLanguage()) {
                case 'de': // German date / time format
                        switch ($mode) {
-                               case '0': $ret = date("d.m.Y \u\m H:i \U\h\\r", $time); break;
-                               case '1': $ret = strtolower(date('d.m.Y - H:i', $time)); break;
-                               case '2': $ret = date('d.m.Y|H:i', $time); break;
-                               case '3': $ret = date('d.m.Y', $time); break;
+                               case 0: $ret = date("d.m.Y \u\m H:i \U\h\\r", $time); break;
+                               case 1: $ret = strtolower(date('d.m.Y - H:i', $time)); break;
+                               case 2: $ret = date('d.m.Y|H:i', $time); break;
+                               case 3: $ret = date('d.m.Y', $time); break;
                                default:
                                        logDebugMessage(__FUNCTION__, __LINE__, sprintf("Invalid date mode %s detected.", $mode));
                                        break;
                                default:
                                        logDebugMessage(__FUNCTION__, __LINE__, sprintf("Invalid date mode %s detected.", $mode));
                                        break;
@@ -756,10 +756,10 @@ function generateDateTime ($time, $mode = '0') {
 
                default: // Default is the US date / time format!
                        switch ($mode) {
 
                default: // Default is the US date / time format!
                        switch ($mode) {
-                               case '0': $ret = date('r', $time); break;
-                               case '1': $ret = date('Y-m-d - g:i A', $time); break;
-                               case '2': $ret = date('y-m-d|H:i', $time); break;
-                               case '3': $ret = date('y-m-d', $time); break;
+                               case 0: $ret = date('r', $time); break;
+                               case 1: $ret = date('Y-m-d - g:i A', $time); break;
+                               case 2: $ret = date('y-m-d|H:i', $time); break;
+                               case 3: $ret = date('y-m-d', $time); break;
                                default:
                                        logDebugMessage(__FUNCTION__, __LINE__, sprintf("Invalid date mode %s detected.", $mode));
                                        break;
                                default:
                                        logDebugMessage(__FUNCTION__, __LINE__, sprintf("Invalid date mode %s detected.", $mode));
                                        break;
@@ -808,7 +808,7 @@ function translatePoolType ($type) {
 // Translates the american decimal dot into a german comma
 function translateComma ($dotted, $cut = true, $max = 0) {
        // Default is 3 you can change this in admin area "Misc -> Misc Options"
 // Translates the american decimal dot into a german comma
 function translateComma ($dotted, $cut = true, $max = 0) {
        // Default is 3 you can change this in admin area "Misc -> Misc Options"
-       if (!isConfigEntrySet('max_comma')) setConfigEntry('max_comma', '3');
+       if (!isConfigEntrySet('max_comma')) setConfigEntry('max_comma', 3);
 
        // Use from config is default
        $maxComma = getConfig('max_comma');
 
        // Use from config is default
        $maxComma = getConfig('max_comma');
@@ -1165,7 +1165,7 @@ function array_pk_sort (&$array, $a_sort, $primary_key = 0, $order = -1, $nums =
 }
 
 //
 }
 
 //
-function addSelectionBox ($type, $default, $prefix = '', $id = '0') {
+function addSelectionBox ($type, $default, $prefix = '', $id = 0) {
        $OUT = '';
 
        if ($type == 'yn') {
        $OUT = '';
 
        if ($type == 'yn') {
@@ -1250,7 +1250,7 @@ function addSelectionBox ($type, $default, $prefix = '', $id = '0') {
                case 'sec':
                case 'min':
                        for ($idx = 0; $idx < 60; $idx+=5) {
                case 'sec':
                case 'min':
                        for ($idx = 0; $idx < 60; $idx+=5) {
-                               if (strlen($idx) == 1) $idx = '0' . $idx;
+                               if (strlen($idx) == 1) $idx = 0 . $idx;
                                $OUT .= "<option value=\"" . $idx."\"";
                                if ($default == $idx) $OUT .= ' selected="selected"';
                                $OUT .= ">" . $idx."</option>\n";
                                $OUT .= "<option value=\"" . $idx."\"";
                                if ($default == $idx) $OUT .= ' selected="selected"';
                                $OUT .= ">" . $idx."</option>\n";
@@ -1259,7 +1259,7 @@ function addSelectionBox ($type, $default, $prefix = '', $id = '0') {
 
                case 'hour':
                        for ($idx = 0; $idx < 24; $idx++) {
 
                case 'hour':
                        for ($idx = 0; $idx < 24; $idx++) {
-                               if (strlen($idx) == 1) $idx = '0' . $idx;
+                               if (strlen($idx) == 1) $idx = 0 . $idx;
                                $OUT .= "<option value=\"" . $idx."\"";
                                if ($default == $idx) $OUT .= ' selected="selected"';
                                $OUT .= ">" . $idx."</option>\n";
                                $OUT .= "<option value=\"" . $idx."\"";
                                if ($default == $idx) $OUT .= ' selected="selected"';
                                $OUT .= ">" . $idx."</option>\n";
@@ -1662,7 +1662,7 @@ function addEmailNavigation ($PAGES, $offset, $show_form, $colspan, $return=fals
        $NAV = '';
        for ($page = 1; $page <= $PAGES; $page++) {
                // Is the page currently selected or shall we generate a link to it?
        $NAV = '';
        for ($page = 1; $page <= $PAGES; $page++) {
                // Is the page currently selected or shall we generate a link to it?
-               if (($page == getRequestElement('page')) || ((!isGetRequestElementSet('page')) && ($page == '1'))) {
+               if (($page == getRequestElement('page')) || ((!isGetRequestElementSet('page')) && ($page == 1))) {
                        // Is currently selected, so only highlight it
                        $NAV .= '<strong>-';
                } else {
                        // Is currently selected, so only highlight it
                        $NAV .= '<strong>-';
                } else {
@@ -1676,7 +1676,7 @@ function addEmailNavigation ($PAGES, $offset, $show_form, $colspan, $return=fals
                        $NAV .= '">';
                }
                $NAV .= $page;
                        $NAV .= '">';
                }
                $NAV .= $page;
-               if (($page == getRequestElement('page')) || ((!isGetRequestElementSet('page')) && ($page == '1'))) {
+               if (($page == getRequestElement('page')) || ((!isGetRequestElementSet('page')) && ($page == 1))) {
                        // Is currently selected, so only highlight it
                        $NAV .= '-</strong>';
                } else {
                        // Is currently selected, so only highlight it
                        $NAV .= '-</strong>';
                } else {
@@ -2166,7 +2166,7 @@ function generatePassString ($passHash) {
                                $mod = dechex(sqrt(($part2 - $part1) * getConfig('_PRIME') / pi()));
                        }
                        $mod = substr(round($mod), 0, 4);
                                $mod = dechex(sqrt(($part2 - $part1) * getConfig('_PRIME') / pi()));
                        }
                        $mod = substr(round($mod), 0, 4);
-                       $mod = str_repeat('0', 4-strlen($mod)) . $mod;
+                       $mod = str_repeat(0, 4-strlen($mod)) . $mod;
                        //* DEBUG: */ outputHtml("*" . $start.'=' . $mod."*<br />");
                        $start += 4;
                        $newHash .= $mod;
                        //* DEBUG: */ outputHtml("*" . $start.'=' . $mod."*<br />");
                        $start += 4;
                        $newHash .= $mod;
@@ -2661,7 +2661,7 @@ function getMessageFromErrorCode ($code) {
                case getCode('OVERLENGTH')       : $message = getMessage('MEMBER_TEXT_OVERLENGTH'); break;
                case getCode('URL_FOUND')        : $message = getMessage('MEMBER_TEXT_CONTAINS_URL'); break;
                case getCode('SUBJ_URL')         : $message = getMessage('MEMBER_SUBJ_CONTAINS_URL'); break;
                case getCode('OVERLENGTH')       : $message = getMessage('MEMBER_TEXT_OVERLENGTH'); break;
                case getCode('URL_FOUND')        : $message = getMessage('MEMBER_TEXT_CONTAINS_URL'); break;
                case getCode('SUBJ_URL')         : $message = getMessage('MEMBER_SUBJ_CONTAINS_URL'); break;
-               case getCode('BLIST_URL')        : $message = "{--MEMBER_URL_BLACK_LISTED--}<br />\n{--MEMBER_BLIST_TIME--}: ".generateDateTime(getRequestElement('blist'), '0'); break;
+               case getCode('BLIST_URL')        : $message = "{--MEMBER_URL_BLACK_LISTED--}<br />\n{--MEMBER_BLIST_TIME--}: ".generateDateTime(getRequestElement('blist'), 0); break;
                case getCode('NO_RECS_LEFT')     : $message = getMessage('MEMBER_SELECTED_MORE_RECS'); break;
                case getCode('INVALID_TAGS')     : $message = getMessage('MEMBER_HTML_INVALID_TAGS'); break;
                case getCode('MORE_POINTS')      : $message = getMessage('MEMBER_MORE_POINTS_NEEDED'); break;
                case getCode('NO_RECS_LEFT')     : $message = getMessage('MEMBER_SELECTED_MORE_RECS'); break;
                case getCode('INVALID_TAGS')     : $message = getMessage('MEMBER_HTML_INVALID_TAGS'); break;
                case getCode('MORE_POINTS')      : $message = getMessage('MEMBER_MORE_POINTS_NEEDED'); break;
@@ -2692,7 +2692,7 @@ function getMessageFromErrorCode ($code) {
 
                        // Load timestamp from last order
                        list($timestamp) = SQL_FETCHROW($result);
 
                        // Load timestamp from last order
                        list($timestamp) = SQL_FETCHROW($result);
-                       $timestamp = generateDateTime($timestamp, '1');
+                       $timestamp = generateDateTime($timestamp, 1);
 
                        // Free memory
                        SQL_FREERESULT($result);
 
                        // Free memory
                        SQL_FREERESULT($result);
@@ -2919,7 +2919,7 @@ function changeDataInFile ($FQFN, $comment, $prefix, $suffix, $DATA, $seek=0) {
        return false;
 }
 // Send notification to admin
        return false;
 }
 // Send notification to admin
-function sendAdminNotification ($subject, $templateName, $content=array(), $userid = '0') {
+function sendAdminNotification ($subject, $templateName, $content=array(), $userid = 0) {
        if (getExtensionVersion('admins') >= '0.4.1') {
                // Send new way
                sendAdminsEmails($subject, $templateName, $content, $userid);
        if (getExtensionVersion('admins') >= '0.4.1') {
                // Send new way
                sendAdminsEmails($subject, $templateName, $content, $userid);
@@ -3047,7 +3047,7 @@ function handleLoginFailtures ($accessLevel) {
                        //* DEBUG: */ outputHtml(__FUNCTION__."(<font color=\"#0000aa\">".__LINE__."</font>):accessLevel={$accessLevel}<br />");
                        $content = array(
                                'login_failures' => getSession('mxchange_' . $accessLevel.'_failures'),
                        //* DEBUG: */ outputHtml(__FUNCTION__."(<font color=\"#0000aa\">".__LINE__."</font>):accessLevel={$accessLevel}<br />");
                        $content = array(
                                'login_failures' => getSession('mxchange_' . $accessLevel.'_failures'),
-                               'last_failure'   => generateDateTime(getSession('mxchange_' . $accessLevel.'_last_fail'), '2')
+                               'last_failure'   => generateDateTime(getSession('mxchange_' . $accessLevel.'_last_fail'), 2)
                        );
 
                        // Load template
                        );
 
                        // Load template
@@ -3156,7 +3156,7 @@ function addNewBonusMail ($data, $mode = '', $output=true) {
 // Determines referal id and sets it
 function determineReferalId () {
        // Skip this in non-html-mode
 // Determines referal id and sets it
 function determineReferalId () {
        // Skip this in non-html-mode
-       if (getOutputMode() != '0') return false;
+       if (getOutputMode() != 0) return false;
 
        // Check if refid is set
        if ((isset($GLOBALS['refid'])) && ($GLOBALS['refid'] > 0)) {
 
        // Check if refid is set
        if ((isset($GLOBALS['refid'])) && ($GLOBALS['refid'] > 0)) {
@@ -3188,7 +3188,7 @@ function determineReferalId () {
        }
 
        // Set cookie when default refid > 0
        }
 
        // Set cookie when default refid > 0
-       if (!isSessionVariableSet('refid') || (!empty($GLOBALS['refid'])) || ((getSession('refid') == '0') && (getConfig('def_refid') > 0))) {
+       if (!isSessionVariableSet('refid') || (!empty($GLOBALS['refid'])) || ((getSession('refid') == 0) && (getConfig('def_refid') > 0))) {
                // Set cookie
                setSession('refid', $GLOBALS['refid']);
        } // END - if
                // Set cookie
                setSession('refid', $GLOBALS['refid']);
        } // END - if
@@ -3611,21 +3611,26 @@ function linenumberCode ($code)    {
        if (!is_array($code)) $codeE = explode("\n", $code); else $codeE = $code;
        $count_lines = count($codeE);
 
        if (!is_array($code)) $codeE = explode("\n", $code); else $codeE = $code;
        $count_lines = count($codeE);
 
-       $r = "Line | Code:<br />";
+       $r = 'Line | Code:<br />';
        foreach($codeE as $line => $c) {
        foreach($codeE as $line => $c) {
-               $r .= "<div class=\"line\"><span class=\"linenum\">";
+               $r .= '<div class="line"><span class="linenum">';
                if ($count_lines == 1) {
                if ($count_lines == 1) {
-                       $r .= '1';
+                       $r .= 1;
                } else {
                        $r .= ($line == ($count_lines - 1)) ? '' :  ($line+1);
                }
                } else {
                        $r .= ($line == ($count_lines - 1)) ? '' :  ($line+1);
                }
-               $r .= "</span>|";
+               $r .= '</span>|';
 
                // Add code
 
                // Add code
-               $r .= "<span class=\"linetext\">" . htmlentities($c) . "</span></div>";
+               $r .= '<span class="linetext">' . htmlentities($c) . '</span></div>';
        }
 
        }
 
-       return "<div class=\"code\">" . $r . "</div>\n";
+       return '<div class="code">' . $r . '</div>';
+}
+
+// Convert ';' to ', ' for e.g. receiver list
+function convertReceivers ($old) {
+       return str_replace(';', ', ', $old);
 }
 
 //////////////////////////////////////////////////
 }
 
 //////////////////////////////////////////////////
index d248ce7714753eb95df09082e1ddf97adecab06e..ce68e543888a0d9fd59473b1f0740b7dc5891420 100644 (file)
@@ -44,7 +44,7 @@ if (!defined('__SECURITY')) {
 }
 
 // Is the header already sent?
 }
 
 // Is the header already sent?
-if (($GLOBALS['header_sent'] != '1') && ($GLOBALS['header_sent'] != '2')) {
+if (($GLOBALS['header_sent'] != 1) && ($GLOBALS['header_sent'] != 2)) {
        // If not in CSS mode generate the header
        if (getOutputMode() != 1) {
                // Config and database connection valid?
        // If not in CSS mode generate the header
        if (getOutputMode() != 1) {
                // Config and database connection valid?
@@ -123,7 +123,7 @@ if (($GLOBALS['header_sent'] != '1') && ($GLOBALS['header_sent'] != '2')) {
        } // END - if
 
        // Closing HEAD tag
        } // END - if
 
        // Closing HEAD tag
-       if (getOutputMode() != '1') outputHtml('</head>');
+       if (getOutputMode() != 1) outputHtml('</head>');
        if ($GLOBALS['header_sent'] == 0) $GLOBALS['header_sent'] = 1;
 } // END - if
 
        if ($GLOBALS['header_sent'] == 0) $GLOBALS['header_sent'] = 1;
 } // END - if
 
index e8304bb0c4fe90a78d24af2d9b2aa3712a77296d..7e66a605bf42ab295a2332950afa6e7249dc9e60 100644 (file)
@@ -88,12 +88,12 @@ if ((!isInstalled()) || (!isAdminRegistered())) {
                        addTemplateToInstallContent('install_welcome');
                        break;
 
                        addTemplateToInstallContent('install_welcome');
                        break;
 
-               case '1': // Server path, base URL
+               case 1: // Server path, base URL
                        // Load template
                        addTemplateToInstallContent('install_page1');
                        break;
 
                        // Load template
                        addTemplateToInstallContent('install_page1');
                        break;
 
-               case '2': // MySQL data (alone!)
+               case 2: // MySQL data (alone!)
                        if (empty($mysql['dbase']))  $mysql['dbase']  = 'your_database';
                        if (empty($mysql['login']))  $mysql['login']  = 'your_login';
                        if (empty($mysql['host']))   $mysql['host']   = 'localhost';
                        if (empty($mysql['dbase']))  $mysql['dbase']  = 'your_database';
                        if (empty($mysql['login']))  $mysql['login']  = 'your_login';
                        if (empty($mysql['host']))   $mysql['host']   = 'localhost';
@@ -121,7 +121,7 @@ if ((!isInstalled()) || (!isAdminRegistered())) {
                        addTemplateToInstallContent('install_page2', $content);
                        break;
 
                        addTemplateToInstallContent('install_page2', $content);
                        break;
 
-               case '3':
+               case 3:
                        // Set more values
                        $content['spath']      = postRequestElement('spath');
                        $content['burl']       = postRequestElement('burl');
                        // Set more values
                        $content['spath']      = postRequestElement('spath');
                        $content['burl']       = postRequestElement('burl');
@@ -162,7 +162,7 @@ if ((!isInstalled()) || (!isAdminRegistered())) {
                        addTemplateToInstallContent('install_page3', $content);
                        break;
 
                        addTemplateToInstallContent('install_page3', $content);
                        break;
 
-               case '5': // Misc settings
+               case 5: // Misc settings
                        // General settings
                        $content['spath']  = postRequestElement('spath');
                        $content['burl']   = postRequestElement('burl');
                        // General settings
                        $content['spath']  = postRequestElement('spath');
                        $content['burl']   = postRequestElement('burl');
index 48f17fdb2719b5b5a7d74b67086d5b2cff0a3c7b..1936842e75f3d78e1fcc06993408753e1092fbc2 100644 (file)
@@ -177,7 +177,7 @@ function loadLanguageFile ($ext_name = 'none') {
        if (isLanguageIncludeReadable($ext_name)) {
                // Load language file
                loadLanguageInclude($ext_name);
        if (isLanguageIncludeReadable($ext_name)) {
                // Load language file
                loadLanguageInclude($ext_name);
-       } elseif ((isDebugModeEnabled()) && (getOutputMode() == '0') && ($ext_name != 'sql_patches') && (substr($ext_name, 0, 10) != 'admintheme')) {
+       } elseif ((isDebugModeEnabled()) && (getOutputMode() == 0) && ($ext_name != 'sql_patches') && (substr($ext_name, 0, 10) != 'admintheme')) {
                // No language file is not so good...
                logDebugMessage(__FUNCTION__, __LINE__, sprintf("NOTICE: Extension %s has no language file or we cannot read from it. lang=%s, mode=%s",
                        $ext_name,
                // No language file is not so good...
                logDebugMessage(__FUNCTION__, __LINE__, sprintf("NOTICE: Extension %s has no language file or we cannot read from it. lang=%s, mode=%s",
                        $ext_name,
index 427353749031c0d932eb0bb9847621432ae1d536..73362ec6db4c53bdca4cf6b32d058b8036268e1e 100644 (file)
@@ -164,7 +164,7 @@ function adminsChangeAdminAccount ($postData) {
                // When both passwords match update admin account
                if ($postData['pass1'][$id] == $postData['pass2'][$id]) {
                        // Save only when both passwords are the same (also when they are empty)
                // When both passwords match update admin account
                if ($postData['pass1'][$id] == $postData['pass2'][$id]) {
                        // Save only when both passwords are the same (also when they are empty)
-                       $add = ''; $cache_update = '1';
+                       $add = ''; $cache_update = 1;
 
                        // Generate hash
                        $hash = generateHash($postData['pass1'][$id]);
 
                        // Generate hash
                        $hash = generateHash($postData['pass1'][$id]);
@@ -441,7 +441,7 @@ function sendAdminsEmails ($subj, $template, $content, $UID) {
                                        $UID
                                ));
                        }
                                        $UID
                                ));
                        }
-               } elseif ($adminId == '0') {
+               } elseif ($adminId == 0) {
                        // Select all email adresses
                        $result = SQL_QUERY("SELECT `email` FROM `{?_MYSQL_PREFIX?}_admins` ORDER BY `id` ASC",
                                __FUNCTION__, __LINE__);
                        // Select all email adresses
                        $result = SQL_QUERY("SELECT `email` FROM `{?_MYSQL_PREFIX?}_admins` ORDER BY `id` ASC",
                                __FUNCTION__, __LINE__);
index 6fc6f55c1761c25be809bae704df53c0ba77aa63..fe4fc5338e9233653ae5897a43def91c956faa55 100644 (file)
@@ -56,7 +56,7 @@ function addPointsBeg ($userid, $points) {
                // Add points to account
                // @TODO Try to rewrite the following unset()
                unset($GLOBALS['ref_level']);
                // Add points to account
                // @TODO Try to rewrite the following unset()
                unset($GLOBALS['ref_level']);
-               addPointsThroughReferalSystem('beg', $userid, $points, false, '0', $locked, strtolower(getConfig('beg_mode')));
+               addPointsThroughReferalSystem('beg', $userid, $points, false, 0, $locked, strtolower(getConfig('beg_mode')));
        }
 
        // Subtract begged points from member account if the admin has selected one
        }
 
        // Subtract begged points from member account if the admin has selected one
index 68543dc05af460b7da3b2c0427de8766f5bc7ba1..4c99ef6a3e51e920c5d6cd653d6701252fd6f78f 100644 (file)
@@ -132,7 +132,7 @@ function addBonusRanks ($data, $type, $userid) {
                // Transfer data to template
                $GLOBALS['ranking_content']['yr_level']  = $GLOBALS['ranking_content']['level'];
                $GLOBALS['ranking_content']['yr_points'] = translateComma($GLOBALS['ranking_content']['points']);
                // Transfer data to template
                $GLOBALS['ranking_content']['yr_level']  = $GLOBALS['ranking_content']['level'];
                $GLOBALS['ranking_content']['yr_points'] = translateComma($GLOBALS['ranking_content']['points']);
-               $GLOBALS['ranking_content']['yr_tmark']  = generateDateTime($GLOBALS['ranking_content']['timemark'], '1');
+               $GLOBALS['ranking_content']['yr_tmark']  = generateDateTime($GLOBALS['ranking_content']['timemark'], 1);
 
                // Load template
                $GLOBALS['ranking_content']['own'] = loadTemplate('show_bonus_yr', true, $GLOBALS['ranking_content']);
 
                // Load template
                $GLOBALS['ranking_content']['own'] = loadTemplate('show_bonus_yr', true, $GLOBALS['ranking_content']);
@@ -225,7 +225,7 @@ function handleBonusPoints ($mode) {
        if (getConfig('bonus_active') != 'Y') return;
 
        // Switch to jackpot-mode when no UID is supplied but userid-mode is selected
        if (getConfig('bonus_active') != 'Y') return;
 
        // Switch to jackpot-mode when no UID is supplied but userid-mode is selected
-       if ((getConfig('bonus_mode') == 'UID') && (getConfig('bonus_userid') == '0') && (isExtensionActive('jackpot'))) {
+       if ((getConfig('bonus_mode') == 'UID') && (getConfig('bonus_userid') == 0) && (isExtensionActive('jackpot'))) {
                // Update database & config
                updateConfiguration('bonus_mode', 'JACKPOT');
        } // END - if
                // Update database & config
                updateConfiguration('bonus_mode', 'JACKPOT');
        } // END - if
index 1efe4bf30cf5c3fc26b4409d391a437735d30e16..6d54679d7fb728dfc14bf38410d41dcdbbeeaf9c 100644 (file)
@@ -43,17 +43,17 @@ if (!defined('__SECURITY')) {
 
 // Generates a HTML table based on given data
 // @TODO Lame description
 
 // Generates a HTML table based on given data
 // @TODO Lame description
-function generateDoublerTable ($userid = '0', $done = 'N', $ref = 'N', $sort = 'ASC') {
+function generateDoublerTable ($userid = 0, $done = 'N', $ref = 'N', $sort = 'ASC') {
        if (empty($cnt)) $cnt = 0;
        $add = ''; $DT_MODE = 0;
        if ($userid > 0) {
                // Load entries only from a single user
                $add = " AND `userid`='".bigintval($userid)."'";
        if (empty($cnt)) $cnt = 0;
        $add = ''; $DT_MODE = 0;
        if ($userid > 0) {
                // Load entries only from a single user
                $add = " AND `userid`='".bigintval($userid)."'";
-               $mode = 'member'; $COLS = '4'; $DT_MODE = '2';
+               $mode = 'member'; $COLS = 4; $DT_MODE = 2;
                $message = getMessage('DOUBLER_MEMBER_NO_ENTRIES_FOUND');
        } else {
                // Guest mode!
                $message = getMessage('DOUBLER_MEMBER_NO_ENTRIES_FOUND');
        } else {
                // Guest mode!
-               $mode = 'guest'; $COLS = '3'; $DT_MODE = '3';
+               $mode = 'guest'; $COLS = 3; $DT_MODE = 3;
                $message = getMessage('DOUBLER_GUEST_NO_ENTRIES_FOUND');
        }
 
                $message = getMessage('DOUBLER_GUEST_NO_ENTRIES_FOUND');
        }
 
index 2ddd8df6870217a9aa2e3eccc0263c663e0c11f5..a14fa0d6e3a012635a13d8b67c3cb0c07aeddea5 100644 (file)
@@ -76,8 +76,8 @@ LIMIT 1",
 
                        // Prepare array
                        $content = array(
 
                        // Prepare array
                        $content = array(
-                               'holiday_end'      => generateDateTime($content['holiday_end']  , '3'),
-                               'holiday_start'    => generateDateTime($content['holiday_start'], '3'),
+                               'holiday_end'      => generateDateTime($content['holiday_end']  , 3),
+                               'holiday_start'    => generateDateTime($content['holiday_start'], 3),
                                'holiday_comments' => $content['comments']
                        );
 
                                'holiday_comments' => $content['comments']
                        );
 
@@ -90,7 +90,7 @@ LIMIT 1",
                } // END - if
 
                // Send mail to admins
                } // END - if
 
                // Send mail to admins
-               sendAdminNotification(getMessage('HOLIDAY_ADMIN_UNLOCK_SUBJ'), 'admin_holiday_unlock', $admin, '0');
+               sendAdminNotification(getMessage('HOLIDAY_ADMIN_UNLOCK_SUBJ'), 'admin_holiday_unlock', $admin, 0);
 
                // Run all SQLs
                runFilterChain('run_sqls');
 
                // Run all SQLs
                runFilterChain('run_sqls');
index a390b61829d3248efbc243abcdaf4365f96f8c87..02adccd8aa6f2a050ddfcb287c1f4b96655b0152 100644 (file)
@@ -59,9 +59,9 @@ function autostartReferalRallyes ($result) {
 
        // Transfer all neccessary data to the $DATA array
        $DATA['userid_cnt'] = countSumTotalData('CONFIRMED','user_data','userid','status',true);
 
        // Transfer all neccessary data to the $DATA array
        $DATA['userid_cnt'] = countSumTotalData('CONFIRMED','user_data','userid','status',true);
-       $DATA['start']      = generateDateTime($start, '2');
-       $DATA['end']        = generateDateTime($end  , '2');
-       $DATA['now_t']      = generateDateTime(time(), '2');
+       $DATA['start']      = generateDateTime($start, 2);
+       $DATA['end']        = generateDateTime($end  , 2);
+       $DATA['now_t']      = generateDateTime(time(), 2);
        $DATA['title']      = $title;
        $DATA['id']         = $id;  // ID for the rallye details link
 
        $DATA['title']      = $title;
        $DATA['id']         = $id;  // ID for the rallye details link
 
@@ -139,7 +139,7 @@ VALUES ('%s','%s','%s','%s')",
        if ($notify == 'Y') $templ = 'admin_rallye_notify';
 
        // Send email to admin
        if ($notify == 'Y') $templ = 'admin_rallye_notify';
 
        // Send email to admin
-       sendAdminNotification(sprintf(getMessage('RALLYE_ADMIN_NOTIFY'), $title), $templ, $prices, '0');
+       sendAdminNotification(sprintf(getMessage('RALLYE_ADMIN_NOTIFY'), $title), $templ, $prices, 0);
 
        // Free memory
        SQL_FREERESULT($result_user);
 
        // Free memory
        SQL_FREERESULT($result_user);
@@ -340,7 +340,7 @@ LIMIT 1", __FUNCTION__, __LINE__);
                if (SQL_NUMROWS($result) == 0) {
                        // Add userid and his ref count to table
                        SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_rallye_users` (`rallye_id`, `userid`, `refs`)
                if (SQL_NUMROWS($result) == 0) {
                        // Add userid and his ref count to table
                        SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_rallye_users` (`rallye_id`, `userid`, `refs`)
-VALUES ('%s','%s','0')",
+VALUES ('%s','%s',0)",
                        array(bigintval($id), bigintval($userid)), __FUNCTION__, __LINE__);
                } // END - if
 
                        array(bigintval($id), bigintval($userid)), __FUNCTION__, __LINE__);
                } // END - if
 
@@ -349,9 +349,9 @@ VALUES ('%s','%s','0')",
 
                if ($notify == 'Y') {
                        // Transfer all neccessary data to the global $DATA array
 
                if ($notify == 'Y') {
                        // Transfer all neccessary data to the global $DATA array
-                       $DATA['start'] = generateDateTime($start, '2');
-                       $DATA['end']   = generateDateTime($end  , '2');
-                       $DATA['now_t'] = generateDateTime(time(), '2');
+                       $DATA['start'] = generateDateTime($start, 2);
+                       $DATA['end']   = generateDateTime($end  , 2);
+                       $DATA['now_t'] = generateDateTime(time(), 2);
                        $DATA['title'] = $title;
                        $DATA['id']    = $id;  // ID for the rallye details link
                        $DATA['ref']   = 0;
                        $DATA['title'] = $title;
                        $DATA['id']    = $id;  // ID for the rallye details link
                        $DATA['ref']   = 0;
@@ -388,9 +388,9 @@ function markReferalRallyesAsExpired ($result) {
        $DATA = array(); $cnt = 0;
        $users = array();
        $DATA['title']  = $title;
        $DATA = array(); $cnt = 0;
        $users = array();
        $DATA['title']  = $title;
-       $DATA['start']  = generateDateTime($start, '1');
-       $DATA['end']    = generateDateTime($end  , '1');
-       $DATA['now_t']  = generateDateTime(time(), '1');
+       $DATA['start']  = generateDateTime($start, 1);
+       $DATA['end']    = generateDateTime($end  , 1);
+       $DATA['now_t']  = generateDateTime(time(), 1);
 
        // Just count...
        $total = 0;
 
        // Just count...
        $total = 0;
@@ -553,7 +553,7 @@ function getArrayFromReferalRallyePrices ($rallye) {
 //
 function getArrayFromReferalRallyeUsers ($rallye) {
        // Fix zero points to 0.00000
 //
 function getArrayFromReferalRallyeUsers ($rallye) {
        // Fix zero points to 0.00000
-       if (getConfig('ref_payout') == '0') setConfigEntry('ref_payout', '0.00000');
+       if (getConfig('ref_payout') == 0) setConfigEntry('ref_payout', '0.00000');
 
        // Init multi array
        $users = array(
 
        // Init multi array
        $users = array(
@@ -649,7 +649,7 @@ function addReferalRallyeWinners ($rallye, $default=0) {
                $active = countSumTotalData($DATA['userid'][$idx], 'user_data', 'userid', 'userid', true, " AND `status`='CONFIRMED'");
 
                if (empty($DATA['userid'][$idx])) $DATA['userid'][$idx] = '---';
                $active = countSumTotalData($DATA['userid'][$idx], 'user_data', 'userid', 'userid', true, " AND `status`='CONFIRMED'");
 
                if (empty($DATA['userid'][$idx])) $DATA['userid'][$idx] = '---';
-               if ((empty($DATA['ref'][$idx])) || ($DATA['ref'][$idx] == 0) || ($active == 0) || ("".round($DATA['cpoints'][$idx])."" == '0') || (empty($DATA['cpoints'][$idx]))) {
+               if ((empty($DATA['ref'][$idx])) || ($DATA['ref'][$idx] == 0) || ($active == 0) || ("".round($DATA['cpoints'][$idx])."" == 0) || (empty($DATA['cpoints'][$idx]))) {
                        // Allow valid and active users with at least one ref to get points
                        $DATA['ref'][$idx]   = '---';
                        $DATA['userid'][$idx]   = '---';
                        // Allow valid and active users with at least one ref to get points
                        $DATA['ref'][$idx]   = '---';
                        $DATA['userid'][$idx]   = '---';
@@ -709,9 +709,9 @@ WHERE end_time <= (UNIX_TIMESTAMP() - {?ONE_DAY?} - %s) AND expired='Y'",
                // Expire found rallyes and notify admin
                while ($content = SQL_FETCHARRAY($result_rallye)) {
                        // Prepare data for mail template
                // Expire found rallyes and notify admin
                while ($content = SQL_FETCHARRAY($result_rallye)) {
                        // Prepare data for mail template
-                       $content['start_time']  = generateDateTime($content['start_time'], '1');
-                       $content['end_time']    = generateDateTime($content['end_time']  , '1');
-                       $content['now_time']    = generateDateTime(time(), '1');
+                       $content['start_time']  = generateDateTime($content['start_time'], 1);
+                       $content['end_time']    = generateDateTime($content['end_time']  , 1);
+                       $content['now_time']    = generateDateTime(time(), 1);
 
                        // Send mail to admin
                        sendAdminNotification(sprintf(getMessage('RALLYE_ADMIN_PURGED_SUBJ'), $content['title']), 'admin_rallye_purged', $content, 0);
 
                        // Send mail to admin
                        sendAdminNotification(sprintf(getMessage('RALLYE_ADMIN_PURGED_SUBJ'), $content['title']), 'admin_rallye_purged', $content, 0);
index ba081bd00fe80d1cd1251977a691b76e3bf38ec8..c42280607d9cb8064074bf6b4aeba616d2916af3 100644 (file)
@@ -183,7 +183,7 @@ unset($phpSelfDirectory);
 unset($phpSelfFile);
 
 // Security system loaded...
 unset($phpSelfFile);
 
 // Security system loaded...
-define('__SECURITY', '1');
+define('__SECURITY', 1);
 
 // [EOF]
 ?>
 
 // [EOF]
 ?>
index 630db06a0f31aaeebab04cca1b0c97c9e0459d8a..d0eb5c850fda45ae917b798c0bb0450b96e7b872 100644 (file)
@@ -142,7 +142,7 @@ function handlSponsorRequest (&$postData, $update=false, $messageArray=array(),
                                // Generate message
                                $message = getMessageFromIndexedArray(getMessage('ADMIN_SPONSOR_UPDATED'), 'updated', $messageArray);
                                $ret = "updated";
                                // Generate message
                                $message = getMessageFromIndexedArray(getMessage('ADMIN_SPONSOR_UPDATED'), 'updated', $messageArray);
                                $ret = "updated";
-                       } elseif (($ALREADY === false) || (($postData['force'] == '1') && (isAdmin()))) {
+                       } elseif (($ALREADY === false) || (($postData['force'] == 1) && (isAdmin()))) {
                                // Add new sponsor, first add more data
                                $DATA['keys'][] = 'sponsor_created'; $DATA['values'][] = time();
                                $DATA['keys'][] = 'status';
                                // Add new sponsor, first add more data
                                $DATA['keys'][] = 'sponsor_created'; $DATA['values'][] = time();
                                $DATA['keys'][] = 'status';
index a46474ab9827c806401f298b20853445081086a6..120cb25103d7fe9b9596cfedf4de117ce0547deb 100644 (file)
@@ -56,7 +56,7 @@ function SURFBAR_ADMIN_ADD_URL ($url, $limit, $reload) {
                // URL invalid
                logDebugMessage(__FUNCTION__, __LINE__, sprintf("Cannot add URL=%s,limit=%s,reload=%s : Invalid URL.", $url, $limit, $reload));
                return false;
                // URL invalid
                logDebugMessage(__FUNCTION__, __LINE__, sprintf("Cannot add URL=%s,limit=%s,reload=%s : Invalid URL.", $url, $limit, $reload));
                return false;
-       } elseif (SURFBAR_LOOKUP_BY_URL($url, '0')) {
+       } elseif (SURFBAR_LOOKUP_BY_URL($url, 0)) {
                // URL already found in surfbar!
                logDebugMessage(__FUNCTION__, __LINE__, sprintf("Cannot add URL=%s,limit=%s,reload=%s : Already added.", $url, $limit, $reload));
                return false;
                // URL already found in surfbar!
                logDebugMessage(__FUNCTION__, __LINE__, sprintf("Cannot add URL=%s,limit=%s,reload=%s : Already added.", $url, $limit, $reload));
                return false;
@@ -75,7 +75,7 @@ function SURFBAR_ADMIN_ADD_URL ($url, $limit, $reload) {
        }
 
        // Register the new URL
        }
 
        // Register the new URL
-       return SURFBAR_REGISTER_URL($url, '0', 'ACTIVE', 'unlock', array('limit' => $limit, 'reload' => $reload));
+       return SURFBAR_REGISTER_URL($url, 0, 'ACTIVE', 'unlock', array('limit' => $limit, 'reload' => $reload));
 }
 
 // Admin unlocked an email so we can migrate the URL
 }
 
 // Admin unlocked an email so we can migrate the URL
@@ -363,11 +363,11 @@ function SURFBAR_MEMBER_RESUBMIT_ACTION ($urlData) {
 // Display selected "action form"
 function SURFBAR_MEMBER_DISPLAY_ACTION_FORM ($action, $urlData) {
        // Translate some data
 // Display selected "action form"
 function SURFBAR_MEMBER_DISPLAY_ACTION_FORM ($action, $urlData) {
        // Translate some data
-       $urlData['registered']    = generateDateTime($urlData['registered'], '2');
+       $urlData['registered']    = generateDateTime($urlData['registered'], 2);
        $urlData['views_total']   = translateComma($urlData['views_total']);
        $urlData['views_max']     = translateComma($urlData['views_max']);
        $urlData['views_allowed'] = translateComma($urlData['views_allowed']);
        $urlData['views_total']   = translateComma($urlData['views_total']);
        $urlData['views_max']     = translateComma($urlData['views_max']);
        $urlData['views_allowed'] = translateComma($urlData['views_allowed']);
-       $urlData['last_locked']   = generateDateTime($urlData['last_locked'], '2');
+       $urlData['last_locked']   = generateDateTime($urlData['last_locked'], 2);
 
        // Is the lock reason empty?
        if (empty($urlData['lock_reason'])) {
 
        // Is the lock reason empty?
        if (empty($urlData['lock_reason'])) {
@@ -477,7 +477,7 @@ function SURFBAR_HANDLE_SELF_MAINTENANCE () {
 // Handle URLs which limit has depleted
 function SURFBAR_HANDLE_DEPLETED_VIEWS () {
        // Get all URLs
 // Handle URLs which limit has depleted
 function SURFBAR_HANDLE_DEPLETED_VIEWS () {
        // Get all URLs
-       $urlArray = SURFBAR_GET_URL_DATA('0', 'views_max', 'id', 'ASC', 'id', " AND views_allowed>0 AND `status`='ACTIVE'");
+       $urlArray = SURFBAR_GET_URL_DATA(0, 'views_max', 'id', 'ASC', 'id', " AND views_allowed>0 AND `status`='ACTIVE'");
 
        // Do we have some entries?
        if (count($urlArray) > 0) {
 
        // Do we have some entries?
        if (count($urlArray) > 0) {
@@ -675,8 +675,8 @@ function SURFBAR_NOTIFY_ADMIN ($messageType, $content) {
 
        // Translate some data if present
        if (isset($content['status']))        $content['status']        = translateSurfbarUrlStatus($content['status']);
 
        // Translate some data if present
        if (isset($content['status']))        $content['status']        = translateSurfbarUrlStatus($content['status']);
-       if (isset($content['registered']))    $content['registered']    = generateDateTime($content['registered'], '2');
-       if (isset($content['last_locked']))   $content['last_locked']   = generateDateTime($content['last_locked'], '2');
+       if (isset($content['registered']))    $content['registered']    = generateDateTime($content['registered'], 2);
+       if (isset($content['last_locked']))   $content['last_locked']   = generateDateTime($content['last_locked'], 2);
        if (isset($content['views_total']))   $content['views_total']   = translateComma($content['views_total']);
        if (isset($content['views_allowed'])) $content['views_allowed'] = translateComma($content['views_allowed']);
        if (isset($content['views_max']))     $content['views_max']     = translateComma($content['views_max']);
        if (isset($content['views_total']))   $content['views_total']   = translateComma($content['views_total']);
        if (isset($content['views_allowed'])) $content['views_allowed'] = translateComma($content['views_allowed']);
        if (isset($content['views_max']))     $content['views_max']     = translateComma($content['views_max']);
@@ -708,8 +708,8 @@ function SURFBAR_NOTIFY_USER ($messageType, $content) {
 
        // Translate some data if present
        if (isset($content['status']))        $content['status']        = translateSurfbarUrlStatus($content['status']);
 
        // Translate some data if present
        if (isset($content['status']))        $content['status']        = translateSurfbarUrlStatus($content['status']);
-       if (isset($content['registered']))    $content['registered']    = generateDateTime($content['registered'], '2');
-       if (isset($content['last_locked']))   $content['last_locked']   = generateDateTime($content['last_locked'], '2');
+       if (isset($content['registered']))    $content['registered']    = generateDateTime($content['registered'], 2);
+       if (isset($content['last_locked']))   $content['last_locked']   = generateDateTime($content['last_locked'], 2);
        if (isset($content['views_total']))   $content['views_total']   = translateComma($content['views_total']);
        if (isset($content['views_allowed'])) $content['views_allowed'] = translateComma($content['views_allowed']);
        if (isset($content['views_max']))     $content['views_max']     = translateComma($content['views_max']);
        if (isset($content['views_total']))   $content['views_total']   = translateComma($content['views_total']);
        if (isset($content['views_allowed'])) $content['views_allowed'] = translateComma($content['views_allowed']);
        if (isset($content['views_max']))     $content['views_max']     = translateComma($content['views_max']);
@@ -1321,7 +1321,7 @@ function SURFBAR_CALCULATE_DYNAMIC_MIN_VALUE () {
        $addon += abs(log($onlineUsers / $totalUsers + 1) * $percent * $totalUsers);
 
        // Get total URLs
        $addon += abs(log($onlineUsers / $totalUsers + 1) * $percent * $totalUsers);
 
        // Get total URLs
-       $totalUrls = SURFBAR_GET_TOTAL_URLS('ACTIVE', '0');
+       $totalUrls = SURFBAR_GET_TOTAL_URLS('ACTIVE', 0);
 
        // Get user's total URLs
        $userUrls = SURFBAR_GET_TOTAL_USER_URLS(0, 'ACTIVE');
 
        // Get user's total URLs
        $userUrls = SURFBAR_GET_TOTAL_USER_URLS(0, 'ACTIVE');
@@ -1355,7 +1355,7 @@ function SURFBAR_CALCULATE_DYNAMIC_MAX_VALUE () {
        $addon += abs($max * $percent * $totalUsers);
 
        // Get total URLs
        $addon += abs($max * $percent * $totalUsers);
 
        // Get total URLs
-       $totalUrls = SURFBAR_GET_TOTAL_URLS('ACTIVE', '0');
+       $totalUrls = SURFBAR_GET_TOTAL_URLS('ACTIVE', 0);
 
        // Calculate addon
        $addon += abs($max * $percent * $totalUrls);
 
        // Calculate addon
        $addon += abs($max * $percent * $totalUrls);
index 5656d7523cd110ff1d7de3dd224c23667d1ab30c..585517a42651acf45dbb42293989ca34a34bd778 100644 (file)
@@ -79,7 +79,7 @@ function outputAdvancedOverview (&$result_main) {
                        'purged_mails','purged_bonus_mails'
                ) as $entry) {
                // Set it to zero
                        'purged_mails','purged_bonus_mails'
                ) as $entry) {
                // Set it to zero
-               $content[$entry] = '0';
+               $content[$entry] = 0;
        } // END - foreach
 
        // Extension updates found
        } // END - foreach
 
        // Extension updates found
@@ -116,7 +116,7 @@ function outputAdvancedOverview (&$result_main) {
        //
        // Unassigned tasks
        //
        //
        // Unassigned tasks
        //
-       $value = countSumTotalData('0', 'task_system', 'id', 'assigned_admin', true, " AND `status` != 'DELETED'");
+       $value = countSumTotalData(0, 'task_system', 'id', 'assigned_admin', true, " AND `status` != 'DELETED'");
 
        if ($value > 0) {
                $content['new_tasks'] = "<a href=\"{?URL?}/modules.php?module=admin&amp;what=list_task&amp;type=unassigned\">".$value."</a>";
 
        if ($value > 0) {
                $content['new_tasks'] = "<a href=\"{?URL?}/modules.php?module=admin&amp;what=list_task&amp;type=unassigned\">".$value."</a>";
index 16e7344649016d6da46c938af0d8511a35ea3090..d343e5269a145606db2412e6c81d9ef3701bc2ac 100644 (file)
@@ -147,7 +147,7 @@ function addPageNavigation ($PAGES, $offset, $show_form, $colspan,$return=false)
 
        $OUT = '';
        for ($page = 1; $page <= $PAGES; $page++) {
 
        $OUT = '';
        for ($page = 1; $page <= $PAGES; $page++) {
-               if (($page == getRequestElement('page')) || ((!isGetRequestElementSet('page')) && ($page == '1'))) {
+               if (($page == getRequestElement('page')) || ((!isGetRequestElementSet('page')) && ($page == 1))) {
                        $OUT .= '<strong>-';
                } else {
                        if (!isGetRequestElementSet('letter')) setRequestGetElement('letter', getMessage('_ALL2'));
                        $OUT .= '<strong>-';
                } else {
                        if (!isGetRequestElementSet('letter')) setRequestGetElement('letter', getMessage('_ALL2'));
@@ -166,7 +166,7 @@ function addPageNavigation ($PAGES, $offset, $show_form, $colspan,$return=false)
 
                $OUT .= $page;
 
 
                $OUT .= $page;
 
-               if (($page == getRequestElement('page')) || ((!isGetRequestElementSet('page')) && ($page == '1'))) {
+               if (($page == getRequestElement('page')) || ((!isGetRequestElementSet('page')) && ($page == 1))) {
                        $OUT .= '-</strong>';
                } else  {
                        $OUT .= '</a>';
                        $OUT .= '-</strong>';
                } else  {
                        $OUT .= '</a>';
index 9ad7371c4b95a72dc9949e89a47cc1ef5b312224..d7c5838e3dfac79fb1cb00495591152ac0ef526b 100644 (file)
@@ -48,7 +48,7 @@ if (!defined('__SECURITY')) {
 if (($GLOBALS['cache_instance']->loadCacheFile('foo')) && ($GLOBALS['cache_instance']->extensionVersionMatches('foo'))) {
        // Load cache
        $GLOBALS['cache_array']['foo'] = $GLOBALS['cache_instance']->getArrayFromCache();
 if (($GLOBALS['cache_instance']->loadCacheFile('foo')) && ($GLOBALS['cache_instance']->extensionVersionMatches('foo'))) {
        // Load cache
        $GLOBALS['cache_array']['foo'] = $GLOBALS['cache_instance']->getArrayFromCache();
-} elseif (getOutputMode() != '1') {
+} elseif (getOutputMode() != 1) {
        // Create cache file
        $GLOBALS['cache_instance']->init();
 
        // Create cache file
        $GLOBALS['cache_instance']->init();
 
index 8a0b92b067be6daa2a6a375f38aff5c8146ed5dc..6cbf5c00180a0b81846b4fa7113fa04bc2d35551 100644 (file)
@@ -82,7 +82,7 @@ if (($GLOBALS['cache_instance']->loadCacheFile('admin')) && ($GLOBALS['cache_ins
                $GLOBALS['cache_instance']->removeCacheFile();
                unset($GLOBALS['cache_array']['admin']);
        }
                $GLOBALS['cache_instance']->removeCacheFile();
                unset($GLOBALS['cache_array']['admin']);
        }
-} elseif (getOutputMode() != '1') {
+} elseif (getOutputMode() != 1) {
        // Create cache file
        $GLOBALS['cache_instance']->init();
 
        // Create cache file
        $GLOBALS['cache_instance']->init();
 
@@ -115,7 +115,7 @@ if (isExtensionInstalledAndNewer('admins', '0.3')) {
        if (($GLOBALS['cache_instance']->loadCacheFile('admin_acls')) && ($GLOBALS['cache_instance']->extensionVersionMatches('admins'))) {
                // Load referal system from cache
                $GLOBALS['cache_array']['admin_acls'] = $GLOBALS['cache_instance']->getArrayFromCache();
        if (($GLOBALS['cache_instance']->loadCacheFile('admin_acls')) && ($GLOBALS['cache_instance']->extensionVersionMatches('admins'))) {
                // Load referal system from cache
                $GLOBALS['cache_array']['admin_acls'] = $GLOBALS['cache_instance']->getArrayFromCache();
-       } elseif (getOutputMode() != '1') {
+       } elseif (getOutputMode() != 1) {
                // Create cache file here
                $GLOBALS['cache_instance']->init();
 
                // Create cache file here
                $GLOBALS['cache_instance']->init();
 
index 2c9e2bf35ee02b1626c411035d436fd7f3db2437..7e036b7f728250e20d2b02c7897c007efd83b181 100644 (file)
@@ -59,7 +59,7 @@ if (($GLOBALS['cache_instance']->loadCacheFile('config')) && ($GLOBALS['cache_in
 
        // Remove dummy array
        unset($config);
 
        // Remove dummy array
        unset($config);
-} elseif (getOutputMode() != '1') {
+} elseif (getOutputMode() != 1) {
        // Create cache file here
        $GLOBALS['cache_instance']->init();
 
        // Create cache file here
        $GLOBALS['cache_instance']->init();
 
index 00c56c5b72c7713e5ed10b094290471c3521d0d3..d93cb6656d03ad73dbb1def101ced9ed45267ff3 100644 (file)
@@ -131,7 +131,7 @@ if (($GLOBALS['cache_instance']->loadCacheFile('extension')) && ($GLOBALS['cache
 
        // Remove array and mark cache as loaded
        unset($EXT_POOL);
 
        // Remove array and mark cache as loaded
        unset($EXT_POOL);
-} elseif (getOutputMode() != '1') {
+} elseif (getOutputMode() != 1) {
        // Create cache file here
        $GLOBALS['cache_instance']->init();
 
        // Create cache file here
        $GLOBALS['cache_instance']->init();
 
index 5d98fc29de9487da559c107fc2200cbee5461d19..a8e12af5dad6a75b206fe28781f59148a3cffa68 100644 (file)
@@ -48,7 +48,7 @@ if (isInstallationPhase()) return;
 if (($GLOBALS['cache_instance']->loadCacheFile('filter')) && ($GLOBALS['cache_instance']->extensionVersionMatches('sql_patches'))) {
        // Load filter from cache
        $GLOBALS['cache_array']['filter'] = $GLOBALS['cache_instance']->getArrayFromCache();
 if (($GLOBALS['cache_instance']->loadCacheFile('filter')) && ($GLOBALS['cache_instance']->extensionVersionMatches('sql_patches'))) {
        // Load filter from cache
        $GLOBALS['cache_array']['filter'] = $GLOBALS['cache_instance']->getArrayFromCache();
-} elseif ((getOutputMode() != '1') && (isExtensionInstalled('sql_patches'))) {
+} elseif ((getOutputMode() != 1) && (isExtensionInstalled('sql_patches'))) {
        // Create cache file here
        $GLOBALS['cache_instance']->init();
 
        // Create cache file here
        $GLOBALS['cache_instance']->init();
 
index 0f54203250d42b6837a0da728e26411117b88017..d05ff1d6fa7b31bb0c05e32baaa2fc5d0dcc860f 100644 (file)
@@ -51,7 +51,7 @@ if (isInstallationPhase()) return;
 if (($GLOBALS['cache_instance']->loadCacheFile('imprint')) && ($GLOBALS['cache_instance']->extensionVersionMatches('imprint'))) {
        // Load cache
        $GLOBALS['cache_array']['imprint'] = $GLOBALS['cache_instance']->getArrayFromCache();
 if (($GLOBALS['cache_instance']->loadCacheFile('imprint')) && ($GLOBALS['cache_instance']->extensionVersionMatches('imprint'))) {
        // Load cache
        $GLOBALS['cache_array']['imprint'] = $GLOBALS['cache_instance']->getArrayFromCache();
-} elseif (getOutputMode() != '1') {
+} elseif (getOutputMode() != 1) {
        // Create cache file
        $GLOBALS['cache_instance']->init();
 
        // Create cache file
        $GLOBALS['cache_instance']->init();
 
index 0c7f12e4afa1ce952c2197a01c1526762041890b..d210b50b72b51f9b496fc4f9ca68607f906b953c 100644 (file)
@@ -70,7 +70,7 @@ if (($GLOBALS['cache_instance']->loadCacheFile('modules')) && ($GLOBALS['cache_i
                } // END - if
        } // END - foreach
        unset($modArray);
                } // END - if
        } // END - foreach
        unset($modArray);
-} elseif (getOutputMode() != '1') {
+} elseif (getOutputMode() != 1) {
        // Create cache file here
        $GLOBALS['cache_instance']->init();
 
        // Create cache file here
        $GLOBALS['cache_instance']->init();
 
index faf3e3c29bf39cf78ff43672ddeb9de32d453f5f..f794f9ab5f961f29b042d52211970273aeb8e928 100644 (file)
@@ -48,7 +48,7 @@ if (isInstallationPhase()) return;
 if (($GLOBALS['cache_instance']->loadCacheFile('refdepths')) && ($GLOBALS['cache_instance']->extensionVersionMatches('sql_patches'))) {
        // Load referal system from cache
        $GLOBALS['cache_array']['refdepths'] = $GLOBALS['cache_instance']->getArrayFromCache();
 if (($GLOBALS['cache_instance']->loadCacheFile('refdepths')) && ($GLOBALS['cache_instance']->extensionVersionMatches('sql_patches'))) {
        // Load referal system from cache
        $GLOBALS['cache_array']['refdepths'] = $GLOBALS['cache_instance']->getArrayFromCache();
-} elseif (getOutputMode() != '1') {
+} elseif (getOutputMode() != 1) {
        // Create cache file here
        $GLOBALS['cache_instance']->init();
 
        // Create cache file here
        $GLOBALS['cache_instance']->init();
 
index 2d01cceee4387b97491f636376713f74967c9082..7cbbc6a7313050c344749410c8729f50b8aec5e3 100644 (file)
@@ -48,7 +48,7 @@ if (isInstallationPhase()) return;
 if (($GLOBALS['cache_instance']->loadCacheFile('refsystem')) && ($GLOBALS['cache_instance']->extensionVersionMatches('sql_patches'))) {
        // Load referal system from cache
        $GLOBALS['cache_array']['refsystem'] = $GLOBALS['cache_instance']->getArrayFromCache();
 if (($GLOBALS['cache_instance']->loadCacheFile('refsystem')) && ($GLOBALS['cache_instance']->extensionVersionMatches('sql_patches'))) {
        // Load referal system from cache
        $GLOBALS['cache_array']['refsystem'] = $GLOBALS['cache_instance']->getArrayFromCache();
-} elseif (getOutputMode() != '1') {
+} elseif (getOutputMode() != 1) {
        // Create cache file here
        $GLOBALS['cache_instance']->init();
 
        // Create cache file here
        $GLOBALS['cache_instance']->init();
 
index 4f175ba60bccac3579cd7ad601643b95abf94e91..08b60a7b1ade75863bbc4870a35358d1ed6e6ff2 100644 (file)
@@ -45,7 +45,7 @@ if (!defined('__SECURITY')) {
 if (($GLOBALS['cache_instance']->loadCacheFile('revision'))) {
        // Load revision from cache
        $GLOBALS['cache_array']['revision'] = $GLOBALS['cache_instance']->getArrayFromCache();
 if (($GLOBALS['cache_instance']->loadCacheFile('revision'))) {
        // Load revision from cache
        $GLOBALS['cache_array']['revision'] = $GLOBALS['cache_instance']->getArrayFromCache();
-} elseif ((getOutputMode() != '1')) {
+} elseif ((getOutputMode() != 1)) {
        // Create cache file here
        $GLOBALS['cache_instance']->init();
 
        // Create cache file here
        $GLOBALS['cache_instance']->init();
 
index dc5e4973b58180856434b58545704d978692eb80..ae2d6bfceb665bea42d094a50f862775983c3547 100644 (file)
@@ -71,7 +71,7 @@ if (($GLOBALS['cache_instance']->loadCacheFile('themes')) && ($GLOBALS['cache_in
 
        // Remove dummy array
        unset($cache);
 
        // Remove dummy array
        unset($cache);
-} elseif (getOutputMode() != '1') {
+} elseif (getOutputMode() != 1) {
        // Create cache file here
        $GLOBALS['cache_instance']->init();
 
        // Create cache file here
        $GLOBALS['cache_instance']->init();
 
index 4b6d8505e06a987ac8a585565a33080eda2f3607..718074fdcc702e65f2c2ba3c7e5b6f1f47be1ee9 100644 (file)
@@ -163,7 +163,7 @@ if (((SQL_NUMROWS($result_total) > 0) && (getConfig('doubler_sent_all') == 'Y'))
                                // Doubled points
                                'points' => translateComma($content['points']),
                                // Timemark
                                // Doubled points
                                'points' => translateComma($content['points']),
                                // Timemark
-                               'when'   => generateDateTime($content['timemark'], '2'),
+                               'when'   => generateDateTime($content['timemark'], 2),
                                // IP number when the member submitted the doubling form
                                'ip'     => $content['remote_ip'],
                        );
                                // IP number when the member submitted the doubling form
                                'ip'     => $content['remote_ip'],
                        );
index 4ee9340b32aba67d244665a28f9d4423c5d8d428..7976506243625b366d4a6e0c9453420b302b421d 100644 (file)
@@ -467,7 +467,7 @@ ORDER BY
 }
 
 // Create member selection box
 }
 
 // Create member selection box
-function addMemberSelectionBox ($def='0', $add_all=false, $return=false, $none=false, $field='userid') {
+function addMemberSelectionBox ($def=0, $add_all=false, $return=false, $none=false, $field='userid') {
        // Output selection form with all confirmed user accounts listed
        $result = SQL_QUERY("SELECT `userid`, `surname`, `family` FROM `{?_MYSQL_PREFIX?}_user_data` ORDER BY `userid` ASC", __FUNCTION__, __LINE__);
 
        // Output selection form with all confirmed user accounts listed
        $result = SQL_QUERY("SELECT `userid`, `surname`, `family` FROM `{?_MYSQL_PREFIX?}_user_data` ORDER BY `userid` ASC", __FUNCTION__, __LINE__);
 
@@ -511,7 +511,7 @@ function adminMenuSelectionBox_DEPRECATED ($mode, $default = '', $defid = '') {
        if (SQL_NUMROWS($result) > 0) {
                // Load menu as selection
                $OUT = "<select name=\"".$mode."_menu";
        if (SQL_NUMROWS($result) > 0) {
                // Load menu as selection
                $OUT = "<select name=\"".$mode."_menu";
-               if ((!empty($defid)) || ($defid == '0')) $OUT .= "[".$defid."]";
+               if ((!empty($defid)) || ($defid == 0)) $OUT .= "[".$defid."]";
                $OUT .= "\" size=\"1\" class=\"admin_select\">
        <option value=\"\">{--SELECT_NONE--}</option>\n";
                // @TODO Try to rewrite this to $content = SQL_FETCHARRAY(). Please look some lines above for the dynamic query
                $OUT .= "\" size=\"1\" class=\"admin_select\">
        <option value=\"\">{--SELECT_NONE--}</option>\n";
                // @TODO Try to rewrite this to $content = SQL_FETCHARRAY(). Please look some lines above for the dynamic query
@@ -594,7 +594,7 @@ function adminSaveSettings (&$postData, $tableName = "_config", $whereStatement
 
        if (SQL_NUMROWS($result) == 1) {
                // "Implode" all data to single string
 
        if (SQL_NUMROWS($result) == 1) {
                // "Implode" all data to single string
-               $DATA_UPDATE = implode(", ", $DATA);
+               $DATA_UPDATE = implode(', ', $DATA);
 
                // Generate SQL string
                $sql = sprintf("UPDATE `{?_MYSQL_PREFIX?}%s` SET %s WHERE %s LIMIT 1",
 
                // Generate SQL string
                $sql = sprintf("UPDATE `{?_MYSQL_PREFIX?}%s` SET %s WHERE %s LIMIT 1",
@@ -612,8 +612,8 @@ function adminSaveSettings (&$postData, $tableName = "_config", $whereStatement
                } // END - foreach
 
                // Add both in one line
                } // END - foreach
 
                // Add both in one line
-               $KEYs = implode(", ", $KEYs);
-               $values = implode(", ", $values);
+               $KEYs = implode(', ', $KEYs);
+               $values = implode(', ', $values);
 
                // Generate SQL string
                $sql = sprintf("INSERT INTO {?_MYSQL_PREFIX?}%s (%s) VALUES (%s)",
 
                // Generate SQL string
                $sql = sprintf("INSERT INTO {?_MYSQL_PREFIX?}%s (%s) VALUES (%s)",
@@ -677,12 +677,12 @@ function adminAddMenuSelectionBox ($menu, $type, $name, $default = '') {
 
 // Creates a user-profile link for the admin. This function can also be used for many other purposes
 function generateUserProfileLink ($userid, $title = '', $what = 'list_user') {
 
 // Creates a user-profile link for the admin. This function can also be used for many other purposes
 function generateUserProfileLink ($userid, $title = '', $what = 'list_user') {
-       if (($title == '') && ($title != '0')) {
+       if (($title == '') && ($title != 0)) {
                // Set userid as title
                $title = $userid;
        } // END - if
 
                // Set userid as title
                $title = $userid;
        } // END - if
 
-       if (($title == '0') && ($what == 'list_refs')) {
+       if (($title == 0) && ($what == 'list_refs')) {
                // Return title again
                return $title;
        } // END - if
                // Return title again
                return $title;
        } // END - if
index eb26099948c75b6619d067187dd2c16e51762418..2a09cb95a0b68f95b4cbe16164ef3137e2f6c0fb 100644 (file)
@@ -150,7 +150,7 @@ LIMIT 1",
                                // Task is valid...
                                list($tid, $userid, $type, $subj, $text, $created, $status, $adminId) = SQL_FETCHROW($result_task);
 
                                // Task is valid...
                                list($tid, $userid, $type, $subj, $text, $created, $status, $adminId) = SQL_FETCHROW($result_task);
 
-                               if ($adminId == '0') {
+                               if ($adminId == 0) {
                                        // Assgin current admin to unassgigned task
                                        SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_task_system` SET `assigned_admin`=%s WHERE `id`=%s LIMIT 1",
                                        array(getCurrentAdminId(), bigintval($tid)), __FILE__, __LINE__);
                                        // Assgin current admin to unassgigned task
                                        SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_task_system` SET `assigned_admin`=%s WHERE `id`=%s LIMIT 1",
                                        array(getCurrentAdminId(), bigintval($tid)), __FILE__, __LINE__);
@@ -264,7 +264,7 @@ LIMIT 1",
                                        'subject'   => $subj,
                                        'add'       => $add,
                                        'text'      => $text,
                                        'subject'   => $subj,
                                        'add'       => $add,
                                        'text'      => $text,
-                                       'created'   => generateDateTime($created, '1'),
+                                       'created'   => generateDateTime($created, 1),
                                        'extension' => $ext_name
                                );
 
                                        'extension' => $ext_name
                                );
 
@@ -280,7 +280,7 @@ LIMIT 1",
                                                        array($ext_name), __FILE__, __LINE__);
                                                $lines = SQL_NUMROWS($result_lines);
                                                SQL_FREERESULT($result_lines);
                                                        array($ext_name), __FILE__, __LINE__);
                                                $lines = SQL_NUMROWS($result_lines);
                                                SQL_FREERESULT($result_lines);
-                                               if ($lines == '0') {
+                                               if ($lines == 0) {
                                                        // New extension found
                                                        $OUT .= loadTemplate('admin_ext_reg_form', true, array(
                                                                'id'       => bigintval($id),
                                                        // New extension found
                                                        $OUT .= loadTemplate('admin_ext_reg_form', true, array(
                                                                'id'       => bigintval($id),
@@ -397,7 +397,7 @@ LIMIT 1",
                // Load final template
                loadTemplate('admin_overview_list', false, $OUT);
        } else {
                // Load final template
                loadTemplate('admin_overview_list', false, $OUT);
        } else {
-               if ((isset($postData['task'])) && ((count($postData['task']) > 0) || ($postData['task'][0] == '1'))) {
+               if ((isset($postData['task'])) && ((count($postData['task']) > 0) || ($postData['task'][0] == 1))) {
                        // Only unassign / delete tasks when there are selected tasks posted
                        if (!empty($postData['unassign'])) {
                                // Unassign from tasks
                        // Only unassign / delete tasks when there are selected tasks posted
                        if (!empty($postData['unassign'])) {
                                // Unassign from tasks
@@ -455,7 +455,7 @@ LIMIT 1",
                                'assigned_admin' => $content['assigned_admin'],
                                'userid'         => $content['userid'],
                                'task_type_msg'  => $content['task_type_msg'],
                                'assigned_admin' => $content['assigned_admin'],
                                'userid'         => $content['userid'],
                                'task_type_msg'  => $content['task_type_msg'],
-                               'created'        => generateDateTime($content['task_created'], '2')
+                               'created'        => generateDateTime($content['task_created'], 2)
                        ));
 
                        // Do we have extension task?
                        ));
 
                        // Do we have extension task?
index 73534797b87b57581ed03b1d080ab28d68982c19..91a1c62d7ee6af47829e73202b0c6143824833e0 100644 (file)
@@ -122,7 +122,7 @@ if (getRequestElement('userid') == 'all') {
        SQL_FREERESULT($result);
 } else {
        // Output selection form with all confirmed user accounts listed
        SQL_FREERESULT($result);
 } else {
        // Output selection form with all confirmed user accounts listed
-       addMemberSelectionBox('0', true);
+       addMemberSelectionBox(0, true);
 }
 
 // [EOF]
 }
 
 // [EOF]
index ef37b453416af05bdf8775c53166fea2ce58afc7..2b5e387577021df0669a553fd5faa04b0b1059f8 100644 (file)
@@ -97,8 +97,8 @@ $content['active_options']   = generateOptionList('/ARRAY/', array('N','Y'), arr
 $content['notify_options']   = generateOptionList('/ARRAY/', array('Y','N'), array(getMessage('YES'), getMessage('NO') ));
 
 // Starting day
 $content['notify_options']   = generateOptionList('/ARRAY/', array('Y','N'), array(getMessage('YES'), getMessage('NO') ));
 
 // Starting day
-$content['start_sec']   = addSelectionBox('sec'  , '0'              , 'start');
-$content['start_min']   = addSelectionBox('min'  , '0'              , 'start');
+$content['start_sec']   = addSelectionBox('sec'  , 0              , 'start');
+$content['start_min']   = addSelectionBox('min'  , 0              , 'start');
 $content['start_hour']  = addSelectionBox('hour' , date('G', time()), 'start');
 $content['start_day']   = addSelectionBox('day'  , date('d', time()), 'start');
 $content['start_month'] = addSelectionBox('month', date('m', time()), 'start');
 $content['start_hour']  = addSelectionBox('hour' , date('G', time()), 'start');
 $content['start_day']   = addSelectionBox('day'  , date('d', time()), 'start');
 $content['start_month'] = addSelectionBox('month', date('m', time()), 'start');
@@ -110,8 +110,8 @@ $M = date('m', time() + (getConfig('ONE_DAY') * 7));
 $Y = date('Y', time() + (getConfig('ONE_DAY') * 7));
 
 // Ending day
 $Y = date('Y', time() + (getConfig('ONE_DAY') * 7));
 
 // Ending day
-$content['end_sec']   = addSelectionBox('sec'  , '0'              , 'end');
-$content['end_min']   = addSelectionBox('min'  , '0'              , 'end');
+$content['end_sec']   = addSelectionBox('sec'  , 0              , 'end');
+$content['end_min']   = addSelectionBox('min'  , 0              , 'end');
 $content['end_hour']  = addSelectionBox('hour' , date('G', time()), 'end');
 $content['end_day']   = addSelectionBox('day'  , $D               , 'end');
 $content['end_month'] = addSelectionBox('month', $M               , 'end');
 $content['end_hour']  = addSelectionBox('hour' , date('G', time()), 'end');
 $content['end_day']   = addSelectionBox('day'  , $D               , 'end');
 $content['end_month'] = addSelectionBox('month', $M               , 'end');
index 364687e24ae5054a750f0e2013c5bd80072eb47a..dd56097715e5ea802f28c77eb0376724ce61eccf 100644 (file)
@@ -48,14 +48,14 @@ if ((isFormSent()) && (isGetRequestElementSet('admin'))) {
        // Send mail or message
        if ((isExtensionActive('msg')) && (postRequestElement('type') == 'message')) {
                // Add message
        // Send mail or message
        if ((isExtensionActive('msg')) && (postRequestElement('type') == 'message')) {
                // Add message
-               $message = loadEmailTemplate('admins_msg_contct_admin', postRequestElement('text'), '0');
+               $message = loadEmailTemplate('admins_msg_contct_admin', postRequestElement('text'), 0);
                SEND_ADMIN_MESSAGE(getRequestElement('admin'), ADMINS_MSG_FROM_ADMIN, $message);
        } else {
                // Load admin's email address
                $email = getAdminEmail(bigintval(getRequestElement('admin')));
 
                // Load email template and send the mail to the admin
                SEND_ADMIN_MESSAGE(getRequestElement('admin'), ADMINS_MSG_FROM_ADMIN, $message);
        } else {
                // Load admin's email address
                $email = getAdminEmail(bigintval(getRequestElement('admin')));
 
                // Load email template and send the mail to the admin
-               $message = loadEmailTemplate('admins_mail_contct_admin', postRequestElement('text'), '0');
+               $message = loadEmailTemplate('admins_mail_contct_admin', postRequestElement('text'), 0);
                sendEmail($email, getMessage('ADMINS_MSG_FROM_ADMIN'), $message);
        }
 
                sendEmail($email, getMessage('ADMINS_MSG_FROM_ADMIN'), $message);
        }
 
index b6a8932bad8cb3c52d2b694721a993de8f0528b0..8da2ac029298eafe51c457a65eb16212b32d2539 100644 (file)
@@ -53,8 +53,8 @@ if (isGetRequestElementSet('admin')) {
        $adminId = bigintval(getRequestElement('admin'));
 
        // Set required fields
        $adminId = bigintval(getRequestElement('admin'));
 
        // Set required fields
-       setRequestPostElement('edit', '1');
-       setRequestPostElement('sel', array($adminId => '1'));
+       setRequestPostElement('edit', 1);
+       setRequestPostElement('sel', array($adminId => 1));
 } // END - if
 
 if ((isPostRequestElementSet('edit')) && (countPostSelection() > 0)) {
 } // END - if
 
 if ((isPostRequestElementSet('edit')) && (countPostSelection() > 0)) {
index 16e4a6a3950e0777b4432b4825de5d5399a3f9d7..9711dd6a7b297ac43f386ea9fa2e8a49c17a6f02 100644 (file)
@@ -60,7 +60,7 @@ if (isPostRequestElementSet('edit')) {
                                // @TODO Can this be rewritten???
                                $OUT .= "<select name=\"admin_id[".$content['id']."]\" size=\"1\" class=\"admin_select\">
 <option value=\"0\"";
                                // @TODO Can this be rewritten???
                                $OUT .= "<select name=\"admin_id[".$content['id']."]\" size=\"1\" class=\"admin_select\">
 <option value=\"0\"";
-                               if ($content['admin_id'] == '0') $OUT .= ' selected="selected"';
+                               if ($content['admin_id'] == 0) $OUT .= ' selected="selected"';
                                $OUT .=">{--ADMINS_ALL_ADMINS--}</option>\n";
                                if (isExtensionActive('events')) {
                                        $OUT .= "<option value=\"-1\"";
                                $OUT .=">{--ADMINS_ALL_ADMINS--}</option>\n";
                                if (isExtensionActive('events')) {
                                        $OUT .= "<option value=\"-1\"";
index 849e8792d9355479816b2061c46ad9fa9e12ef80..794f1a6e708001d73d743a74d152fcb3effcce14 100644 (file)
@@ -75,7 +75,7 @@ if (isFormSent()) {
        // Start of this exchange
        if (getConfig('mt_start') > 0) {
                // Only show start
        // Start of this exchange
        if (getConfig('mt_start') > 0) {
                // Only show start
-               $content['mt_start'] = '<strong>' . generateDateTime(getConfig('mt_start'), '3') . '</strong>';
+               $content['mt_start'] = '<strong>' . generateDateTime(getConfig('mt_start'), 3) . '</strong>';
        } else {
                // Make start editable
                $content['mt_start'] =
        } else {
                // Make start editable
                $content['mt_start'] =
index 6f43d830f979943193c9ae299423334bcaed7010..1e2fd625b6b89c16c93032dbfb8e8b561db772c3 100644 (file)
@@ -260,8 +260,8 @@ ORDER BY
                                'admin_id'        => $content['admin_id'],
                                'email_link' => generateEmailLink($content['admin_id']),
                                'alogin'     => $content['login'],
                                'admin_id'        => $content['admin_id'],
                                'email_link' => generateEmailLink($content['admin_id']),
                                'alogin'     => $content['login'],
-                               'start'      => generateDateTime($content['start_time'], '3'),
-                               'end'        => generateDateTime($content['end_time'], '3'),
+                               'start'      => generateDateTime($content['start_time'], 3),
+                               'end'        => generateDateTime($content['end_time'], 3),
                        );
 
                        // Load row template and switch color
                        );
 
                        // Load row template and switch color
index 47623c479ef9f5158ec28df3ccabcc89edaa7fa1..d7156d0fc8f62da26093949cfa564b573a10a1cd 100644 (file)
@@ -46,7 +46,7 @@ addMenuDescription('admin', __FILE__);
 
 if (isFormSent()) {
        // If salt length is empty or null then we shall generate new passwords
 
 if (isFormSent()) {
        // If salt length is empty or null then we shall generate new passwords
-       if (!isPostRequestElementSet(('salt_length')) || (postRequestElement('salt_length') == '0')) {
+       if (!isPostRequestElementSet(('salt_length')) || (postRequestElement('salt_length') == 0)) {
                // Generate new passwords for all!
                loadInclude('inc/gen_sql_patches.php');
 
                // Generate new passwords for all!
                loadInclude('inc/gen_sql_patches.php');
 
index 42bb935ebc86ca25a0fe9b3ce21273d78876908d..b09c9bbcfee3fdb57dc82191b7a035d097fd6477 100644 (file)
@@ -65,7 +65,7 @@ if (isGetRequestElementSet('mid')) {
                $content['subject']   = $subject;
                $content['url']       = generateDerefererUrl($url);
                $content['url_raw']   = $url;
                $content['subject']   = $subject;
                $content['url']       = generateDerefererUrl($url);
                $content['url_raw']   = $url;
-               $content['timestamp'] = generateDateTime($timestamp, '0');
+               $content['timestamp'] = generateDateTime($timestamp, 0);
 
                // Load template
                loadTemplate('admin_del_email_normal', false, $content);
 
                // Load template
                loadTemplate('admin_del_email_normal', false, $content);
@@ -112,7 +112,7 @@ LIMIT 1",
 
                                        // Pay back points
                                        //* DEBUG: */ outputHtml("PAYBACK:".$sender."<br />");
 
                                        // Pay back points
                                        //* DEBUG: */ outputHtml("PAYBACK:".$sender."<br />");
-                                       addPointsThroughReferalSystem('mail_deleted', $sender, $totalPoints, true, '0', false,'direct');
+                                       addPointsThroughReferalSystem('mail_deleted', $sender, $totalPoints, true, 0, false,'direct');
 
                                        // Output message
                                        if (getConfig('repay_deleted_mails') == 'REPAY') {
 
                                        // Output message
                                        if (getConfig('repay_deleted_mails') == 'REPAY') {
@@ -193,7 +193,7 @@ LIMIT 1",
                $content['id']        = $id;
                $content['subject']   = $subject;
                $content['url']       = generateDerefererUrl($url);
                $content['id']        = $id;
                $content['subject']   = $subject;
                $content['url']       = generateDerefererUrl($url);
-               $content['timestamp'] = generateDateTime($timestamp, '0');
+               $content['timestamp'] = generateDateTime($timestamp, 0);
                $content['cnt']       = $cnt;
 
                // Load template
                $content['cnt']       = $cnt;
 
                // Load template
@@ -230,7 +230,7 @@ LIMIT 1",
                $content['id']        = $id;
                $content['subject']   = $subject;
                $content['url']       = generateDerefererUrl($url);
                $content['id']        = $id;
                $content['subject']   = $subject;
                $content['url']       = generateDerefererUrl($url);
-               $content['timestamp'] = generateDateTime($timestamp, '0');
+               $content['timestamp'] = generateDateTime($timestamp, 0);
                $content['cnt']       = $cnt;
 
                // Load template
                $content['cnt']       = $cnt;
 
                // Load template
index 7435c85ec3c830e3cd59a2a15c618eba1b209364..ab27f4813bcb71b7da77a10dc4d63d2b961999e4 100644 (file)
@@ -64,7 +64,7 @@ WHERE `id`=%s LIMIT 1", array(bigintval($id)), __FILE__, __LINE__);
 
                        // Update user's account
                        SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_data`
 
                        // Update user's account
                        SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_data`
-SET `holiday_active`='N', holiday_activated='0'
+SET `holiday_active`='N', holiday_activated=0
 WHERE `userid`=%s LIMIT 1", array(bigintval($userid)), __FILE__, __LINE__);
 
                        // Remove holiday
 WHERE `userid`=%s LIMIT 1", array(bigintval($userid)), __FILE__, __LINE__);
 
                        // Remove holiday
@@ -73,8 +73,8 @@ WHERE `id`=%s LIMIT 1", array(bigintval($id)), __FILE__, __LINE__);
 
                        // Prepare loaded data for the
                        $content = array(
 
                        // Prepare loaded data for the
                        $content = array(
-                               'start' => generateDateTime($start, '3'),
-                               'end'   => generateDateTime($end  , '3')
+                               'start' => generateDateTime($start, 3),
+                               'end'   => generateDateTime($end  , 3)
                        );
 
                        // Send email to user
                        );
 
                        // Send email to user
index cf796793212c49c90d5c8c0b7ad6356ed91481a4..33279661be13860b8bfee0388e821339adb5b6da 100644 (file)
@@ -75,7 +75,7 @@ if (SQL_NUMROWS($result) > 0) {
                $content = array(
                        'sw'          => $SW,
                        'trans_id'    => $content['trans_id'],
                $content = array(
                        'sw'          => $SW,
                        'trans_id'    => $content['trans_id'],
-                       'stamp'       => generateDateTime($content['time_trans'], '3'),
+                       'stamp'       => generateDateTime($content['time_trans'], 3),
                        'userid_from' => generateUserProfileLink($content['userid']),
                        'userid_to'   => generateUserProfileLink($content['to_userid']),
                        'reason'      => $content['reason'],
                        'userid_from' => generateUserProfileLink($content['userid']),
                        'userid_to'   => generateUserProfileLink($content['to_userid']),
                        'reason'      => $content['reason'],
index 8456d5e1ef705478e77e808d7887b2c2265e9127..8ce52b112bc4ff7d705310a366207fb24ec00d23 100644 (file)
@@ -61,7 +61,7 @@ ORDER BY
 $result_maximum = SQL_QUERY($sql, __FILE__, __LINE__);
 
 // Set offset an current page to default values
 $result_maximum = SQL_QUERY($sql, __FILE__, __LINE__);
 
 // Set offset an current page to default values
-if (!isGetRequestElementSet('page'))   setRequestGetElement('page'  , '1');
+if (!isGetRequestElementSet('page'))   setRequestGetElement('page'  , 1);
 if (!isGetRequestElementSet('offset')) setRequestGetElement('offset', getConfig('mails_page'));
 
 // Add limitation to SQL string
 if (!isGetRequestElementSet('offset')) setRequestGetElement('offset', getConfig('mails_page'));
 
 // Add limitation to SQL string
@@ -83,8 +83,8 @@ if (SQL_NUMROWS($result) > 0) {
        $content['top_email_nav']    = '';
        $content['bottom_email_nav'] = '';
        if ($pages > 1) {
        $content['top_email_nav']    = '';
        $content['bottom_email_nav'] = '';
        if ($pages > 1) {
-               $content['top_email_nav']    = addEmailNavigation($pages, getConfig('mails_page'), true , '3', true);
-               $content['bottom_email_nav'] = addEmailNavigation($pages, getConfig('mails_page'), false, '3', true);
+               $content['top_email_nav']    = addEmailNavigation($pages, getConfig('mails_page'), true , 3, true);
+               $content['bottom_email_nav'] = addEmailNavigation($pages, getConfig('mails_page'), false, 3, true);
        } // END - if
 
        $OUT = ''; $SW = 2;
        } // END - if
 
        $OUT = ''; $SW = 2;
@@ -112,13 +112,13 @@ if (SQL_NUMROWS($result) > 0) {
                        'pay'         => getPaymentTitlePrice($pool[5]),
                        'cat'         => getCategory($pool[10]),
                        'sent'        => $sent,
                        'pay'         => getPaymentTitlePrice($pool[5]),
                        'cat'         => getCategory($pool[10]),
                        'sent'        => $sent,
-                       'ruserids'    => str_replace(';', ", ", $pool[4]),
+                       'ruserids'    => convertReceivers($pool[4]),
                        'unconfirmed' => $unconfirmed,
                        'type'        => translatePoolType($pool[6]),
                        'target_send' => $pool[9],
                        'frametester' => generateFrametesterUrl($pool[8]),
                        'url'         => $pool[8],
                        'unconfirmed' => $unconfirmed,
                        'type'        => translatePoolType($pool[6]),
                        'target_send' => $pool[9],
                        'frametester' => generateFrametesterUrl($pool[8]),
                        'url'         => $pool[8],
-                       'stamp'       => generateDateTime($pool[7], '0'),
+                       'stamp'       => generateDateTime($pool[7], 0),
                        'mid'         => $pool[0],
                );
 
                        'mid'         => $pool[0],
                );
 
index dada51d2cb9a6c7df79a35286a06f64bdf213be2..1edcfd6c277d378dc67bed90361f94e43a04cfbe 100644 (file)
@@ -98,7 +98,7 @@ ORDER BY timestamp DESC";
 $result_normal = SQL_QUERY($sql, __FILE__, __LINE__);
 
 // Set offset an current page to default values
 $result_normal = SQL_QUERY($sql, __FILE__, __LINE__);
 
 // Set offset an current page to default values
-if (!isGetRequestElementSet('page')) setRequestGetElement('page', '1');
+if (!isGetRequestElementSet('page')) setRequestGetElement('page', 1);
 
 if (!isGetRequestElementSet('offset')) {
        if (isConfigEntrySet('mails_page')) {
 
 if (!isGetRequestElementSet('offset')) {
        if (isConfigEntrySet('mails_page')) {
@@ -163,10 +163,10 @@ if (SQL_NUMROWS($result_list) > 0) {
                $content['sender_link'] = generateUserProfileLink($pool['sender']);
                $content['payment']     = getPaymentTitlePrice($pool['payment_id']);
                $content['category']    = getCategory($pool['cat_id']);
                $content['sender_link'] = generateUserProfileLink($pool['sender']);
                $content['payment']     = getPaymentTitlePrice($pool['payment_id']);
                $content['category']    = getCategory($pool['cat_id']);
-               $content['receivers']   = str_replace(';', ", ", $pool['receivers']);
+               $content['receivers']   = convertReceivers($pool['receivers']);
                $content['type']        = translatePoolType($pool['data_type']);
                $content['frametester'] = generateFrametesterUrl($pool['url']);
                $content['type']        = translatePoolType($pool['data_type']);
                $content['frametester'] = generateFrametesterUrl($pool['url']);
-               $content['timestamp']   = generateDateTime($pool['timestamp'], '0');
+               $content['timestamp']   = generateDateTime($pool['timestamp'], 0);
 
                // Load row template
                $OUT .= loadTemplate('admin_list_emails_row', true, $content);
 
                // Load row template
                $OUT .= loadTemplate('admin_list_emails_row', true, $content);
@@ -177,7 +177,7 @@ if (SQL_NUMROWS($result_list) > 0) {
 
        // Add navigation (with change box and colspan=3)
        $content['nav'] = '';
 
        // Add navigation (with change box and colspan=3)
        $content['nav'] = '';
-       if ($PAGES > 1) $content['nav'] = addEmailNavigation($PAGES, getConfig('mails_page'), false, '3', true);
+       if ($PAGES > 1) $content['nav'] = addEmailNavigation($PAGES, getConfig('mails_page'), false, 3, true);
 
        // Prepare content
        $content['rows'] = $OUT;
 
        // Prepare content
        $content['rows'] = $OUT;
@@ -215,10 +215,10 @@ if ((isExtensionActive('bonus')) && ($WHO == getMessage('_ALL'))) {
                        $content = $bonus;
                        $content['time']        = createFancyTime($content['time']);
                        $content['category']    = getCategory($content['cat_id']);
                        $content = $bonus;
                        $content['time']        = createFancyTime($content['time']);
                        $content['category']    = getCategory($content['cat_id']);
-                       $content['receivers']   = str_replace(';', ", ", $content['receivers']);
+                       $content['receivers']   = convertReceivers($content['receivers']);
                        $content['type']        = translatePoolType($content['data_type']);
                        $content['frametester'] = generateFrametesterUrl($content['url']);
                        $content['type']        = translatePoolType($content['data_type']);
                        $content['frametester'] = generateFrametesterUrl($content['url']);
-                       $content['timestamp']   = generateDateTime($content['timestamp'], '0');
+                       $content['timestamp']   = generateDateTime($content['timestamp'], 0);
 
                        // Load row template
                        $OUT .= loadTemplate('admin_list_bonus_emails_row', true, $content);
 
                        // Load row template
                        $OUT .= loadTemplate('admin_list_bonus_emails_row', true, $content);
@@ -226,7 +226,7 @@ if ((isExtensionActive('bonus')) && ($WHO == getMessage('_ALL'))) {
 
                // Add navigation (without change box but with colspan=3)
                $content['nav'] = '';
 
                // Add navigation (without change box but with colspan=3)
                $content['nav'] = '';
-               if ($PAGES > 1) $content['nav'] = addEmailNavigation($PAGES, getConfig('mails_page'), false, '3', true);
+               if ($PAGES > 1) $content['nav'] = addEmailNavigation($PAGES, getConfig('mails_page'), false, 3, true);
 
                // Prepare content
                $content['rows'] = $OUT;
 
                // Prepare content
                $content['rows'] = $OUT;
index 2f0b03a87049db40d1980f37a2aecb08701f02af..407bd62158ae06eaf55da06192032d27427b2007 100644 (file)
@@ -370,7 +370,7 @@ ORDER BY `ext_name` ASC", __FILE__, __LINE__);
                                // Extension was not found in task management
                                loadTemplate('admin_settings_saved', false, getMessage('ADMIN_REG_FAILED_ID_404'));
                        }
                                // Extension was not found in task management
                                loadTemplate('admin_settings_saved', false, getMessage('ADMIN_REG_FAILED_ID_404'));
                        }
-               } elseif ($task_found == '0') {
+               } elseif ($task_found == 0) {
                        // No longer assigned or old task
                        loadTemplate('admin_settings_saved', false, getMessage('ADMIN_REG_FAILED_ASSIGED'));
                } else {
                        // No longer assigned or old task
                        loadTemplate('admin_settings_saved', false, getMessage('ADMIN_REG_FAILED_ASSIGED'));
                } else {
index 3d9cc2f7725155ec7e2ec4d44d1d8940c8ffe501..09cde0c7f56fc398f58ba6d9316d0472ba0f1705 100644 (file)
@@ -89,9 +89,9 @@ if (SQL_NUMROWS($result) > 0) {
                        'surname'     => $content['surname'],
                        'family'      => $content['family'],
                        'email'       => "<a href=\"".generateEmailLink($content['email'], 'user_data')."\">".$content['email']."</a>",
                        'surname'     => $content['surname'],
                        'family'      => $content['family'],
                        'email'       => "<a href=\"".generateEmailLink($content['email'], 'user_data')."\">".$content['email']."</a>",
-                       'joined'      => generateDateTime($content['joined'], '2'),
-                       'last_online' => generateDateTime($content['last_online'], '2'),
-                       'notified'    => generateDateTime($content['ap_notified'], '2'),
+                       'joined'      => generateDateTime($content['joined'], 2),
+                       'last_online' => generateDateTime($content['last_online'], 2),
+                       'notified'    => generateDateTime($content['ap_notified'], 2),
                );
 
                // Load row template
                );
 
                // Load row template
index fa28e4411d601cd7d321e3a33d49b90082849db3..f665ea2209063ff8f8077d26f2d0b82c92f1118b 100644 (file)
@@ -49,7 +49,7 @@ if (getConfig('beg_rallye') == 'Y') {
        if (isPostRequestElementSet(('withdraw'))) {
                // Okay, let's prepare...
                $curr = date('m', time()) - 1;
        if (isPostRequestElementSet(('withdraw'))) {
                // Okay, let's prepare...
                $curr = date('m', time()) - 1;
-               if (strlen($curr) == 1) $curr = '0'.$curr;
+               if (strlen($curr) == 1) $curr = 0 . $curr;
                updateConfiguration('last_month', $curr);
                loadTemplate('admin_settings_saved', false, getMessage('ADMIN_BEG_WITHDRAW_PREPARED'));
        } // END - if
                updateConfiguration('last_month', $curr);
                loadTemplate('admin_settings_saved', false, getMessage('ADMIN_BEG_WITHDRAW_PREPARED'));
        } // END - if
@@ -91,7 +91,7 @@ ORDER BY beg_points DESC, last_online DESC, userid",
                                'surname'  => $content['surname'],
                                'family'  => $content['family'],
                                'turbo'  => translateComma($content['beg_points']),
                                'surname'  => $content['surname'],
                                'family'  => $content['family'],
                                'turbo'  => translateComma($content['beg_points']),
-                               'last_online'   => generateDateTime($content['last_online'], '2'),
+                               'last_online'   => generateDateTime($content['last_online'], 2),
                                'sw'     => $SW,
                                'win1'   => $WIN1,
                                'win2'   => $WIN2,
                                'sw'     => $SW,
                                'win1'   => $WIN1,
                                'win2'   => $WIN2,
@@ -117,7 +117,7 @@ ORDER BY beg_points DESC, last_online DESC, userid",
 
                // Prepare constant for timemark
                if (isExtensionActive('autopurge')) {
 
                // Prepare constant for timemark
                if (isExtensionActive('autopurge')) {
-                       $content['autopurge_timeout'] = generateDateTime(time() - getConfig('ap_inactive_since'), '2');
+                       $content['autopurge_timeout'] = generateDateTime(time() - getConfig('ap_inactive_since'), 2);
                } else {
                        $content['autopurge_timeout'] = loadTemplate('admin_settings_saved', true, sprintf(getMessage('EXTENSION_PROBLEM_NOT_INSTALLED'), 'autopurge'));
                }
                } else {
                        $content['autopurge_timeout'] = loadTemplate('admin_settings_saved', true, sprintf(getMessage('EXTENSION_PROBLEM_NOT_INSTALLED'), 'autopurge'));
                }
index 9e3167b567516feff326271b66ed095b0a9b8a9c..030dc4f70485f33a8dcb0ae21a5256719f597ebe 100644 (file)
@@ -49,7 +49,7 @@ if (getConfig('bonus_active') == 'Y') {
        if (isPostRequestElementSet(('withdraw'))) {
                // Okay, let's prepare...
                $curr = date('m', time()) - 1;
        if (isPostRequestElementSet(('withdraw'))) {
                // Okay, let's prepare...
                $curr = date('m', time()) - 1;
-               if (strlen($curr) == 1) $curr = '0'.$curr;
+               if (strlen($curr) == 1) $curr = 0 . $curr;
                updateConfiguration('last_month', $curr);
                loadTemplate('admin_settings_saved', false, getMessage('ADMIN_BONUS_WITHDRAW_PREPARED'));
        } // END - if
                updateConfiguration('last_month', $curr);
                loadTemplate('admin_settings_saved', false, getMessage('ADMIN_BONUS_WITHDRAW_PREPARED'));
        } // END - if
@@ -103,7 +103,7 @@ ORDER BY `points` DESC, `last_online` DESC, `userid` ASC",
                        $content['email']  = generateEmailLink($content['email'], 'user_data');
                        $content['gender'] = translateGender($content['gender']);
                        $content['points'] = translateComma($content['points']);
                        $content['email']  = generateEmailLink($content['email'], 'user_data');
                        $content['gender'] = translateGender($content['gender']);
                        $content['points'] = translateComma($content['points']);
-                       $content['last_online']   = generateDateTime($content['last_online'], '2');
+                       $content['last_online']   = generateDateTime($content['last_online'], 2);
                        $content['sw']     = $SW;
                        $content['win1']   = $WIN1;
                        $content['win2']   = $WIN2;
                        $content['sw']     = $SW;
                        $content['win1']   = $WIN1;
                        $content['win2']   = $WIN2;
@@ -128,7 +128,7 @@ ORDER BY `points` DESC, `last_online` DESC, `userid` ASC",
 
                // Prepare constant for timemark
                if (isExtensionActive('autopurge')) {
 
                // Prepare constant for timemark
                if (isExtensionActive('autopurge')) {
-                       $content['autopurge_timeout'] = generateDateTime(time() - getConfig('ap_inactive_since'), '2');
+                       $content['autopurge_timeout'] = generateDateTime(time() - getConfig('ap_inactive_since'), 2);
                } else {
                        $content['autopurge_timeout'] = loadTemplate('admin_settings_saved', true, sprintf(getMessage('EXTENSION_PROBLEM_NOT_INSTALLED'), 'autopurge'));
                }
                } else {
                        $content['autopurge_timeout'] = loadTemplate('admin_settings_saved', true, sprintf(getMessage('EXTENSION_PROBLEM_NOT_INSTALLED'), 'autopurge'));
                }
index 7d131196404f9cd3a836ff8ee0c7f7224889939f..a6c531fb7c799aa0f4abec03a1ee07bc564b3d27 100644 (file)
@@ -63,7 +63,7 @@ switch (getRequestElement('mode')) {
        case 'overview': // General overview page
                // Prepare links
                foreach (array('already_direct','already_ref','waiting_direct','waiting_ref') as $entry) {
        case 'overview': // General overview page
                // Prepare links
                foreach (array('already_direct','already_ref','waiting_direct','waiting_ref') as $entry) {
-                       $content[$entry . '_link'] = '0';
+                       $content[$entry . '_link'] = 0;
                } // END - switch
 
                // Init sums
                } // END - switch
 
                // Init sums
index 5afce11932c2022baa2da177a35c33ebab0ec70a..c128d55096906890c782c0f81bf14230b6d476e5 100644 (file)
@@ -63,11 +63,11 @@ if (SQL_NUMROWS($result) > 0) {
                        'sw'       => $SW,
                        'id'       => $content['id'],
                        'userid'      => generateUserProfileLink($content['userid']),
                        'sw'       => $SW,
                        'id'       => $content['id'],
                        'userid'      => generateUserProfileLink($content['userid']),
-                       'start'    => generateDateTime($content['holiday_start'], '3'),
-                       'end'      => generateDateTime($content['holiday_end'], '3'),
+                       'start'    => generateDateTime($content['holiday_start'], 3),
+                       'end'      => generateDateTime($content['holiday_end'], 3),
                        'comments' => wordwrap($content['comments'], 15),
                        'status'   => translateUserStatus($content['status']),
                        'comments' => wordwrap($content['comments'], 15),
                        'status'   => translateUserStatus($content['status']),
-                       'last_online'     => generateDateTime($content['last_online'], '3'),
+                       'last_online'     => generateDateTime($content['last_online'], 3),
                );
 
                // Load row template and switch color
                );
 
                // Load row template and switch color
index ed6be560fc6aaa28b26a496f12da356ddba639e0..aafb7bf7bef14dbab525de259ca4a70fe5362218 100644 (file)
@@ -134,7 +134,7 @@ if (isGetRequestElementSet('userid')) {
                                                        'sw'      => $SW,
                                                        'link'    => $LINK,
                                                        'subject' => $subject,
                                                        'sw'      => $SW,
                                                        'link'    => $LINK,
                                                        'subject' => $subject,
-                                                       'stamp'   => generateDateTime($timestamp, '0'),
+                                                       'stamp'   => generateDateTime($timestamp, 0),
                                                        'cat'     => getCategory($cat),
                                                );
 
                                                        'cat'     => getCategory($cat),
                                                );
 
index 18587326391592725bc296399beb223e12eddcdb..e95e439040d4cc6042fdf9a95fa19c91fe96d2f4 100644 (file)
@@ -49,7 +49,7 @@ $SQL2 = '';
 $result_max = false;
 
 // Set offset an current page to default values
 $result_max = false;
 
 // Set offset an current page to default values
-if (!isGetRequestElementSet('page'))   setRequestGetElement('page'  , '1');
+if (!isGetRequestElementSet('page'))   setRequestGetElement('page'  , 1);
 if (!isGetRequestElementSet('offset')) setRequestGetElement('offset', getConfig('mails_page'));
 
 if (isExtensionActive('bonus')) {
 if (!isGetRequestElementSet('offset')) setRequestGetElement('offset', getConfig('mails_page'));
 
 if (isExtensionActive('bonus')) {
@@ -98,10 +98,10 @@ if ((isExtensionActive('bonus')) && (SQL_NUMROWS($result_max) > 0) && (!empty($S
                        $content = $bonus;
                        $content['time']        = createFancyTime($content['time']);
                        $content['category']    = getCategory($content['cat_id']);
                        $content = $bonus;
                        $content['time']        = createFancyTime($content['time']);
                        $content['category']    = getCategory($content['cat_id']);
-                       $content['receivers']   = str_replace(';', ", ", $content['receivers']);
+                       $content['receivers']   = convertReceivers($content['receivers']);
                        $content['type']        = translatePoolType($content['data_type']);
                        $content['frametester'] = generateFrametesterUrl($content['url']);
                        $content['type']        = translatePoolType($content['data_type']);
                        $content['frametester'] = generateFrametesterUrl($content['url']);
-                       $content['timestamp']   = generateDateTime($content['timestamp'], '0');
+                       $content['timestamp']   = generateDateTime($content['timestamp'], 0);
 
                        // Load row template
                        $OUT .= loadTemplate('admin_list_notify_emails_row', true, $content);
 
                        // Load row template
                        $OUT .= loadTemplate('admin_list_notify_emails_row', true, $content);
@@ -109,7 +109,7 @@ if ((isExtensionActive('bonus')) && (SQL_NUMROWS($result_max) > 0) && (!empty($S
 
                // Add navigation (without change box but with colspan=3)
                $content['nav'] = '';
 
                // Add navigation (without change box but with colspan=3)
                $content['nav'] = '';
-               if ($PAGES > 1) $content['nav'] = addEmailNavigation($PAGES, getConfig('mails_page'), false, '3', true);
+               if ($PAGES > 1) $content['nav'] = addEmailNavigation($PAGES, getConfig('mails_page'), false, 3, true);
 
                // Prepare content
                $content['rows'] = $OUT;
 
                // Prepare content
                $content['rows'] = $OUT;
index ec39c96dd5c8cbf6ad6bc73f5ea10109685cc1c7..4bf5cb37ccbee7c40d0ab0a07b58f6fa7d5a43d7 100644 (file)
@@ -59,7 +59,7 @@ if (isGetRequestElementSet(('pid'))) {
                list($task) = SQL_FETCHROW($result);
                SQL_FREERESULT($result);
                if (empty($task)) $task = 0;
                list($task) = SQL_FETCHROW($result);
                SQL_FREERESULT($result);
                if (empty($task)) $task = 0;
-       } elseif ((empty($userid)) || ($userid == '0')) {
+       } elseif ((empty($userid)) || ($userid == 0)) {
                // Cannot obtain member ID!
                loadTemplate('admin_settings_saved', false, getMessage('PAYOUT_FAILED_OBTAIN_USERID'));
        } else {
                // Cannot obtain member ID!
                loadTemplate('admin_settings_saved', false, getMessage('PAYOUT_FAILED_OBTAIN_USERID'));
        } else {
@@ -204,7 +204,7 @@ LIMIT 1",
                        // Cannot load user data
                        loadTemplate('admin_settings_saved', false, getMessage('PAYOUT_FAILED_OBTAIN_USERDATA'));
                }
                        // Cannot load user data
                        loadTemplate('admin_settings_saved', false, getMessage('PAYOUT_FAILED_OBTAIN_USERDATA'));
                }
-       } elseif ((empty($task)) || ($task == '0')) {
+       } elseif ((empty($task)) || ($task == 0)) {
                // Failed loading task ID
                loadTemplate('admin_settings_saved', false, getMessage('PAYOUT_FAILED_OBTAIN_TASK_ID'));
        }
                // Failed loading task ID
                loadTemplate('admin_settings_saved', false, getMessage('PAYOUT_FAILED_OBTAIN_TASK_ID'));
        }
@@ -270,7 +270,7 @@ ORDER BY
                                'ptype'   => translateComma($content['payout_total']) . ' ' . $content['type'],
                                'account' => $content['target_account'],
                                'bank'    => $content['target_bank'],
                                'ptype'   => translateComma($content['payout_total']) . ' ' . $content['type'],
                                'account' => $content['target_account'],
                                'bank'    => $content['target_bank'],
-                               'tstamp'  => generateDateTime($content['payout_timestamp'], '2'),
+                               'tstamp'  => generateDateTime($content['payout_timestamp'], 2),
                                'status'  => $content['status'],
                        );
 
                                'status'  => $content['status'],
                        );
 
index c43eaa50773743a973ce67c2297de53ced1df810..e9a6510429d215dff21bc31c3ea880d66ad1f172 100644 (file)
@@ -57,7 +57,7 @@ if (SQL_NUMROWS($result) > 0) {
                $content['sw']                = $SW;
                $content['link']              = generateUserProfileLink($content['userid']);
                $content['primera_amount']    = translateComma($content['primera_amount']);
                $content['sw']                = $SW;
                $content['link']              = generateUserProfileLink($content['userid']);
                $content['primera_amount']    = translateComma($content['primera_amount']);
-               $content['primera_timestamp'] = generateDateTime($content['primera_timestamp'], '2');
+               $content['primera_timestamp'] = generateDateTime($content['primera_timestamp'], 2);
                $content['raw_type']          = strtolower($content['primera_type']);
                $content['primera_type']      = PRIMERA_TRANSFER_STATUS($content['primera_type']);
 
                $content['raw_type']          = strtolower($content['primera_type']);
                $content['primera_type']      = PRIMERA_TRANSFER_STATUS($content['primera_type']);
 
index 42324c46020bcfbd31a0f71f3b0114b5c5055074..1b945c75a9ab0acf2c8d660b4e2f258b9d110152 100644 (file)
@@ -56,11 +56,11 @@ if (isGetRequestElementSet(('rallye'))) {
                // Activate / deactivate
                switch (getRequestElement('activate'))
                {
                // Activate / deactivate
                switch (getRequestElement('activate'))
                {
-                       case '1': // Activate
+                       case 1: // Activate
                                addSql("UPDATE `{?_MYSQL_PREFIX?}_rallye_data` SET is_active='Y' WHERE `id`=%s AND is_active='N' LIMIT 1");
                                break;
 
                                addSql("UPDATE `{?_MYSQL_PREFIX?}_rallye_data` SET is_active='Y' WHERE `id`=%s AND is_active='N' LIMIT 1");
                                break;
 
-                       case '0': // Deactivate
+                       case 0: // Deactivate
                                addSql("UPDATE `{?_MYSQL_PREFIX?}_rallye_data` SET is_active='N' WHERE `id`=%s AND is_active='Y' LIMIT 1");
                                break;
                }
                                addSql("UPDATE `{?_MYSQL_PREFIX?}_rallye_data` SET is_active='N' WHERE `id`=%s AND is_active='Y' LIMIT 1");
                                break;
                }
@@ -68,11 +68,11 @@ if (isGetRequestElementSet(('rallye'))) {
                // Automatic notification
                switch (getRequestElement('notify'))
                {
                // Automatic notification
                switch (getRequestElement('notify'))
                {
-                       case '1': // Activate
+                       case 1: // Activate
                                addSql("UPDATE `{?_MYSQL_PREFIX?}_rallye_data` SET send_notify='Y' WHERE `id`=%s AND send_notify='N' LIMIT 1");
                                break;
 
                                addSql("UPDATE `{?_MYSQL_PREFIX?}_rallye_data` SET send_notify='Y' WHERE `id`=%s AND send_notify='N' LIMIT 1");
                                break;
 
-                       case '0': // Deactivate
+                       case 0: // Deactivate
                                addSql("UPDATE `{?_MYSQL_PREFIX?}_rallye_data` SET send_notify='N' WHERE `id`=%s AND send_notify='Y' LIMIT 1");
                                break;
                }
                                addSql("UPDATE `{?_MYSQL_PREFIX?}_rallye_data` SET send_notify='N' WHERE `id`=%s AND send_notify='Y' LIMIT 1");
                                break;
                }
@@ -80,11 +80,11 @@ if (isGetRequestElementSet(('rallye'))) {
                // Automatic adding of new members
                switch (getRequestElement('auto'))
                {
                // Automatic adding of new members
                switch (getRequestElement('auto'))
                {
-                       case '1': // Activate
+                       case 1: // Activate
                                addSql("UPDATE `{?_MYSQL_PREFIX?}_rallye_data` SET auto_add_new_user='Y' WHERE `id`=%s AND auto_add_new_user='N' LIMIT 1");
                                break;
 
                                addSql("UPDATE `{?_MYSQL_PREFIX?}_rallye_data` SET auto_add_new_user='Y' WHERE `id`=%s AND auto_add_new_user='N' LIMIT 1");
                                break;
 
-                       case '0': // Deactivate
+                       case 0: // Deactivate
                                addSql("UPDATE `{?_MYSQL_PREFIX?}_rallye_data` SET auto_add_new_user='N' WHERE `id`=%s AND auto_add_new_user='Y' LIMIT 1");
                                break;
                }
                                addSql("UPDATE `{?_MYSQL_PREFIX?}_rallye_data` SET auto_add_new_user='N' WHERE `id`=%s AND auto_add_new_user='Y' LIMIT 1");
                                break;
                }
@@ -311,8 +311,8 @@ ORDER BY start_time DESC",
                                'title'      => $row['title'],
                                'template'   => $row['template'],
                                'joined'     => $joined,
                                'title'      => $row['title'],
                                'template'   => $row['template'],
                                'joined'     => $joined,
-                               'start_date' => generateDateTime($row['start_time'], '2'),
-                               'end_date'   => generateDateTime($row['end_time']  , '2'),
+                               'start_date' => generateDateTime($row['start_time'], 2),
+                               'end_date'   => generateDateTime($row['end_time']  , 2),
                                'active_lnk' => translateYesNo($row['is_active']),
                                'notify_lnk' => translateYesNo($row['send_notify']),
                                'auto_lnk'   => translateYesNo($row['auto_add_new_user']),
                                'active_lnk' => translateYesNo($row['is_active']),
                                'notify_lnk' => translateYesNo($row['send_notify']),
                                'auto_lnk'   => translateYesNo($row['auto_add_new_user']),
@@ -335,7 +335,7 @@ ORDER BY start_time DESC",
 
                                case 'N':
                                        $row['active_title'] = getMessage('RALLYE_ACTIVATE_NOW');
 
                                case 'N':
                                        $row['active_title'] = getMessage('RALLYE_ACTIVATE_NOW');
-                                       $row['active'] = '1';
+                                       $row['active'] = 1;
                                        break;
                        }
 
                                        break;
                        }
 
@@ -349,7 +349,7 @@ ORDER BY start_time DESC",
 
                                case 'N':
                                        $row['notify_title'] = getMessage('RALLYE_START_NOTIFY_NOW');
 
                                case 'N':
                                        $row['notify_title'] = getMessage('RALLYE_START_NOTIFY_NOW');
-                                       $row['notify'] = '1';
+                                       $row['notify'] = 1;
                                        break;
                        }
 
                                        break;
                        }
 
@@ -363,7 +363,7 @@ ORDER BY start_time DESC",
 
                                case 'N':
                                        $row['auto_title'] = getMessage('RALLYE_START_AUTO_ADD_NOW');
 
                                case 'N':
                                        $row['auto_title'] = getMessage('RALLYE_START_AUTO_ADD_NOW');
-                                       $row['auto'] = '1';
+                                       $row['auto'] = 1;
                                        break;
                        }
 
                                        break;
                        }
 
index 7a80938a64205042b4d5a2089b55139947425fe4..0effbec237d500ac81f8d075d5c4ce302a4b05f1 100644 (file)
@@ -121,12 +121,12 @@ ORDER BY
                                                                        'sw'         => $SW,
                                                                        'u_link'     => generateUserProfileLink($data['userid']),
                                                                        'gender'     => translateGender($data['gender']),
                                                                        'sw'         => $SW,
                                                                        'u_link'     => generateUserProfileLink($data['userid']),
                                                                        'gender'     => translateGender($data['gender']),
-                                                                       'refs_link'  => '0',
+                                                                       'refs_link'  => 0,
                                                                        'surname'    => $data['surname'],
                                                                        'family'     => $data['family'],
                                                                        'email'      => "[<a href=\"".generateEmailLink($data['email'], 'user_data')."\">".$data['email']."</a>]",
                                                                        'status'     => translateUserStatus($data['status']),
                                                                        'surname'    => $data['surname'],
                                                                        'family'     => $data['family'],
                                                                        'email'      => "[<a href=\"".generateEmailLink($data['email'], 'user_data')."\">".$data['email']."</a>]",
                                                                        'status'     => translateUserStatus($data['status']),
-                                                                       'registered' => generateDateTime($data['joined'], '3'),
+                                                                       'registered' => generateDateTime($data['joined'], 3),
                                                                );
 
                                                                // Check if referal count is larger 0 and update link
                                                                );
 
                                                                // Check if referal count is larger 0 and update link
@@ -150,7 +150,7 @@ ORDER BY
                                                } // END - while
                                        } else {
                                                // Output info message
                                                } // END - while
                                        } else {
                                                // Output info message
-                                               $levels['info'] = sprintf(getMessage('ADMIN_USER_TOTAL_REFS'), generateUserProfileLink($userid), '0', '0');
+                                               $levels['info'] = sprintf(getMessage('ADMIN_USER_TOTAL_REFS'), generateUserProfileLink($userid), 0, 0);
 
                                                // No refs found
                                                $levels['rows'] = loadTemplate('admin_list_refs_norefs', true, array('userid' => $userid));
 
                                                // No refs found
                                                $levels['rows'] = loadTemplate('admin_list_refs_norefs', true, array('userid' => $userid));
@@ -170,12 +170,12 @@ ORDER BY
                                                'sw'         => $SW,
                                                'u_link'     => generateUserProfileLink($levels['userid']),
                                                'gender'     => translateGender($levels['gender']),
                                                'sw'         => $SW,
                                                'u_link'     => generateUserProfileLink($levels['userid']),
                                                'gender'     => translateGender($levels['gender']),
-                                               'refs_link'  => '0',
+                                               'refs_link'  => 0,
                                                'surname'    => $levels['surname'],
                                                'family'     => $levels['family'],
                                                'email'      => "[<a href=\"".generateEmailLink($levels['email'], 'user_data')."\">".$levels['email']."</a>]",
                                                'status'     => translateUserStatus($levels['status']),
                                                'surname'    => $levels['surname'],
                                                'family'     => $levels['family'],
                                                'email'      => "[<a href=\"".generateEmailLink($levels['email'], 'user_data')."\">".$levels['email']."</a>]",
                                                'status'     => translateUserStatus($levels['status']),
-                                               'registered' => generateDateTime($levels['joined'], '3'),
+                                               'registered' => generateDateTime($levels['joined'], 3),
                                        );
 
                                        // Check if referal count is larger 0 and update link
                                        );
 
                                        // Check if referal count is larger 0 and update link
index 22f892f7c25f525504dadd5d71678ec6ae9d2cdc..d3026f944d7abe0763cce33a4814cb7657290dc1 100644 (file)
@@ -77,9 +77,9 @@ WHERE `id`='%s' LIMIT 1",
                $content['email_link']  = generateEmailLink($content['email'], 'sponsor_data');
                $content['url']         = generateDerefererUrl($content['url']);
                //  Timestamps
                $content['email_link']  = generateEmailLink($content['email'], 'sponsor_data');
                $content['url']         = generateDerefererUrl($content['url']);
                //  Timestamps
-               $content['created']     = generateDateTime($content['sponsor_created'], '2');
-               $content['last_online'] = generateDateTime($content['last_online'], '2');
-               $content['last_change'] = generateDateTime($content['last_change'], '2');
+               $content['created']     = generateDateTime($content['sponsor_created'], 2);
+               $content['last_online'] = generateDateTime($content['last_online'], 2);
+               $content['last_change'] = generateDateTime($content['last_change'], 2);
                //  Sponsor points
                $content['points_amount'] = translateComma($content['points_amount']);
                $content['points_used']   = translateComma($content['points_used']);
                //  Sponsor points
                $content['points_amount'] = translateComma($content['points_amount']);
                $content['points_used']   = translateComma($content['points_used']);
@@ -154,8 +154,8 @@ ORDER BY
                                'family'   => $content['family'],
                                'email'   => generateEmailLink($content['email'], 'sponsor_data'),
                                'status'  => sponsorTranslateUserStatus($content['status']),
                                'family'   => $content['family'],
                                'email'   => generateEmailLink($content['email'], 'sponsor_data'),
                                'status'  => sponsorTranslateUserStatus($content['status']),
-                               'created' => generateDateTime($content['sponsor_created'], '2'),
-                               'last_online'    => generateDateTime($content['last_online'], '2'),
+                               'created' => generateDateTime($content['sponsor_created'], 2),
+                               'last_online'    => generateDateTime($content['last_online'], 2),
                                'points'  => translateComma($content['points_amount'] - $content['points_used']),
                                'ip'      => $content['remote_addr'],
                        );
                                'points'  => translateComma($content['points_amount'] - $content['points_used']),
                                'ip'      => $content['remote_addr'],
                        );
index 6f9674c308e13119b966ea740f340b86483b7276..3b0a16f0abeb6566c7439f93832137d65a62c6f4 100644 (file)
@@ -185,7 +185,7 @@ ORDER BY
                                'admin'   => $content['assigned_admin'],
                                'userid'  => $content['userid'],
                                'type'    => $content['task_type_msg'],
                                'admin'   => $content['assigned_admin'],
                                'userid'  => $content['userid'],
                                'type'    => $content['task_type_msg'],
-                               'created' => generateDateTime($content['task_created'], '2')
+                               'created' => generateDateTime($content['task_created'], 2)
                        ));
 
                        // Do we have an extension task?
                        ));
 
                        // Do we have an extension task?
index a8458870004dffe3eee2cf9932b9183801759d67..082726877441afa82960a556dcd6dad90f07d4a2 100644 (file)
@@ -55,7 +55,7 @@ if (SQL_NUMROWS($result) > 0) {
                $content = array(
                        'sw'        => $SW,
                        'trans_id'  => $content['trans_id'],
                $content = array(
                        'sw'        => $SW,
                        'trans_id'  => $content['trans_id'],
-                       'stamp'     => generateDateTime($content['time_trans'], '3'),
+                       'stamp'     => generateDateTime($content['time_trans'], 3),
                        'from_link' => generateUserProfileLink($content['userid']),
                        'to_link'   => generateUserProfileLink($content['to_userid']),
                        'reason'    => wordwrap($content['reason'], 15),
                        'from_link' => generateUserProfileLink($content['userid']),
                        'to_link'   => generateUserProfileLink($content['to_userid']),
                        'reason'    => wordwrap($content['reason'], 15),
index 7c4e3c6ca7a922d7e27b6be37295e462325c3258..a2c535a7de7e26c60e038c838f15e8299faadcba 100644 (file)
@@ -160,7 +160,7 @@ WHERE
                        'text'          => $text,
                        'url'           => generateFrametesterUrl($url),
                        'unconfirmed'   => $unconfirmed,
                        'text'          => $text,
                        'url'           => generateFrametesterUrl($url),
                        'unconfirmed'   => $unconfirmed,
-                       'stamp'         => generateDateTime($stamp, '2'),
+                       'stamp'         => generateDateTime($stamp, 2),
                        'rows'          => $OUT
                );
 
                        'rows'          => $OUT
                );
 
index 480eea6662ea5e57fc419fbbf86e3daa8fb83c64..ce195ae973ff08d557b53dd04fee99ba947dd562 100644 (file)
@@ -52,7 +52,7 @@ if ((!isExtensionInstalled('user')) || (!isExtensionActive('user'))) {
 
 // Init variables
 $MORE = '';
 
 // Init variables
 $MORE = '';
-$colspan = '4';
+$colspan = 4;
 
 // Add nickname if extension is found&active
 // @TODO Rewrite these if-blocks in a filter
 
 // Add nickname if extension is found&active
 // @TODO Rewrite these if-blocks in a filter
@@ -87,7 +87,7 @@ if (isExtensionActive('country')) {
 // Init unset data
 if (!isGetRequestElementSet('letter')) { setRequestGetElement('letter', getMessage('_ALL2')); }
 if (!isGetRequestElementSet('sortby')) { setRequestGetElement('sortby', 'userid');            }
 // Init unset data
 if (!isGetRequestElementSet('letter')) { setRequestGetElement('letter', getMessage('_ALL2')); }
 if (!isGetRequestElementSet('sortby')) { setRequestGetElement('sortby', 'userid');            }
-if (!isGetRequestElementSet('page'))   { setRequestGetElement('page'  , '1');                 }
+if (!isGetRequestElementSet('page'))   { setRequestGetElement('page'  , 1);                 }
 
 // Set base URL
 $base = '[<a href="{?URL?}/modules.php?module=admin';
 
 // Set base URL
 $base = '[<a href="{?URL?}/modules.php?module=admin';
@@ -131,10 +131,10 @@ LIMIT 1",
                // Is this above zero?
                if ($stamp > 0) {
                        // Then use it
                // Is this above zero?
                if ($stamp > 0) {
                        // Then use it
-                       $content['birthday'] = generateDateTime($stamp, '3');
+                       $content['birthday'] = generateDateTime($stamp, 3);
                } else {
                        // Zero or below so set zero!
                } else {
                        // Zero or below so set zero!
-                       $content['birthday'] = generateDateTime(0, '3');
+                       $content['birthday'] = generateDateTime(0, 3);
                }
 
                // Prepare data for template
                }
 
                // Prepare data for template
@@ -142,15 +142,15 @@ LIMIT 1",
                $content['gender']            = translateGender($content['gender']);
                $content['email_link']        = generateEmailLink($content['email'], 'user_data');
                $content['status']            = translateUserStatus($content['status']);
                $content['gender']            = translateGender($content['gender']);
                $content['email_link']        = generateEmailLink($content['email'], 'user_data');
                $content['status']            = translateUserStatus($content['status']);
-               $content['last_online']       = generateDateTime($content['last_online'], '0');
+               $content['last_online']       = generateDateTime($content['last_online'], 0);
                $content['used_points']       = translateComma($content['used_points']);
                if ($content['emails_sent'] > 0) $content['emails_sent'] = $base . '&amp;what=email_details&amp;userid=' . $userid . '">' . translateComma($content['emails_sent']) . '</a>]';
                $content['used_points']       = translateComma($content['used_points']);
                if ($content['emails_sent'] > 0) $content['emails_sent'] = $base . '&amp;what=email_details&amp;userid=' . $userid . '">' . translateComma($content['emails_sent']) . '</a>]';
-               $content['joined']            = generateDateTime($content['joined'], '0');
-               $content['last_update']       = generateDateTime($content['last_update'], '0');
-               $content['last_profile_sent'] = generateDateTime($content['last_profile_sent'], '0');
+               $content['joined']            = generateDateTime($content['joined'], 0);
+               $content['last_update']       = generateDateTime($content['last_update'], 0);
+               $content['last_profile_sent'] = generateDateTime($content['last_profile_sent'], 0);
                $content['total']             = translateComma(countSumTotalData($userid, 'user_points', 'points'));
                $content['locked']            = translateComma(countSumTotalData($userid, 'user_points', 'locked_points'));
                $content['total']             = translateComma(countSumTotalData($userid, 'user_points', 'points'));
                $content['locked']            = translateComma(countSumTotalData($userid, 'user_points', 'locked_points'));
-               $content['lock_timestamp']    = generateDateTime($content['lock_timestamp'], '2');
+               $content['lock_timestamp']    = generateDateTime($content['lock_timestamp'], 2);
 
                // Is the lock reason not set?
                if (!isset($content['lock_reason'])) $content['lock_reason'] = '---';
 
                // Is the lock reason not set?
                if (!isset($content['lock_reason'])) $content['lock_reason'] = '---';
@@ -255,7 +255,7 @@ LIMIT 1",
        // Activate the extension please!
        $PAGES = round(SQL_NUMROWS($result_master) / getConfig('user_limit') + 0.5);
 
        // Activate the extension please!
        $PAGES = round(SQL_NUMROWS($result_master) / getConfig('user_limit') + 0.5);
 
-       if (!isGetRequestElementSet('page'))   setRequestGetElement('page'  , '1');
+       if (!isGetRequestElementSet('page'))   setRequestGetElement('page'  , 1);
        if (!isGetRequestElementSet('offset')) setRequestGetElement('offset', getConfig('user_limit'));
 
        // Add limitation to SQL string and run him again
        if (!isGetRequestElementSet('offset')) setRequestGetElement('offset', getConfig('user_limit'));
 
        // Add limitation to SQL string and run him again
@@ -326,7 +326,7 @@ LIMIT 1",
                        $content['points']         = translateComma($pointsTotal);
                        $content['rate']           = translateComma($clickRate);
                        $content['locked']         = translateComma(countSumTotalData($content['userid'], 'user_points', 'locked_points'));
                        $content['points']         = translateComma($pointsTotal);
                        $content['rate']           = translateComma($clickRate);
                        $content['locked']         = translateComma(countSumTotalData($content['userid'], 'user_points', 'locked_points'));
-                       $content['lock_timestamp'] = generateDateTime($content['lock_timestamp'], '2');
+                       $content['lock_timestamp'] = generateDateTime($content['lock_timestamp'], 2);
                        $content['status']         = translateUserStatus($content['status']);
                        $content['refs']           = countSumTotalData($content['userid'], 'refsystem', 'counter');
 
                        $content['status']         = translateUserStatus($content['status']);
                        $content['refs']           = countSumTotalData($content['userid'], 'refsystem', 'counter');
 
index 30e320ec4fc80505f2ffb1a375b00edcfc26553e..09aaea69f09da85dad622a4352daf1034cdceb3c 100644 (file)
@@ -63,7 +63,7 @@ if (SQL_NUMROWS($result) > 0) {
                $content['sw']               = $SW;
                $content['link']             = generateUserProfileLink($content['userid']);
                $content['wernis_amount']    = translateComma($content['wernis_amount']);
                $content['sw']               = $SW;
                $content['link']             = generateUserProfileLink($content['userid']);
                $content['wernis_amount']    = translateComma($content['wernis_amount']);
-               $content['wernis_timestamp'] = generateDateTime($content['wernis_timestamp'], '2');
+               $content['wernis_timestamp'] = generateDateTime($content['wernis_timestamp'], 2);
                $content['raw_type']         = strtolower($content['wernis_type']);
                $content['wernis_type']      = WERNIS_TRANSFER_STATUS($content['wernis_type']);
 
                $content['raw_type']         = strtolower($content['wernis_type']);
                $content['wernis_type']      = WERNIS_TRANSFER_STATUS($content['wernis_type']);
 
index 863c326e82fb922e69b9509d2cde560d363aac41..cbafde7b701b6df41167397b46757c19498e8ef5 100644 (file)
@@ -86,7 +86,7 @@ ORDER BY
        }
 } else {
        // Copy data into constants for the template and load it
        }
 } else {
        // Copy data into constants for the template and load it
-       $content['datestamp'] = generateDateTime(time(), '3');
+       $content['datestamp'] = generateDateTime(time(), 3);
        if (isExtensionActive('html_mail')) {
                // Load template with HTML mode
                loadTemplate('admin_newsletter', false, $content);
        if (isExtensionActive('html_mail')) {
                // Load template with HTML mode
                loadTemplate('admin_newsletter', false, $content);
index f4348b36d768645e65f7ab2b8bfe586a2f71784c..448167d1393fb84bede8df75c957afe39db6c24a 100644 (file)
@@ -113,7 +113,7 @@ if (getRequestElement('userid') == 'all') {
        SQL_FREERESULT($result);
 } else {
        // Output selection form with all confirmed user accounts listed
        SQL_FREERESULT($result);
 } else {
        // Output selection form with all confirmed user accounts listed
-       addMemberSelectionBox('0', true);
+       addMemberSelectionBox(0, true);
 }
 
 // [EOF]
 }
 
 // [EOF]
index 6818b12e489d448bab3543857e272d4a27f88ba8..fee9d1c894175d22a21bec26d82785202168e573 100644 (file)
@@ -64,7 +64,7 @@ ORDER BY `userid` ASC",
                        // "Translate" some data
                        $content['userid']       = generateUserProfileLink($content['userid']);
                        $content['total_visits'] = translateComma($content['total_visits']);
                        // "Translate" some data
                        $content['userid']       = generateUserProfileLink($content['userid']);
                        $content['total_visits'] = translateComma($content['total_visits']);
-                       $content['last_surfed']  = generateDateTime($content['last_surfed'], '2');
+                       $content['last_surfed']  = generateDateTime($content['last_surfed'], 2);
                        $content['sw']           = $SW;
 
                        // Load row template
                        $content['sw']           = $SW;
 
                        // Load row template
index 4dd8d5b418a52b127cb747e4a5e0d5b53e27358c..1a0390d4c545dcea058689e24e6552e5d7947777 100644 (file)
@@ -124,7 +124,7 @@ if (($response[count($response) - 1] == "[EOF]") && ($response[0] != "[EOF]")) {
                                'sw'      => $SW,
                                'index'   => ($idx + 1),
                                'name'    => $name,
                                'sw'      => $SW,
                                'index'   => ($idx + 1),
                                'name'    => $name,
-                               'created' => generateDateTime($themes['fctime'][$idx], '2'),
+                               'created' => generateDateTime($themes['fctime'][$idx], 2),
                                'size'    => translateComma(round($themes['fsize'][$idx] / 1.024) / 1000),
                                'version' => $themes['ver'][$idx],
                                'current' => $themes['cver'][$idx],
                                'size'    => translateComma(round($themes['fsize'][$idx] / 1.024) / 1000),
                                'version' => $themes['ver'][$idx],
                                'current' => $themes['cver'][$idx],
index fc99d0e760a944edc23f4ff3b8bd4dcc8f814b8a..a0eba60a86695b0f9fe615d3327a82610ffc95c4 100644 (file)
@@ -220,7 +220,7 @@ LIMIT 1",
                                'cat_link'    => $content['category'],
                                'pay_title'   => str_replace("\"", '&quot;', getPaymentTitlePrice($content['payment'], true)),
                                'pay_link'    => $content['payment'],
                                'cat_link'    => $content['category'],
                                'pay_title'   => str_replace("\"", '&quot;', getPaymentTitlePrice($content['payment'], true)),
                                'pay_link'    => $content['payment'],
-                               'timestamp'   => generateDateTime($content['timestamp'], '2'),
+                               'timestamp'   => generateDateTime($content['timestamp'], 2),
                                'target_send' => $content['target_send'],
                        );
 
                                'target_send' => $content['target_send'],
                        );
 
index 1684b2ae8ab73ff4f04b3a0e948bf6b6c581bb87..af6e4257c062a90813122219c081b52314beb23f 100644 (file)
@@ -83,7 +83,7 @@ ORDER BY sp.pay_name",
 
                                                // Set default email
                                                $content['email'] = getMessage('SPONSOR_NO_ADMIN');
 
                                                // Set default email
                                                $content['email'] = getMessage('SPONSOR_NO_ADMIN');
-                                               if ($content['admin_id'] > '0') {
+                                               if ($content['admin_id'] > 0) {
                                                        // Load admin's email address for contact
                                                        $content['email'] = getAdminEmail($content['admin_id']);
                                                } // END - if
                                                        // Load admin's email address for contact
                                                        $content['email'] = getAdminEmail($content['admin_id']);
                                                } // END - if
@@ -92,7 +92,7 @@ ORDER BY sp.pay_name",
                                                $data = array(
                                                        'admin_id'   => $content['email'],
                                                        'order' => ($content['pay_count'] * $content['pay_rate'])." ".$content['pay_currency'],
                                                $data = array(
                                                        'admin_id'   => $content['email'],
                                                        'order' => ($content['pay_count'] * $content['pay_rate'])." ".$content['pay_currency'],
-                                                       'stamp' => generateDateTime($content['pay_ordered'], '2'),
+                                                       'stamp' => generateDateTime($content['pay_ordered'], 2),
                                                        'pname' => $content['pay_name'],
                                                );
 
                                                        'pname' => $content['pay_name'],
                                                );
 
@@ -197,7 +197,7 @@ if (SQL_NUMROWS($result) > 0) {
                        'family'  => $content['family'],
                        'email'   => generateEmailLink($content['email'], 'sponsor_data'),
                        'remote'  => $content['remote_addr'],
                        'family'  => $content['family'],
                        'email'   => generateEmailLink($content['email'], 'sponsor_data'),
                        'remote'  => $content['remote_addr'],
-                       'created' => generateDateTime($content['sponsor_created'], '2'),
+                       'created' => generateDateTime($content['sponsor_created'], 2),
                );
 
                // Load row template and switch colors
                );
 
                // Load row template and switch colors
index 96de642c722512410e7f0db9eacd441f255c8f22..6d73b593ac92c35a5afeb8b84f40c10502747a4a 100644 (file)
@@ -92,7 +92,7 @@ if (empty($ONLINE['version'])) {
        loadTemplate('admin_settings_saved', false, "<div class=\"admin_failed\">{--ADMIN_CANNOT_CHECK_VERSION--} (".$ONLINE['code'].")</div>");
 } elseif (($ONLINE['version'] != getConfig('FULL_VERSION')) || ($ONLINE['revision'] != getConfig('CURR_SVN_REVISION'))) {
        // New full-version available (all previous released patches are included in this version!)
        loadTemplate('admin_settings_saved', false, "<div class=\"admin_failed\">{--ADMIN_CANNOT_CHECK_VERSION--} (".$ONLINE['code'].")</div>");
 } elseif (($ONLINE['version'] != getConfig('FULL_VERSION')) || ($ONLINE['revision'] != getConfig('CURR_SVN_REVISION'))) {
        // New full-version available (all previous released patches are included in this version!)
-       $ONLINE['changed'] = generateDateTime($ONLINE['changed'], '2');
+       $ONLINE['changed'] = generateDateTime($ONLINE['changed'], 2);
 
        // Load template
        loadTemplate('admin_update_download', false, $ONLINE);
 
        // Load template
        loadTemplate('admin_update_download', false, $ONLINE);
index fc8b6e782c3a727ff6c5e13d7007689eebfce358..322c34634a0e21440f902133414d498a00ece316 100644 (file)
@@ -85,7 +85,7 @@ if (isExtensionActive('online')) {
 
                        // Add more content
                        $row['sw'] = $SW;
 
                        // Add more content
                        $row['sw'] = $SW;
-                       $row['timestamp'] = generateDateTime($row['timestamp'], '2');
+                       $row['timestamp'] = generateDateTime($row['timestamp'], 2);
 
                        // Load row template and switch color
                        $OUT .= loadTemplate('admin_list_online_row', true, $row);
 
                        // Load row template and switch color
                        $OUT .= loadTemplate('admin_list_online_row', true, $row);
index b9dfc392effb626677c0c5589800e588c4378645..f1602b3c077aeef6b8a2c3a5baaf94ea2322142c 100644 (file)
@@ -80,7 +80,7 @@ if (SQL_NUMROWS($result) > 0) {
                        'userid'      => $userid,
                        'nickname'    => $nick2,
                        'points'      => translateComma(countSumTotalData($userid, 'user_points', 'points') - countSumTotalData($userid, 'user_data', 'used_points')),
                        'userid'      => $userid,
                        'nickname'    => $nick2,
                        'points'      => translateComma(countSumTotalData($userid, 'user_points', 'points') - countSumTotalData($userid, 'user_data', 'used_points')),
-                       'last_online' => generateDateTime($last, '2'),
+                       'last_online' => generateDateTime($last, 2),
                );
 
                // Load template
                );
 
                // Load template
index 1562cc006e4a9ad084fe24673458e40a94d2f787..42dbdc82ed94013a4af702142cc4aaacf1e37267 100644 (file)
@@ -47,7 +47,7 @@ addMenuDescription('guest', __FILE__);
 // Init content
 $content = array(
        'message' => getMessage('GUEST_CONFIRMED_FAILED'),
 // Init content
 $content = array(
        'message' => getMessage('GUEST_CONFIRMED_FAILED'),
-       'userid'  => '0',
+       'userid'  => 0,
 );
 
 if (isGetRequestElementSet('hash')) {
 );
 
 if (isGetRequestElementSet('hash')) {
@@ -80,7 +80,7 @@ if (isGetRequestElementSet('hash')) {
                                        updateReferalCounter($rid);
 
                                        // Shall I 'pay' the referal points imidiately?
                                        updateReferalCounter($rid);
 
                                        // Shall I 'pay' the referal points imidiately?
-                                       if (getConfig('ref_payout') == '0') {
+                                       if (getConfig('ref_payout') == 0) {
                                                // Yes, 'pay' it now
                                                $locked = false;
                                        } else {
                                                // Yes, 'pay' it now
                                                $locked = false;
                                        } else {
index b4018382a433e3d5871ae5fe961b1884d2f2b3bb..8b64a863de14adcbea495546016845e80b5e88fd 100644 (file)
@@ -63,7 +63,7 @@ $content['refid'] = determineReferalId();
 $content['payout_time'] = getMessage('DOUBLER_PAYOUT_TIME_' . getConfig('doubler_send_mode'));
 
 // Generate table with already payed out doubles
 $content['payout_time'] = getMessage('DOUBLER_PAYOUT_TIME_' . getConfig('doubler_send_mode'));
 
 // Generate table with already payed out doubles
-$content['payout_history'] = generateDoublerTable('0', 'Y', 'N', 'DESC');
+$content['payout_history'] = generateDoublerTable(0, 'Y', 'N', 'DESC');
 
 // Generate table with next-to-run payouts
 $content['next_table'] = generateDoublerTable();
 
 // Generate table with next-to-run payouts
 $content['next_table'] = generateDoublerTable();
index 258509fb8a60587a83d27d5070735dc729979fe4..1cac00d558a770ea834e606962652fd21c334ba2 100644 (file)
@@ -61,7 +61,7 @@ $content['user_locked']      = round(countSumTotalData('LOCKED'     , 'user_data
 $content['user_count']       = ($content['user_confirmed'] + $content['user_unconfirmed'] + $content['user_locked']);
 
 // Start of this exchange
 $content['user_count']       = ($content['user_confirmed'] + $content['user_unconfirmed'] + $content['user_locked']);
 
 // Start of this exchange
-$content['mt_start'] = generateDateTime(getConfig('mt_start'), '3');
+$content['mt_start'] = generateDateTime(getConfig('mt_start'), 3);
 
 // Project timestamp when number of members are reached
 $PROJECTED = 0;
 
 // Project timestamp when number of members are reached
 $PROJECTED = 0;
@@ -74,7 +74,7 @@ if ($content['user_count'] > 0) {
 $TEST = makeTime(0, 0, 0, $PROJECTED);
 
 if ($TEST > time()) {
 $TEST = makeTime(0, 0, 0, $PROJECTED);
 
 if ($TEST > time()) {
-       $content['projected'] = generateDateTime($PROJECTED, '3');
+       $content['projected'] = generateDateTime($PROJECTED, 3);
 } else {
        $content['projected'] = getMessage('USER_PROJECTION_UNKNOWN');
 }
 } else {
        $content['projected'] = getMessage('USER_PROJECTION_UNKNOWN');
 }
@@ -198,7 +198,7 @@ if (isExtensionActive('doubler')) {
        $data = array(
                'lang'  => getMessage('MEDIA_DOUBLER_COUNT'),
                'value' => countSumTotalData('Y','doubler','id','completed', true, " AND `points` > 0"),
        $data = array(
                'lang'  => getMessage('MEDIA_DOUBLER_COUNT'),
                'value' => countSumTotalData('Y','doubler','id','completed', true, " AND `points` > 0"),
-               'rows'  => '4'
+               'rows'  => 4
        );
 
        // Add points
        );
 
        // Add points
@@ -275,7 +275,7 @@ ON t.userid=d.userid",
        $data = array(
                'lang'  => getMessage('MEDIA_TRANSFER_IN_COUNT'),
                'value' => $count_in,
        $data = array(
                'lang'  => getMessage('MEDIA_TRANSFER_IN_COUNT'),
                'value' => $count_in,
-               'rows'  => '4'
+               'rows'  => 4
        );
        $OUT_SPECIAL .= loadTemplate('mediadata_extra_row2', true, $data);
        $data = array(
        );
        $OUT_SPECIAL .= loadTemplate('mediadata_extra_row2', true, $data);
        $data = array(
@@ -304,7 +304,7 @@ $content['rowspan_points'] = $ROWS_POINTS;
 $content['rowspan_user']   = $ROWS_USER;
 
 // Patch timespamp
 $content['rowspan_user']   = $ROWS_USER;
 
 // Patch timespamp
-$contentp['patch_ctime'] = generateDateTime(getConfig('patch_ctime'), '2');
+$contentp['patch_ctime'] = generateDateTime(getConfig('patch_ctime'), 2);
 
 // Load template
 loadTemplate('mediadata', false, $content);
 
 // Load template
 loadTemplate('mediadata', false, $content);
index c2788fbc05386b6609277b1860f280ef2d0a5271..b90af17802f61f73115f3aaf866da50b367211f5 100644 (file)
@@ -102,8 +102,8 @@ if (SQL_NUMROWS($result) == 1) {
        }
 
        // Set start and end time
        }
 
        // Set start and end time
-       $content['start'] = generateDateTime($start, '1');
-       $content['end']   = generateDateTime($end  , '1');
+       $content['start'] = generateDateTime($start, 1);
+       $content['end']   = generateDateTime($end  , 1);
 
        // Determine min_users
        $content['min_users'] = determineReferalRallyeMinimumUsers($min_users);
 
        // Determine min_users
        $content['min_users'] = determineReferalRallyeMinimumUsers($min_users);
index cbd1d658eda07588e1ec316f8434eb6d3b052292..39cd91546eb6c1ef1e0d51f099c6487a9366f684 100644 (file)
@@ -180,8 +180,8 @@ LIMIT 1",
 //* DEBUG: */ print intval(isFormSent()).'/'.intval($isOkay).'/'.intval(isAdmin()).'<br />';
 if ((isFormSent()) && (($isOkay === true) || (isAdmin()))) {
        // Prepapre month and day of birth
 //* DEBUG: */ print intval(isFormSent()).'/'.intval($isOkay).'/'.intval(isAdmin()).'<br />';
 if ((isFormSent()) && (($isOkay === true) || (isAdmin()))) {
        // Prepapre month and day of birth
-       if (strlen(postRequestElement('day'))   == 1) setRequestPostElement('day'  , '0'.postRequestElement('day'));
-       if (strlen(postRequestElement('month')) == 1) setRequestPostElement('month', '0'.postRequestElement('month'));
+       if (strlen(postRequestElement('day'))   == 1) setRequestPostElement('day'  , 0 . postRequestElement('day'));
+       if (strlen(postRequestElement('month')) == 1) setRequestPostElement('month', 0 . postRequestElement('month'));
 
        // Get total ...
        // ... confirmed, ...
 
        // Get total ...
        // ... confirmed, ...
@@ -315,7 +315,7 @@ VALUES ('%s','%s','%s','%s','%s',%s,'%s','%s',%s, %s,%s,'%s',%s, %s,'%s','UNCONF
        $gender = translateGender(postRequestElement('gender'));
 
        // ... rewrite a zero referal ID to the main title
        $gender = translateGender(postRequestElement('gender'));
 
        // ... rewrite a zero referal ID to the main title
-       if (postRequestElement('refid') == '0') setRequestPostElement('refid', getConfig('MAIN_TITLE'));
+       if (postRequestElement('refid') == 0) setRequestPostElement('refid', getConfig('MAIN_TITLE'));
 
        // Is ZIP code set?
        if (isPostRequestElementSet('zip')) {
 
        // Is ZIP code set?
        if (isPostRequestElementSet('zip')) {
index 35fdaeec1ecdf38055899796bcaf605f7a009f1c..cd23e6eda3bad9217a1119aca2670f6ab85f9d1e 100644 (file)
@@ -241,7 +241,7 @@ WHERE `id`='%s' LIMIT 1",
                                $content['surname']   = secureString(postRequestElement('surname'));
                                $content['family']    = secureString(postRequestElement('family'));
                                $content['gender']    = translateGender(postRequestElement('gender'));
                                $content['surname']   = secureString(postRequestElement('surname'));
                                $content['family']    = secureString(postRequestElement('family'));
                                $content['gender']    = translateGender(postRequestElement('gender'));
-                               $content['timestamp'] = generateDateTime(time(), '0');
+                               $content['timestamp'] = generateDateTime(time(), 0);
                                $content['password']  = secureString(postRequestElement('pass1'));
 
                                // Generate email and send it to the new sponsor
                                $content['password']  = secureString(postRequestElement('pass1'));
 
                                // Generate email and send it to the new sponsor
@@ -351,7 +351,7 @@ ORDER BY `pay_name`", __FILE__, __LINE__);
                        $content['refid'] = bigintval(getRequestElement('refid'));
                } else {
                        // No referal link
                        $content['refid'] = bigintval(getRequestElement('refid'));
                } else {
                        // No referal link
-                       $content['refid'] = '0';
+                       $content['refid'] = 0;
                }
 
                // Display registration form
                }
 
                // Display registration form
index 44770bda678ef9db05ed253d987bb2b2ce92ec89..36d6373b0ae24518a2874f1206dfed255635bf85 100644 (file)
@@ -100,7 +100,7 @@ switch (getConfig('guest_stats')) {
                        $month = $idx;
 
                        // Append leading zero
                        $month = $idx;
 
                        // Append leading zero
-                       if ($idx < 10) $month = '0'.$idx;
+                       if ($idx < 10) $month = 0 . $idx;
 
                        // Count months
                        $months[$month] = countSumTotalData(bigintval($month), 'user_data', 'userid', 'birth_month', true, " AND `status`='CONFIRMED'");
 
                        // Count months
                        $months[$month] = countSumTotalData(bigintval($month), 'user_data', 'userid', 'birth_month', true, " AND `status`='CONFIRMED'");
index d3c8a06673374a1c449b6bf3db94f02d635352de..4bdf990b0bfeb157bd6daae14448056699ff4908 100644 (file)
@@ -80,7 +80,7 @@ while ($content = SQL_FETCHARRAY($result)) {
                'nickname'     => $content['nickname'],
                'total_logins' => $content['total_logins'],
                'points'       => translateComma(countSumTotalData($content['userid'], 'user_points', 'points')),
                'nickname'     => $content['nickname'],
                'total_logins' => $content['total_logins'],
                'points'       => translateComma(countSumTotalData($content['userid'], 'user_points', 'points')),
-               'last_online'  => generateDateTime($content['last_online'], '3'),
+               'last_online'  => generateDateTime($content['last_online'], 3),
        );
 
        // Load row template
        );
 
        // Load row template
@@ -147,7 +147,7 @@ while ($content = SQL_FETCHARRAY($result)) {
                'userid'      => $content['userid'],
                'nickname'    => $content['nickname'],
                'points'      => translateComma($content['points']),
                'userid'      => $content['userid'],
                'nickname'    => $content['nickname'],
                'points'      => translateComma($content['points']),
-               'last_online' => generateDateTime($content['last_online'], '3')
+               'last_online' => generateDateTime($content['last_online'], 3)
        );
 
        // Load row template
        );
 
        // Load row template
@@ -215,7 +215,7 @@ while ($content = SQL_FETCHARRAY($result)) {
                'refs'        => $content['refs'],
                'nickname'    => $content['nickname'],
                'points'      => translateComma(countSumTotalData($content['userid'], 'user_points', 'points')),
                'refs'        => $content['refs'],
                'nickname'    => $content['nickname'],
                'points'      => translateComma(countSumTotalData($content['userid'], 'user_points', 'points')),
-               'last_online' => generateDateTime($content['last_online'], '3')
+               'last_online' => generateDateTime($content['last_online'], 3)
        );
 
        // Load row template
        );
 
        // Load row template
index b37ce184463f3864f713a15acaeed21b90e464ff..76ef6801c2fb582500a027597e645e803c089a88 100644 (file)
@@ -87,7 +87,7 @@ if (SQL_NUMROWS($result) > 0) {
                        'cnt'    => $cnt,
                        'userid'    => bigintval($content['userid']),
                        'points' => translateComma($content['beg']),
                        'cnt'    => $cnt,
                        'userid'    => bigintval($content['userid']),
                        'points' => translateComma($content['beg']),
-                       'last_online'   => generateDateTime($content['last_online'], '2'),
+                       'last_online'   => generateDateTime($content['last_online'], 2),
                );
 
                // Load row template
                );
 
                // Load row template
index a1058a34f74cdc7499f661a0e90b208e954dcc66..5960bd49a694a7798d759f3abfb9539b38735b32 100644 (file)
@@ -103,7 +103,7 @@ if (SQL_NUMROWS($result) > 0) {
                        'cnt'    => $cnt,
                        'userid'    => bigintval($content['userid']),
                        'points' => translateComma($content['points']),
                        'cnt'    => $cnt,
                        'userid'    => bigintval($content['userid']),
                        'points' => translateComma($content['points']),
-                       'last_online'   => generateDateTime($content['last_online'], '2')
+                       'last_online'   => generateDateTime($content['last_online'], 2)
                );
 
                // Load row template
                );
 
                // Load row template
index b233e861a4523a6cb18a55599600a0d3b7cd907d..794e224ac54e088b3bea9d88145aa7392ed30c92 100644 (file)
@@ -99,7 +99,7 @@ if ((SQL_NUMROWS($result1) == 1) || (SQL_NUMROWS($result2) == 1)) {
                }
 
                // Display message and exit here
                }
 
                // Display message and exit here
-               loadTemplate('admin_settings_saved', false, sprintf(getMessage('HOLIDAY_MEMBER_ORDER'), generateDateTime($stamp, '1')));
+               loadTemplate('admin_settings_saved', false, sprintf(getMessage('HOLIDAY_MEMBER_ORDER'), generateDateTime($stamp, 1)));
                return;
        }
 } // END - if
                return;
        }
 } // END - if
@@ -185,8 +185,8 @@ LIMIT 1", array(getUserId()), __FILE__, __LINE__);
                        SQL_FREERESULT($result);
 
                        // Prepare it for the template
                        SQL_FREERESULT($result);
 
                        // Prepare it for the template
-                       $content['start'] = generateDateTime($content['holiday_start'], '3');
-                       $content['end']   = generateDateTime($content['holiday_end']  , '3');
+                       $content['start'] = generateDateTime($content['holiday_start'], 3);
+                       $content['end']   = generateDateTime($content['holiday_end']  , 3);
 
                        // Deactivate it now
                        SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_data`
 
                        // Deactivate it now
                        SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_data`
@@ -254,9 +254,9 @@ LIMIT 1", array(getUserId()), __FILE__, __LINE__);
                                        SQL_FREERESULT($result);
 
                                        // Prepare it for the template
                                        SQL_FREERESULT($result);
 
                                        // Prepare it for the template
-                                       $content['start'] = generateDateTime($content['holiday_start'] , '3');
-                                       $content['end']   = generateDateTime($content['holiday_end']   , '3');
-                                       $content['lock']  = generateDateTime($content['holiday_activated'], '1');
+                                       $content['start'] = generateDateTime($content['holiday_start'] , 3);
+                                       $content['end']   = generateDateTime($content['holiday_end']   , 3);
+                                       $content['lock']  = generateDateTime($content['holiday_activated'], 1);
 
                                        // Load template
                                        loadTemplate('member_holiday_deactivate', false, $content);
 
                                        // Load template
                                        loadTemplate('member_holiday_deactivate', false, $content);
index 17a435539a2faba819d62c536e24445c9687b91c..adbd169537aa0b8ac910311360359708a7a2faf4 100644 (file)
@@ -85,19 +85,19 @@ switch ($mode) {
 
                // Translate some things
                $content['gender']      = translateGender($content['gender']);
 
                // Translate some things
                $content['gender']      = translateGender($content['gender']);
-               $content['last_update'] = generateDateTime($content['last_update'], '0');
+               $content['last_update'] = generateDateTime($content['last_update'], 0);
 
                // How far is last change on his profile away from now?
                if ((($content['last_update'] + getConfig('profile_lock')) > time()) && (!isAdmin()) && (getConfig('profile_lock') > 0)) {
                        // You cannot change your account
 
                // How far is last change on his profile away from now?
                if ((($content['last_update'] + getConfig('profile_lock')) > time()) && (!isAdmin()) && (getConfig('profile_lock') > 0)) {
                        // You cannot change your account
-                       $content['change'] = loadTemplate('admin_settings_saved', true, "<div class=\"member_failed\">".sprintf(getMessage('MEMBER_PROFILE_LOCKED'), generateDateTime($content['last_update'] + getConfig('profile_lock'), '0'))."</div>");
+                       $content['change'] = loadTemplate('admin_settings_saved', true, "<div class=\"member_failed\">".sprintf(getMessage('MEMBER_PROFILE_LOCKED'), generateDateTime($content['last_update'] + getConfig('profile_lock'), 0))."</div>");
                } else {
                        // He is allowed to change his profile
                        $content['change'] = loadTemplate('member_mydata_button', true);
                }
 
                } else {
                        // He is allowed to change his profile
                        $content['change'] = loadTemplate('member_mydata_button', true);
                }
 
-               if (strlen($content['birth_day'])   == 1) $content['birth_day']   = '0' . $content['birth_day'];
-               if (strlen($content['birth_month']) == 1) $content['birth_month'] = '0' . $content['birth_month'];
+               if (strlen($content['birth_day'])   == 1) $content['birth_day']   = 0 . $content['birth_day'];
+               if (strlen($content['birth_month']) == 1) $content['birth_month'] = 0 . $content['birth_month'];
 
                switch (getLanguage()) {
                        case 'de': $content['dob'] = $content['birth_day']   . '.' . $content['birth_month'] . '.' . $content['birth_year']; break;
 
                switch (getLanguage()) {
                        case 'de': $content['dob'] = $content['birth_day']   . '.' . $content['birth_month'] . '.' . $content['birth_year']; break;
@@ -144,7 +144,7 @@ LIMIT 1",
 
                // How far is last change on his profile away from now?
                if (($content['update_check'] > time()) && (!isAdmin()) && (getConfig('profile_lock') > 0)) {
 
                // How far is last change on his profile away from now?
                if (($content['update_check'] > time()) && (!isAdmin()) && (getConfig('profile_lock') > 0)) {
-                       $content['update_check'] = generateDateTime($content['update_check'] + getConfig('profile_lock'), '0');
+                       $content['update_check'] = generateDateTime($content['update_check'] + getConfig('profile_lock'), 0);
                        // You cannot change your account
                        loadTemplate('member_mydata_locked', false, $content);
                } else {
                        // You cannot change your account
                        loadTemplate('member_mydata_locked', false, $content);
                } else {
@@ -215,7 +215,7 @@ LIMIT 1",
 
                // How far is last change on his profile away from now?
                if (($content['last_change'] > time()) && (!isAdmin()) && (getConfig('profile_lock') > 0)) {
 
                // How far is last change on his profile away from now?
                if (($content['last_change'] > time()) && (!isAdmin()) && (getConfig('profile_lock') > 0)) {
-                       $content['last_change'] = generateDateTime($content['last_change'] + getConfig('profile_lock'), '0');
+                       $content['last_change'] = generateDateTime($content['last_change'] + getConfig('profile_lock'), 0);
                        // You cannot change your account
                        loadTemplate('member_mydata_locked');
                } elseif ((!isEmailValid(postRequestElement('email'))) && (!isAdmin())) {
                        // You cannot change your account
                        loadTemplate('member_mydata_locked');
                } elseif ((!isEmailValid(postRequestElement('email'))) && (!isAdmin())) {
index b214a719c614beb8a81c0a429909c4784ef17b04..f7f6049d476c639335c05301b4b41911a7b90475 100644 (file)
@@ -275,7 +275,7 @@ LIMIT 1",
 
                        // Update receiver list
                        SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_data` SET `receive_mails`=`receive_mails`-1 WHERE `userid` IN (%s) LIMIT %s",
 
                        // Update receiver list
                        SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_data` SET `receive_mails`=`receive_mails`-1 WHERE `userid` IN (%s) LIMIT %s",
-                               array(str_replace(';', ", ", $RECEIVER), $content['target_send']), __FILE__, __LINE__);
+                               array(convertReceivers($RECEIVER), $content['target_send']), __FILE__, __LINE__);
 
                        // Is calculated max receivers larger than wanted receivers then reset it
                        if ($content['target_send'] > postRequestElement('receiver')) $content['target_send'] = bigintval(postRequestElement('receiver'));
 
                        // Is calculated max receivers larger than wanted receivers then reset it
                        if ($content['target_send'] > postRequestElement('receiver')) $content['target_send'] = bigintval(postRequestElement('receiver'));
@@ -284,12 +284,12 @@ LIMIT 1",
                        $USED = $content['target_send'] * getPaymentPoints(bigintval(postRequestElement('type')));
 
                        // Fix empty zip code
                        $USED = $content['target_send'] * getPaymentPoints(bigintval(postRequestElement('type')));
 
                        // Fix empty zip code
-                       if (!isPostRequestElementSet('zip')) setRequestPostElement('zip', '0');
+                       if (!isPostRequestElementSet('zip')) setRequestPostElement('zip', 0);
 
                        // Check if he has enougth points for this order and selected more than 0 receivers
                        if (($USED > 0) && ($USED <= $total) && ($content['target_send'] > 0)) {
                                // Gettings points is okay, so we can add $USED later from
 
                        // Check if he has enougth points for this order and selected more than 0 receivers
                        if (($USED > 0) && ($USED <= $total) && ($content['target_send'] > 0)) {
                                // Gettings points is okay, so we can add $USED later from
-                               if (($id == '0') || ($type != 'TEMP')) {
+                               if (($id == 0) || ($type != 'TEMP')) {
                                        // New order
                                        $id = 0;
                                        if (isExtensionActive('html_mail')) {
                                        // New order
                                        $id = 0;
                                        if (isExtensionActive('html_mail')) {
@@ -418,13 +418,13 @@ LIMIT 1",
                        $URL = 'modules.php?module=login&amp;what=order&amp;code=' . getCode('NO_RECS_LEFT');
                }
        }
                        $URL = 'modules.php?module=login&amp;what=order&amp;code=' . getCode('NO_RECS_LEFT');
                }
        }
-} elseif (postRequestElement('receiver') == '0') {
+} elseif (postRequestElement('receiver') == 0) {
        // Not enougth receivers selected
        $URL = 'modules.php?module=login&amp;what=order&amp;code=' . getCode('MORE_RECEIVERS1');
 } elseif (($ALLOWED == 0) && (getConfig('order_max_full') == 'ORDER')) {
        // No more mail orders allowed
        loadTemplate('admin_settings_saved', false, getMessage('MEMBER_ORDER_ALLOWED_EXHAUSTED'));
        // Not enougth receivers selected
        $URL = 'modules.php?module=login&amp;what=order&amp;code=' . getCode('MORE_RECEIVERS1');
 } elseif (($ALLOWED == 0) && (getConfig('order_max_full') == 'ORDER')) {
        // No more mail orders allowed
        loadTemplate('admin_settings_saved', false, getMessage('MEMBER_ORDER_ALLOWED_EXHAUSTED'));
-} elseif (($links < getConfig('unconfirmed')) && ($mmails == '1')) {
+} elseif (($links < getConfig('unconfirmed')) && ($mmails == 1)) {
        // Display order form
        $result_cats = SQL_QUERY("SELECT
        `id`, `cat`
        // Display order form
        $result_cats = SQL_QUERY("SELECT
        `id`, `cat`
@@ -684,7 +684,7 @@ LIMIT 1",
                // No cateogries are defined yet
                loadTemplate('admin_settings_saved', false, "<span class=\"member_failed\">{--MEMBER_NO_CATS--}</span>");
        }
                // No cateogries are defined yet
                loadTemplate('admin_settings_saved', false, "<span class=\"member_failed\">{--MEMBER_NO_CATS--}</span>");
        }
-} elseif ($mmails == '0') {
+} elseif ($mmails == 0) {
        // Please set more than 0 mails per day
        loadTemplate('admin_settings_saved', false, getMessage('MEMBER_HAS_ZERO_MMAILS'));
 } else {
        // Please set more than 0 mails per day
        loadTemplate('admin_settings_saved', false, getMessage('MEMBER_HAS_ZERO_MMAILS'));
 } else {
index 10ad466fa8495b53b99a0a7515c660e7b3f7bb31..dbf4c50f2feda5d498f3f51944191b144a0c026e 100644 (file)
@@ -136,7 +136,7 @@ ORDER BY p.payout_timestamp DESC",
                                        'acc'    => $content['target_account'],
                                        'points' => translateComma($content['payout_total']) . ' ' . $content['type'],
                                        'bank'   => $content['target_bank'],
                                        'acc'    => $content['target_account'],
                                        'points' => translateComma($content['payout_total']) . ' ' . $content['type'],
                                        'bank'   => $content['target_bank'],
-                                       'stamp'  => generateDateTime($content['payout_timestamp'], '2'),
+                                       'stamp'  => generateDateTime($content['payout_timestamp'], 2),
                                        'status' => $content['status']
                                );
 
                                        'status' => $content['status']
                                );
 
index 3bfde38da0803fea1a077e364f002c1dc611333e..947a9edefc0d044ad0f7c9d335434d4c92bb23f2 100644 (file)
@@ -141,7 +141,7 @@ if (getExtensionVersion('user') >= '0.1.2') {
 }
 
 // If TLOCK is 0 add 3 zeros for floating
 }
 
 // If TLOCK is 0 add 3 zeros for floating
-if ($TLOCK == '0') $TLOCK = '0.00000';
+if ($TLOCK == 0) $TLOCK = '0.00000';
 
 // Remember several values in constants
 $content['used']  = translateComma($usedPoints);
 
 // Remember several values in constants
 $content['used']  = translateComma($usedPoints);
index 4088ab3b1ad618560546706f280c8a5f930d0f8e..e95ef39dff942442ab06395c9c1947e7ed31c56e 100644 (file)
@@ -96,7 +96,7 @@ if (!isGetRequestElementSet('mode')) {
                while ($data = SQL_FETCHARRAY($result)) {
                        // Prepare data for output
                        $rowContent = array(
                while ($data = SQL_FETCHARRAY($result)) {
                        // Prepare data for output
                        $rowContent = array(
-                               'stamp'         => generateDateTime($data['primera_timestamp'], '2'),
+                               'stamp'         => generateDateTime($data['primera_timestamp'], 2),
                                'points'                => translateComma($data['primera_amount']),
                                'acc'           => SQL_ESCAPE($data['primera_account']),
                                'status'                => PRIMERA_TRANSFER_STATUS($data['primera_type']),
                                'points'                => translateComma($data['primera_amount']),
                                'acc'           => SQL_ESCAPE($data['primera_account']),
                                'status'                => PRIMERA_TRANSFER_STATUS($data['primera_type']),
@@ -190,7 +190,7 @@ if ((isFormSent()) && (isGetRequestElementSet('mode'))) {
                                        $locked = true;
 
                                        // Shall I 'pay' the referal points imidiately?
                                        $locked = true;
 
                                        // Shall I 'pay' the referal points imidiately?
-                                       if (getConfig('ref_payout') == '0') {
+                                       if (getConfig('ref_payout') == 0) {
                                                // Yes, 'pay' it now
                                                $locked = false;
                                        } // END - if
                                                // Yes, 'pay' it now
                                                $locked = false;
                                        } // END - if
index 3daa41edce39aca87faaf670128c0617ac6224b9..7664ad0656a9ea7e3da887e7da934c3910e73e83 100644 (file)
@@ -99,8 +99,8 @@ if (SQL_NUMROWS($result) == 1) {
        $content['min_prices'] = determineReferalRallyeMinimumPrices($content['min_prices']);
 
        // Set start and end time
        $content['min_prices'] = determineReferalRallyeMinimumPrices($content['min_prices']);
 
        // Set start and end time
-       $content['start'] = generateDateTime($content['start_time'], '1');
-       $content['end']   = generateDateTime($content['end_time']  , '1');
+       $content['start'] = generateDateTime($content['start_time'], 1);
+       $content['end']   = generateDateTime($content['end_time']  , 1);
 
        if ($expired === true) {
                $content['prices']       = addReferalRallyeWinners($content['id']);
 
        if ($expired === true) {
                $content['prices']       = addReferalRallyeWinners($content['id']);
index 03242c07ab49ac569f575626b4fb51d5aa1fec6b..ef5959e75020cb81ea7d71f36e450abe4f1eaf46 100644 (file)
@@ -50,11 +50,15 @@ addMenuDescription('member', __FILE__);
 $main_content = array();
 
 // Load waiting/pending orders
 $main_content = array();
 
 // Load waiting/pending orders
-$result = SQL_QUERY_ESC("SELECT id, cat_id, payment_id, subject, url, timestamp, target_send, data_type, zip
-FROM `{?_MYSQL_PREFIX?}_pool`
-WHERE sender=%s AND data_type != 'SEND'
-ORDER BY timestamp DESC",
-array(getUserId()), __FILE__, __LINE__);
+$result = SQL_QUERY_ESC("SELECT
+       `id`, `cat_id`, `payment_id`, `subject`, `url`, `timestamp`, `target_send`, `data_type`, `zip`
+FROM
+       `{?_MYSQL_PREFIX?}_pool`
+WHERE
+       `sender`=%s AND `data_type` != 'SEND'
+ORDER BY
+       `timestamp` DESC",
+       array(getUserId()), __FILE__, __LINE__);
 
 // Are there mails left in pool?
 if (SQL_NUMROWS($result) > 0) {
 
 // Are there mails left in pool?
 if (SQL_NUMROWS($result) > 0) {
@@ -65,18 +69,17 @@ if (SQL_NUMROWS($result) > 0) {
                if (empty($data['zip'])) $data['zip'] =  '---';
 
                // Prepare content for output
                if (empty($data['zip'])) $data['zip'] =  '---';
 
                // Prepare content for output
-               // @TODO Rewrite in template subj->subject,stamp->timestamp,recs->target_send
                $content = array(
                $content = array(
-                       'sw'      => $SW,
-                       'id'      => $data['id'],
-                       'cat'     => getCategory($data['cat_id']),
-                       'pay'     => getPaymentTitlePrice($data['payment_id']),
-                       'subject' => $data['subject'],
-                       'url'     => generateDerefererUrl($data['url']),
-                       'stamp'   => generateDateTime($data['timestamp'], '2'),
-                       'recs'    => $data['target_send'],
-                       'type'    => translatePoolType($data['data_type']),
-                       'zip'     => $data['zip']
+                       'sw'          => $SW,
+                       'id'          => $data['id'],
+                       'cat'         => getCategory($data['cat_id']),
+                       'pay'         => getPaymentTitlePrice($data['payment_id']),
+                       'subject'     => $data['subject'],
+                       'url'         => generateDerefererUrl($data['url']),
+                       'timestamp'   => generateDateTime($data['timestamp'], 2),
+                       'target_send' => $data['target_send'],
+                       'type'        => translatePoolType($data['data_type']),
+                       'zip'         => $data['zip']
                );
 
                // Load template
                );
 
                // Load template
@@ -112,18 +115,18 @@ if (SQL_NUMROWS($result) > 0) {
        $OUT = ''; $SW = 2;
        while ($content = SQL_FETCHARRAY($result)) {
                // Prepare data for the template
        $OUT = ''; $SW = 2;
        while ($content = SQL_FETCHARRAY($result)) {
                // Prepare data for the template
-               // @TODO Rewrite in template: stamp->timestamp_ordered,recs->max_rec,clix->clicks,perc->percents
+               // @TODO Rewrite in template: clix->clicks
                $content = array(
                $content = array(
-                       'sw'       => $SW,
-                       'cat'      => getCategory($content['cat_id']),
-                       'pay'      => getPaymentTitlePrice($content['payment_id']),
-                       'url'      => generateDerefererUrl($content['url']),
-                       'stamp'    => generateDateTime($content['timestamp_ordered'], '2'),
-                       'recs'     => $content['max_rec'],
-                       'sent'     => generateDateTime($content['timestamp_send'], '2'),
-                       'clix'     => $content['clicks'],
-                       'subject'  => $content['subject'],
-                       'percents' => translateComma($content['clicks'] / $content['max_rec'] * 100)."%",
+                       'sw'                => $SW,
+                       'cat'               => getCategory($content['cat_id']),
+                       'pay'               => getPaymentTitlePrice($content['payment_id']),
+                       'url'               => generateDerefererUrl($content['url']),
+                       'timestamp_ordered' => generateDateTime($content['timestamp_ordered'], 2),
+                       'target_send'       => $content['max_rec'],
+                       'sent'              => generateDateTime($content['timestamp_send'], 2),
+                       'clix'              => $content['clicks'],
+                       'subject'           => $content['subject'],
+                       'percents'          => translateComma($content['clicks'] / $content['max_rec'] * 100)."%",
                );
 
                // Load row template and switch colors
                );
 
                // Load row template and switch colors
index 1cd2ffc5c44f3871d5bb867d15e2c9203d834f85..86b919ff2e2d1daaa30f804d4ca728eee927c7e1 100644 (file)
@@ -78,8 +78,8 @@ if ((isFormSent()) && (isPostRequestElementSet(('action'))) && (isPostRequestEle
                        // Include link to stats
                        $content['views_total'] = "[<a href=\"{?URL?}/modules.php?module=login&amp;what=surfbar_list\">".translateComma($content['views_total'])."</a>]";
                } // END - if
                        // Include link to stats
                        $content['views_total'] = "[<a href=\"{?URL?}/modules.php?module=login&amp;what=surfbar_list\">".translateComma($content['views_total'])."</a>]";
                } // END - if
-               $content['registered']  = generateDateTime($content['registered'], '2');
-               $content['last_locked'] = generateDateTime($content['last_locked'], '2');
+               $content['registered']  = generateDateTime($content['registered'], 2);
+               $content['last_locked'] = generateDateTime($content['last_locked'], 2);
                $content['actions']     = SURFBAR_MEMBER_ACTIONS($content['id'], $content['status']);
                $content['status']      = translateSurfbarUrlStatus($content['status']);
                if (empty($content['lock_reason'])) {
                $content['actions']     = SURFBAR_MEMBER_ACTIONS($content['id'], $content['status']);
                $content['status']      = translateSurfbarUrlStatus($content['status']);
                if (empty($content['lock_reason'])) {
index 8fae67e5f569c73dd90efb8474e2fe7de6984d39..fe8e16e6fabb6768730676f08233f4e0641a3098 100644 (file)
@@ -56,7 +56,7 @@ $content = array(
        'surfbar_static_reward' => translateComma(getConfig('surfbar_static_reward')),
        'surfbar_static_time'   => createFancyTime(getConfig('surfbar_static_time')),
        'surfbar_static_lock'   => createFancyTime(getConfig('surfbar_static_lock')),
        'surfbar_static_reward' => translateComma(getConfig('surfbar_static_reward')),
        'surfbar_static_time'   => createFancyTime(getConfig('surfbar_static_time')),
        'surfbar_static_lock'   => createFancyTime(getConfig('surfbar_static_lock')),
-       'surfbar_total_urls'    => SURFBAR_GET_TOTAL_URLS('ACTIVE', '0')
+       'surfbar_total_urls'    => SURFBAR_GET_TOTAL_URLS('ACTIVE', 0)
 );
 
 // In dynamic mode we need some more data
 );
 
 // In dynamic mode we need some more data
@@ -64,7 +64,7 @@ if (getConfig('surfbar_pay_model') == 'DYNAMIC') {
        // Total URLs
        $content = array(
                'surfbar_dynamic_percent' => translateComma(getConfig('surfbar_dynamic_percent')),
        // Total URLs
        $content = array(
                'surfbar_dynamic_percent' => translateComma(getConfig('surfbar_dynamic_percent')),
-               'surfbar_total_urls'      => SURFBAR_GET_TOTAL_URLS('ACTIVE', '0'),
+               'surfbar_total_urls'      => SURFBAR_GET_TOTAL_URLS('ACTIVE', 0),
                'surfbar_user_urls'       => SURFBAR_GET_TOTAL_USER_URLS(),
                'surfbar_total_online'    => SURFBAR_DETERMINE_TOTAL_ONLINE(),
                'surfbar_total_users'     => translateComma(countSumTotalData('CONFIRMED', 'user_data', 'userid', 'status', true)),
                'surfbar_user_urls'       => SURFBAR_GET_TOTAL_USER_URLS(),
                'surfbar_total_online'    => SURFBAR_DETERMINE_TOTAL_ONLINE(),
                'surfbar_total_users'     => translateComma(countSumTotalData('CONFIRMED', 'user_data', 'userid', 'status', true)),
index 0d4ba2e0fa31bd56981eefb11cf290821b8a6878..8a472a61291bbaddbd302252407587b0e9958ea5 100644 (file)
@@ -325,7 +325,7 @@ switch ($mode) {
                                $row = array(
                                        'sw'     => $SW,
                                        'tid'    => $tid,
                                $row = array(
                                        'sw'     => $SW,
                                        'tid'    => $tid,
-                                       'stamp'  => generateDateTime($stamp, '3'),
+                                       'stamp'  => generateDateTime($stamp, 3),
                                        'userid' => $userid,
                                        'reason' => $reason,
                                        'points' => translateComma($points)
                                        'userid' => $userid,
                                        'reason' => $reason,
                                        'points' => translateComma($points)
@@ -368,10 +368,10 @@ switch ($mode) {
                // First of all create the temporary table
                $result = SQL_QUERY("CREATE TEMPORARY TABLE `{?_MYSQL_PREFIX?}_transfers_tmp` (
 `trans_id` VARCHAR(12) NOT NULL DEFAULT '',
                // First of all create the temporary table
                $result = SQL_QUERY("CREATE TEMPORARY TABLE `{?_MYSQL_PREFIX?}_transfers_tmp` (
 `trans_id` VARCHAR(12) NOT NULL DEFAULT '',
-`party_userid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
-`points` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
+`party_userid` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+`points` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
 `reason` VARCHAR(255) NOT NULL DEFAULT '',
 `reason` VARCHAR(255) NOT NULL DEFAULT '',
-`time_trans` VARCHAR(10) NOT NULL DEFAULT '0',
+`time_trans` VARCHAR(10) NOT NULL DEFAULT 0,
 `trans_type` ENUM('IN','OUT') NOT NULL DEFAULT 'IN',
 KEY (`party_userid`)
 ) TYPE=HEAP", __FILE__, __LINE__);
 `trans_type` ENUM('IN','OUT') NOT NULL DEFAULT 'IN',
 KEY (`party_userid`)
 ) TYPE=HEAP", __FILE__, __LINE__);
@@ -414,7 +414,7 @@ KEY (`party_userid`)
 
                                // Prepare content for template
                                $content['sw']     = $SW;
 
                                // Prepare content for template
                                $content['sw']     = $SW;
-                               $content['time']   = generateDateTime($content['time_trans'], '3');
+                               $content['time']   = generateDateTime($content['time_trans'], 3);
                                $content['points'] = translateComma($content['points']);
 
                                // Load row template
                                $content['points'] = translateComma($content['points']);
 
                                // Load row template
@@ -533,7 +533,7 @@ LIMIT 1",
                if (SQL_NUMROWS($result) == 1) {
                        // Load newest transaction
                        list($newest) = SQL_FETCHROW($result);
                if (SQL_NUMROWS($result) == 1) {
                        // Load newest transaction
                        list($newest) = SQL_FETCHROW($result);
-                       $content['settings'] = sprintf(getMessage('TRANSFER_LATEST_IS'), generateDateTime($newest, '3'));
+                       $content['settings'] = sprintf(getMessage('TRANSFER_LATEST_IS'), generateDateTime($newest, 3));
                } else {
                        // Load template
                        $content['settings'] = loadTemplate('member_transfer_settings', true);
                } else {
                        // Load template
                        $content['settings'] = loadTemplate('member_transfer_settings', true);
index 6f9e35d92cae3d9076f7fc578bbe65ac2768a157..100c4b027c28a989d198b2a345aed92ecc190cea 100644 (file)
@@ -60,7 +60,7 @@ WHERE `id`=%s LIMIT 1",
        $content = SQL_FETCHARRAY($result_data);
 
        // Translate some data
        $content = SQL_FETCHARRAY($result_data);
 
        // Translate some data
-       $content['timestamp'] = generateDateTime($content['timestamp'], '2');
+       $content['timestamp'] = generateDateTime($content['timestamp'], 2);
        $content['category']  = getCategory($content['cat_id']);
        $content['points']    = translateComma($content['points']);
        $content['is_notify'] = translateYesNo($content['is_notify']);
        $content['category']  = getCategory($content['cat_id']);
        $content['points']    = translateComma($content['points']);
        $content['is_notify'] = translateYesNo($content['is_notify']);
@@ -70,7 +70,7 @@ WHERE `id`=%s LIMIT 1",
 
        // Get timestamp from insert
        $content['user_status'] = sprintf(getMessage('MEMBER_MAIL_BONUS_CONFIRMED_ON'),
 
        // Get timestamp from insert
        $content['user_status'] = sprintf(getMessage('MEMBER_MAIL_BONUS_CONFIRMED_ON'),
-       generateDateTime(getTimestampFromUserStats('bonusid', $content['id']), '2')
+       generateDateTime(getTimestampFromUserStats('bonusid', $content['id']), 2)
        );
 
        // Display it depending on mail (data) type
        );
 
        // Display it depending on mail (data) type
@@ -93,7 +93,7 @@ WHERE s.id=%s LIMIT 1",
        $content = SQL_FETCHARRAY($result_data);
 
        // Translate some data
        $content = SQL_FETCHARRAY($result_data);
 
        // Translate some data
-       $content['timestamp'] = generateDateTime($content['timestamp'], '2');
+       $content['timestamp'] = generateDateTime($content['timestamp'], 2);
        $content['category']  = getCategory($content['cat_id']);
        $content['points']    = translateComma($content['points']);
        $content['time']      = createFancyTime($content['time']);
        $content['category']  = getCategory($content['cat_id']);
        $content['points']    = translateComma($content['points']);
        $content['time']      = createFancyTime($content['time']);
@@ -101,7 +101,7 @@ WHERE s.id=%s LIMIT 1",
 
        // Get timestamp from insert
        $content['user_status'] = sprintf(getMessage('MEMBER_MAIL_NORMAL_CONFIRMED_ON'),
 
        // Get timestamp from insert
        $content['user_status'] = sprintf(getMessage('MEMBER_MAIL_NORMAL_CONFIRMED_ON'),
-       generateDateTime(getTimestampFromUserStats('mailid', $content['id']), '2')
+       generateDateTime(getTimestampFromUserStats('mailid', $content['id']), 2)
        );
 
        // Display it depending on mail (data) type
        );
 
        // Display it depending on mail (data) type
@@ -188,7 +188,7 @@ LIMIT 1",
                                'type'    => $type,
                                'subject' => $subject,
                                'sender'  => $sender,
                                'type'    => $type,
                                'subject' => $subject,
                                'sender'  => $sender,
-                               'stamp'   => generateDateTime($timestamp, '2'),
+                               'stamp'   => generateDateTime($timestamp, 2),
                                'cat'     => getCategory($cat),
                                'points'  => translateComma($pay),
                        );
                                'cat'     => getCategory($cat),
                                'points'  => translateComma($pay),
                        );
index 8a50f51406e6af99ef4f778bd6c961e3ae6ad825..56b201c8752a7fb9a26f04314a1258b6d7d0b991 100644 (file)
@@ -95,7 +95,7 @@ if ((!isGetRequestElementSet('mode')) || (getRequestElement('mode') == 'choose')
                while ($data = SQL_FETCHARRAY($result)) {
                        // Prepare data for output
                        $rowContent = array(
                while ($data = SQL_FETCHARRAY($result)) {
                        // Prepare data for output
                        $rowContent = array(
-                               'stamp'    => generateDateTime($data['wernis_timestamp'], '2'),
+                               'stamp'    => generateDateTime($data['wernis_timestamp'], 2),
                                'points'   => translateComma($data['wernis_amount']),
                                'acc'      => bigintval($data['wernis_account']),
                                'status'   => WERNIS_TRANSFER_STATUS($data['wernis_type']),
                                'points'   => translateComma($data['wernis_amount']),
                                'acc'      => bigintval($data['wernis_account']),
                                'status'   => WERNIS_TRANSFER_STATUS($data['wernis_type']),
index a18ee5467fd6db9b9de6317f95986c6cab495c7a..da070a90e17d75038237b5c3977f8122ccb2e936 100644 (file)
@@ -48,7 +48,7 @@ if ((getOutputMode() == 1) || (!isResetModeEnabled())) return;
 //* DEBUG: */ outputHtml(basename(__FILE__)."<br />");
 
 // Reset surfbar counter
 //* DEBUG: */ outputHtml(basename(__FILE__)."<br />");
 
 // Reset surfbar counter
-updateConfiguration('surfbar_monthly_counter', '0');
+updateConfiguration('surfbar_monthly_counter', 0);
 
 //
 ?>
 
 //
 ?>
index d799dedfebab43ae84a41f34f886dc9da390552b..e0914d2dd293524b5298152799fe49863cecdae6 100644 (file)
@@ -149,13 +149,13 @@ if ((!isInstalling()) && (!isInstallationPhase())) {
        setConfigEntry('OUTPUT_MODE', 'direct');
 
        // This hack prevents a backtrace in CSS output
        setConfigEntry('OUTPUT_MODE', 'direct');
 
        // This hack prevents a backtrace in CSS output
-       if (getOutputMode() == '1') {
+       if (getOutputMode() == 1) {
                // Problem with config so set output mode
                setConfigEntry('OUTPUT_MODE', 'render');
        } // END - if
 
        // Set other missing variables
                // Problem with config so set output mode
                setConfigEntry('OUTPUT_MODE', 'render');
        } // END - if
 
        // Set other missing variables
-       if (!isOutputModeSet()) setOutputMode('0');
+       if (!isOutputModeSet()) setOutputMode(0);
 
        // Include more
        foreach (array('inc/databases.php','inc/db/lib.php','inc/session.php','inc/versions.php','inc/install-functions.php','inc/load_config.php') as $inc) {
 
        // Include more
        foreach (array('inc/databases.php','inc/db/lib.php','inc/session.php','inc/versions.php','inc/install-functions.php','inc/load_config.php') as $inc) {
@@ -167,7 +167,7 @@ if ((!isInstalling()) && (!isInstallationPhase())) {
        loadIncludeOnce('inc/load_config.php');
 
        // Are we installation routine?
        loadIncludeOnce('inc/load_config.php');
 
        // Are we installation routine?
-       if ((!isInstalling()) && (getOutputMode() != '1') && (getOutputMode() != -1)) {
+       if ((!isInstalling()) && (getOutputMode() != 1) && (getOutputMode() != -1)) {
                // You have to install first!
                redirectToUrl('install.php');
        } // END - if
                // You have to install first!
                redirectToUrl('install.php');
        } // END - if
index abcd20f7e55baeeec9d593f9df47c46634f3ea42..a82071dc9d05a7a52f2593a2304b43b6cff7dfc2 100644 (file)
@@ -253,7 +253,7 @@ function checkModulePermissions ($mod = '') {
 
                        // Destroy cache here
                        // @TODO Rewrite this to a filter
 
                        // Destroy cache here
                        // @TODO Rewrite this to a filter
-                       if (getOutputMode() == '0') rebuildCacheFile('modules', 'modules');
+                       if (getOutputMode() == 0) rebuildCacheFile('modules', 'modules');
 
                        // And reload data
                        unset($GLOBALS['module_status'][$mod]);
 
                        // And reload data
                        unset($GLOBALS['module_status'][$mod]);
@@ -386,7 +386,7 @@ function addMenuDescription ($accessLevel, $FQFN, $return = false, $output = tru
                                //* DEBUG: */ outputHtml(__LINE__.'+'.$type."+<br />");
                                // Add closing div and br-tag
                                $OUT .= "</div><br />\n";
                                //* DEBUG: */ outputHtml(__LINE__.'+'.$type."+<br />");
                                // Add closing div and br-tag
                                $OUT .= "</div><br />\n";
-                               $GLOBALS['nav_depth'] = '0';
+                               $GLOBALS['nav_depth'] = 0;
 
                                // Run the filter chain
                                $ret = runFilterChain('post_youhere_line', array('access_level' => $accessLevel, 'type' => $type, 'content' => ""));
 
                                // Run the filter chain
                                $ret = runFilterChain('post_youhere_line', array('access_level' => $accessLevel, 'type' => $type, 'content' => ""));
@@ -1010,7 +1010,7 @@ function getCategory ($cid) {
        $ret = getMessage('_CATEGORY_404');
 
        // Is the category id set?
        $ret = getMessage('_CATEGORY_404');
 
        // Is the category id set?
-       if ($cid == '0') {
+       if ($cid == 0) {
                // No category
                $ret = getMessage('_CATEGORY_NONE');
        } elseif ($cid > 0) {
                // No category
                $ret = getMessage('_CATEGORY_NONE');
        } elseif ($cid > 0) {
@@ -1123,7 +1123,7 @@ function removeReceiver (&$receivers, $key, $userid, $pool_id, $stats_id = '', $
 function countSumTotalData ($search, $tableName, $lookFor = 'id', $whereStatement = 'userid', $countRows = false, $add = '') {
        $ret = 0;
        //* DEBUG: */ outputHtml($search.'/'.$tableName.'/'.$lookFor.'/'.$whereStatement.'/'.$add.'<br />');
 function countSumTotalData ($search, $tableName, $lookFor = 'id', $whereStatement = 'userid', $countRows = false, $add = '') {
        $ret = 0;
        //* DEBUG: */ outputHtml($search.'/'.$tableName.'/'.$lookFor.'/'.$whereStatement.'/'.$add.'<br />');
-       if ((empty($search)) && ($search != '0')) {
+       if ((empty($search)) && ($search != 0)) {
                // Count or sum whole table?
                if ($countRows === true) {
                        // Count whole table
                // Count or sum whole table?
                if ($countRows === true) {
                        // Count whole table
@@ -1158,7 +1158,7 @@ function countSumTotalData ($search, $tableName, $lookFor = 'id', $whereStatemen
                $ret = '0.00000';
        } elseif (''.$ret.'' == '') {
                // Fix empty result
                $ret = '0.00000';
        } elseif (''.$ret.'' == '') {
                // Fix empty result
-               $ret = '0';
+               $ret = 0;
        }
 
        // Return value
        }
 
        // Return value
@@ -1212,13 +1212,13 @@ function getReferalLevelPercents ($level) {
  * add_mode    = Add points only to $userid or also refs? (WARNING! Changing 'ref' to 'direct'
  *               for default value will cause no referal will get points ever!!!)
  */
  * add_mode    = Add points only to $userid or also refs? (WARNING! Changing 'ref' to 'direct'
  *               for default value will cause no referal will get points ever!!!)
  */
-function addPointsThroughReferalSystem ($subject, $userid, $points, $sendNotify = false, $rid = '0', $locked = false, $add_mode = 'ref') {
+function addPointsThroughReferalSystem ($subject, $userid, $points, $sendNotify = false, $rid = 0, $locked = false, $add_mode = 'ref') {
        //* DEBUG: */ outputHtml("----------------------- <font color=\"#00aa00\">".__FUNCTION__." - ENTRY</font> ------------------------<ul><li>\n");
        // Convert mode to lower-case
        $add_mode = strtolower($add_mode);
 
        // When $userid = 0 add points to jackpot
        //* DEBUG: */ outputHtml("----------------------- <font color=\"#00aa00\">".__FUNCTION__." - ENTRY</font> ------------------------<ul><li>\n");
        // Convert mode to lower-case
        $add_mode = strtolower($add_mode);
 
        // When $userid = 0 add points to jackpot
-       if (($userid == '0') && (isExtensionActive('jackpot'))) {
+       if (($userid == 0) && (isExtensionActive('jackpot'))) {
                // Add points to jackpot
                addPointsToJackpot($points);
                return;
                // Add points to jackpot
                addPointsToJackpot($points);
                return;
index a93fa52e7d4dc614f90094151fac49b4bc4eabe9..b926258d9c04e97561c3dc0bb75220670e181c86 100644 (file)
@@ -79,7 +79,7 @@ if ($GLOBALS['pool_cnt'] < getConfig('max_send')) {
                                $RECEIVERS = array($DATA['receivers']);
                        } else {
                                // No users left
                                $RECEIVERS = array($DATA['receivers']);
                        } else {
                                // No users left
-                               $RECEIVERS = array('0');
+                               $RECEIVERS = array(0);
                        }
                        $dummy = $RECEIVERS;
 
                        }
                        $dummy = $RECEIVERS;
 
index f5afc02e4cc8d043291fb4029c9f566a64a89e84..9ddd52256629c457dc6da8900197218251cd4e82 100644 (file)
@@ -61,7 +61,7 @@ if (isExtensionActive('html_mail')) {
 }
 
 // Reset variables
 }
 
 // Reset variables
-$cnt2 = 0; $lastSentId = 0; $cnt_back = array('0'); $pointsBack = array('0');
+$cnt2 = 0; $lastSentId = 0; $cnt_back = array(0); $pointsBack = array(0);
 if (SQL_NUMROWS($result_main) > 0) {
        // Parse all mails
        while ($DATA = SQL_FETCHARRAY($result_main, 0, false)) {
 if (SQL_NUMROWS($result_main) > 0) {
        // Parse all mails
        while ($DATA = SQL_FETCHARRAY($result_main, 0, false)) {
@@ -84,7 +84,7 @@ if (SQL_NUMROWS($result_main) > 0) {
                                $RECEIVERS = array($DATA['receivers']);
                        } else {
                                // No users left
                                $RECEIVERS = array($DATA['receivers']);
                        } else {
                                // No users left
-                               $RECEIVERS = array('0');
+                               $RECEIVERS = array(0);
                        }
                        $dummy = $RECEIVERS;
 
                        }
                        $dummy = $RECEIVERS;
 
@@ -258,7 +258,7 @@ if (SQL_NUMROWS($result_main) > 0) {
                                        SQL_FREERESULT($result_stats);
                                } else {
                                        // User does not exists so we have add the sender's points back to sender's account
                                        SQL_FREERESULT($result_stats);
                                } else {
                                        // User does not exists so we have add the sender's points back to sender's account
-                                       if (($RECEIVERS['id'] == '0') || (empty($RECEIVERS['id']))) {
+                                       if (($RECEIVERS['id'] == 0) || (empty($RECEIVERS['id']))) {
                                                // List was empty
                                                SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_pool` SET `data_type`='SEND' WHERE `id`=%s LIMIT 1",
                                                        array(bigintval($DATA['id'])), __FILE__, __LINE__);
                                                // List was empty
                                                SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_pool` SET `data_type`='SEND' WHERE `id`=%s LIMIT 1",
                                                        array(bigintval($DATA['id'])), __FILE__, __LINE__);
index ab6e348bb1d2f85f6b2d8226545986e152ac8ca0..b3686d40fc066004e140bb25dbf3cb30afab6a67 100644 (file)
@@ -68,7 +68,7 @@ if (SQL_NUMROWS($result_bonus) > 0) {
                        array(bigintval($content['userid'])), __FILE__, __LINE__);
 
                // Translate some data
                        array(bigintval($content['userid'])), __FILE__, __LINE__);
 
                // Translate some data
-               $content['timestamp'] = generateDateTime($content['timestamp_ordered'], '2');
+               $content['timestamp'] = generateDateTime($content['timestamp_ordered'], 2);
 
                // Load email template and send email
                $message = loadEmailTemplate('member_stats_bonus', $content, bigintval($content['userid']));
 
                // Load email template and send email
                $message = loadEmailTemplate('member_stats_bonus', $content, bigintval($content['userid']));
index 998e929438226d9ac7308dd8a7076d429d6fa6f2..6a4fb039433795320cb42f23644c2f208f7ad001 100644 (file)
@@ -73,9 +73,9 @@ LIMIT 1",
 
                        // Prepare all data for the template
                        $content = array(
 
                        // Prepare all data for the template
                        $content = array(
-                               'activated' => generateDateTime($content['holiday_activated'], '1'),
-                               'start'     => generateDateTime($content['holiday_start']    , '1'),
-                               'end'       => generateDateTime($content['holiday_end']      , '1')
+                               'activated' => generateDateTime($content['holiday_activated'], 1),
+                               'start'     => generateDateTime($content['holiday_start']    , 1),
+                               'end'       => generateDateTime($content['holiday_end']      , 1)
                        );
 
                        // Send email to user
                        );
 
                        // Send email to user
index d1ed8e4b652561ac134fc5cf5f41c68fdcafc329..560e9cb4b4a31dcfae39cd6595d08f11c771aa53 100644 (file)
@@ -70,14 +70,14 @@ ORDER BY
                // We need to send-out notifications...
                while ($content = SQL_FETCHARRAY($result)) {
                        // Translate timestamp
                // We need to send-out notifications...
                while ($content = SQL_FETCHARRAY($result)) {
                        // Translate timestamp
-                       $content['joined'] = generateDateTime($content['joined'], '0');
+                       $content['joined'] = generateDateTime($content['joined'], 0);
 
 
-                       if (round($content['last_update']) == '0') {
+                       if (round($content['last_update']) == 0) {
                                // Has never changed his accont
                                $content['last_update'] = getMessage('PROFILE_NEVER_CHANGED');
                        } else {
                                // Has changed his account
                                // Has never changed his accont
                                $content['last_update'] = getMessage('PROFILE_NEVER_CHANGED');
                        } else {
                                // Has changed his account
-                               $content['last_update'] = generateDateTime($content['last_update'], '0');
+                               $content['last_update'] = generateDateTime($content['last_update'], 0);
                        }
 
                        // Load email template and send mail away
                        }
 
                        // Load email template and send mail away
index 219918f6b25e32b310880266b7310ea89f22756b..cd64492f18d13a9fd80b9c12b19e1faa74d39e96 100644 (file)
@@ -53,7 +53,7 @@ if ((isInstallationPhase())) $STYLES[] = 'install.css';
 if (!isConfigEntrySet('css_php')) setConfigEntry('css_php', 'FILE');
 
 // Output CSS files or content or link to css.php ?
 if (!isConfigEntrySet('css_php')) setConfigEntry('css_php', 'FILE');
 
 // Output CSS files or content or link to css.php ?
-if ((getOutputMode() == '1') || (getConfig('css_php') == 'DIRECT')) {
+if ((getOutputMode() == 1) || (getConfig('css_php') == 'DIRECT')) {
        // Load CSS files
        $STYLES = merge_array($STYLES, getExtensionCssFiles());
 
        // Load CSS files
        $STYLES = merge_array($STYLES, getExtensionCssFiles());
 
@@ -82,7 +82,7 @@ if ((getOutputMode() == '1') || (getConfig('css_php') == 'DIRECT')) {
                        } // END - switch
                } // END - if
        } // END - foreach
                        } // END - switch
                } // END - if
        } // END - foreach
-} elseif ((getOutputMode() == '0') || (getConfig('css_php') == 'INLINE')) {
+} elseif ((getOutputMode() == 0) || (getConfig('css_php') == 'INLINE')) {
        // Load CSS files
        $STYLES = merge_array($STYLES, getExtensionCssFiles());
 
        // Load CSS files
        $STYLES = merge_array($STYLES, getExtensionCssFiles());
 
index 34e046f75e07a08b054393d5ed0001a79f36eace..e547f8c01a3c4af073ebfd30dc80f8d3ce7f7d81 100644 (file)
@@ -48,7 +48,7 @@ if ((getOutputMode() == 1) || (!isResetModeEnabled())) return;
 //* DEBUG: */ outputHtml(basename(__FILE__)."<br />");
 
 // Reset the surfbar counter
 //* DEBUG: */ outputHtml(basename(__FILE__)."<br />");
 
 // Reset the surfbar counter
-updateConfiguration('surfbar_weekly_counter', '0');
+updateConfiguration('surfbar_weekly_counter', 0);
 
 //
 ?>
 
 //
 ?>
index 4266bc4fc2cd07d310178255571def8196b12ce0..9d5ed5ce8757d761fefb5ed2aedcb13c0ae25515 100644 (file)
--- a/login.php
+++ b/login.php
@@ -43,7 +43,7 @@ require('inc/libs/security_functions.php');
 $GLOBALS['module'] = 'login';
 
 // Set 'CSS-Mode'
 $GLOBALS['module'] = 'login';
 
 // Set 'CSS-Mode'
-$GLOBALS['output_mode'] = 0;
+$GLOBALS['output_mode'] = -2;
 
 // Load the required file(s)
 require('inc/config-global.php');
 
 // Load the required file(s)
 require('inc/config-global.php');
index 78c1948e26cb5de6fe988dd675d2ff2243b7d49f..9ee907a62c7f07f26199305e0dfc274a85ad12b0 100644 (file)
@@ -172,7 +172,7 @@ if (($url_userid) > 0 && (($url_mid > 0) || ($url_bid > 0)) && (getTotalFatalErr
                                        // Was that mail a valid one?
                                        if ($isValid === true) {
                                                // If time is zero seconds we have a sponsor mail. 1 Second shall be set to avoid problems
                                        // Was that mail a valid one?
                                        if ($isValid === true) {
                                                // If time is zero seconds we have a sponsor mail. 1 Second shall be set to avoid problems
-                                               if (($time == '0') && ($payment > 0)) { $URL = getConfig('URL'); $time = '1'; }
+                                               if (($time == 0) && ($payment > 0)) { $URL = getConfig('URL'); $time = 1; }
                                                if (($time > 0) && (($payment > 0) || ($points > 0))) {
                                                        // Export data into constants for the template
                                                        $content = array(
                                                if (($time > 0) && (($payment > 0) || ($points > 0))) {
                                                        // Export data into constants for the template
                                                        $content = array(
index e60943d5b44768fbe44b1334912bfeda952ff475..dc8fb61b854b723f8ee4b934059afe78e553a123 100644 (file)
@@ -44,7 +44,7 @@ $GLOBALS['startTime'] = microtime(true);
 
 // Tell everyone we are in this module
 $GLOBALS['module'] = 'mailid';
 
 // Tell everyone we are in this module
 $GLOBALS['module'] = 'mailid';
-$GLOBALS['output_mode'] = 0;
+$GLOBALS['output_mode'] = -1;
 
 // Load the required file(s)
 require('inc/config-global.php');
 
 // Load the required file(s)
 require('inc/config-global.php');
@@ -171,7 +171,7 @@ if (($url_userid) > 0 && (($url_mid > 0) || ($url_bid > 0)) && (getTotalFatalErr
 
                                        // Is this entry valid?
                                        if ($isValid === true) {
 
                                        // Is this entry valid?
                                        if ($isValid === true) {
-                                               if (($time == '0') && ($payment > 0)) $time = '1';
+                                               if (($time == 0) && ($payment > 0)) $time = 1;
                                                if (($time > 0) && ($payment > 0)) {
                                                        $img_code = 0;
                                                        if (!empty($code)) {
                                                if (($time > 0) && ($payment > 0)) {
                                                        $img_code = 0;
                                                        if (!empty($code)) {
@@ -259,7 +259,7 @@ if (($url_userid) > 0 && (($url_mid > 0) || ($url_bid > 0)) && (getTotalFatalErr
                                                                                // Add points
                                                                                // @TODO Try to rewrite the following unset()
                                                                                unset($GLOBALS['ref_level']);
                                                                                // Add points
                                                                                // @TODO Try to rewrite the following unset()
                                                                                unset($GLOBALS['ref_level']);
-                                                                               addPointsThroughReferalSystem('mailid_okay', $url_userid, $payment, false, '0', $locked);
+                                                                               addPointsThroughReferalSystem('mailid_okay', $url_userid, $payment, false, 0, $locked);
 
                                                                                // Shall I add bonus points for "turbo clickers" ?
                                                                                if (getExtensionVersion('bonus') >= '0.2.2') {
 
                                                                                // Shall I add bonus points for "turbo clickers" ?
                                                                                if (getExtensionVersion('bonus') >= '0.2.2') {
index ec0c52d0c20765a7051475d0918787c568d1e6f0..b2a330c6753dc9ec0976274afddf761e7e2618ef 100644 (file)
@@ -42,7 +42,7 @@ require('inc/libs/security_functions.php');
 $GLOBALS['module'] = 'sponsor_confirm';
 
 // Set 'CSS-Mode'
 $GLOBALS['module'] = 'sponsor_confirm';
 
 // Set 'CSS-Mode'
-$GLOBALS['output_mode'] = 0;
+$GLOBALS['output_mode'] = -2;
 
 // Load the required file(s)
 require('inc/config-global.php');
 
 // Load the required file(s)
 require('inc/config-global.php');
index 5c8de09dc8c71b4bcfb9b27ab6ba05d8bccd6809..eb6df742f9def6682e5e835b306739537e258f1c 100644 (file)
@@ -42,7 +42,7 @@ require('inc/libs/security_functions.php');
 $GLOBALS['module'] = 'sponsor_ref';
 
 // Set 'CSS-Mode'
 $GLOBALS['module'] = 'sponsor_ref';
 
 // Set 'CSS-Mode'
-$GLOBALS['output_mode'] = 0;
+$GLOBALS['output_mode'] = -2;
 
 // Load the required file(s)
 require('inc/config-global.php');
 
 // Load the required file(s)
 require('inc/config-global.php');
index 5d9a0ed7a226985deec55b8218358d01035f7cbe..5789fec6be7c59faecaf79f7a4e792a12ad5b316 100644 (file)
@@ -9,7 +9,7 @@
        </td>
        <td class="switch_mem$content[sw] top2" width="30%" align="center">
                {--EMAIL_TIMESTAMP--}:<br />
        </td>
        <td class="switch_mem$content[sw] top2" width="30%" align="center">
                {--EMAIL_TIMESTAMP--}:<br />
-               <strong>$content[stamp]</strong>
+               <strong>$content[timestamp]</strong>
        </td>
 </tr>
 <tr>
        </td>
 </tr>
 <tr>
@@ -29,7 +29,7 @@
 <tr>
        <td align="center" class="switch_mem$content[sw] top right">
                {--EMAIL_RECEIVERS--}:<br />
 <tr>
        <td align="center" class="switch_mem$content[sw] top right">
                {--EMAIL_RECEIVERS--}:<br />
-               <strong>$content[recs]</strong>
+               <strong>$content[target_send]</strong>
        </td>
        <td align="center" class="switch_mem$content[sw] top right">
                {--EMAIL_TYPE--}:<br />
        </td>
        <td align="center" class="switch_mem$content[sw] top right">
                {--EMAIL_TYPE--}:<br />
index f7f5554a89bbd61d1175f6861f25e3b9a0ea3f69..a1d33cab6b4cf744d9d4591c774baeb5490d3e11 100644 (file)
@@ -5,7 +5,7 @@
        </td>
        <td class="switch_mem$content[sw] top2" width="54%" align="center">
                {--EMAIL_TIMESTAMP--}:<br />
        </td>
        <td class="switch_mem$content[sw] top2" width="54%" align="center">
                {--EMAIL_TIMESTAMP--}:<br />
-               <strong>$content[stamp]</strong>
+               <strong>$content[timestamp_ordered]</strong>
        </td>
 </tr>
 <tr>
        </td>
 </tr>
 <tr>
@@ -31,7 +31,7 @@
 <tr>
        <td align="center" class="switch_mem$content[sw] top right" width="30%">
                {--EMAIL_RECEIVERS--}:<br />
 <tr>
        <td align="center" class="switch_mem$content[sw] top right" width="30%">
                {--EMAIL_RECEIVERS--}:<br />
-               <strong>$content[recs]</strong>
+               <strong>$content[target_send]</strong>
        </td>
        <td align="center" class="switch_mem$content[sw] top right" width="16%">
                {--EMAIL_CONFIRMED--}:<br />
        </td>
        <td align="center" class="switch_mem$content[sw] top right" width="16%">
                {--EMAIL_CONFIRMED--}:<br />