Rewrote 'we' word a little, rewrote mail order to use SQL_INSERTID() instead of anoth...
authorRoland Häder <roland@mxchange.org>
Sun, 7 Oct 2012 11:41:02 +0000 (11:41 +0000)
committerRoland Häder <roland@mxchange.org>
Sun, 7 Oct 2012 11:41:02 +0000 (11:41 +0000)
100 files changed:
ajax.php
inc/config-functions.php
inc/daily/daily_holiday.php
inc/daily/daily_profile.php
inc/db/lib-mysql3.php
inc/expression-functions.php
inc/extensions-functions.php
inc/filter-functions.php
inc/filter/earning_filter.php
inc/filters.php
inc/fix_filters.php
inc/fix_refsystem.php
inc/fix_user_points.php
inc/functions.php
inc/http-functions.php
inc/inc-functions.php
inc/install-functions.php
inc/language-functions.php
inc/libs/admins_functions.php
inc/libs/autopurge_functions.php
inc/libs/beg_functions.php
inc/libs/birthday_functions.php
inc/libs/bonus_functions.php
inc/libs/coupon_functions.php
inc/libs/doubler_functions.php
inc/libs/forced_functions.php
inc/libs/jackpot_functions.php
inc/libs/mediadata_functions.php
inc/libs/network_functions.php
inc/libs/optimize_functions.php
inc/libs/order_functions.php
inc/libs/payout_functions.php
inc/libs/profile_functions.php
inc/libs/rallye_functions.php
inc/libs/refback_functions.php
inc/libs/rewrite_functions.php
inc/libs/sponsor_functions.php
inc/libs/surfbar_functions.php
inc/libs/theme_functions.php
inc/libs/user_functions.php
inc/libs/wernis_functions.php
inc/libs/yoomedia_functions.php
inc/loader/load-admins.php
inc/loader/load-extension.php
inc/loader/load-modules.php
inc/loader/load-points_data.php
inc/mails/doubler_mails.php
inc/module-functions.php
inc/modules/admin/admin-inc.php
inc/modules/admin/overview-inc.php
inc/modules/admin/what-adminedit.php
inc/modules/admin/what-config_imprint.php
inc/modules/admin/what-config_network_api.php
inc/modules/admin/what-config_network_types.php
inc/modules/admin/what-extensions.php
inc/modules/admin/what-guestedit.php
inc/modules/admin/what-list_country.php
inc/modules/admin/what-list_coupon.php
inc/modules/admin/what-list_links.php
inc/modules/admin/what-list_network_array_translation.php
inc/modules/admin/what-list_network_request_params.php
inc/modules/admin/what-list_network_types.php
inc/modules/admin/what-list_network_vcheck_params.php
inc/modules/admin/what-list_networks.php
inc/modules/admin/what-list_refs.php
inc/modules/admin/what-list_sponsor_pay.php
inc/modules/admin/what-list_task.php
inc/modules/admin/what-list_unconfirmed.php
inc/modules/admin/what-send_coupon.php
inc/modules/guest/what-login.php
inc/modules/member/what-cash_coupon.php
inc/modules/member/what-categories.php
inc/modules/member/what-earning.php
inc/modules/member/what-holiday.php
inc/modules/member/what-list_coupon.php
inc/modules/member/what-nickname.php
inc/modules/member/what-order.php
inc/modules/member/what-points.php
inc/modules/member/what-subids.php
inc/modules/member/what-transfer.php
inc/mysql-manager.php
inc/pool/pool-bonus.php
inc/pool/pool-user.php
inc/purge/purge-coupon.php
inc/purge/purge-mails.php
inc/purge/purge-tasks.php
inc/referral-functions.php
inc/request-functions.php
inc/sql-functions.php
inc/stats-functions.php
inc/template-functions.php
inc/wrapper-functions.php
inc/xml-functions.php
install.php
js/ajax-common.js
js/ajax-test.js
sponsor_ref.php
templates/de/html/js/js_admin_ajax.tpl
templates/de/html/js/js_install_ajax.tpl
view.php

index 8ef804fb8f6e2cf56ae54b11781e5833d1f611c2..3dcd835c8d29104fceba3bcbe86d38de80dba4da 100644 (file)
--- a/ajax.php
+++ b/ajax.php
@@ -72,7 +72,7 @@ if ((getHttpRequestMethod() == 'POST') && (isPostRequestElementSet('level'))) {
                // Process the request
                processAjaxRequest();
 
-               // Do we have an error? ('200 OK' is fine)
+               // Is there an error? ('200 OK' is fine)
                if ((getHttpStatus() != '200 OK') && (getHttpStatus() != '404 NOT FOUND')) {
                        // The process was handled but didn't work
                        reportBug(__FUNCTION__, __LINE__, 'AJAX request is valid but does not do anything.');
index 87c8e28d8b0ed746ab299d87ff1ccbb570b229b0..4b597a204d5ffadcd89d81a116aea04c1a28e0e8 100644 (file)
@@ -206,13 +206,13 @@ function updateOldConfigFile () {
                                // Default comment
                                $comment = str_replace('_', '-', $new);
 
-                               // Do we have a special comment?
+                               // Is there a special comment?
                                if (isset($comments[$new])) {
                                        // Then use it
                                        $comment = $comments[$new];
                                } // END - if
 
-                               // Do we need to make $new lowercase?
+                               // Does $new needs to be lower-case?
                                $oldNew = $new;
                                if (in_array($new, $lowerCase)) {
                                        // Then do so... :)
@@ -283,7 +283,7 @@ function updateConfiguration ($entries, $values, $updateMode = '', $config = '0'
        // Default is empty SQL
        $SQL = '';
 
-       // Do we have multiple entries?
+       // Is there multiple entries?
        if (is_array($entries)) {
                // Walk through all
                foreach ($entries as $idx => $entry) {
index 23bf85b4e531c5945df7ad516b782d4862925ff6..9fad7691ad2a8073ef54fd4ad353a91f5fa5d183 100644 (file)
@@ -81,7 +81,7 @@ WHERE
 LIMIT 1",
                        array(bigintval($content['userid'])), __FILE__, __LINE__);
 
-               // Do we have an entry?
+               // Is there an entry?
                if (SQL_NUMROWS($result_holiday) == 1) {
                        // Okay, this user can be send away to holiday...
                        $content = merge_array($content, SQL_FETCHARRAY($result_holiday));
index 7801f8e62d0a48288444a4ee5be9706effd273fe..97a34f5ab52c1ac69683878a9a74bc4697c33e41 100644 (file)
@@ -75,7 +75,7 @@ WHERE
 ORDER BY
        `userid` ASC", __FILE__, __LINE__);
 
-       // Do we have some notifications to sent?
+       // Are there some notifications to sent?
        if (!SQL_HASZERONUMS($result)) {
                // We need to send-out notifications...
                while ($content = SQL_FETCHARRAY($result)) {
index 1da0f27c5a2befb19ff39dbd25d57bdc75fd0f66..c5f502723f85aac5bd43a8d7ece643439bbcb9cf 100644 (file)
@@ -42,7 +42,7 @@ if (!defined('__SECURITY')) {
 
 // SQL queries
 function SQL_QUERY ($sqlString, $F, $L, $enableCodes = true) {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__][$sqlString])) {
                //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called: ' . $sqlString);
 
@@ -305,7 +305,7 @@ function SQL_INSERTID () {
 
 // Escape a string for the database
 function SQL_ESCAPE ($str, $secureString = true, $strip = true) {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS['sql_escapes']['' . $str . ''])) {
                // Prepare the string here
                $str = SQL_PREPARE_SQL_STRING($str);
@@ -423,7 +423,7 @@ function SQL_ALTER_TABLE ($sql, $F, $L, $enableCodes = true) {
                        // Debug log
                        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'columnName=' . $columnName . ',idx=' . $idx . ',sql=' . $sql . ',hasZeroNums=' . intval(ifSqlColumnExists($tableName, $columnName)));
 
-                       // Do we have no entry on ADD or an entry on DROP/CHANGE?
+                       // Is there no entry on ADD or an entry on DROP/CHANGE?
                        if (((!ifSqlColumnExists($tableName, $columnName)) && (isInString('ADD', $sql))) || ((ifSqlColumnExists($tableName, $columnName)) && ((isInString('DROP', $sql)) || ((isInString('CHANGE', $sql)) && ($idx == 4) && ((!ifSqlColumnExists($tableName, $tableArray[5])) || ($columnName == $tableArray[5])))))) {
                                // Do the query
                                //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Executing: ' . $sql);
@@ -531,7 +531,7 @@ function SQL_SET_LINK ($link) {
 
 // Checks if the link is up
 function SQL_IS_LINK_UP () {
-       // Do we have cached this?
+       // Is there cached this?
        if (!isset($GLOBALS['is_sql_link_up'])) {
                // Determine it
                $GLOBALS['is_sql_link_up'] = is_resource(SQL_GET_LINK());
@@ -578,7 +578,7 @@ function SQL_ERROR ($file, $line, $message) {
        // Remember plain error in last_sql_error
        $GLOBALS['last_sql_error'] = mysql_error();
 
-       // Do we have installation phase?
+       // Is there installation phase?
        if (isInstallationPhase()) {
                /*
                 * In installation phase, we don't want SQL errors abort e.g. connection
@@ -594,7 +594,7 @@ function SQL_ERROR ($file, $line, $message) {
 // Check if there is a SQL table created
 function ifSqlTableExists ($tableName) {
        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'tableName=' . $tableName . ' - ENTERED!');
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__][$tableName])) {
                // Check if the table is there
                $result = SQL_QUERY_ESC("SHOW TABLES FROM `{?__DB_NAME?}` WHERE `Tables_in_{?__DB_NAME?}`='{?_MYSQL_PREFIX?}_%s'",
@@ -613,7 +613,7 @@ function ifSqlTableExists ($tableName) {
 // Is a table column there?
 function ifSqlColumnExists ($tableName, $columnName) {
        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'tableName=' . $tableName . ',columnName=' . $columnName . ' - ENTERED!');
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__][$tableName][$columnName])) {
                // And column name as well
                $columnName = str_replace('`', '', $columnName);
@@ -641,7 +641,7 @@ function ifSqlColumnExists ($tableName, $columnName) {
 // Checks depending on the mode if the index is there
 function isSqlTableIndexFound ($tableName, $keyName) {
        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'tableName=' . $tableName . ',columnName=' . $keyName . ' - ENTERED!');
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__][$tableName][$keyName])) {
                // Show indexes
                $result = SQL_QUERY_ESC("SHOW INDEX FROM `%s`", array($tableName), __FUNCTION__, __LINE__);
@@ -686,7 +686,7 @@ function getArrayFromSupportedSqlEngines ($support = 'YES') {
        // This also worked, now we need to check if the selected database type is supported
        $result = SQL_QUERY('SHOW ENGINES', __FUNCTION__, __LINE__);
 
-       // Do we have entries? (Bad if not)
+       // Are there entries? (Bad if not)
        if (SQL_NUMROWS($result) > 0) {
                // Load all and check for active entries
                while ($content = SQL_FETCHARRAY($result)) {
index 92e1757623d255c3cc1b2eee383261c4c22e65d9..f8e823d9bc9a6694d0321905340bfdbc22ce6dce 100644 (file)
@@ -53,7 +53,7 @@ function isExpressionFunctionAvaiable ($data) {
        // Get the enty we need and trim it
        $entry = trim($data['matches'][4][$data['key']]);
 
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS['expression_function_available'][$entry])) {
                // Init function name
                $functionName = 'get';
@@ -108,7 +108,7 @@ function doExpressionCode ($data) {
 
 // Expression call-back function for URLs
 function doExpressionUrl ($data) {
-       // Do we have JS-mode?
+       // Is there JS-mode?
        if ($data['callback'] == 'js') {
                // Switch to it
                $data['output_mode'] = '1';
@@ -169,7 +169,7 @@ function doExpressionExt ($data) {
 // Expression call-back function for getting configuration data
 // @TODO FILTER_COMPILE_CONFIG does not handle call-back functions so we handle it here again
 function doExpressionConfig ($data) {
-       // Do we have a special expression function for it?
+       // Is there a special expression function for it?
        if (isExpressionFunctionAvaiable($data)) {
                // Then use it
                $replacer = '{DQUOTE}  . ' . $data['callback'] . '(' . getExpressionFunction($data) . '()) . {DQUOTE}';
@@ -193,7 +193,7 @@ function doExpressionPipe ($data) {
        // We need callback and extra_func: callback is really the call-back function, extra_func is our value
        $replacer = $data['extra_func'];
 
-       // Do we have a call-back? Should always be there!
+       // Is there a call-back? Should always be there!
        if (!empty($data['callback'])) {
                //* DEBUG: */ if ($data['callback'] == 'getMemberId') die('<pre>'.encodeEntities(print_r($data, true)).'</pre>');
                // If the value is empty, we don't add it
index acd01be780c418c1a35bcf3d581f8a5c5d84a0e5..93e1fdf84a88628df20810492439f7cb7656fab7 100644 (file)
@@ -125,7 +125,7 @@ function loadExtension ($ext_name, $ext_mode, $ext_ver = '0.0.0', $isDryRun = fa
                loadLanguageFile($ext_name);
        } // END - if
 
-       // Do we have cache?
+       // Is there cache?
        if (isExtensionFunctionFileReadable($ext_name)) {
                // Not yet loaded?
                if ((($GLOBALS['cache_array']['extension']['ext_func'][$ext_name] == 'Y') || (!isset($GLOBALS['cache_array']['extension']['ext_func'][$ext_name]))) && (!isExtensionLibraryLoaded($ext_name))) {
@@ -474,7 +474,7 @@ function doExtensionSqls ($ext_id, $load_mode) {
        // Debug message
        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'SQLs::count=' . countSqls());
 
-       // Do we have entries?
+       // Are there entries?
        if (isSqlsValid()) {
                // Run SQL commands...
                runFilterChain('run_sqls');
@@ -529,7 +529,7 @@ function isExtensionInstalled ($ext_name) {
                // Look in database
                $ext_id = getExtensionId($ext_name);
 
-               // Do we have a record?
+               // Is there a record?
                $isInstalled = ($ext_id > 0);
 
                // Log debug message
@@ -793,9 +793,9 @@ function addExtensionVerboseSqlTable ($title = '{--ADMIN_SQLS_EXECUTED_ON_REMOVA
        // Init variables
        $OUT = '';
 
-       // Do we have queries?
+       // Is there queries?
        if (isVerboseSqlEnabled()) {
-               // Do we have entries?
+               // Are there entries?
                if (countExtensionSqls() > 0) {
                        // Init counter
                        $idx = 0;
@@ -883,7 +883,7 @@ function getExtensionId ($ext_name) {
        // Init id number
        $data['ext_id'] = '0';
 
-       // Do we have cache?
+       // Is there cache?
        if (isset($GLOBALS['cache_array']['extension']['ext_id'][$ext_name])) {
                // Load from cache
                $data['ext_id'] = $GLOBALS['cache_array']['extension']['ext_id'][$ext_name];
@@ -914,7 +914,7 @@ function getExtensionId ($ext_name) {
 
 // Determines whether the given extension name is valid
 function isExtensionNameValid ($ext_name) {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS['ext_name_valid'][$ext_name])) {
                // Generate include file name
                $INC = sprintf("inc/extensions/ext-%s.php", $ext_name);
@@ -1655,7 +1655,7 @@ function FILTER_INIT_EXTENSIONS () {
        // Init notification pool
        initIncludePool('notify');
 
-       // Do we have some entries?
+       // Are there some entries?
        if (isset($GLOBALS['cache_array']['extension']['ext_name'])) {
                // Load all found extensions if found
                //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'CACHE - START!');
@@ -1746,7 +1746,7 @@ function removeExtensionFromArray () {
 
 // "Getter" for 'extension has a CSS file' (with same name, of course)
 function getExtensionHasCss () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__][getCurrentExtensionName()][getCurrentTheme()])) {
                // Construct FQFN for check
                $FQFN = sprintf("%stheme/%s/css/%s.css",
@@ -1765,7 +1765,7 @@ function getExtensionHasCss () {
 
 // Checks whether the given extension has a language file
 function ifExtensionHasLanguageFile ($ext_name) {
-       // Do we have cache?
+       // Is there cache?
        if (isset($GLOBALS['cache_array']['extension']['ext_lang'][$ext_name])) {
                // Count cache hits
                incrementStatsEntry('cache_hits');
@@ -2112,7 +2112,7 @@ function isExtensionProductive ($ext_name = '') {
        } // END - if
        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'ext_name=' . $ext_name . ' - ENTERED!');
 
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__][$ext_name])) {
                // Load extension only if not yet loaded
                if (!isset($GLOBALS['ext_productive'][$ext_name])) {
index 58d9a96513346a792f92611ffcce97e6c883ac9c..66d04ec8bb72c20f10bec29b3161f1bf8c0cea47 100644 (file)
@@ -364,7 +364,7 @@ function loadExtensionFilters ($ext_name) {
        // Debug message
        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'ext_name=' . $ext_name . ' - ENTERED!');
 
-       // Do we have cache entry?
+       // Is there a cache entry?
        if (!isset($GLOBALS[__FUNCTION__][$ext_name])) {
                // Default is not found
                $GLOBALS[__FUNCTION__][$ext_name] = false;
index 4f290e70db897ebcc1b1c681013d76a6af599788..0b4bcace8550aea32ecd71b43c7740ec4be5c1e2 100644 (file)
@@ -76,7 +76,7 @@ ORDER BY
                        getMemberId()
                ), __FUNCTION__, __LINE__);
 
-       // Do we have entries left?
+       // Are there entries left?
        if (!SQL_HASZERONUMS($result)) {
                // Load all names
                while ($content = SQL_FETCHARRAY($result)) {
index 3437775a70f523623ba8ef4c234d692b208c5a7d..bd3d3fabbc5c68480b6f6ad95637efc52361d237 100644 (file)
@@ -271,7 +271,7 @@ function FILTER_RUN_SQLS ($filterData) {
 
                                // Is there still a query left?
                                if (!empty($sql)) {
-                                       // Do we have an "ALTER TABLE" command?
+                                       // Is there an "ALTER TABLE" command?
                                        if (substr(strtolower($sql), 0, 11) == 'alter table') {
                                                // Analyse the alteration command
                                                //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Alterting table: ' . $sql . ',enable_codes=' . intval($filterData['enable_codes']));
@@ -380,7 +380,7 @@ function FILTER_REMOVE_UPDATES ($filterData) {
        // Simply remove it
        unsetExtensionSqls();
 
-       // Do we need to remove update depency?
+       // Are there update dependencies to remove?
        if (countExtensionUpdateDependencies() > 0) {
                // Then find all updates we shall no longer execute
                foreach (getExtensionUpdateDependencies() as $id => $ext_name) {
@@ -434,7 +434,7 @@ function FILTER_COMPILE_CONFIG ($code, $compiled = false) {
        // Save the uncompiled code
        $uncompiled = $code;
 
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS['compiled_config'][$code])) {
                // Compile {?some_var?} to getConfig('some_var')
                preg_match_all('/\{\?(([a-zA-Z0-9-_]+)*)\?\}/', $code, $matches);
@@ -443,7 +443,7 @@ function FILTER_COMPILE_CONFIG ($code, $compiled = false) {
                if ((count($matches) > 0) && (count($matches[0]) > 0)) {
                        // Replace all matches
                        foreach ($matches[0] as $key => $match) {
-                               // Do we have cache?
+                               // Is there cache?
                                if (!isset($GLOBALS['compile_config'][$matches[1][$key]])) {
                                        // Is the config valid?
                                        if (isConfigEntrySet($matches[1][$key])) {
@@ -559,7 +559,7 @@ function FILTER_COMPILE_EXPRESSION_CODE ($filterData) {
                } // END - foreach
        } // END - if
 
-       // Do we have non-HTML mode?
+       // Is there non-HTML mode?
        if (!isHtmlOutputMode()) {
                $filterData = decodeEntities($filterData);
        } // END - if
@@ -877,7 +877,7 @@ function FILTER_COUNT_MODULE () {
 
 // Handles fatal errors
 function FILTER_HANDLE_FATAL_ERRORS () {
-       // Do we have errors to handle and right output mode?
+       // Is there errors to handle and right output mode?
        if ((!ifFatalErrorsDetected()) || (!isHtmlOutputMode())) {
                // Abort executing here
                return false;
@@ -990,7 +990,7 @@ function FILTER_FLUSH_TEMPLATE_CACHE () {
                return;
        } // END - if
 
-       // Do we have cached eval() data?
+       // Is there cached eval() data?
        if ((isset($GLOBALS['template_eval'])) && (count($GLOBALS['template_eval']) > 0)) {
                // Now flush all
                foreach ($GLOBALS['template_eval'] as $template => $eval) {
index 9f53a5a65b34f4964426d41cd416b936a241ce47..f4f95a55d6450e9ab673afa8c9e46e11e65ce2c7 100644 (file)
@@ -50,14 +50,14 @@ ORDER BY
        `filter_name` ASC,
        `filter_function` ASC', __FILE__, __LINE__);
 
-// Do we have entries? (we should have!)
+// Are there entries? (there should be!)
 if (!SQL_HASZERONUMS($result)) {
        // Load row by row
        while ($filter = SQL_FETCHARRAY($result)) {
                // Now search again for this filter and get it's total count
                $count = countSumTotalData($filter['filter_name'], 'filters', 'filter_id', 'filter_name', true, sprintf(" AND `filter_function`='%s'", SQL_ESCAPE($filter['filter_function'])));
 
-               // Do we have more than one entry?
+               // Is there more than one entry?
                if ($count > 1) {
                        // Then clean them up, except one
                        addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_filters` WHERE `filter_name`='%s' AND `filter_function`='%s' LIMIT %s",
index 3c9f1eec1d2d91c63ad47bad78c0cac1c9b09849..bf874dbc2f9082496569fb22222143f91c1e5e0d 100644 (file)
@@ -40,7 +40,7 @@ if (!defined('__SECURITY')) {
        die();
 } // END - if
 
-// Sanity-check: Do we have ref level 0? If so, this must be fixed to NULL and `level` must be increased by one
+// Sanity-check: Is there ref level 0? If so, this must be fixed to NULL and `level` must be increased by one
 $result = SQL_QUERY('SELECT `id` FROM `{?_MYSQL_PREFIX?}_refsystem` WHERE `level`=0', __FILE__, __LINE__);
 if (!SQL_HASZERONUMS($result)) {
        // Remove index temporaly
@@ -73,7 +73,7 @@ WHERE
 ORDER BY
        `userid` ASC', __FILE__, __LINE__);
 
-// Do we have entries?
+// Are there entries?
 if (!SQL_HASZERONUMS($result_direct)) {
        // When 'walk' through all users
        while ($content = SQL_FETCHARRAY($result_direct)) {
index a485c21d7fb58a61fa6858fc4ebd9f1375443115..f720907ff1c5ef34eff0e1b06291beaf5e7aebd4 100644 (file)
@@ -54,7 +54,7 @@ WHERE
 ORDER BY
        `userid` ASC', __FILE__, __LINE__);
 
-// Do we have entries? (we should have!)
+// Are there entries? (there should be!)
 if (!SQL_HASZERONUMS($result)) {
        // Load row by row
        while ($row = SQL_FETCHARRAY($result)) {
index 780919b4f6a143f38c9f7e5017d08ca896768e48..9305df0bc288329bd251a47fd9ab4eb558cb2f64 100644 (file)
@@ -72,7 +72,7 @@ function getTotalFatalErrors () {
        // Init count
        $count = '0';
 
-       // Do we have at least the first entry?
+       // Is there at least the first entry?
        if (!empty($GLOBALS['fatal_messages'][0])) {
                // Get total count
                $count = count($GLOBALS['fatal_messages']);
@@ -419,7 +419,7 @@ function redirectToUrl ($url, $allowSpider = true) {
        // Default 'rel' value is external, nofollow is evil from Google and hurts the Internet
        $rel = ' rel="external"';
 
-       // Do we have internal or external URL?
+       // Is there internal or external URL?
        if (substr($url, 0, strlen(getUrl())) == getUrl()) {
                // Own (=internal) URL
                $rel = '';
@@ -594,7 +594,7 @@ function createEpocheTimeFromSelections ($prefix, $postData) {
        // Initial return value
        $ret = '0';
 
-       // Do we have a leap year?
+       // Is there a leap year?
        $SWITCH = '0';
        $TEST = getYear() / 4;
        $M1   = getMonth();
@@ -642,7 +642,7 @@ function createFancyTime ($stamp) {
                } // END - if
        } // END - foreach
 
-       // Do we have something there?
+       // Is something there?
        if (strlen($ret) > 0) {
                // Remove leading commata and space
                $ret = substr($ret, 2);
@@ -722,7 +722,7 @@ function generateHash ($plainText, $salt = '', $hash = true) {
                }
        } // END - if
 
-       // Do we miss an arry element here?
+       // Is an arry element missing here?
        if (!isConfigEntrySet('file_hash')) {
                // Stop here
                reportBug(__FUNCTION__, __LINE__, 'Missing file_hash in ' . __FUNCTION__ . '.');
@@ -933,7 +933,7 @@ function getCurrentTheme () {
        // The default theme is 'default'... ;-)
        $ret = 'default';
 
-       // Do we have ext-theme installed and active or is 'theme' in URL or POST data?
+       // Is there ext-theme installed and active or is 'theme' in URL or POST data?
        if (isExtensionActive('theme')) {
                // Call inner method
                $ret = getActualTheme();
@@ -1289,11 +1289,11 @@ function handleExtraValues ($filterFunction, $value, $extraValue) {
        // Default is the value itself
        $ret = $value;
 
-       // Do we have a special filter function?
+       // Is there a special filter function?
        if (!empty($filterFunction)) {
                // Does the filter function exist?
                if (function_exists($filterFunction)) {
-                       // Do we have extra parameters here?
+                       // Is there extra parameters here?
                        if (!empty($extraValue)) {
                                // Put both parameters in one new array by default
                                $args = array($value, $extraValue);
@@ -1754,7 +1754,7 @@ function mapModuleToTable ($moduleName) {
 
 // Add SQL debug data to array for later output
 function addSqlToDebug ($result, $sqlString, $timing, $F, $L) {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS['debug_sql_available'])) {
                // Check it and cache it in $GLOBALS
                $GLOBALS['debug_sql_available'] = ((isConfigurationLoaded()) && (isDisplayDebugSqlEnabled()));
@@ -1857,13 +1857,13 @@ function getModuleFromFileName ($file, $accessLevel) {
 
 // Encodes an URL for adding session id, etc.
 function encodeUrl ($url, $outputMode = '0') {
-       // Do we have already have a PHPSESSID inside or view.php is called? Then abort here
+       // Is there already have a PHPSESSID inside or view.php is called? Then abort here
        if ((isInStringIgnoreCase(session_name(), $url)) || (isRawOutputMode())) {
                // Raw output mode detected or session_name() found in URL
                return $url;
        } // END - if
 
-       // Do we have a valid session?
+       // Is there a valid session?
        if (((!isset($GLOBALS['valid_session'])) || ($GLOBALS['valid_session'] === false) || (!isset($_COOKIE[session_name()]))) && (isSpider() === false)) {
                // Determine right separator
                $separator = '&amp;';
@@ -1884,7 +1884,7 @@ function encodeUrl ($url, $outputMode = '0') {
                $url = '{?URL?}/' . $url;
        } // END - if
 
-       // Do we have to decode entities?
+       // Is there to decode entities?
        if ((!isHtmlOutputMode()) || ($outputMode != '0')) {
                // Decode them for e.g. JavaScript parts
                $url = decodeEntities($url);
@@ -2008,7 +2008,7 @@ function convertNullToZero ($number) {
 // Capitalizes a string with underscores, e.g.: some_foo_string will become SomeFooString
 // Note: This function is cached
 function capitalizeUnderscoreString ($str) {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__][$str])) {
                // Init target string
                $capitalized = '';
@@ -2067,7 +2067,7 @@ function generateAdminMailLinks ($mailType, $mailId) {
                                bigintval($mailId)
                        ), __FILE__, __LINE__);
 
-               // Do we have one entry there?
+               // Is there one entry there?
                if (SQL_NUMROWS($result) == 1) {
                        // Load the entry
                        $content = SQL_FETCHARRAY($result);
@@ -2163,7 +2163,7 @@ function getArrayKeysFromSubStrArray ($heystack, $needles, $offset = 0) {
 
        // Now check all entries
        foreach ($needles as $key => $needle) {
-               // Do we have found a partial string?
+               // Is there found a partial string?
                //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'heystack='.$heystack.',key='.$key.',needle='.$needle.',offset='.$offset);
                if (strpos($heystack, $needle, $offset) !== false) {
                        // Add the found key
@@ -2222,7 +2222,7 @@ function convertStringToBoolean ($str) {
        // Debug message (to measure how often this function is called)
        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'str=' . $str);
 
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__][$str])) {
                // Trim it lower-case for validation
                $strTrimmed = trim(strtolower($str));
@@ -2255,7 +2255,7 @@ function makeParseableVariable ($varString) {
                reportBug(__FUNCTION__, __LINE__, 'varString=' . $varString . ' - No dollar sign detected, will not parse it.');
        } // END - if
 
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__][$varString])) {
                // Snap them in, if [,] are there
                $GLOBALS[__FUNCTION__][$varString] = str_replace(array('[', ']'), array("['", "']"), $varString);
index c8cdf7acf37d476c7529655a904a6f4c276b569b..5715c6edd0a5c48967b7ccd9abb6c0402f55c1aa 100644 (file)
@@ -73,7 +73,7 @@ function sendHttpHeaders () {
 
 // Checks whether the URL is full-qualified (http[s]:// + hostname [+ request data])
 function isFullQualifiedUrl ($url) {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__][$url])) {
                // Determine it
                $GLOBALS[__FUNCTION__][$url] = ((substr($url, 0, 7) == 'http://') || (substr($url, 0, 8) == 'https://'));
@@ -105,7 +105,7 @@ function generateGetUrlFromBaseUrlData ($baseUrl, $requestData = array()) {
 
        // There should be data, else we don't need to extend $baseUrl with $body
        if (!empty($body)) {
-               // Do we have a question-mark in the script?
+               // Is there a question-mark in the script?
                if (!isInString('?', $baseUrl)) {
                        // No, so first char must be question mark
                        $body = '?' . $body;
@@ -176,7 +176,7 @@ function sendHeadRequest ($baseUrl, $requestData = array()) {
        // Generate full GET URL
        $getUrl = generateGetUrlFromBaseUrlData($baseUrl, $requestData);
 
-       // Do we have http[s]:// in front of the URL?
+       // Is there http[s]:// in front of the URL?
        if (isFullQualifiedUrl($getUrl)) {
                // Remove http[s]://<hostname> from URL
                $getUrl = removeHttpHostNameFromUrl($getUrl);
@@ -215,7 +215,7 @@ function sendGetRequest ($baseUrl, $requestData = array(), $removeHeader = false
        // Generate full GET URL
        $getUrl = generateGetUrlFromBaseUrlData($baseUrl, $requestData);
 
-       // Do we have http[s]:// in front of the URL?
+       // Is there http[s]:// in front of the URL?
        if (isFullQualifiedUrl($getUrl)) {
                // Remove http[s]://<hostname> from url
                $getUrl = removeHttpHostNameFromUrl($getUrl);
@@ -260,7 +260,7 @@ function sendPostRequest ($baseUrl, $requestData = array(), $removeHeader = fals
        // Copy baseUrl to getUrl
        $getUrl = $baseUrl;
 
-       // Do we have http[s]:// in front of the URL?
+       // Is there http[s]:// in front of the URL?
        if (isFullQualifiedUrl($getUrl)) {
                // Remove http[s]://<hostname> from url
                $getUrl = removeHttpHostNameFromUrl($getUrl);
@@ -371,7 +371,7 @@ function sendRawRequest ($host, $request) {
                return $response;
        }
 
-       // Do we use proxy?
+       // Shall proxy be used?
        if (isProxyUsed() === true) {
                // Setup proxy tunnel
                $response = setupProxyTunnel($host, $proxyHost, $port, $resource);
index 7b33f373227ce3ff16b2a07f97855519803da402..13ce10c5fdd6dc1695559506a180dccf443ceff4 100644 (file)
@@ -117,7 +117,7 @@ function loadIncludePool ($pool) {
 
 // Loads an include file and logs any missing files for debug purposes
 function loadInclude ($inc) {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS['inc_loaded'][$inc])) {
                // Is the include file there?
                if (!isIncludeReadable($inc)) {
@@ -147,7 +147,7 @@ function loadIncludeOnce ($inc) {
 
 // Checks whether an include file (non-FQFN better) is readable
 function isIncludeReadable ($inc) {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS['inc_readable'][$inc])) {
                // Construct FQFN
                $FQFN = getPath() . $inc;
index 40a6ab62805d0fee38de66b4dacd8cdacfd23365..8b9bb808ba5d6c35090fd048ef49850672ae8e5b 100644 (file)
@@ -274,7 +274,7 @@ function doInstallerPostCheck ($currentTab, &$saveStatus) {
                $saveStatus['status']  = 'failed';
                $saveStatus['message'] = '{%message,INSTALLER_POST_CHECK_' . strtoupper($currentTab) . '_FAILED=' . $GLOBALS['installer_post_error'][$currentTab] . '%}';
 
-               // Do we have failed fields?
+               // Is there failed fields?
                if (count($GLOBALS['installer_failed_fields'][$currentTab]) > 0) {
                        // Then merge both
                        $saveStatus['failed_fields'] = merge_array($saveStatus['failed_fields'], $GLOBALS['installer_failed_fields'][$currentTab]);
@@ -372,7 +372,7 @@ function isInstallerWebmasterValid ($value) {
                // Is it a valid email address?
                (isEmailValid($value))
        ||
-               // Or do we have 'localhost/127.0.0.1' as hostname? Then don't check email address (e.g. you@localhost)
+               // Or is there 'localhost/127.0.0.1' as hostname? Then don't check email address (e.g. you@localhost)
                (in_array(detectServerName(), array('localhost', '127.0.0.1')))
        );
 
index 3d716d966fad60481d27654dbcf188a3c7f5eda8..5e393b722519d8ee0bb5cb9153cc1e70db0455a7 100644 (file)
@@ -118,7 +118,7 @@ function isCurrentLanguageSet () {
 
 // "Getter" for language
 function getLanguage () {
-       // Do we have cache?
+       // Is there cache?
        if (!isCurrentLanguageSet()) {
                // Default is 'de'. DO NOT CHANGE THIS!!!
                $ret = 'de';
@@ -164,7 +164,7 @@ function setLanguage ($lang) {
 
 // Checks whether a language file is there for optional extension
 function isLanguageIncludeReadable ($ext_name = 'none') {
-       // Do we have array element?
+       // Is there array element?
        if (!isset($GLOBALS['lang_inc'][$ext_name])) {
                // Generate filename
                if ($ext_name == 'none') {
@@ -200,7 +200,7 @@ function loadLanguageFile ($ext_name = 'none') {
                setLanguage($currLanguage);
        } // END - if
 
-       // Do we have the language file NOT?
+       // Is there the language file NOT?
        if (!isLanguageIncludeReadable($ext_name)) {
                // Switch to default (DO NOT CHANGE!!!)
                setLanguage('de');
@@ -303,7 +303,7 @@ function ifLanguageFilesCompares ($source, $target, $targetLanguage) {
        // Set target language
        setCurrentLanguage($targetLanguage);
 
-       // Do we have an array?
+       // Is there an array?
        if (!isset($GLOBALS['messages'][$targetLanguage])) {
                // Then create it to avoid notice
                $GLOBALS['messages'][$targetLanguage] = array();
index df2023fc3cb830c4b9b1fc64dac8052955e8c02d..c1851a0cfe8e7815b3af6e60591b45197100e9d5 100644 (file)
@@ -418,7 +418,7 @@ function adminsDeleteAdminAccount ($postData) {
                        $result = SQL_QUERY_ESC("SELECT `login`,`email`,`default_acl` AS `access_mode`,`la_mode` FROM `{?_MYSQL_PREFIX?}_admins` WHERE `id`=%s LIMIT 1",
                                array($id), __FUNCTION__, __LINE__);
 
-                       // Do we have an entry?
+                       // Is there an entry?
                        if (SQL_NUMROWS($result) == 1) {
                                // Entry found, so load data
                                $content = SQL_FETCHARRAY($result);
@@ -676,7 +676,7 @@ function getAdminLoginFailures ($adminId) {
                $result = SQL_QUERY_ESC("SELECT `login_failures` FROM `{?_MYSQL_PREFIX?}_admins` WHERE `id`=%s LIMIT 1",
                        array($adminId), __FUNCTION__, __LINE__);
 
-               // Do we have an entry?
+               // Is there an entry?
                if (SQL_NUMROWS($result) == 1) {
                        // Get it
                        $data = SQL_FETCHARRAY($result);
@@ -712,7 +712,7 @@ function getAdminLastFailure ($adminId) {
                $result = SQL_QUERY_ESC("SELECT UNIX_TIMESTAMP(`last_failure`) AS `last_failure` FROM `{?_MYSQL_PREFIX?}_admins` WHERE `id`=%s LIMIT 1",
                        array($adminId), __FUNCTION__, __LINE__);
 
-               // Do we have an entry?
+               // Is there an entry?
                if (SQL_NUMROWS($result) == 1) {
                        // Get it
                        $data = SQL_FETCHARRAY($result);
index fde4b075873ca238a44e58bceae8d638241f002f..769099587ece6273c4c9a79d754b7d5562f57d70 100644 (file)
@@ -59,7 +59,7 @@ function addPointsAutoPurge ($userid, $points) {
 
 // Checks whether auto-purging is enabled
 function isAutoPurgingActive () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = (getConfig('auto_purge_active') == 'Y');
@@ -71,7 +71,7 @@ function isAutoPurgingActive () {
 
 // Wrapper for 'autopurge_inactive
 function getAutopurgeInactive () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = (getConfig('autopurge_inactive') == 'Y');
@@ -83,7 +83,7 @@ function getAutopurgeInactive () {
 
 // Checks whether purging of inactive accounts is enabled
 function isAutopurgeInactiveEnabled () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = (getAutopurgeInactive() == 'Y');
index 120333bf97b708e21424fa031f9b0ebe9c11ad94..149a96b5f4b940f3dd0fd05aafb983c65b990231 100644 (file)
@@ -94,7 +94,7 @@ function doTemplateOutputBegPoints ($templateName, $clear = false) {
 
 // "Getter" for beg_new_member_notify
 function getBegNewMemberNotify () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Get it
                $GLOBALS[__FUNCTION__] = getConfig('beg_new_member_notify');
@@ -106,7 +106,7 @@ function getBegNewMemberNotify () {
 
 // Checks whether beg_new_member_notify is enabled
 function isBegNewMemberNotifyEnabled () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = ((isExtensionInstalledAndNewer('beg', '0.2.7')) && (getBegNewMemberNotify() == 'Y'));
@@ -118,7 +118,7 @@ function isBegNewMemberNotifyEnabled () {
 
 // "Getter" for beg_userid
 function getBegUserid () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Get it
                $GLOBALS[__FUNCTION__] = getConfig('beg_userid');
@@ -130,7 +130,7 @@ function getBegUserid () {
 
 // "Getter" for beg_timeout
 function getBegTimeout () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('beg_timeout');
@@ -142,7 +142,7 @@ function getBegTimeout () {
 
 // "Getter" for beg_userid_timeout
 function getBegUseridTimeout () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('beg_userid_timeout');
@@ -154,7 +154,7 @@ function getBegUseridTimeout () {
 
 // "Getter" for beg_ip_timeout
 function getBegIpTimeout () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('beg_ip_timeout');
@@ -166,7 +166,7 @@ function getBegIpTimeout () {
 
 // "Getter" for beg_ranks
 function getBegRanks () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('beg_ranks');
@@ -178,7 +178,7 @@ function getBegRanks () {
 
 // "Getter" for beg_points_max
 function getBegPointsMax () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('beg_points_max');
@@ -190,7 +190,7 @@ function getBegPointsMax () {
 
 // "Getter" for beg_points
 function getBegPoints () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('beg_points');
@@ -202,7 +202,7 @@ function getBegPoints () {
 
 // "Getter" for beg_notify_bonus
 function getBegNotifyBonus () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('beg_notify_bonus');
@@ -214,7 +214,7 @@ function getBegNotifyBonus () {
 
 // "Getter" for beg_notify_wait
 function getBegNotifyWait () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('beg_notify_wait');
@@ -226,7 +226,7 @@ function getBegNotifyWait () {
 
 // "Getter" for beg_pay_mode
 function getBegPayMode () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('beg_pay_mode');
@@ -238,7 +238,7 @@ function getBegPayMode () {
 
 // "Getter" for beg_include_own
 function getBegIncludeOwn () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('beg_include_own');
@@ -250,7 +250,7 @@ function getBegIncludeOwn () {
 
 // Checks whether beg_include_own is "Y"
 function isBegIncludeOwnEnabled () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = (getBegIncludeOwn() == 'Y');
@@ -262,7 +262,7 @@ function isBegIncludeOwnEnabled () {
 
 // "Getter" for beg_active
 function getBegActive () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('beg_active');
@@ -274,7 +274,7 @@ function getBegActive () {
 
 // Checks whether beg_active is "Y"
 function isBegActiveEnabled () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = (getBegActive() == 'Y');
@@ -286,7 +286,7 @@ function isBegActiveEnabled () {
 
 // "Getter" for beg_rallye
 function getBegRallye () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('beg_rallye');
@@ -298,7 +298,7 @@ function getBegRallye () {
 
 // Checks whether beg_rallye is "Y"
 function isBegRallyeEnabled () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = (getBegRallye() == 'Y');
@@ -310,7 +310,7 @@ function isBegRallyeEnabled () {
 
 // "Getter" for beg_rallye_enable_notify
 function getBegRallyeEnableNotify () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('beg_rallye_enable_notify');
@@ -322,7 +322,7 @@ function getBegRallyeEnableNotify () {
 
 // Checks whether beg_rallye_enable_notify is "Y"
 function isBegRallyeEnableNotifyEnabled () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = (getBegRallyeEnableNotify() == 'Y');
@@ -334,7 +334,7 @@ function isBegRallyeEnableNotifyEnabled () {
 
 // "Getter" for beg_rallye_disable_notify
 function getBegRallyeDisableNotify () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('beg_rallye_disable_notify');
@@ -346,7 +346,7 @@ function getBegRallyeDisableNotify () {
 
 // Checks whether beg_rallye_disable_notify is "Y"
 function isBegRallyeDisableNotifyEnabled () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = (getBegRallyeDisableNotify() == 'Y');
index 9ea5bd21717f7ec0a257ef35b3109a14496a1304..8480178783f6f652797d450069dfa87d6c4c78c0 100644 (file)
@@ -46,7 +46,7 @@ if (!defined('__SECURITY')) {
 
 // Getter for birthday_points
 function getBirthdayPoints () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('birthday_points');
index eb23d167477cc9bd603773e27e78be3068046294..48d29cd3bc70d3b0617d4e8f7b15999e56ecf414 100644 (file)
@@ -281,7 +281,7 @@ function purgeExpiredTurboBonus() {
 
 // Determines whether the "bonus rallye" is active
 function isBonusRallyeActive () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS['bonus_rallye_active'])) {
                // Just determine it
                $GLOBALS['bonus_rallye_active'] = (getConfig('bonus_active') == 'Y');
@@ -293,7 +293,7 @@ function isBonusRallyeActive () {
 
 // Determines whether the "bonus new_member_notify" is active
 function isBonusNewMemberNotifyEnabled () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS['bonus_new_member_notify_active'])) {
                // Just determine it
                $GLOBALS['bonus_new_member_notify_active'] = (getConfig('bonus_new_member_notify') == 'Y');
@@ -305,7 +305,7 @@ function isBonusNewMemberNotifyEnabled () {
 
 // Getter for bonus_timeout
 function getBonusTimeout () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('bonus_timeout');
@@ -317,7 +317,7 @@ function getBonusTimeout () {
 
 // Getter for bonus_mode
 function getBonusMode () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('bonus_mode');
@@ -329,7 +329,7 @@ function getBonusMode () {
 
 // Getter for bonus_ranks
 function getBonusRanks () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('bonus_ranks');
@@ -341,7 +341,7 @@ function getBonusRanks () {
 
 // Getter for turbo_rates
 function getTurboRates () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('turbo_rates');
@@ -353,7 +353,7 @@ function getTurboRates () {
 
 // Getter for login_timeout
 function getLoginTimeout () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('login_timeout');
@@ -365,7 +365,7 @@ function getLoginTimeout () {
 
 // Getter for bonus_ref
 function getBonusRef () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('bonus_ref');
index 62bc2d4167251b320094a766d67571286eeedffe..e061fb16c5d9346f57f11995d16c51b5c91f3231 100644 (file)
@@ -42,7 +42,7 @@ if (!defined('__SECURITY')) {
 
 // Wrapper function for 'coupon_default_points'
 function getCouponDefaultPoints () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Get config entry
                $GLOBALS[__FUNCTION__] = getConfig('coupon_default_points');
@@ -54,7 +54,7 @@ function getCouponDefaultPoints () {
 
 // Wrapper function for 'coupon_autopurge_time'
 function getCouponAutopurgeTime () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Get config entry
                $GLOBALS[__FUNCTION__] = getConfig('coupon_autopurge_time');
@@ -66,7 +66,7 @@ function getCouponAutopurgeTime () {
 
 // Wrapper function for 'coupon_userid'
 function getCouponUserid () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Get config entry
                $GLOBALS[__FUNCTION__] = getConfig('coupon_userid');
index fd1c866ba4bf07b83604fd39a1a71d7b3d508793..c29c36b3c47c02972eadd0be7fb802a6c431b6b2 100644 (file)
@@ -168,7 +168,7 @@ function getDoublerUserid () {
 
 // "Getter" for doubler_timeout
 function getDoublerTimeout () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('doubler_timeout');
@@ -180,7 +180,7 @@ function getDoublerTimeout () {
 
 // "Getter" for doubler_send_mode
 function getDoublerSendMode () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('doubler_send_mode');
@@ -192,7 +192,7 @@ function getDoublerSendMode () {
 
 // "Getter" for doubler_ref
 function getDoublerRef () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('doubler_ref');
@@ -204,7 +204,7 @@ function getDoublerRef () {
 
 // "Getter" for doubler_points
 function getDoublerPoints () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('doubler_points');
@@ -216,7 +216,7 @@ function getDoublerPoints () {
 
 // "Getter" for doubler_min
 function getDoublerMin () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('doubler_min');
@@ -228,7 +228,7 @@ function getDoublerMin () {
 
 // "Getter" for doubler_max
 function getDoublerMax () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('doubler_max');
@@ -240,7 +240,7 @@ function getDoublerMax () {
 
 // "Getter" for doubler_counter
 function getDoublerCounter () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('doubler_counter');
@@ -252,7 +252,7 @@ function getDoublerCounter () {
 
 // "Getter" for doubler_charge
 function getDoublerCharge () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('doubler_charge');
index 6d22963d26cfc1dd248df999d45dd7eb4177796f..b7ee9a8d81e5a21f447aebc0572f8755948c0997 100644 (file)
@@ -212,7 +212,7 @@ FROM
 ORDER BY
        `forced_ads_id` ASC', __FUNCTION__, __LINE__);
 
-       // Do we have at least one entry?
+       // Is there at least one entry?
        if (!SQL_HASZERONUMS($result)) {
                // Get all elements
                while ($content = SQL_FETCHARRAY($result)) {
@@ -252,7 +252,7 @@ FROM
 ORDER BY
        `forced_costs_id` ASC", __FUNCTION__, __LINE__);
 
-       // Do we have at least one entry?
+       // Is there at least one entry?
        if (!SQL_HASZERONUMS($result)) {
                // Get all elements
                while ($content = SQL_FETCHARRAY($result)) {
@@ -300,7 +300,7 @@ ORDER BY
                        $status
                ), __FUNCTION__, __LINE__);
 
-       // Do we have at least one entry?
+       // Is there at least one entry?
        if (!SQL_HASZERONUMS($result)) {
                // Get all elements
                while ($content = SQL_FETCHARRAY($result)) {
index 20be2a86b6bc5742acb33e1baf0eaa49b6b20752..68f76b9c37e99ea218631d27f9a28130e60a965e 100644 (file)
@@ -49,7 +49,7 @@ function getJackpotPoints () {
        // Read them
        $result = SQL_QUERY("SELECT `points` FROM `{?_MYSQL_PREFIX?}_jackpot` WHERE `ok`='ok' LIMIT 1", __FUNCTION__, __LINE__);
 
-       // Do we have an entry?
+       // Is there an entry?
        if (SQL_HASZERONUMS($result)) {
                // No, so create line
                SQL_QUERY("INSERT INTO `{?_MYSQL_PREFIX?}_jackpot` (`ok`,`points`) VALUES ('ok','0.00000')", __FUNCTION__, __LINE__);
index 7139fbdf778f7e97fa87b6efeefd7cbfb2e7ba0f..8f9d2203050a2109cfb2f3af8e430b646f4f3fef 100644 (file)
@@ -46,7 +46,7 @@ function updateMediadataEntry ($keys_array, $mode, $value) {
        // Default is nothing added/updated
        $added = false;
 
-       // Do we have entries?
+       // Are there entries?
        if (is_array($keys_array) && ($value > 0)) {
                // Is an array so we can run it through
                foreach ($keys_array as $key) {
@@ -107,7 +107,7 @@ function getMediadataEntry ($key) {
        $result = SQL_QUERY_ESC("SELECT `media_value` FROM `{?_MYSQL_PREFIX?}_mediadata` WHERE `media_key`='%s' LIMIT 1",
                array($key), __FUNCTION__, __LINE__);
 
-       // Do we have one?
+       // Is there one?
        if (SQL_NUMROWS($result) == 1) {
                // Load data
                list($value) = SQL_FETCHROW($result);
index c6c5981b83c5180218d55876960c803a0bb6caa0..f89979e68dc8e36e5f900a4003d438967c70bdaf 100644 (file)
@@ -82,7 +82,7 @@ function detectNetworkProcessForm () {
 
 // Handle a (maybe) sent form here
 function doNetworkHandleForm () {
-       // Do we have a form sent?
+       // Is there a form sent?
        if (countRequestPost() > 0) {
                // Detect sent POST form
                detectNetworkProcessForm();
@@ -242,7 +242,7 @@ WHERE
 LIMIT 1",
                        array(bigintval($networkId)), __FUNCTION__, __LINE__);
 
-               // Do we have an entry?
+               // Is there an entry?
                if (SQL_NUMROWS($result) == 1) {
                        // Then get it
                        $GLOBALS['network_data'][$networkId] = SQL_FETCHARRAY($result);
@@ -305,7 +305,7 @@ WHERE
 LIMIT 1",
                        array(bigintval($networkId)), __FUNCTION__, __LINE__);
 
-               // Do we have an entry?
+               // Is there an entry?
                if (SQL_NUMROWS($result) == 1) {
                        // Then get it
                        $GLOBALS['network_data'][$networkId] = SQL_FETCHARRAY($result);
@@ -351,7 +351,7 @@ WHERE
 LIMIT 1',
                array(bigintval($networkId)), __FUNCTION__, __LINE__);
 
-       // Do we have an entry?
+       // Is there an entry?
        if (SQL_NUMROWS($result) == 1) {
                // Then get it
                $GLOBALS['network_type_data'][$networkId] = SQL_FETCHARRAY($result);
@@ -390,7 +390,7 @@ WHERE
 LIMIT 1',
                array(bigintval($networkId)), __FUNCTION__, __LINE__);
 
-       // Do we have an entry?
+       // Is there an entry?
        if (SQL_NUMROWS($result) == 1) {
                // Then get it
                $networkRequestData = SQL_FETCHARRAY($result);
@@ -471,7 +471,7 @@ WHERE
 ORDER BY
        `network_short_name` ASC", __FUNCTION__, __LINE__);
 
-       // Do we have entries?
+       // Are there entries?
        if (!SQL_HASZERONUMS($result)) {
                // List all entries
                $rows = array();
@@ -516,7 +516,7 @@ ORDER BY
                        bigintval($networkId)
                ), __FUNCTION__, __LINE__);
 
-       // Do we have entries?
+       // Are there entries?
        if (!SQL_HASZERONUMS($result)) {
                // List all entries
                $rows = array();
@@ -564,7 +564,7 @@ ORDER BY
        d.`network_short_name` ASC,
        t.`network_type_handler` ASC", __FUNCTION__, __LINE__);
 
-       // Do we have entries?
+       // Are there entries?
        if (!SQL_HASZERONUMS($result)) {
                // List all entries
                $rows = array();
@@ -763,7 +763,7 @@ function generateNetworkTranslationOptions ($default = '') {
 
 // Generates an option list of request types
 function generateNetworkRequestTypeOptions ($default = '') {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__][$default])) {
                // Generate the list
                $GLOBALS[__FUNCTION__][$default] = generateOptions(
@@ -786,7 +786,7 @@ function generateNetworkRequestTypeOptions ($default = '') {
 
 // Generates an option list of network_api_active
 function generateNetworkApiActiveOptions ($default = '') {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__][$default])) {
                // Generate the list
                $GLOBALS[__FUNCTION__][$default] = generateYesNoOptions($default);
@@ -873,7 +873,7 @@ function translateNetworkVcheckParameterKey ($param) {
 
 // Translates API index
 function translateNetworkApiIndex ($index) {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS['network_array_index'])) {
                // Get an array of all API array indexes
                $GLOBALS['network_array_index'] = array();
@@ -892,7 +892,7 @@ ON
 ORDER BY
        `sort` ASC', __FUNCTION__, __LINE__);
 
-               // Do we have entries?
+               // Are there entries?
                if (!SQL_HASZERONUMS($result)) {
                        // Get all entries
                        while ($row = SQL_FETCHARRAY($result)) {
@@ -920,7 +920,7 @@ ORDER BY
 
 // Translates network API configuration status (see function isNetworkApiConfigured()) by given id
 function translateNetworkApiConfiguredStatusById ($networkId) {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__][$networkId])) {
                // By default it is not configured
                $GLOBALS[__FUNCTION__][$networkId] = '{--ADMIN_NETWORK_API_NOT_CONFIGURED--}';
@@ -938,7 +938,7 @@ function translateNetworkApiConfiguredStatusById ($networkId) {
 
 // Checks if the given network is configured by looking its API configuration entry up
 function isNetworkApiConfigured ($networkId) {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__][$networkId])) {
                // Check for an entry in network_api_config
                $GLOBALS[__FUNCTION__][$networkId] = (countSumTotalData(
@@ -956,7 +956,7 @@ function isNetworkApiConfigured ($networkId) {
 
 // Checks whether the given network type handler is configured
 function isNetworkTypeHandlerConfigured ($networkId, $networkTypeId) {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__][$networkId][$networkTypeId])) {
                // Determine it
                $GLOBALS[__FUNCTION__][$networkId][$networkTypeId] = (countSumTotalData(
@@ -1013,7 +1013,7 @@ function doAdminNetworkProcessAddNetwork () {
 
 // Displays selected networks for editing
 function doAdminNetworkProcessHandleNetworks () {
-       // Do we have selections?
+       // Is there selections?
        if (ifPostContainsSelections()) {
                // Something has been selected, so start displaying one by one
                $OUT = '';
@@ -1023,7 +1023,7 @@ function doAdminNetworkProcessHandleNetworks () {
                                // Load this network's data
                                $networkData = getNetworkDataById($networkId);
 
-                               // Do we have found the network?
+                               // Is there found the network?
                                if (count($networkData) > 0) {
                                        // Add row template with given form name
                                        $OUT .= loadTemplate('admin_' . $GLOBALS['network_form_name'] . '_networks_row', true, $networkData);
@@ -1047,7 +1047,7 @@ function doAdminNetworkProcessHandleNetworks () {
 
 // Handle network type form
 function doAdminNetworkProcessHandleNetworkTypes () {
-       // Do we have selections?
+       // Is there selections?
        if (ifPostContainsSelections()) {
                // Load network data
                $networkData = getNetworkDataById(getRequestElement('network_id'));
@@ -1060,7 +1060,7 @@ function doAdminNetworkProcessHandleNetworkTypes () {
                                // Load this network's data
                                $networkTypeData = getNetworkTypeDataById($networkId);
 
-                               // Do we have found the network?
+                               // Is there found the network?
                                if (count($networkTypeData) > 0) {
                                        if (isFormSent('edit')) {
                                                // Add row template for deleting
@@ -1099,7 +1099,7 @@ function doAdminNetworkProcessHandleNetworkTypes () {
 
 // Handle network request parameter form
 function doAdminNetworkProcessHandleRequestParams () {
-       // Do we have selections?
+       // Is there selections?
        if (ifPostContainsSelections()) {
                // Init cache array
                $GLOBALS['network_request_params_disabled'] = array();
@@ -1115,7 +1115,7 @@ function doAdminNetworkProcessHandleRequestParams () {
                                // Load this network's data
                                $networkRequestData = getNetworkRequestParamsDataById($networkId);
 
-                               // Do we have found the network?
+                               // Is there found the network?
                                if (count($networkRequestData) > 0) {
                                        if (isFormSent('edit')) {
                                                // Add row template for deleting
@@ -1157,7 +1157,7 @@ function doAdminNetworkProcessHandleRequestParams () {
 
 // Changes given networks
 function doAdminNetworkProcessChangeNetworks () {
-       // Do we have selections?
+       // Is there selections?
        if (ifPostContainsSelections()) {
                // By default nothing is updated
                $updated = 0;
@@ -1176,7 +1176,7 @@ function doAdminNetworkProcessChangeNetworks () {
                                                continue;
                                        } // END - if
 
-                                       // Do we have this enty?
+                                       // Is there this enty?
                                        if (!isset($entry[$networkId])) {
                                                // Not found, needs fixing
                                                reportBug(__FUNCTION__, __LINE__, 'No entry in key=' . $key . ', id=' . $networkId . ' found.');
@@ -1191,7 +1191,7 @@ function doAdminNetworkProcessChangeNetworks () {
                        } // END - if
                } // END - foreach
 
-               // Do we have updates?
+               // Is there updates?
                if ($updated > 0) {
                        // Updates done
                        displayMessage('{%message,ADMIN_NETWORK_UPDATED=' . $updated . '%}');
@@ -1204,7 +1204,7 @@ function doAdminNetworkProcessChangeNetworks () {
 
 // Removes given networks
 function doAdminNetworkProcessRemoveNetworks () {
-       // Do we have selections?
+       // Is there selections?
        if (ifPostContainsSelections()) {
                // By default nothing is removed
                $removed = 0;
@@ -1218,7 +1218,7 @@ function doAdminNetworkProcessRemoveNetworks () {
                        } // END - if
                } // END - foreach
 
-               // Do we have removes?
+               // Is there removes?
                if ($removed > 0) {
                        // Removals done
                        displayMessage('{%message,ADMIN_NETWORK_REMOVED=' . $removed . '%}');
@@ -1267,7 +1267,7 @@ function doAdminNetworkProcessAddNetworkType () {
 
 // Changes given network type handlers
 function doAdminNetworkProcessChangeHandlerTypes () {
-       // Do we have selections?
+       // Is there selections?
        if (ifPostContainsSelections()) {
                // By default nothing is updated
                $updated = 0;
@@ -1286,7 +1286,7 @@ function doAdminNetworkProcessChangeHandlerTypes () {
                                                continue;
                                        } // END - if
 
-                                       // Do we have this enty?
+                                       // Is there this enty?
                                        if (!isset($entry[$networkId])) {
                                                // Not found, needs fixing
                                                reportBug(__FUNCTION__, __LINE__, 'No entry in key=' . $key . ', id=' . $networkId . ' found.');
@@ -1307,7 +1307,7 @@ function doAdminNetworkProcessChangeHandlerTypes () {
                        } // END - if
                } // END - foreach
 
-               // Do we have updates?
+               // Is there updates?
                if ($updated > 0) {
                        // Updates done
                        displayMessage('{%message,ADMIN_NETWORK_TYPE_HANDLER_UPDATED=' . $updated . '%}');
@@ -1320,7 +1320,7 @@ function doAdminNetworkProcessChangeHandlerTypes () {
 
 // Changes given network request parameters
 function doAdminNetworkProcessChangeRequestParams () {
-       // Do we have selections?
+       // Is there selections?
        if (ifPostContainsSelections()) {
                // By default nothing is updated
                $updated = 0;
@@ -1339,7 +1339,7 @@ function doAdminNetworkProcessChangeRequestParams () {
                                                continue;
                                        } // END - if
 
-                                       // Do we have this enty?
+                                       // Is there this enty?
                                        if (!isset($entry[$networkId])) {
                                                // Not found, needs fixing
                                                reportBug(__FUNCTION__, __LINE__, 'No entry in key=' . $key . ', id=' . $networkId . ' found.');
@@ -1360,7 +1360,7 @@ function doAdminNetworkProcessChangeRequestParams () {
                        } // END - if
                } // END - foreach
 
-               // Do we have updates?
+               // Is there updates?
                if ($updated > 0) {
                        // Updates done
                        displayMessage('{%message,ADMIN_NETWORK_REQUEST_PARAMETER_UPDATED=' . $updated . '%}');
@@ -1373,7 +1373,7 @@ function doAdminNetworkProcessChangeRequestParams () {
 
 // Removes given network type handlers
 function doAdminNetworkProcessRemoveNetworkTypes () {
-       // Do we have selections?
+       // Is there selections?
        if (ifPostContainsSelections()) {
                // By default nothing is removed
                $removed = 0;
@@ -1387,7 +1387,7 @@ function doAdminNetworkProcessRemoveNetworkTypes () {
                        } // END - if
                } // END - foreach
 
-               // Do we have removes?
+               // Is there removes?
                if ($removed > 0) {
                        // Removals done
                        displayMessage('{%message,ADMIN_NETWORK_TYPE_HANDLER_REMOVED=' . $removed . '%}');
@@ -1400,7 +1400,7 @@ function doAdminNetworkProcessRemoveNetworkTypes () {
 
 // Removes given network request parameters
 function doAdminNetworkProcessRemoveNetworkRequestParams () {
-       // Do we have selections?
+       // Is there selections?
        if (ifPostContainsSelections()) {
                // By default nothing is removed
                $removed = 0;
@@ -1414,7 +1414,7 @@ function doAdminNetworkProcessRemoveNetworkRequestParams () {
                        } // END - if
                } // END - foreach
 
-               // Do we have removes?
+               // Is there removes?
                if ($removed > 0) {
                        // Removals done
                        displayMessage('{%message,ADMIN_NETWORK_REQUEST_PARAMETER_REMOVED=' . $removed . '%}');
@@ -1614,7 +1614,7 @@ function doAdminNetworkProcessAddHandlerTypesConfig ($displayMessage = true) {
                $result = SQL_QUERY_ESC('SELECT `network_type_id` FROM `{?_MYSQL_PREFIX?}_network_types` WHERE `network_id`=%s ORDER BY `network_type_id` ASC',
                        array(bigintval(getRequestElement('network_id'))), __FUNCTION__, __LINE__);
 
-               // Do we have entries?
+               // Are there entries?
                if (SQL_HASZERONUMS($result)) {
                        // No, then abort here
                        displayMessage('{--ADMIN_CONFIG_NETWORK_HANDLER_SET_ALL_404--}');
@@ -1705,7 +1705,7 @@ function doAdminNetworkProcessEditHandlerTypesConfig ($displayMessage = true) {
                $result = SQL_QUERY_ESC('SELECT `network_data_id` FROM `{?_MYSQL_PREFIX?}_network_types_config` WHERE `network_id`=%s ORDER BY `network_type_id` ASC',
                        array(bigintval(getRequestElement('network_id'))), __FUNCTION__, __LINE__);
 
-               // Do we have entries?
+               // Are there entries?
                if (SQL_HASZERONUMS($result)) {
                        // No, then abort here
                        displayMessage('{--ADMIN_CONFIG_NETWORK_HANDLER_SET_ALL_404--}');
index ee3e22c9416b304d377dec860e209d3c1944e971..e3e1f829729b39a1d0d4b8c4318c18b9883131da 100644 (file)
@@ -57,7 +57,7 @@ function repairOptimizeDatabase () {
        $ret['total_tabs'] = SQL_NUMROWS($result);
        $ret['tables'] = array();
 
-       // Do we have entries?
+       // Are there entries?
        if (!SQL_HASZERONUMS($result)) {
                // Fetch all rows
                while ($row = SQL_FETCHARRAY($result)) {
index 5aa1383fe84093a76929087071203c8dcc6b61d7..696b9e01d507510e089ebfeb9b57337fb8763002 100644 (file)
@@ -72,7 +72,7 @@ function addOrderSelectionOptions ($default) {
 
 // Getter for 'order_multi_page' config entry
 function getOrderMultiPage () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('order_multi_page');
@@ -84,7 +84,7 @@ function getOrderMultiPage () {
 
 // Determines whether 'order_multi_page' is set to 'Y'
 function isOrderMultiPageEnabled () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = (getOrderMultiPage() == 'Y');
index 82c4048dea845405414c1f7d6b73475ffecb7626..c9b05aadd683f534e7bc5fc69221d10e94bfc1ce 100644 (file)
@@ -96,7 +96,7 @@ function translatePayoutStatus ($status) {
 
 // "Getter" for payoutable user points
 function getPayoutPoints ($userid) {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__][$userid])) {
                // Determine it
                $GLOBALS[__FUNCTION__][$userid] = countSumTotalData($userid, 'user_points', 'points') - getUserUsedPoints($userid);
index 7a3664c68e6a627f0d1c72f76d5f79d2a5ba8088..2af462437b4eb67dd6f513c481a0d5c903b52edc 100644 (file)
@@ -46,7 +46,7 @@ if (!defined('__SECURITY')) {
 
 // Getter for profile_update
 function getProfileUpdate () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('profile_update');
@@ -58,7 +58,7 @@ function getProfileUpdate () {
 
 // Getter for resend_profile_update
 function getResendProfileUpdate () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('resend_profile_update');
@@ -70,7 +70,7 @@ function getResendProfileUpdate () {
 
 // Determines whether sending profile update notification is enabled
 function isSendProfileUpdateEnabled() {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = (getConfig('send_prof_update') == 'Y');
index d88550529135925a0f2b1c34c20220e7978217d1..3974a2df090c68a2f98f65f9afbc73b0323d70e7 100644 (file)
@@ -91,7 +91,7 @@ WHERE
 LIMIT 1",
                        array(bigintval($content['id']), bigintval($content['userid'])), __FUNCTION__, __LINE__);
 
-               // Do we have an entry?
+               // Is there an entry?
                if (SQL_HASZERONUMS($result_ref)) {
                        // Add userid and his ref count to table
                        $result_ref = SQL_QUERY_ESC("SELECT 
@@ -907,7 +907,7 @@ function addReferralRallyeTemplateSelection ($name = 'template', $default = '')
                }
        } // END - foreach
 
-       // Do we have found templates which we can link with the new rallye?
+       // Is there found templates which we can link with the new rallye?
        if (!empty($ral[0])) {
                // Generate selection box for all found templates
                $OUT  = '<select class="form_select" name="' . $name . '" size="1">';
@@ -929,7 +929,7 @@ function getReferralRallyeRefsCount ($currUserid, $oldReferralCount = '0') {
                // Get refs from cache
                $count = '0';
                foreach ($GLOBALS['cache_array']['refsystem']['userid'] as $id => $userid) {
-                       // Do we have a ref for this user?
+                       // Is there a ref for this user?
                        //* DEBUG: */ debugOutput('id='.$id.',userid='.$userid.',userid='.$userid.',oldReferralCount='.$oldReferralCount.',level='.$GLOBALS['cache_array']['refsystem']['level'][$id]);
                        if (($currUserid == $userid) && ($GLOBALS['cache_array']['refsystem']['level'][$id] == 1)) {
                                //* DEBUG: */ debugOutput('userid matches!');
@@ -1025,7 +1025,7 @@ function determineReferralRallyeMinimumPrices ($min_prices) {
 
 // "Getter" for total rallye prices by given id
 function getTotalRallyePrices ($rallyeId) {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__][$rallyeId])) {
                // Determine it
                $GLOBALS[__FUNCTION__][$rallyeId] = countSumTotalData($rallyeId, 'rallye_prices', 'id', 'rallye_id', true);
index fe4ef4adcf6ba0bd86a2b1beaced2e9b53feb587..7547757ff713a3c03acc1bb0f6ecc0ddbc3a102e 100644 (file)
@@ -363,7 +363,7 @@ function updateMemberRefbackPercents ($id, $percents, $note) {
 
 // Checks whether refback is enabled
 function isRefbackEnabled () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = (getConfig('refback_enabled') == 'Y');
index 1db2b7ce21878bf22e54022665c51a59380e9471..9fd8873505c8528b7fdb7e5146335df27c8851b1 100644 (file)
@@ -55,7 +55,7 @@ function rewriteLinksInCode ($code) {
                $code = str_replace($rewrite . '/modules.php?module=', $target, $code);
        } // END - foreach
 
-       // Do we have an URL linked to mxchange.org?
+       // Is there an URL linked to mxchange.org?
        if (isInStringIgnoreCase(getServerUrl(), $code)) {
                // Convert URLs from my server
                $code = str_replace('{?URL?}/modules.php?module=', getServerUrl() . '/cms/', $code);
index ee1f9050b9f01966cb2a485522809b272feaf72b..3e5909476677b783bf26173550e8b80e698556aa 100644 (file)
@@ -71,9 +71,9 @@ function handleSponsorRequest ($postData, $update=false, $messageArray = array()
                                                        // Email address is not valid
                                                        $SAVE = false;
                                                } else {
-                                                       // Do we want to add a new sponsor or update his data?
+                                                       // Add a new sponsor or update his data?
                                                        $result = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_sponsor_data` WHERE email='%s' LIMIT 1",
-                                                       array($postData['email']), __FUNCTION__, __LINE__);
+                                                               array($postData['email']), __FUNCTION__, __LINE__);
 
                                                        // Is a sponsor alread in the db?
                                                        if (SQL_NUMROWS($result) == 1) {
@@ -242,7 +242,7 @@ function translateSponsorStatus ($status) {
 
 // Search for an email address in the database
 function isSponsorRegisteredWithEmail ($email) {
-       // Do we already have the provided email address in our DB?
+       // Is there already the provided email address in database?
        $ret = (countSumTotalData($email, 'sponsor_data', 'id', 'email', true) == 1);
 
        // Return result
@@ -627,7 +627,7 @@ function doExpressionSponsor ($data) {
 
        // Sponsor-related data, so is there a sponsor_id?
        if (!empty($data['matches'][4][$data['key']])) {
-               // Do we have a sponsor_id or $sponsor_id?
+               // Is there a sponsor_id or $sponsor_id?
                if ($data['matches'][4][$data['key']] == '$userid') {
                        // Use dynamic call
                        $functionName = "getFetchedSponsorData('id', \$userid, '" . $data['callback'] . "')";
@@ -640,7 +640,7 @@ function doExpressionSponsor ($data) {
                $functionName = "getSponsorData('" . $data['callback'] . "')";
        }
 
-       // Do we have another function to run (e.g. translations)
+       // Is there another function to run (e.g. translations)
        if (!empty($data['extra_func'])) {
                // Surround the original function call with it
                $functionName = $data['extra_func'] . '(' . $functionName . ')';
@@ -689,7 +689,7 @@ function fetchSponsorData ($sponsor_id, $column = 'id') {
        $result = SQL_QUERY_ESC("SELECT *".$ADD." FROM `{?_MYSQL_PREFIX?}_sponsor_data` WHERE `%s`='%s' LIMIT 1",
                array($column, $sponsor_id), __FUNCTION__, __LINE__);
 
-       // Do we have a record?
+       // Is there a record?
        if (SQL_NUMROWS($result) == 1) {
                // Load data from cookies
                $data = SQL_FETCHARRAY($result);
@@ -808,7 +808,7 @@ function isCurrentSponsorIdSet () {
 
 // Is given sponsor_id valid?
 function isValidSponsorId ($sponsor_id) {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__][$sponsor_id])) {
                // Check it out
                $GLOBALS[__FUNCTION__][$sponsor_id] = ((!is_null($sponsor_id)) && (!empty($sponsor_id)) && ($sponsor_id > 0));
@@ -853,7 +853,7 @@ function destroySponsorSession () {
 
 // Getter for sponsor_min_points
 function getSponsorMinPoints () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('sponsor_min_points');
@@ -865,7 +865,7 @@ function getSponsorMinPoints () {
 
 // Getter for sponsor_ref_points
 function getSponsorRefPoints () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('sponsor_ref_points');
index b61ab649143e9ab4fc1bca44f9355d22d08c2d62..a2a040bacf762163a69a2b0b4ed4ebce29e9af98 100644 (file)
@@ -520,7 +520,7 @@ function doHandleSurfbarDepletedViews () {
        // Get all URLs
        $urlArray = getSurfbarUrlData(0, 'url_views_max', 'url_id', 'ASC', 'url_id', " AND `url_views_allowed` > 0 AND `url_status`='ACTIVE'");
 
-       // Do we have some entries?
+       // Are there some entries?
        if (count($urlArray) > 0) {
                // Then handle all!
                foreach ($urlArray as $id => $urlData) {
@@ -812,7 +812,7 @@ function translateSurfbarUrlStatus ($status) {
 
 // Translates the given action into a link title for members
 function translateMemberSurfbarActionToTitle ($action) {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__][$action])) {
                // Construct default return string (unknown
                $GLOBALS[__FUNCTION__][$action] = '{%message,MEMBER_SURFBAR_ACTION_UNKNOWN_TITLE=' . $action . '%}';
@@ -833,7 +833,7 @@ function translateMemberSurfbarActionToTitle ($action) {
 
 // Translates the given action into a submit button for members
 function translateMemberSurfbarActionToSubmit ($action) {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__][$action])) {
                // Construct default return string (unknown
                $GLOBALS[__FUNCTION__][$action] = '{%message,MEMBER_SURFBAR_ACTION_UNKNOWN_SUBMIT=' . $action . '%}';
@@ -857,7 +857,7 @@ function determineSurfbarReward ($onlyMin = false) {
        // Static values are default
        $reward = getConfig('surfbar_static_reward');
 
-       // Do we have static or dynamic?
+       // Is there static or dynamic?
        if (getSurfbarPaymentModel() == 'DYNAMIC') {
                // "Calculate" dynamic reward
                if ($onlyMin === true) {
@@ -876,7 +876,7 @@ function determineSurfbarCosts ($onlyMin=false) {
        // Static costs is default
        $costs  = getConfig('surfbar_static_costs');
 
-       // Do we have static or dynamic?
+       // Is there static or dynamic?
        if (getSurfbarPaymentModel() == 'DYNAMIC') {
                // "Calculate" dynamic costs
                if ($onlyMin) {
@@ -929,7 +929,7 @@ function isSurfbarReloadFull () {
        // Cache static reload lock
        $GLOBALS['surfbar_cache']['surf_lock'] = getConfig('surfbar_static_lock');
 
-       // Do we have dynamic model?
+       // Is there dynamic model?
        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'surf_lock=' . $GLOBALS['surfbar_cache']['surf_lock'] . ' - BEFORE');
        if (getSurfbarPaymentModel() == 'DYNAMIC') {
                // "Calculate" dynamic lock
@@ -972,7 +972,7 @@ LIMIT 1",
        // Get total URLs
        $total = getSurfbarTotalUrls();
 
-       // Do we have some URLs in lock? Admins can always surf on own URLs!
+       // Are there some URLs in lock? Admins can always surf on own URLs!
        $isFull = ((getSurfbarUserLocks() == $total) && ($total > 0));
 
        // Return result
@@ -1109,7 +1109,7 @@ function addSurfbarReloadLockById ($urlId) {
        // Search for an entry
        $countLock = countSumTotalData(getMemberId(), 'surfbar_locks', 'locks_id', 'locks_userid', true, ' AND `locks_url_id`=' . bigintval($urlId));
 
-       // Do we have no record?
+       // Is there no record?
        if ($countLock == 0) {
                // Just add it to the database
                SQL_QUERY_ESC('INSERT INTO `{?_MYSQL_PREFIX?}_surfbar_locks` (`locks_userid`,`locks_url_id`) VALUES (%s, %s)',
@@ -1155,7 +1155,7 @@ function updateInsertSurfbarStatisticsRecord () {
        // Get allowed views
        $allowed = gerSurfbarViewsAllowed();
 
-       // Do we have a limit?
+       // Is there a limit?
        if ($allowed > 0) {
                // Then count views_max down!
                $add .= ',`url_views_max`=`url_views_max`-1';
@@ -1272,7 +1272,7 @@ function determineSurfbarDepletedUserids ($limit=0) {
                'notified'     => array(),
        );
 
-       // Do we have a current user id?
+       // Is there a current user id?
        if ((isMember()) && ($limit == '0')) {
                // Then add this as well
                $userids['url_userid'][getMemberId()] = getMemberId();
@@ -1859,7 +1859,7 @@ LIMIT 1",
 
 // "Getter" for surfbar_dynamic_percent
 function getSurfbarDynamicPercent () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('surfbar_dynamic_percent');
@@ -1871,7 +1871,7 @@ function getSurfbarDynamicPercent () {
 
 // "Getter" for surfbar_static_reward
 function getSurfbarStaticReward () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('surfbar_static_reward');
@@ -1883,7 +1883,7 @@ function getSurfbarStaticReward () {
 
 // "Getter" for surfbar_static_time
 function getSurfbarStaticTime () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('surfbar_static_time');
@@ -1895,7 +1895,7 @@ function getSurfbarStaticTime () {
 
 // "Getter" for surfbar_max_order
 function getSurfbarMaxOrder () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('surfbar_max_order');
@@ -1907,7 +1907,7 @@ function getSurfbarMaxOrder () {
 
 // "Getter" for surfbar_payment_model
 function getSurfbarPaymentModel () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('surfbar_payment_model');
index 02b8ea4c1538e837de0f127f1b92166ec4cfa2b6..8245ee807cbfed3de354ff2c111c961b2b3ba795 100644 (file)
@@ -60,7 +60,7 @@ function generateThemeSelectionBox () {
        // Only activated themes for the user
        $add = " WHERE `theme_active`='Y'";
 
-       // Do we have admin?
+       // Is there admin?
        if (isAdmin()) $add = '';
 
        // Select all themes we want
index 75f0edf54bb65790ab68a85e30c2815055d96fbf..1168748f6c0c6fcd08a0c1d982f5a3a81ca1dcdb 100644 (file)
@@ -209,7 +209,7 @@ WHERE
 LIMIT 1",
                array($email), __FUNCTION__, __LINE__);
 
-       // Do we have an entry?
+       // Is there an entry?
        if (SQL_NUMROWS($result) == 1) {
                // Load userid
                list($userid) = SQL_FETCHROW($result);
@@ -235,7 +235,7 @@ function determineRandomReferralId () {
                // Get all user ids
                $totalUsers = countSumTotalData('CONFIRMED', 'user_data', 'userid', 'status', true, runFilterChain('user_exclusion_sql', ' AND `rand_confirmed` >= {?user_min_confirmed?}'));
 
-               // Do we have at least one?
+               // Is there at least one?
                if ($totalUsers > 0) {
                        // Then choose random userid
                        $randUserid = mt_rand(0, ($totalUsers - 1));
@@ -244,7 +244,7 @@ function determineRandomReferralId () {
                        $result = SQL_QUERY_ESC("SELECT `userid` FROM `{?_MYSQL_PREFIX?}_user_data` " . runFilterChain('user_exclusion_sql', "WHERE `status`='CONFIRMED'") . ' AND `rand_confirmed` >= {?user_min_confirmed?} ORDER BY `rand_confirmed` DESC LIMIT %s, 1',
                                array($randUserid), __FUNCTION__, __LINE__);
 
-                       // Do we have one entry there?
+                       // Is there one entry there?
                        if (SQL_NUMROWS($result) == 1) {
                                // Use that userid as new referral id
                                list($refid) = SQL_FETCHROW($result);
@@ -725,7 +725,7 @@ function getConfirmationMessageFromUserStatus ($status) {
 
 // "Getter" for total tester accounts
 function getTotalTesterUsers () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = countSumTotalData('', 'user_data', 'userid', '', true, runFilterChain('user_inclusion_sql'));
@@ -834,12 +834,12 @@ function doExpressionUser ($data) {
 
        // User-related data, so is there a userid?
        if (!empty($data['matches'][4][$data['key']])) {
-               // Do we have a userid or $userid?
+               // Is there a userid or $userid?
                if (substr($data['matches'][4][$data['key']], 0, 1) == '$') {
                        // Use dynamic call
                        $functionName = "getFetchedUserData('userid', " . $data['matches'][4][$data['key']] . ", '" . $data['callback'] . "')";
                } elseif (!empty($data['matches'][4][$data['key']])) {
-                       // Do we have a number or a dollar sign in front of it?
+                       // Is there a number or a dollar sign in front of it?
                        if (preg_replace('/[^0123456789]/', '', $data['matches'][4][$data['key']]) != $data['matches'][4][$data['key']]) {
                                // Possible database column, so get it again
                                $data['matches'][4][$data['key']] = "getFetchedUserData('userid', getMemberId(), '" . $data['matches'][4][$data['key']] . "')";
@@ -853,7 +853,7 @@ function doExpressionUser ($data) {
                $functionName = "getUserData('" . $data['callback'] . "')";
        }
 
-       // Do we have another function to run (e.g. translations)
+       // Is there another function to run (e.g. translations)
        if (!empty($data['extra_func'])) {
                // Surround the original function call with it
                $functionName = $data['extra_func'] . '(' . $functionName . ')';
@@ -879,7 +879,7 @@ function doTemplateAdminListUserTitle ($template, $clear = false) {
        // Init title with "all accounts"
        $code = '{--ADMIN_LIST_ALL_ACCOUNTS--}';
 
-       // Do we have a 'status' or 'do' set?
+       // Is there a 'status' or 'do' set?
        if (isGetRequestElementSet('status')) {
                // Set title according to the 'status'
                $code = sprintf("{--ADMIN_LIST_STATUS_%s_ACCOUNTS--}", strtoupper(getRequestElement('status')));
@@ -900,7 +900,7 @@ function doTemplateDisplayUsername ($template, $clear = false, $userid = NULL) {
                reportBug(__FUNCTION__, __LINE__, 'template=' . $template . ',clear=' . intval($clear) . ',userid[' . gettype($userid) . ']=' . intval($userid) . ' - Invalid userid provided.');
        } // END - if
 
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__][$userid])) {
                // Generate code
                $GLOBALS[__FUNCTION__][$userid] = $userid . ' ({%user,nickname,fixEmptyContentToDashes=' . $userid . '%})';
@@ -927,7 +927,7 @@ function addXmlSpecialMemberAddDoSubid () {
 
 // Getter for user_alpha
 function getUserAlpha () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('user_alpha');
@@ -939,7 +939,7 @@ function getUserAlpha () {
 
 // Getter for user_limit
 function getUserLimit () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('user_limit');
@@ -951,7 +951,7 @@ function getUserLimit () {
 
 // Getter for tester_user_surname_prefix
 function getTesterUserSurnamePrefix () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('tester_user_surname_prefix');
@@ -963,7 +963,7 @@ function getTesterUserSurnamePrefix () {
 
 // Getter for tester_user_maximum
 function getTesterUserMaximum () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('tester_user_maximum');
@@ -975,7 +975,7 @@ function getTesterUserMaximum () {
 
 // Getter for tester_user_check_cat
 function getTesterUserCheckCat () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('tester_user_check_cat');
@@ -987,7 +987,7 @@ function getTesterUserCheckCat () {
 
 // Getter for tester_user_gender
 function getTesterUserGender () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('tester_user_gender');
@@ -999,7 +999,7 @@ function getTesterUserGender () {
 
 // Getter for tester_user_family
 function getTesterUserFamily () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('tester_user_family');
@@ -1011,7 +1011,7 @@ function getTesterUserFamily () {
 
 // Getter for tester_user_password
 function getTesterUserPassword () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('tester_user_password');
@@ -1023,7 +1023,7 @@ function getTesterUserPassword () {
 
 // Getter for tester_user_street_nr
 function getTesterUserStreetNr () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('tester_user_street_nr');
@@ -1035,7 +1035,7 @@ function getTesterUserStreetNr () {
 
 // Getter for tester_user_zip
 function getTesterUserZip () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('tester_user_zip');
@@ -1047,7 +1047,7 @@ function getTesterUserZip () {
 
 // Getter for tester_user_city
 function getTesterUserCity () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('tester_user_city');
@@ -1059,7 +1059,7 @@ function getTesterUserCity () {
 
 // Getter for tester_user_email
 function getTesterUserEmail () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('tester_user_email');
index aed931703e5ed10de5c0d298c67548363ab9d038..7530ecd0cf354d0ba2479271a57685ff28fadef6 100644 (file)
@@ -400,7 +400,7 @@ function WERNIS_ADD_WITHDRAW_FEE ($points) {
 
 // Wrapper function for 'wernis_refid'
 function getWernisRefid () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Get config entry
                $GLOBALS[__FUNCTION__] = getConfig('wernis_refid');
@@ -412,7 +412,7 @@ function getWernisRefid () {
 
 // Wrapper function for 'wernis_pass_md5'
 function getWernisPassMd5 () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Get config entry
                $GLOBALS[__FUNCTION__] = getConfig('wernis_pass_md5');
@@ -424,7 +424,7 @@ function getWernisPassMd5 () {
 
 // Wrapper function for 'wernis_api_id'
 function getWernisApiId () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Get config entry
                $GLOBALS[__FUNCTION__] = getConfig('wernis_api_id');
@@ -436,7 +436,7 @@ function getWernisApiId () {
 
 // Wrapper function for 'wernis_api_md5'
 function getWernisApiMd5 () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Get config entry
                $GLOBALS[__FUNCTION__] = getConfig('wernis_api_md5');
@@ -448,7 +448,7 @@ function getWernisApiMd5 () {
 
 // Wrapper function for 'wernis_api_url'
 function getWernisApiUrl () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Get config entry
                $GLOBALS[__FUNCTION__] = getConfig('wernis_api_url');
@@ -460,7 +460,7 @@ function getWernisApiUrl () {
 
 // Wrapper function for 'wernis_withdraw_active'
 function getWernisWithdrawActive () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Get config entry
                $GLOBALS[__FUNCTION__] = getConfig('wernis_withdraw_active');
@@ -472,7 +472,7 @@ function getWernisWithdrawActive () {
 
 // Wrapper function for 'wernis_payout_active'
 function getWernisPayoutActive () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Get config entry
                $GLOBALS[__FUNCTION__] = getConfig('wernis_payout_active');
@@ -484,7 +484,7 @@ function getWernisPayoutActive () {
 
 // Wrapper function for 'wernis_withdraw_active'
 function isWernisWithdrawActive () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Get config entry
                $GLOBALS[__FUNCTION__] = (getConfig('wernis_withdraw_active') == 'Y');
@@ -496,7 +496,7 @@ function isWernisWithdrawActive () {
 
 // Wrapper function for 'wernis_payout_active'
 function isWernisPayoutActive () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Get config entry
                $GLOBALS[__FUNCTION__] = (getConfig('wernis_payout_active') == 'Y');
@@ -508,7 +508,7 @@ function isWernisPayoutActive () {
 
 // Wrapper function for 'wernis_withdraw_factor'
 function getWernisWithdrawFactor () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Get config entry
                $GLOBALS[__FUNCTION__] = getConfig('wernis_withdraw_factor');
@@ -520,7 +520,7 @@ function getWernisWithdrawFactor () {
 
 // Wrapper function for 'wernis_payout_factor'
 function getWernisPayoutFactor () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Get config entry
                $GLOBALS[__FUNCTION__] = getConfig('wernis_payout_factor');
@@ -532,7 +532,7 @@ function getWernisPayoutFactor () {
 
 // Wrapper function for 'wernis_withdraw_fee_percent'
 function getWernisWithdrawFeePercent () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Get config entry
                $GLOBALS[__FUNCTION__] = getConfig('wernis_withdraw_fee_percent');
@@ -544,7 +544,7 @@ function getWernisWithdrawFeePercent () {
 
 // Wrapper function for 'wernis_withdraw_fee_fix'
 function getWernisWithdrawFeeFix () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Get config entry
                $GLOBALS[__FUNCTION__] = getConfig('wernis_withdraw_fee_fix');
index 0294ab98c686ad321d69835708ae4b5b7ff263b3..bedb886982080d2d197b8df02e93aef986692bfb 100644 (file)
@@ -127,7 +127,7 @@ function YOOMEDIA_TEST_CONFIG ($data) {
                $errorCode = '0';
        }
 
-       // Do we have some data there?
+       // Is some data there?
        return ($errorCode == '0');
 }
 
index be115a4a3ce8054f15089162f6c61a4244506adc..c34f9585bed3616ce8d942263334b8de87321a47 100644 (file)
@@ -57,7 +57,7 @@ if (($GLOBALS['cache_instance']->loadCacheFile('admin')) && ($GLOBALS['cache_ins
                        foreach ($GLOBALS['cache_array']['admin']['login'] as $idx => $admin) {
                                // Rewrite all entries
                                foreach ($GLOBALS['cache_array']['admin'] as $key => $entry) {
-                                       // Do we have login or regular entries?
+                                       // Is there login or regular entries?
                                        if ($key == 'admin_id') {
                                                // Admin id, so use login
                                                $admins[$key][$GLOBALS['cache_array']['admin']['login'][$idx]] = $entry[$idx];
@@ -128,7 +128,7 @@ if (isExtensionInstalledAndNewer('admins', '0.3')) {
                                foreach ($GLOBALS['cache_array']['admin_acls']['admin_id'] as $idx => $admin) {
                                        // Rewrite all entries
                                        foreach ($GLOBALS['cache_array']['admin_acls'] as $key => $entry) {
-                                               // Do we have 'admin_id' or regular entries?
+                                               // Is there 'admin_id' or regular entries?
                                                if ($key != 'admin_id') {
                                                        // Regular entry so use id
                                                        array_push($admins[$key][$GLOBALS['cache_array']['admin_acls']['admin_id'][$idx]], $entry[$idx]);
index 2d5fd5b96bb9996ccf7c60da744146ec28d6da5b..8de1d6aedc2e72bbc9a797e47e7fb2e56ed82102 100644 (file)
@@ -53,7 +53,7 @@ if (($GLOBALS['cache_instance']->loadCacheFile('extension')) && ($GLOBALS['cache
        // Init extension inc-pool
        $EXT_POOL = array();
 
-       // Do we have entries?
+       // Are there entries?
        if (count($EXT_DUMMY) > 0) {
                // Init arrays
                $EXT_NAMES = array();
index 78fed2c674a01f25e04d8b0bab4b07055c4b7da7..18777fc59f261bbc62eb790de44779d3e0e304eb 100644 (file)
@@ -91,7 +91,7 @@ if (($GLOBALS['cache_instance']->loadCacheFile('modules')) && ($GLOBALS['cache_i
        // Create cache file here
        $GLOBALS['cache_instance']->init();
 
-       // Do we have up-to-date ext-sql_patches?
+       // Is there up-to-date ext-sql_patches?
        if (isExtensionInstalledAndNewer('sql_patches', '0.3.6')) {
                // Yes, has_menu shall be there
                $result = SQL_QUERY('SELECT
index 220567a81ae3ac866b73189bd6c86e64a9fc7d23..90fa77f52e29a4d4a67394886e0165b48115c903 100644 (file)
@@ -48,7 +48,7 @@ if (($GLOBALS['cache_instance']->loadCacheFile('points_data')) && ($GLOBALS['cac
        // Load cache
        $GLOBALS['cache_array']['points_data'] = $GLOBALS['cache_instance']->getArrayFromCache();
 
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS['cache_array']['points_data']['subject'])) {
                // Try to remove the cache file
                $GLOBALS['cache_instance']->removeCacheFile();
index 540584641090dede4f695433a0d62a6cea88f575..2055a6b938df563e396c2395c6870093b232a9b4 100644 (file)
@@ -117,7 +117,7 @@ LIMIT {?doubler_max_sent?}",
                $DOUBLER_POINTS
        ), __FILE__, __LINE__);
 
-// Do we have entries found?
+// Are there entries found?
 if (((!SQL_HASZERONUMS($result_total)) && (getConfig('doubler_sent_all') == 'Y')) || ((SQL_NUMROWS($result_main) == getConfig('doubler_group_sent')) && (getConfig('doubler_sent_all') != 'Y'))) {
        // Switch to matching SQL resource
        $result_load = $result_main;
index 15d2f304656b7d1e51e3de190c211e8f2cdb53ce..a102350bb853d169810af9b931d7a7373052746d 100644 (file)
@@ -42,7 +42,7 @@ if (!defined('__SECURITY')) {
 
 // "Getter" for module title
 function getModuleTitle ($module) {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__][$module])) {
                // Init variables
                $data['title'] = '';
@@ -215,7 +215,7 @@ function checkModulePermissions ($module = '') {
                $module = getModule();
        } // END - if
 
-       // Do we have cache?
+       // Is there cache?
        if (isModuleStatusSet($module)) {
                // Then use it
                return getModuleStatus($module);
index f2cae6f2983c341266b17f005086d3d1a8eb93c5..38a180263d479516d47596ad8aa042dd61ee3e2e 100644 (file)
@@ -196,7 +196,7 @@ LIMIT 1",
                        $what
                ), __FUNCTION__, __LINE__);
 
-       // Do we have an entry?
+       // Is there an entry?
        if (SQL_NUMROWS($result_action) == 1) {
                // Is valid but does the inlcude file exists?
                $inc = sprintf("inc/modules/admin/action-%s.php", $action);
@@ -227,7 +227,7 @@ LIMIT 1",
  * combination (only one is allowed to be null!).
  */
 function isAdminAllowedAccessMenu ($action, $what = NULL) {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__][$action][$what])) {
                // ACL is always 'allow' when no ext-admins is installed
                // @TODO This can be rewritten into a filter
@@ -261,7 +261,7 @@ ORDER BY
        `sort` ASC,
        `id` DESC", __FUNCTION__, __LINE__);
 
-       // Do we have entries?
+       // Are there entries?
        if (!SQL_HASZERONUMS($result_main)) {
                $OUT .= '<ul class="admin_menu_main">';
 
@@ -350,12 +350,12 @@ ORDER BY
        // Start li-tag for sub menu content
        $OUT .= '<li class="admin_menu_sub" id="action_menu_' . $mainContent['main_action'] . '"' . addStyleMenuContent('admin', $mainContent['main_action'], $action) . '>';
 
-       // Do we have entries?
+       // Are there entries?
        if (ifAdminMenuHasEntries($mainContent['main_action'])) {
                // Sub menu has been called
                $SUB = true;
 
-               // Do we have entries?
+               // Are there entries?
                if (!SQL_HASZERONUMS($result_what)) {
                        // Start HTML code
                        $OUT .= '<ul class="admin_menu_sub">';
@@ -756,7 +756,7 @@ function adminGetMenuMode () {
                $result = SQL_QUERY_ESC("SELECT `la_mode` FROM `{?_MYSQL_PREFIX?}_admins` WHERE `id`=%s LIMIT 1",
                        array($adminId), __FUNCTION__, __LINE__);
 
-               // Do we have an entry?
+               // Is there an entry?
                if (SQL_NUMROWS($result) == 1) {
                        // Load data
                        list($adminMode) = SQL_FETCHROW($result);
@@ -917,7 +917,7 @@ function adminListBuilder ($listType, $tableName, $columns, $filterFunctions, $e
                                        continue;
                                } // END - if
 
-                               // Do we have a userid?
+                               // Is there a userid?
                                //* NOISY-DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'key=' . $key . ',userIdColumn=' . $userIdColumn[0]);
                                if ($key == $userIdColumn[0]) {
                                        // Add it again as raw id
@@ -937,7 +937,7 @@ function adminListBuilder ($listType, $tableName, $columns, $filterFunctions, $e
                                        $GLOBALS['admin_list_builder_id_value'] = bigintval($value);
                                } // END - if
 
-                               // Do we have a call-back function and extra-value pair?
+                               // Is there a call-back function and extra-value pair?
                                if ((isset($filterFunctions[$idx])) && (isset($extraValues[$idx]))) {
                                        // Handle the call in external function
                                        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'key=' . $key . ',fucntion=' . $filterFunctions[$idx] . ',value=' . $value);
@@ -1610,7 +1610,7 @@ function generateUnconfirmedAdminLink ($id, $unconfirmed, $type = 'bid') {
        // Init output
        $OUT = $unconfirmed;
 
-       // Do we have unconfirmed mails?
+       // Is there unconfirmed mails?
        if ($unconfirmed > 0) {
                // Add link to list_unconfirmed what-file
                $OUT = '<a href="{%url=modules.php?module=admin&amp;what=list_unconfirmed&amp;' . $type . '=' . $id . '%}">{%pipe,translateComma=' . $unconfirmed . '%}</a>';
index b2de9123fca6b5d5954acf09c01df3aac92aa45c..7a80734d6eea3903d9f53d4379bd978f548b7693 100644 (file)
@@ -448,7 +448,7 @@ LIMIT 1",
                        // Add/translate some content
                        $content['task_created'] = generateDateTime($content['task_created'], 2);
 
-                       // Do we have extension task?
+                       // Is there extension task?
                        if (isExtensionTask($content)) {
                                // Load extension row template
                                $OUT .= loadTemplate('admin_overview_list_ext_rows', true, $content);
index dbb7740b9c1a48ec18870dab7df2417aac82be7e..84ccdcfe2b04d73214c6094612b11c49e4100314 100644 (file)
@@ -196,7 +196,7 @@ LIMIT 1",
        // Run SQL
        $result = SQL_QUERY("SELECT `id`,`action`,`what`,`title`,`sort` FROM `{?_MYSQL_PREFIX?}_admin_menu` WHERE ".$AND." ORDER BY `sort` ASC", __FILE__, __LINE__);
 
-       // Do we have entries?
+       // Are there entries?
        if (!SQL_HASZERONUMS($result)) {
                // Init variables
                $OUT = '';
index 9330d322aa403292bd5d575ad59542aea16ac79a..c2e6865badf1a315b463f51b870f0ddefac0a6b4 100644 (file)
@@ -50,7 +50,7 @@ if (isFormSent()) {
        // Query for all imprint data rows
        $result = SQL_QUERY('SELECT `imprint_key`,`imprint_value` FROM `{?_MYSQL_PREFIX?}_imprint_data` ORDER BY `imprint_id` ASC', __FILE__, __LINE__);
 
-       // Do we have entries?
+       // Are there entries?
        if (!SQL_HASZERONUMS($result)) {
                // Load all entries
                $OUT = '';
index 341d1e4b14b2d534b84431635d37cd80dee22c93..5b8367c197bdc78c43193c64ec4dec481609f8ec 100644 (file)
@@ -55,7 +55,7 @@ if ($GLOBALS['network_display'] === false) {
        return;
 } // END - if
 
-// Do we have a network selected?
+// Is there a network selected?
 if (isGetRequestElementSet('network_id')) {
        // Check all networks that doesn't have a configuration entry
        $result = SQL_QUERY_ESC("SELECT
@@ -80,7 +80,7 @@ LIMIT 1",
                        bigintval(getRequestElement('network_id'))
                ), __FILE__, __LINE__);
 
-       // Do we have an entry?
+       // Is there an entry?
        if (SQL_NUMROWS($result) == 1) {
                // Load data
                $content = SQL_FETCHARRAY($result);
@@ -109,7 +109,7 @@ LIMIT 1',
                                bigintval(getRequestElement('network_id'))
                        ), __FUNCTION__, __LINE__);
 
-               // Do we have an entry?
+               // Is there an entry?
                if (SQL_NUMROWS($result_config) == 1) {
                        // Load entries
                        $content = merge_array($content, SQL_FETCHARRAY($result_config));
index f6af185807b7978fab4f46dca6912330c47205d5..38ab8a10537a94a8cc31486d2646fa28804276a1 100644 (file)
@@ -55,7 +55,7 @@ if ($GLOBALS['network_display'] === false) {
        return;
 } // END - if
 
-// Do we have a network selected?
+// Is there a network selected?
 if (isGetRequestElementSet('network_id')) {
        // Set current network id
        setCurrentNetworkId(getRequestElement('network_id'));
@@ -90,7 +90,7 @@ LIMIT 1',
                                bigintval(getRequestElement('network_type_id'))
                        ), __FUNCTION__, __LINE__);
 
-               // Do we have a record?
+               // Is there a record?
                if (SQL_NUMROWS($result) == 1) {
                        // Load it
                        $content = SQL_FETCHARRAY($result);
@@ -169,7 +169,7 @@ ORDER BY
                        bigintval(getRequestElement('network_id'))
                ), __FUNCTION__, __LINE__);
 
-       // Do we have entries left?
+       // Are there entries left?
        if (!SQL_HASZERONUMS($result)) {
                // Init row output
                $OUT = '';
@@ -195,7 +195,7 @@ LIMIT 1',
                                        bigintval($content['network_type_id'])
                                ), __FUNCTION__, __LINE__);
 
-                       // Do we have an entry?
+                       // Is there an entry?
                        if (SQL_NUMROWS($result_config) == 1) {
                                // Load this data as well
                                $content = merge_array($content, SQL_FETCHARRAY($result_config));
index 7a2415fdc9f33cc3ecfa60b5885b690191c6a3c1..453e9c6142aadc305a9a865006f27e9afdeec4ae 100644 (file)
@@ -332,7 +332,7 @@ ORDER BY
                break;
 
        case 'register': // Register new extension
-               // Do we have some tasks?
+               // Are there some tasks?
                $numTasks = countSumTotalData(getCurrentAdminId(), 'task_system', 'id', 'assigned_admin', true, "AND `task_type`='EXTENSION'");
 
                // Is the id number valid and the task was found?
index bca220d8f9b896f0bb57db6612a2a3e23cb1f49f..780587a29a601131babdac3728304c200d819fd7 100644 (file)
@@ -200,7 +200,7 @@ if ((isFormSent('edit')) && (ifPostContainsSelections()) && (!isDemoModeActive()
                        array($subMenu), __FILE__, __LINE__);
        }
 
-       // Do we have entries?
+       // Are there entries?
        if (!SQL_HASZERONUMS($result)) {
                // Init variables
                $count = '0';
index 35cb31746597b727eef8dba7671e790fe4e6ac5a..1a5e1ceddce6b52d261d4ee7f74134d232e0325f 100644 (file)
@@ -79,7 +79,7 @@ if ((isFormSent('add')) && (isPostRequestElementSet('code')) && (isPostRequestEl
                'title' => '{--ADMIN_COUNTRY_ACTIVATION_NEXT_LINK--}'
        ));
 } elseif (((isFormSent('edit')) || (isPostRequestElementSet('delete'))) && (isPostRequestElementSet('id'))) {
-       // Do we have entries?
+       // Are there entries?
        if (ifPostContainsSelections('id')) {
                // Is the proper form sent?
                if (isFormSent('edit')) {
@@ -175,7 +175,7 @@ LIMIT 1");
        $result = SQL_QUERY('SELECT `id`,`code`,`descr`,`is_active` FROM `{?_MYSQL_PREFIX?}_countries` ORDER BY `code` ASC',
        __FILE__, __LINE__);
 
-       // Do we have entries?
+       // Are there entries?
        if (!SQL_HASZERONUMS($result)) {
                // List all countries
                $OUT = '';
index ff5474fdd8d28ab2dcf790481762e900c70f8560..cd47e625e7ff83ec4bcff59721a706aaffd00988 100644 (file)
@@ -69,7 +69,7 @@ ORDER BY
                        bigintval(getRequestElement('coupon_id'))
                ), __FILE__, __LINE__);
 
-       // Do we have entries?
+       // Are there entries?
        if (!SQL_HASZERONUMS($result)) {
                // Init variable
                $OUT = '';
@@ -109,7 +109,7 @@ FROM
 ORDER BY
        d.`id` ASC', __FILE__, __LINE__);
 
-       // Do we have entries?
+       // Are there entries?
        if (!SQL_HASZERONUMS($result)) {
                // Init variable
                $OUT = '';
index 714045236c816d2e9eddd697302e7b8825ac726f..1b024ace196fc6e2c152c9256ffeaba00bd40c5c 100644 (file)
@@ -67,7 +67,7 @@ if (isGetRequestElementSet('userid')) {
                                bigintval(getRequestElement('userid'))
                        ), __FILE__, __LINE__);
 
-               // Do we have some entries?
+               // Are there some entries?
                if (!SQL_HASZERONUMS($result)) {
                        // Some unconfirmed mails left
                        if (getRequestElement('delete') == 'all') {
@@ -116,7 +116,7 @@ if (isGetRequestElementSet('userid')) {
                                                        break;
                                        } // END - switch
 
-                                       // Do we have an entry?
+                                       // Is there an entry?
                                        if (SQL_NUMROWS($result_data) == 1) {
                                                // Mail was found
                                                $mailData = merge_array($linkData, SQL_FETCHARRAY($result_data));
index 85cebb6d00fc6d38c24bca76e887f6065add7bae..1857f48a2edbc7c61273467ea10c79a4be4ddc54 100644 (file)
@@ -61,7 +61,7 @@ if ($GLOBALS['network_display'] === false) {
        return;
 } // END - if
 
-// Do we have a network selected?
+// Is there a network selected?
 if (isGetRequestElementSet('network_id')) {
        // Get its data for template
        $networkData = getNetworkDataById(getRequestElement('network_id'));
@@ -108,7 +108,7 @@ ORDER BY
                        bigintval(getRequestElement('network_id'))
                ), __FILE__, __LINE__);
 
-       // Do we have entries?
+       // Are there entries?
        if (!SQL_HASZERONUMS($result)) {
                // List all entries
                $OUT = '';
index 116c9592bbea90d676952c590d1ba1f1f7bd361d..6a0585b87a3fb7a92f15977a9165d9a50bc92753 100644 (file)
@@ -61,7 +61,7 @@ if ($GLOBALS['network_display'] === false) {
        return;
 } // END - if
 
-// Do we have a network selected?
+// Is there a network selected?
 if (isGetRequestElementSet('network_id')) {
        // Get its data for template
        $networkData = getNetworkDataById(getRequestElement('network_id'));
@@ -104,7 +104,7 @@ ORDER BY
        p.`network_request_param_id` ASC",
                array(getRequestElement('network_id')), __FILE__, __LINE__);
 
-       // Do we have entries?
+       // Are there entries?
        if (!SQL_HASZERONUMS($result)) {
                // List all entries
                $OUT = '';
index 859fe3852eb4e23bd18c2836df6cbd6722490919..5a5537f16f05ab81ff97b34762dd092699463829 100644 (file)
@@ -61,7 +61,7 @@ if ($GLOBALS['network_display'] === false) {
        return;
 } // END - if
 
-// Do we have a network selected?
+// Is there a network selected?
 if (isGetRequestElementSet('network_id')) {
        // Get its data for template
        $networkData = getNetworkDataById(getRequestElement('network_id'));
@@ -85,7 +85,7 @@ ORDER BY
        `network_type_handler` ASC',
                array(getRequestElement('network_id')), __FILE__, __LINE__);
 
-       // Do we have entries?
+       // Are there entries?
        if (!SQL_HASZERONUMS($result)) {
                // List all entries
                $OUT = '';
index 167c49953420c7c82a4abdc8194d94ef190f2fcf..f6f9693848a20a0a95804f5583819ae4ba3b0f33 100644 (file)
@@ -61,7 +61,7 @@ if ($GLOBALS['network_display'] === false) {
        return;
 } // END - if
 
-// Do we have a network selected?
+// Is there a network selected?
 if (isGetRequestElementSet('network_id')) {
        // Get its data for template
        $networkData = getNetworkDataById(getRequestElement('network_id'));
@@ -83,7 +83,7 @@ ORDER BY
        `network_vcheck_param_id` ASC",
                array(getRequestElement('network_id')), __FILE__, __LINE__);
 
-       // Do we have entries?
+       // Are there entries?
        if (!SQL_HASZERONUMS($result)) {
                // List all entries
                $OUT = '';
index 1f90f6ea5ca86af30367d4f28bffe93c9472cfce..283feb5fc31f81c1daa677f4a28279550fa90096 100644 (file)
@@ -78,7 +78,7 @@ FROM
 ORDER BY
        `network_short_name` ASC', __FILE__, __LINE__);
 
-// Do we have entries?
+// Are there entries?
 if (!SQL_HASZERONUMS($result)) {
        // List all
        $OUT = '';
index c1367118a8d10893ff35070b51487fb07197680f..7c4d99b46210c35ce8adb71bff4bb467ec8592e1 100644 (file)
@@ -78,7 +78,7 @@ ORDER BY
                                        ), __FILE__, __LINE__);
                                //* DEBUG: */ debugOutput($userid.'/'.$levels['level'].'/'.SQL_NUMROWS($result_refs));
 
-                               // Do we have levels?
+                               // Is there levels?
                                if (!SQL_HASZERONUMS($result_refs)) {
                                        // Count entries
                                        $totalReferrals       = getUsersTotalReferrals($userid, $levels['level']);
index 77676c6544b9dbc1d89457ad090354ba3a2d5d9b..cf3fb4821cb612f9ecf0f946b392cd16aca3274d 100644 (file)
@@ -173,14 +173,18 @@ if (isFormSent('add')) {
 } else {
        // Load all payment types
        $result = SQL_QUERY("SELECT
-       `id`,`pay_name`,`pay_rate`,`pay_min_count`,`pay_currency`
+       `id`,
+       `pay_name`,
+       `pay_rate`,
+       `pay_min_count`,
+       `pay_currency`
 FROM
        `{?_MYSQL_PREFIX?}_sponsor_paytypes`
 ORDER BY
        `pay_name` ASC",
                __FILE__, __LINE__);
 
-       // Do we have some paytypes setup?
+       // Are there some payment types setup?
        if (!SQL_HASZERONUMS($result)) {
                // Prepare variables for listing
                $OUT = '';
index 5d6c226cb7c985d83d5affeafd7bd81d3240b58e..a49d80a7c6906a57962327aec93f39c1cebaa454 100644 (file)
@@ -164,7 +164,7 @@ ORDER BY
                                'task_created'  => generateDateTime($content['task_created'], 2)
                        ));
 
-                       // Do we have an extension task?
+                       // Is there an extension task?
                        if (isExtensionTask($content)) {
                                // Load extension row template
                                $OUT .= loadTemplate('admin_list_task_ext_rows', true, $content);
index 6dadfa922b1e18bf3bc66403c73a89eaea5a8730..5c137d098cd5c03741ce1ac4aeb2fba42755cd98 100644 (file)
@@ -113,7 +113,7 @@ if (($listed === true) && (!empty($sql))) {
        // Load mail data
        $result_master = SQL_QUERY($sql, __FILE__, __LINE__);
 
-       // Do we have an entry?
+       // Is there an entry?
        if (SQL_NUMROWS($result_master) == 1) {
                // Mail order / bonus mail found
                $poolData = SQL_FETCHARRAY($result_master);
@@ -155,7 +155,7 @@ LIMIT %s",
                                bigintval($poolData['max_rec'])
                        ),__FILE__, __LINE__);
 
-               // Do we have entries?
+               // Are there entries?
                if (!SQL_HASZERONUMS($result)) {
                        // At least one link left to confirm
                        $OUT = '';
index 9cfb2f5607b754d7bd33a9d1abf5e9c6acaa2e20..f259265150ec1476edc952c4fb1cff8c1da3ddca 100644 (file)
@@ -66,7 +66,7 @@ ORDER BY
        `userid` ASC",
                        __FILE__, __LINE__);
 
-               // Do we have entries left?
+               // Are there entries left?
                if (!SQL_HASZERONUMS($result)) {
                        // Convert timestamp selections
                        $expirationTime = time() + createEpocheTimeFromSelections('coupon_default_time', postRequestArray());
index 49228e9cf397cb6e8a404bc2f423a6744a2b42eb..708239941d06f04deed6cd2a484f4d378b6f4c9c 100644 (file)
@@ -76,7 +76,7 @@ if ((isMemberIdSet()) && (isSessionVariableSet('u_hash'))) {
                // Email is set
                $userid = SQL_ESCAPE(postRequestElement('email'));
        } elseif (isPostRequestElementSet('id')) {
-               // Do we have nickname or userid?
+               // Is there nickname or userid?
                if (isNicknameUsed(postRequestElement('id'))) {
                        // Nickname entered
                        $userid = SQL_ESCAPE(postRequestElement('id'));
@@ -125,7 +125,7 @@ $content['message'] = '';
 
 // Login problems?
 if (!empty($errorCode)) {
-       // Do we have a userid set?
+       // Is there a userid set?
        if (isSessionVariableSet('userid')) {
                // Then prefetch data for this account
                fetchUserData(getSession('userid'));
index fedbe03e8431d1d81f0b9ad30efd6eff0a85ec02..c1d813321ac43aca12e69f078354c5fde6565857 100644 (file)
@@ -84,7 +84,7 @@ LIMIT 1",
                                getMemberId()
                        ), __FILE__, __LINE__);
 
-               // Do we have an entry?
+               // Is there an entry?
                if (SQL_NUMROWS($result) == 1) {
                        // Load data
                        $content = SQL_FETCHARRAY($result);
index 1789239edf630d7799e9a5130c6c882642c274c0..d3fb3b9d62d6fffe5997a4549f67819d29f96f01 100644 (file)
@@ -51,7 +51,7 @@ if (isAdmin()) $whereStatement = '';
 // Get all categories
 $result = SQL_QUERY("SELECT `id`,`cat` FROM `{?_MYSQL_PREFIX?}_cats`".$whereStatement." ORDER BY `sort` ASC", __FILE__, __LINE__);
 
-// Do we have entries?
+// Are there entries?
 if (!SQL_HASZERONUMS($result)) {
        $LEAST = false;
        if (isFormSent()) {
@@ -92,7 +92,7 @@ if (!SQL_HASZERONUMS($result)) {
                        } // END - switch
                } // END - foreach
 
-               // Do we have entries?
+               // Are there entries?
                if (countSqls() > 0) {
                        // Run SQL commands
                        $count = runFilterChain('run_sqls');
index c0b2ab53434d88aa962634ac190774795627167b..a4ad2d67078dbc9936e2afe88bd2e55e5fa32060 100644 (file)
@@ -65,7 +65,7 @@ FROM
 ORDER BY
        d.`earning_sorting` ASC', __FILE__, __LINE__);
 
-// Do we have entries?
+// Are there entries?
 if (!SQL_HASZERONUMS($result)) {
        // Init output
        $OUT = '';
@@ -90,7 +90,7 @@ LIMIT 1',
                                getMemberId()
                        ), __FILE__, __LINE__);
 
-               // Do we have an entry?
+               // Is there an entry?
                if (SQL_NUMROWS($result2) == 1) {
                        // Load it
                        $content = merge_array($content, SQL_FETCHARRAY($result2));
@@ -99,7 +99,7 @@ LIMIT 1',
                // Free result
                SQL_FREERESULT($result2);
 
-               // Do we have user_earning data available?
+               // Is there user_earning data available?
                if (!isset($content['earning_active'])) {
                        // Load row template "open subscription"
                        $OUT .= loadTemplate('member_earning_' . strtolower($content['earning_group']) . '_form_row', true, $content);
index 02816336897a01d5568e82c93048c02eb8d13920..23ac182eccccf05ea58d7e9d6be9c399105c0be0 100644 (file)
@@ -161,14 +161,15 @@ LIMIT 1",
 if (isPostRequestElementSet('stop')) {
        // Okay, end the holiday here...
        $result = SQL_QUERY_ESC("SELECT
-       `holiday_active`,`holiday_activated`
+       `holiday_active`,
+       `holiday_activated`
 FROM
        `{?_MYSQL_PREFIX?}_user_data`
 WHERE
        `userid`=%s
 LIMIT 1", array(getMemberId()), __FILE__, __LINE__);
 
-       // Do we have an entry?
+       // Is there an entry?
        if (SQL_NUMROWS($result) == 1) {
                // Merge arrays
                $content = merge_array($content, SQL_FETCHARRAY($result));
@@ -176,7 +177,8 @@ LIMIT 1", array(getMemberId()), __FILE__, __LINE__);
                if (($content['holiday_active'] == 'Y') && (($content['holiday_activated'] + getConfig('holiday_lock')) < time())) {
                        // Load data
                        $result2 = SQL_QUERY_ESC("SELECT
-       `holiday_start`,`holiday_end`
+       `holiday_start`,
+       `holiday_end`
 FROM
        `{?_MYSQL_PREFIX?}_user_holidays`
 WHERE
@@ -191,7 +193,8 @@ LIMIT 1", array(getMemberId()), __FILE__, __LINE__);
                                $content['end']   = generateDateTime($content['holiday_end']  , 3);
 
                                // Deactivate it now
-                               SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_data`
+                               SQL_QUERY_ESC("UPDATE
+       `{?_MYSQL_PREFIX?}_user_data`
 SET
        `holiday_active`='N',
        `holiday_activated`=0
@@ -237,7 +240,8 @@ LIMIT 1",
 if ((!isFormSent()) && (!isPostRequestElementSet('stop'))) {
        // Check if user is in holiday...
        $result = SQL_QUERY_ESC("SELECT
-       `holiday_active`,`holiday_activated`
+       `holiday_active`,
+       `holiday_activated`
 FROM
        `{?_MYSQL_PREFIX?}_user_data`
 WHERE
index e0d0c9c6d52467d62ce1f33c986341f61e3928af..8b68655b18f6c45af53fa800a4f793beadac4afd 100644 (file)
@@ -73,7 +73,7 @@ WHERE
 ORDER BY
        u.`cashed_on` DESC", array(getMemberId()), __FILE__, __LINE__);
 
-// Do we have entries?
+// Are there entries?
 if (!SQL_HASZERONUMS($result)) {
        // Init variable
        $OUT = '';
index 5312676f6671a0ecc4adaf927cac5746049b2b04..5cb477c76767c6155c30bd90d4542eb0bffdb5c9 100644 (file)
@@ -103,7 +103,7 @@ if ($isValid === true) {
        // Load template
        displayMessage($content);
 } else {
-       // Do we have already submit the form?
+       // Is there already submit the form?
        if (isPostRequestElementSet('nickname')) {
                loadTemplate('admin_settings_unsaved', false, '{--MEMBER_NICKNAME_IS_INVALID--}');
        } // END - if
index f87c555b36622607d644252c06210bca5f51c8e7..1180b53707d866c478b8926d5244ab6440d3970d 100644 (file)
@@ -198,7 +198,7 @@ ORDER BY
                                getMemberId()
                        ), __FILE__, __LINE__);
 
-               // Do we enougth receivers left?
+               // Are there still receivers left?
                if (SQL_NUMROWS($result) >= postRequestElement('receiver')) {
                        // Load receivers from database
                        $TEST = array(); $count = '0';
@@ -350,6 +350,9 @@ LIMIT 1",
                                                                bigintval(postRequestElement('zip'), true, false),
                                                        ), __FILE__, __LINE__);
                                        }
+
+                                       // Get insert id
+                                       $id = SQL_INSERTID();
                                } else {
                                        // Change current order
                                        if (isExtensionActive('html_mail')) {
@@ -413,24 +416,10 @@ LIMIT 1",
                                        }
                                }
 
-                               // Do we need to get the id number?
-                               if ($id == '0') {
-                                       // Order is placed as temporary. We need to get it's id for the frametester
-                                       $result = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_pool` WHERE `sender`=%s AND `subject`='%s' AND `payment_id`=%s AND `data_type`='TEMP' AND `timestamp`=UNIX_TIMESTAMP() LIMIT 1",
-                                               array(
-                                                       getMemberId(),
-                                                       postRequestElement('subject'),
-                                                       bigintval(postRequestElement('mail_type'))
-                                               ), __FILE__, __LINE__);
-
-                                       // Get pool id
-                                       list($id) = SQL_FETCHROW($result);
-
-                                       // Free result
-                                       SQL_FREERESULT($result);
-                               } // END - if
+                               // Make sure only valid id numbers can pass
+                               assert((!is_bool($id)) && ($id > 0));
 
-                               // id is received so we can redirect the user, used points will be added when he send's out the mail
+                               // Id is received so we can redirect the user, used points will be added when he send's out the mail
                                $url = 'modules.php?module=frametester&amp;order=' . $id;
                        } elseif ($content['target_send'] == '0') {
                                // Not enougth receivers found which can receive mails
index 7975df0833ab8eef7cec152aac50ab1ae3384f8f..34b65b9817f5ccb01dcbeb89aeee1330d864fcb0 100644 (file)
@@ -119,7 +119,7 @@ LIMIT 1',
                        convertZeroToNull($content['level'])
                ), __FILE__, __LINE__);
 
-       // Do we have an entry?
+       // Is there an entry?
        if (SQL_NUMROWS($result_points) == 1) {
                // Load data
                $content = merge_array($content, SQL_FETCHARRAY($result_points));
index 3ca4364019432a921d15c80c6a3bdb6e1147cce3..5704491bff95bbf0a9e559fe0195a5cdeae74d14 100644 (file)
@@ -59,7 +59,7 @@ $show = true;
 
 // Check for 'url_id' element
 //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'isFormSent()=' . intval(isFormSent('add_subid')) . ',ifPostContainsSelections()=' . intval(ifPostContainsSelections()) . ',countRequestPost()=' . countRequestPost());
-if ((!isFormSent('add_subid')) && ((!ifPostContainsSelections()) || (countRequestPost() == 0))) {
+if ((countRequestPost() > 0) && (!isFormSent('add_subid')) && ((!ifPostContainsSelections()) || (countRequestPost() == 0))) {
        // Not found so output message
        displayMessage('{--MEMBER_SUBID_NO_SELECTIONS--}');
 
index 2d3bfaf4b137d7b3843933bfece80138cb60fc05..f974520cdf04ddfe8fdc38e67295f9637e703bd3 100644 (file)
@@ -100,7 +100,7 @@ switch ($mode) {
                                        bigintval(postRequestElement('to_userid'))
                                ), __FILE__, __LINE__);
 
-                       // Do we have two entries?
+                       // Is there two entries?
                        $valid_data = (SQL_NUMROWS($result) == 2);
 
                        // Final check if all is fine
@@ -299,7 +299,7 @@ switch ($mode) {
                $totalPoints = '0';
                $result = SQL_QUERY_ESC($sql, array(getMemberId()), __FILE__, __LINE__);
 
-               // Do we have entries?
+               // Are there entries?
                if (!SQL_HASZERONUMS($result)) {
                        $OUT = '';
                        while ($content = SQL_FETCHARRAY($result)) {
@@ -506,7 +506,7 @@ LIMIT 1",
                                getMemberId()
                        ), __FILE__, __LINE__);
 
-               // Do we have an entry?
+               // Is there an entry?
                if (SQL_NUMROWS($result) == 1) {
                        // Load newest transaction
                        list($newest) = SQL_FETCHROW($result);
index a21023e06e62be0ddedacffaf00d1225d36f3afc..0513795fb2c3df80a613772120c50b56a8ce684e 100644 (file)
@@ -111,7 +111,7 @@ function addYouAreHereLink ($accessLevel, $FQFN, $return = false) {
                // Get access level from it
                $modCheck = getModuleFromFileName($file, $accessLevel);
 
-               // Do we have admin? Then display all
+               // Is there admin? Then display all
                $ADD = " AND `visible`='Y' AND `locked`='N'";
                if (isAdmin()) {
                        // Display all!
@@ -258,7 +258,7 @@ ORDER BY
                                        $content['action']
                                ), __FUNCTION__, __LINE__);
 
-                       // Do we have some entries?
+                       // Are there some entries?
                        if (!SQL_HASZERONUMS($result_sub)) {
                                // Init counter
                                $count = '0';
@@ -506,7 +506,7 @@ function fetchUserData ($value, $column = 'userid') {
                        $value
                ), __FUNCTION__, __LINE__);
 
-       // Do we have a record?
+       // Is there a record?
        if (SQL_NUMROWS($result) == 1) {
                // Load data from cookies
                $data = SQL_FETCHARRAY($result);
@@ -591,7 +591,7 @@ function isAdmin () {
                return false;
        } // END - if
 
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__][$adminId])) {
                // Init it with failed
                $GLOBALS[__FUNCTION__][$adminId] = false;
@@ -896,7 +896,7 @@ function getPaymentData ($paymentsId, $lookFor = 'price') {
        // Default value...
        $data[$lookFor] = NULL;
 
-       // Do we have cache?
+       // Is there cache?
        if (isset($GLOBALS['cache_array']['payments'][$paymentsId]['id'])) {
                // Use it if found to save SQL queries
                $data[$lookFor] = $GLOBALS['cache_array']['payments'][$lookFor][$paymentsId];
@@ -1101,7 +1101,7 @@ function getAdminId ($adminLogin) {
                $result = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_admins` WHERE `login`='%s' LIMIT 1",
                        array($adminLogin), __FUNCTION__, __LINE__);
 
-               // Do we have an entry?
+               // Is there an entry?
                if (SQL_NUMROWS($result) == 1) {
                        // Get it
                        $data = SQL_FETCHARRAY($result);
@@ -1120,7 +1120,7 @@ function getCurrentAdminId () {
        // Log debug message
        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'called!');
 
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS['current_admin_id'])) {
                // Get the admin login from session
                $adminId = getSession('admin_id');
@@ -1155,7 +1155,7 @@ function getAdminHash ($adminId) {
                $result = SQL_QUERY_ESC("SELECT `password` FROM `{?_MYSQL_PREFIX?}_admins` WHERE `id`=%s LIMIT 1",
                        array(bigintval($adminId)), __FUNCTION__, __LINE__);
 
-               // Do we have an entry?
+               // Is there an entry?
                if (SQL_NUMROWS($result) == 1) {
                        // Fetch data
                        $data = SQL_FETCHARRAY($result);
@@ -1258,7 +1258,7 @@ function getAdminDefaultAcl ($adminId) {
                $result_admin_id = SQL_QUERY_ESC("SELECT `default_acl` FROM `{?_MYSQL_PREFIX?}_admins` WHERE `id`=%s LIMIT 1",
                        array(bigintval($adminId)), __FUNCTION__, __LINE__);
 
-               // Do we have an entry?
+               // Is there an entry?
                if (SQL_NUMROWS($result_admin_id) == 1) {
                        // Fetch data
                        $data = SQL_FETCHARRAY($result_admin_id);
@@ -1295,7 +1295,7 @@ function getAdminMenuMode ($adminId) {
                $result_admin_id = SQL_QUERY_ESC("SELECT `la_mode` FROM `{?_MYSQL_PREFIX?}_admins` WHERE `id`=%s LIMIT 1",
                        array(bigintval($adminId)), __FUNCTION__, __LINE__);
 
-               // Do we have an entry?
+               // Is there an entry?
                if (SQL_NUMROWS($result_admin_id) == 1) {
                        // Fetch data
                        $data = SQL_FETCHARRAY($result_admin_id);
@@ -1362,7 +1362,7 @@ function generateOptions ($table, $key, $value, $default = '', $extra = '', $whe
                                $value
                        ), __FUNCTION__, __LINE__);
 
-               // Do we have rows?
+               // Is there rows?
                if (!SQL_HASZERONUMS($result)) {
                        // Found data so add them as OPTION lines
                        while ($content = SQL_FETCHARRAY($result)) {
@@ -1428,7 +1428,7 @@ WHERE
 LIMIT 1",
                array(bigintval($userid)), __FUNCTION__, __LINE__);
 
-       // Do we have an entry?
+       // Is there an entry?
        if (SQL_NUMROWS($result) == 1) {
                // Save his points to add them to the jackpot
                $data = SQL_FETCHARRAY($result);
@@ -1526,7 +1526,7 @@ function generateCategoryOptionsList ($mode, $userid = NULL) {
        $result = SQL_QUERY('SELECT `id`,`cat` FROM `{?_MYSQL_PREFIX?}_cats`' . $whereStatement . ' ORDER BY `sort` ASC',
                __FUNCTION__, __LINE__);
 
-       // Do we have entries?
+       // Are there entries?
        if (!SQL_HASZERONUMS($result)) {
                // ... and begin loading stuff
                while ($content = SQL_FETCHARRAY($result)) {
@@ -1818,7 +1818,7 @@ function doGenericListEntries ($tableTemplate, $rowTemplate, $noEntryMessageId,
        // Remove last commata and add FROM statement
        $SQL .= ' FROM `{?_MYSQL_PREFIX?}_' . $tableName[0] . '`';
 
-       // Do we have entries from whereColumns to add?
+       // Are there entries from whereColumns to add?
        if (count($whereColumns) > 0) {
                // Then add these as well
                if (count($whereColumns) == 1) {
@@ -1863,7 +1863,7 @@ function doGenericListEntries ($tableTemplate, $rowTemplate, $noEntryMessageId,
                }
        } // END - if
 
-       // Do we have entries from orderByColumns to add?
+       // Are there entries from orderByColumns to add?
        if (count($orderByColumns) > 0) {
                // Add them as well
                $SQL .= ' ORDER BY ';
@@ -1895,7 +1895,7 @@ function doListEntries ($SQL, $tableTemplate, $noEntryMessageId, $rowTemplate, $
        // Run the SQL query
        $result = SQL_QUERY($SQL, __FUNCTION__, __LINE__);
 
-       // Do we have some URLs left?
+       // Are there some URLs left?
        if (!SQL_HASZERONUMS($result)) {
                // List all URLs
                $OUT = '';
@@ -1905,7 +1905,7 @@ function doListEntries ($SQL, $tableTemplate, $noEntryMessageId, $rowTemplate, $
                                // Fill the callback arguments
                                $args = array($content[$columnName]);
 
-                               // Do we have more to add?
+                               // Is there more to add?
                                if (isset($extraParameters[$columnName])) {
                                        // Add them as well
                                        $args = merge_array($args, $extraParameters[$columnName]);
@@ -1951,7 +1951,7 @@ function doGenericAddEntries ($tableName, $columns = array(), $filterFunctions =
        // Default is that all went fine
        $GLOBALS['__XML_PARSE_RESULT'] = true;
 
-       // Do we have "time columns"?
+       // Is there "time columns"?
        if (count($timeColumns) > 0) {
                // Then "walk" through all entries
                foreach ($timeColumns as $column) {
index 8ed43487d7bb879d87ae1d8059b65e0fd2841bcc..001d12b8eae8905ada3d01e1ec80d9a409404ffc 100644 (file)
@@ -54,7 +54,7 @@ if ($GLOBALS['pool_cnt'] < getMaxSend()) {
        // Default is ext-html_mail is gone
        $add = '';
 
-       // Do we need to send out bonus mails?
+       // Send out bonus mails?
        if (isExtensionActive('html_mail')) {
                //  With HTML support
                $add = ', `html_msg`';
index 01845b720c590cf5131eda1f1b2c3c9e230b96ae..eae45bc0e45da7487bc60af0d1e9dd7ba10db9bf 100644 (file)
@@ -116,7 +116,7 @@ if (!SQL_HASZERONUMS($result_main)) {
                                // Lookup user id
                                //* DEBUG: */ debugOutput('*L:'.__LINE__.'/'.SQL_NUMROWS($result_user).'*');
                                if (fetchUserData($userid)) {
-                                       // Do we have a stats entry?
+                                       // Is there a stats entry?
                                        $result_stats = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_user_stats` WHERE `pool_id`=%s AND `userid`=%s AND timestamp_ordered='%s' LIMIT 1",
                                                array($mailData['id'], $mailData['sender_userid'], $mailData['timestamp']), __FILE__, __LINE__);
 
@@ -221,7 +221,7 @@ if (!SQL_HASZERONUMS($result_main)) {
                                                } // END - switch
                                        } // END - if
 
-                                       // Do we have reached the maximum to send mails? || (getConfig('max_send') >= $GLOBALS['pool_cnt'])
+                                       // Is there reached the maximum to send mails? || (getConfig('max_send') >= $GLOBALS['pool_cnt'])
                                        //* DEBUG: */ debugOutput('*L:'.__LINE__.'/'.$GLOBALS['pool_cnt'].'>='.$mailData['target_send'].'/'.getConfig('max_send').'>='.$GLOBALS['pool_cnt'].'/'.$lastSentId.'!='.$mailData['id'].'*');
                                        if ((($GLOBALS['pool_cnt'] >= $mailData['target_send'])) && ($lastSentId != $mailData['id'])) {
                                                // Prepare content
@@ -266,7 +266,7 @@ if (!SQL_HASZERONUMS($result_main)) {
                                                //* DEBUG: */ debugOutput('*EXIT/L:'.__LINE__.'/'.$P);
                                                break;
                                        }
-                                       // Do we have send maximum mails?
+                                       // Is there send maximum mails?
                                        elseif (($GLOBALS['pool_cnt'] >= getConfig('max_send')) || ($count2 >= getConfig('max_send'))) {
                                                // There are some mails left to send for next round, so we reset the status back to NEW (=still not fully delivered)
                                                $add = '';
@@ -316,7 +316,7 @@ if (!SQL_HASZERONUMS($result_main)) {
                } // END - if
        } // END - while
 
-       // Do we have points to "pay back"?
+       // Is there points to "pay back"?
        if ((count($pointsBack) > 0) && (!empty($pointsBack[0]))) {
                // Walk through all points
                foreach ($pointsBack as $userid => $PB) {
index 8502b3dd10617d8d86a64b765ae427ec152d2f5f..8a6c80078385bc3d15eb89e5c51cffed02db5410 100644 (file)
@@ -59,7 +59,7 @@ WHERE
 ORDER BY
        `id` ASC', __FILE__, __LINE__);
 
-// Do we have entries?
+// Are there entries?
 if (SQL_NUMROWS($result) > 0) {
        // Init variables
        $out = '';
index ca8282eacf01ee907bad4720dbceb15ee7262132..7e830feb8a6c580faf024913158466a5b8f19175 100644 (file)
@@ -60,7 +60,7 @@ ORDER BY
 // Init counter...
 $deletedStats = '0';
 
-// Do we have "purged" mails?
+// Is there "purged" mails?
 if (!SQL_HASZERONUMS($result_mails)) {
        // Okay, check for their sender's
        while ($content = SQL_FETCHARRAY($result_mails)) {
@@ -89,7 +89,7 @@ WHERE
 ORDER BY
        `userid` ASC", __FILE__, __LINE__);
 
-// Do we have "purged" mails?
+// Is there "purged" mails?
 if (!SQL_HASZERONUMS($result_mails)) {
        // Okay, check for their sender's
        while ($content = SQL_FETCHARRAY($result_mails)) {
@@ -118,7 +118,7 @@ ORDER BY
 // Free memory
 SQL_FREERESULT($result_mails);
 
-// Do we have deleted mails and the admin want's to receive a notification
+// Is there deleted mails and the admin want's to receive a notification
 if (($deletedStats > 0) && (getConfig('ap_dm_notify') == 'Y')) {
        // Send out email to admin
        sendAdminNotification('{--ADMIN_AUTOPURGE_DELETE_MAILS_SUBJECT--}', 'admin_autopurge_del_mails', $deletedStats);
index c1c3a8ff914fbc274aaeed646aebb407e301b1c5..4917a6f8dc7c0cd6808a49c65167067615ec91d5 100644 (file)
@@ -59,7 +59,7 @@ WHERE
        // Get deleted rows
        $deletedTasks = SQL_AFFECTEDROWS();
 
-       // Do we need to send a notification?
+       // Send out a notification?
        if (($deletedTasks > 0) && (getConfig('ap_tasks_notify') == 'Y')) {
                // Send out email to admin
                sendAdminNotification('{--ADMIN_AUTOPURGE_TASKS_SUBJECT--}', 'admin_autopurge_tsks', $deletedTasks);
index 04c32fa24049af1ba4d2b94ba2c2660b5373d45c..0d3f523306c1ffe685776a698e05bb2d253bac5a 100644 (file)
@@ -52,7 +52,7 @@ function getReferralLevelPercents ($level) {
        // Default is zero
        $data['percents'] = '0';
 
-       // Do we have cache?
+       // Is there cache?
        if ((isset($GLOBALS['cache_array']['refdepths']['level'])) && (isExtensionActive('cache'))) {
                // First look for level
                $key = array_search($level, $GLOBALS['cache_array']['refdepths']['level']);
@@ -478,7 +478,7 @@ function getPointsDataArrayFromSubject ($subject) {
        $result = SQL_QUERY_ESC("SELECT `id`,`subject`,`column_name`,`locked_mode`,`payment_method`,`notify_recipient` FROM `{?_MYSQL_PREFIX?}_points_data` WHERE `subject`='%s' LIMIT 1",
                array($subject), __FUNCTION__, __LINE__);
 
-       // Do we have an entry?
+       // Is there an entry?
        if (SQL_NUMROWS($result) == 1) {
                // Then load it
                $pointsData = SQL_FETCHARRAY($result);
@@ -573,7 +573,7 @@ function loadReferralTable ($userid) {
        $GLOBALS['referral_result'][$userid] = SQL_QUERY_ESC('SELECT `level` FROM `{?_MYSQL_PREFIX?}_refsystem` WHERE `userid`=%s ORDER BY `level` ASC',
                array($userid), __FUNCTION__, __LINE__);
 
-       // Do we have entries?
+       // Are there entries?
        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'userid=' . $userid . ',SQL_NUMROWS()=' . SQL_NUMROWS($GLOBALS['referral_result'][$userid]));
        if (SQL_NUMROWS($GLOBALS['referral_result'][$userid]) > 0) {
                // Then walk through all levels
@@ -588,7 +588,7 @@ function loadReferralTable ($userid) {
                                $GLOBALS['referral_result_refs'][$userid] = SQL_QUERY_ESC('SELECT `userid` FROM `{?_MYSQL_PREFIX?}_user_data` WHERE `refid`=%s ORDER BY `userid` ASC',
                                        array($userid), __FUNCTION__, __LINE__);
 
-                               // Do we have entries?
+                               // Are there entries?
                                //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'userid=' . $userid . ',level=' . $level . ',SQL_NUMROWS()=' . SQL_NUMROWS($GLOBALS['referral_result_refs'][$userid]));
                                if (SQL_NUMROWS($GLOBALS['referral_result_refs'][$userid]) > 0) {
                                        // Then again walk through all
@@ -699,7 +699,7 @@ function flushReferralTableToDatabase ($userid) {
                                        $refid
                                ), __FUNCTION__, __LINE__));
 
-                       // Do we have no entry?
+                       // Is there no entry?
                        if ($count == 0) {
                                // Then add it to the SQL
                                $SQL .= '(' . $userid . ',' . $level . ',' . $refid . '),';
@@ -808,7 +808,7 @@ function getReferralId () {
 
 // Determines referral id and sets it
 function determineReferralId () {
-       // Do we have it already detected?
+       // Is it already detected?
        if (isReferralIdValid()) {
                // Do not determine it, just return it
                return getReferralId();
@@ -860,7 +860,7 @@ function determineReferralId () {
                // Default is not found
                $found = false;
 
-               // Do we have nickname or userid set?
+               // Is there nickname or userid set?
                if ((isExtensionActive('nickname')) && (isNicknameUsed(getReferralId()))) {
                        // Nickname in URL, so load the id
                        $found = fetchUserData(getReferralId(), 'nickname');
index c4afd304a919d52d64ef19dbbf0f4d8a7185ffe4..62cdacc8c3f6e065f9e550750270a5ee04e2040f 100644 (file)
@@ -155,10 +155,19 @@ function postRequestElement ($element, $subElement = NULL) {
 
 // Checks if an element in $_POST exists
 function isPostRequestElementSet ($element, $subElement = NULL) {
+       /*
+        * Always check that $element is a string and that $subElement is NULL or
+        * a string as numerical indexes are not wanted in POST data (in this
+        * project).
+        */
+       assert(is_string($element) && ((is_null($subElement)) || (is_string($subElement))));
+
+       // Is a sub element set?
        if (is_null($subElement)) {
-               if (!is_string($element)) die(gettype($element));
+               // No, then only check $element
                return ((isset($GLOBALS['raw_request']['post'][$element])) && ((is_array($GLOBALS['raw_request']['post'][$element])) || (('' . $GLOBALS['raw_request']['post'][$element] . '') != '')));
        } else {
+               // Yes, then check both together
                return ((isset($GLOBALS['raw_request']['post'][$element][$subElement])) && (('' . $GLOBALS['raw_request']['post'][$element][$subElement] . '') != ''));
        }
 }
index 9982711f408a4783d574b449493c67ef4ef11d80..bbd3036c38c75a9d01b7ee72833c54f10e9292f4 100644 (file)
@@ -137,7 +137,7 @@ function getUpdateSqlFromArray ($array, $tableName, $whereColumn, $whereData, $e
                        continue;
                } // END - if
 
-               // Do we have a non-string (e.g. number, NULL, SQL function or back-tick at the beginning?
+               // Is there a non-string (e.g. number, NULL, SQL function or back-tick at the beginning?
                if (is_null($multiDimId)) {
                        // Handle one-dimensional data
                        if (is_null($value)) {
index a965d71c155d583598a8b2fb052e26ba1bfdd02c..a6308e25b3518527a1f868ef39a197ebbebdfeab 100644 (file)
@@ -57,13 +57,13 @@ function initStatsSystem () {
 
 // Checks if we have a statistics entry
 function isStatsEntrySet ($entry) {
-       // Do we have the entry?
+       // Is there the entry?
        return (isset($GLOBALS['stats'][$entry]));
 }
 
 // Increments a statistics entry
 function incrementStatsEntry ($entry, $amount=1) {
-       // Do we have stats enabled?
+       // Is there stats enabled?
        if ((!ifInternalStatsEnabled()) && ($entry != 'db_hits')) {
                // Abort here
                return;
@@ -104,7 +104,7 @@ function loadStatsTable () {
        // Check if the link is up
        if (!SQL_IS_LINK_UP()) return false;
 
-       // Do we have it there for today?
+       // Is it there for today?
        if (!isStatsTableCreated()) {
                // Then create a default one
                createStatsTable();
@@ -134,7 +134,7 @@ function isStatsTableCreated () {
        $result = SQL_QUERY_ESC("SHOW TABLES LIKE '{?_MYSQL_PREFIX?}_stats_%s'",
                array(generateDateTime(time(), '6')), __FUNCTION__, __LINE__);
 
-       // Do we have a row?
+       // Is there a row?
        return SQL_NUMROWS($result);
 }
 
index 73d0de026f2ef828888290dd5d92bb77952c2ef0..00642e5d25dca5bddb080862334ac6b5caa5a286 100644 (file)
@@ -100,7 +100,7 @@ function outputHtml ($htmlCode, $newLine = true) {
        } // END - if
 
        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'getOutputMode()=' . getOutputMode() . ',htmlCode(length)=' . strlen($htmlCode) . ',output(length)=' . strlen($GLOBALS['__output']));
-       // Do we have HTML-Code here?
+       // Is there HTML-Code here?
        if (!empty($htmlCode)) {
                // Yes, so we handle it as you have configured
                switch (getOutputMode()) {
@@ -297,7 +297,7 @@ function loadTemplate ($template, $return = false, $content = array(), $compileC
        // Set current template
        $GLOBALS['current_template'] = $template;
 
-       // Do we have cache?
+       // Is there cache?
        if ((!isDebuggingTemplateCache()) && (isTemplateCached($template))) {
                // Evaluate the cache
                eval(readTemplateCache($template));
@@ -327,7 +327,7 @@ function loadTemplate ($template, $return = false, $content = array(), $compileC
                        // The local file does exists so we load it. :)
                        $GLOBALS['tpl_content'][$template] = readFromFile($FQFN);
 
-                       // Do we have to compile the code?
+                       // Is there to compile the code?
                        if ((isInString('$', $GLOBALS['tpl_content'][$template])) || (isInString('{--', $GLOBALS['tpl_content'][$template])) || (isInString('{?', $GLOBALS['tpl_content'][$template])) || (isInString('{%', $GLOBALS['tpl_content'][$template]))) {
                                // Normal HTML output?
                                if ((isHtmlOutputMode()) && (substr($template, 0, 3) != 'js_')) {
@@ -378,7 +378,7 @@ function loadTemplate ($template, $return = false, $content = array(), $compileC
                //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'template=' . $template . ' - AFTER EVAL');
        } // END - if
 
-       // Do we have some content to output or return?
+       // Is there some content to output or return?
        if (!empty($ret)) {
                // Not empty so let's put it out! ;)
                if ($return === true) {
@@ -399,7 +399,7 @@ function detectExtraTemplatePath ($template) {
        // Default is empty
        $extraPath = '';
 
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS['extra_path'][$template])) {
                // Check for admin/guest/member/etc. templates
                if (substr($template, 0, 6) == 'admin_') {
@@ -515,7 +515,7 @@ function loadEmailTemplate ($template, $content = array(), $userid = NULL, $load
                $newContent = '{--NO_TEMPLATE_SUPPLIED--}';
        }
 
-       // Is there some content?
+       // Are there some content?
        if (empty($newContent)) {
                // Compiling failed
                $newContent = "Compiler error for template " . $template . " !\nUncompiled content:\n" . $GLOBALS['tpl_content'][$template];
@@ -538,7 +538,7 @@ function loadEmailTemplate ($template, $content = array(), $userid = NULL, $load
 function getMenuCssClasses ($data) {
        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'data=' . $data);
 
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__][$data])) {
                // $data needs to be converted into an array
                $content = explode('|', $data);
@@ -893,7 +893,7 @@ function createTimeSelections ($timestamp, $prefix = '', $display = '', $align =
        $stamp = round($timestamp);
        //* DEBUG: */ debugOutput('*' . $stamp .'/' . $timestamp . '*');
 
-       // Do we have a leap year?
+       // Is there a leap year?
        $SWITCH = '0';
        $TEST = getYear() / 4;
        $M1 = getMonth();
@@ -1295,7 +1295,7 @@ function reportBug ($F, $L, $message = '', $sendEmail = true) {
                sendAdminNotification('{--REPORT_BUG_SUBJECT--}', 'admin_report_bug', $content);
        } // END - if
 
-       // Do we have HTML/CSS/AJAX mode?
+       // Is there HTML/CSS/AJAX mode?
        if ((isHtmlOutputMode()) || (isCssOutputMode()) || (isAjaxOutputMode())) {
                // And abort here
                app_exit($F, $L, $debug);
@@ -1508,7 +1508,7 @@ function determinePageTitle () {
                        $pageTitle .= '{%config,trim=title_left%} ';
                } // END - if
 
-               // Do we have some extra title?
+               // Is there an extra title?
                if (isExtraTitleSet()) {
                        // Then prepend it
                        $pageTitle .= '{%pipe,getExtraTitle%} by ';
@@ -1569,7 +1569,7 @@ function determinePageTitle () {
 
 // Checks whethere there is a cache file there. This function is cached.
 function isTemplateCached ($template) {
-       // Do we have cached this result?
+       // Is there cached this result?
        if (!isset($GLOBALS['template_cache'][$template])) {
                // Generate FQFN
                $FQFN = generateCacheFqfn($template);
@@ -1986,7 +1986,7 @@ function generateTimeUnitSelectionBox ($defaultUnit, $fieldName, $unitArray) {
 
 // Function to add style tag (whether display:none/block)
 function addStyleMenuContent ($menuMode, $mainAction, $action) {
-       // Do we have foo_menu_javascript enabled?
+       // Is there foo_menu_javascript enabled?
        if ((!isConfigEntrySet($menuMode . '_menu_javascript')) || (getConfig($menuMode . '_menu_javascript') == 'N')) {
                // Silently abort here, not enabled
                return '';
@@ -2003,7 +2003,7 @@ function addStyleMenuContent ($menuMode, $mainAction, $action) {
 
 // Function to add onclick attribute
 function addJavaScriptMenuContent ($menuMode, $mainAction, $action, $what) {
-       // Do we have foo_menu_javascript enabled?
+       // Is there foo_menu_javascript enabled?
        if ((!isConfigEntrySet($menuMode . '_menu_javascript')) || (getConfig($menuMode . '_menu_javascript') == 'N')) {
                // Silently abort here, not enabled
                return '';
index 733d25ce18a201d0046bf6e7b18401f9fec0e134..762538a570dd0680dcf69dc9c4dc51634d29a119 100644 (file)
@@ -91,9 +91,9 @@ function writeToFile ($FQFN, $content, $aquireLock = false) {
                // Write it with fopen
                $fp = fopen($FQFN, 'w') or reportBug(__FUNCTION__, __LINE__, 'Cannot write to file ' . basename($FQFN) . '!');
 
-               // Do we need to aquire a lock?
+               // Aquire a lock?
                if ($aquireLock === true) {
-                       // Aquire lock
+                       // Aquire a lock.
                        flock($fp, LOCK_EX);
                } // END - if
 
@@ -176,7 +176,7 @@ function merge_array ($array1, $array2) {
 
 // Check if given FQFN is a readable file
 function isFileReadable ($FQFN) {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS['file_readable'][$FQFN])) {
                // Check all...
                $GLOBALS['file_readable'][$FQFN] = ((is_file($FQFN)) && (file_exists($FQFN)) && (is_readable($FQFN)));
@@ -188,7 +188,7 @@ function isFileReadable ($FQFN) {
 
 // Checks whether the given FQFN is a directory and not ., .. or .svn
 function isDirectory ($FQFN) {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__][$FQFN])) {
                // Generate baseName
                $baseName = basename($FQFN);
@@ -296,7 +296,7 @@ function detectServerName () {
 // Removes any  existing www. from SERVER_NAME. This is very silly but enough
 // for our purpose here.
 function detectDomainName () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Get server name
                $domainName = detectServerName();
@@ -329,7 +329,7 @@ function isInstalling () {
 
 // Check whether this script is installed
 function isInstalled () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine whether this script is installed
                $GLOBALS[__FUNCTION__] = (
@@ -439,7 +439,7 @@ function isDebugRegularExpressionEnabled () {
 
 // Checks whether the cache instance is valid
 function isCacheInstanceValid () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = ((isset($GLOBALS['cache_instance'])) && (is_object($GLOBALS['cache_instance'])));
@@ -477,14 +477,14 @@ function copyFileVerified ($source, $dest, $chmod = '') {
                $GLOBALS['file_readable'][$dest] = true;
        }
 
+       // All fine by default
+       $status = true;
+
        // If there are chmod rights set, apply them
        if (!empty($chmod)) {
                // Try to apply them
                $status = changeMode($dest, $chmod);
-       } else {
-               // All fine
-               $status = true;
-       }
+       } // END - if
 
        // All fine
        return $status;
@@ -521,14 +521,20 @@ function removeFile ($FQFN) {
 
 // Wrapper for $_POST['sel']
 function countPostSelection ($element = 'sel') {
-       // Is it set?
-       if (isPostRequestElementSet($element)) {
-               // Return counted elements
-               return countSelection(postRequestElement($element));
-       } else {
-               // Return zero if not found
-               return '0';
-       }
+       // Is there cache?
+       if (!isset($GLOBALS[__FUNCTION__][$element])) {
+               // Default is zero
+               $GLOBALS[__FUNCTION__][$element] = '0';
+
+               // Is it set?
+               if (isPostRequestElementSet($element)) {
+                       // Return counted elements
+                       $GLOBALS[__FUNCTION__][$element] = countSelection(postRequestElement($element));
+               } // END - if
+       } // END - if
+
+       // Return cached value
+       return $GLOBALS[__FUNCTION__][$element];
 }
 
 // Checks whether the config-local.php is loaded
@@ -794,7 +800,7 @@ function getUsername () {
 
 // Wrapper function for installation phase
 function isInstallationPhase () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = ((!isInstalled()) || (isInstalling()));
@@ -843,7 +849,7 @@ function getCurrentAdminLogin () {
        // Log debug message
        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'called!');
 
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getAdminLogin(getCurrentAdminId());
@@ -936,7 +942,7 @@ function getUserData ($column) {
 
 // Checks whether given user data is set to 'Y'
 function isUserDataEnabled ($column) {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__][getCurrentUserId()][$column])) {
                // Determine it
                $GLOBALS[__FUNCTION__][getCurrentUserId()][$column] = (getUserData($column) == 'Y');
@@ -1030,7 +1036,7 @@ function getCurrentUserId () {
 
 // Checks if current userid is set
 function isCurrentUserIdSet () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = ((isset($GLOBALS['current_userid'])) && (isValidUserId($GLOBALS['current_userid'])));
@@ -1042,7 +1048,7 @@ function isCurrentUserIdSet () {
 
 // Unsets current userid
 function unsetCurrentUserId () {
-       // Do we have it set?
+       // Is it set?
        if (isset($GLOBALS['current_userid'])) {
                // Unset this, too
                unset($GLOBALS['isValidUserId'][$GLOBALS['current_userid']]);
@@ -1056,7 +1062,7 @@ function unsetCurrentUserId () {
 
 // Checks whether we are debugging template cache
 function isDebuggingTemplateCache () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = (getConfig('DEBUG_TEMPLATE_CACHE') == 'Y');
@@ -1181,7 +1187,7 @@ function sendRawRedirect ($url) {
 
 // Determines the country of the given user id
 function determineCountry ($userid) {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__][$userid])) {
                // Default is 'invalid'
                $GLOBALS[__FUNCTION__][$userid] = 'invalid';
@@ -1272,7 +1278,7 @@ function isValidUserId ($userid) {
        // Debug message
        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'userid[' . gettype($userid) . ']=' . $userid);
 
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__][$userid])) {
                // Check it out
                $GLOBALS[__FUNCTION__][$userid] = ((!is_null($userid)) && (!empty($userid)) && ($userid > 0));
@@ -1465,7 +1471,7 @@ function getMinute ($timestamp = NULL) {
 
 // Checks whether the title decoration is enabled
 function isTitleDecorationEnabled () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Just check it
                $GLOBALS[__FUNCTION__] = (getConfig('enable_title_deco') == 'Y');
@@ -1477,7 +1483,7 @@ function isTitleDecorationEnabled () {
 
 // Checks whether filter usage updates are enabled (expensive queries!)
 function isFilterUsageUpdateEnabled () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = ((isExtensionInstalledAndNewer('sql_patches', '0.6.0')) && (isConfigEntrySet('update_filter_usage')) && (getConfig('update_filter_usage') == 'Y'));
@@ -1489,7 +1495,7 @@ function isFilterUsageUpdateEnabled () {
 
 // Checks whether debugging of weekly resets is enabled
 function isWeeklyResetDebugEnabled () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = ((isConfigEntrySet('DEBUG_WEEKLY')) && (getConfig('DEBUG_WEEKLY') == 'Y'));
@@ -1501,7 +1507,7 @@ function isWeeklyResetDebugEnabled () {
 
 // Checks whether debugging of monthly resets is enabled
 function isMonthlyResetDebugEnabled () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = ((isConfigEntrySet('DEBUG_MONTHLY')) && (getConfig('DEBUG_MONTHLY') == 'Y'));
@@ -1513,7 +1519,7 @@ function isMonthlyResetDebugEnabled () {
 
 // Checks whether displaying of debug SQLs are enabled
 function isDisplayDebugSqlEnabled () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = ((isExtensionInstalledAndNewer('other', '0.2.2')) && (getConfig('display_debug_sqls') == 'Y'));
@@ -1525,7 +1531,7 @@ function isDisplayDebugSqlEnabled () {
 
 // Checks whether module title is enabled
 function isModuleTitleEnabled () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = (getConfig('enable_mod_title') == 'Y');
@@ -1537,7 +1543,7 @@ function isModuleTitleEnabled () {
 
 // Checks whether what title is enabled
 function isWhatTitleEnabled () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = (getConfig('enable_what_title') == 'Y');
@@ -1549,7 +1555,7 @@ function isWhatTitleEnabled () {
 
 // Checks whether stats are enabled
 function ifInternalStatsEnabled () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Then determine it
                $GLOBALS[__FUNCTION__] = (getConfig('internal_stats') == 'Y');
@@ -1561,7 +1567,7 @@ function ifInternalStatsEnabled () {
 
 // Checks whether admin-notification of certain user actions is enabled
 function isAdminNotificationEnabled () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = (getConfig('admin_notify') == 'Y');
@@ -1573,7 +1579,7 @@ function isAdminNotificationEnabled () {
 
 // Checks whether random referral id selection is enabled
 function isRandomReferralIdEnabled () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = ((isExtensionInstalledAndNewer('user', '0.3.4')) && (getConfig('select_user_zero_refid') == 'Y'));
@@ -1585,7 +1591,7 @@ function isRandomReferralIdEnabled () {
 
 // "Getter" for default language
 function getDefaultLanguage () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('DEFAULT_LANG');
@@ -1597,7 +1603,7 @@ function getDefaultLanguage () {
 
 // "Getter" for default referral id
 function getDefRefid () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('def_refid');
@@ -1609,7 +1615,7 @@ function getDefRefid () {
 
 // "Getter" for path
 function getPath () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('PATH');
@@ -1621,7 +1627,7 @@ function getPath () {
 
 // "Getter" for url
 function getUrl () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('URL');
@@ -1633,7 +1639,7 @@ function getUrl () {
 
 // "Getter" for cache_path
 function getCachePath () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('CACHE_PATH');
@@ -1645,7 +1651,7 @@ function getCachePath () {
 
 // "Getter" for secret_key
 function getSecretKey () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('secret_key');
@@ -1657,7 +1663,7 @@ function getSecretKey () {
 
 // "Getter" for SITE_KEY
 function getSiteKey () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('SITE_KEY');
@@ -1669,7 +1675,7 @@ function getSiteKey () {
 
 // "Getter" for DATE_KEY
 function getDateKey () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('DATE_KEY');
@@ -1681,7 +1687,7 @@ function getDateKey () {
 
 // "Getter" for master_salt
 function getMasterSalt () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('master_salt');
@@ -1693,7 +1699,7 @@ function getMasterSalt () {
 
 // "Getter" for prime
 function getPrime () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('_PRIME');
@@ -1705,7 +1711,7 @@ function getPrime () {
 
 // "Getter" for encrypt_separator
 function getEncryptSeparator () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('ENCRYPT_SEPARATOR');
@@ -1717,7 +1723,7 @@ function getEncryptSeparator () {
 
 // "Getter" for mysql_prefix
 function getMysqlPrefix () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('_MYSQL_PREFIX');
@@ -1729,7 +1735,7 @@ function getMysqlPrefix () {
 
 // "Getter" for table_type
 function getTableType () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('_TABLE_TYPE');
@@ -1741,7 +1747,7 @@ function getTableType () {
 
 // "Getter" for salt_length
 function getSaltLength () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('salt_length');
@@ -1753,7 +1759,7 @@ function getSaltLength () {
 
 // "Getter" for output_mode
 function getOutputMode () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('OUTPUT_MODE');
@@ -1765,7 +1771,7 @@ function getOutputMode () {
 
 // "Getter" for full_version
 function getFullVersion () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('FULL_VERSION');
@@ -1777,7 +1783,7 @@ function getFullVersion () {
 
 // "Getter" for title
 function getTitle () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('TITLE');
@@ -1789,7 +1795,7 @@ function getTitle () {
 
 // "Getter" for curr_svn_revision
 function getCurrentRepositoryRevision () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('CURRENT_REPOSITORY_REVISION');
@@ -1801,7 +1807,7 @@ function getCurrentRepositoryRevision () {
 
 // "Getter" for server_url
 function getServerUrl () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('SERVER_URL');
@@ -1813,7 +1819,7 @@ function getServerUrl () {
 
 // "Getter" for mt_word
 function getMtWord () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('mt_word');
@@ -1825,7 +1831,7 @@ function getMtWord () {
 
 // "Getter" for mt_word2
 function getMtWord2 () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('mt_word2');
@@ -1837,7 +1843,7 @@ function getMtWord2 () {
 
 // "Getter" for mt_word3
 function getMtWord3 () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('mt_word3');
@@ -1849,7 +1855,7 @@ function getMtWord3 () {
 
 // "Getter" for START_TDAY
 function getStartTday () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('START_TDAY');
@@ -1861,7 +1867,7 @@ function getStartTday () {
 
 // "Getter" for START_YDAY
 function getStartYday () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('START_YDAY');
@@ -1873,7 +1879,7 @@ function getStartYday () {
 
 // "Getter" for main_title
 function getMainTitle () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('MAIN_TITLE');
@@ -1885,7 +1891,7 @@ function getMainTitle () {
 
 // "Getter" for file_hash
 function getFileHash () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('file_hash');
@@ -1897,7 +1903,7 @@ function getFileHash () {
 
 // "Getter" for pass_scramble
 function getPassScramble () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('pass_scramble');
@@ -1909,7 +1915,7 @@ function getPassScramble () {
 
 // "Getter" for ap_inactive_since
 function getApInactiveSince () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('ap_inactive_since');
@@ -1921,7 +1927,7 @@ function getApInactiveSince () {
 
 // "Getter" for user_min_confirmed
 function getUserMinConfirmed () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('user_min_confirmed');
@@ -1933,7 +1939,7 @@ function getUserMinConfirmed () {
 
 // "Getter" for auto_purge
 function getAutoPurge () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('auto_purge');
@@ -1945,7 +1951,7 @@ function getAutoPurge () {
 
 // "Getter" for bonus_userid
 function getBonusUserid () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('bonus_userid');
@@ -1957,7 +1963,7 @@ function getBonusUserid () {
 
 // "Getter" for ap_inactive_time
 function getApInactiveTime () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('ap_inactive_time');
@@ -1969,7 +1975,7 @@ function getApInactiveTime () {
 
 // "Getter" for ap_dm_timeout
 function getApDmTimeout () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('ap_dm_timeout');
@@ -1981,7 +1987,7 @@ function getApDmTimeout () {
 
 // "Getter" for ap_tasks_time
 function getApTasksTime () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('ap_tasks_time');
@@ -1993,7 +1999,7 @@ function getApTasksTime () {
 
 // "Getter" for ap_unconfirmed_time
 function getApUnconfirmedTime () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('ap_unconfirmed_time');
@@ -2005,7 +2011,7 @@ function getApUnconfirmedTime () {
 
 // "Getter" for points
 function getPoints () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('POINTS');
@@ -2017,7 +2023,7 @@ function getPoints () {
 
 // "Getter" for slogan
 function getSlogan () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('SLOGAN');
@@ -2029,7 +2035,7 @@ function getSlogan () {
 
 // "Getter" for copy
 function getCopy () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('COPY');
@@ -2041,7 +2047,7 @@ function getCopy () {
 
 // "Getter" for webmaster
 function getWebmaster () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('WEBMASTER');
@@ -2053,7 +2059,7 @@ function getWebmaster () {
 
 // "Getter" for sql_count
 function getSqlCount () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('sql_count');
@@ -2065,7 +2071,7 @@ function getSqlCount () {
 
 // "Getter" for num_templates
 function getNumTemplates () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('num_templates');
@@ -2077,7 +2083,7 @@ function getNumTemplates () {
 
 // "Getter" for dns_cache_timeout
 function getDnsCacheTimeout () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('dns_cache_timeout');
@@ -2089,7 +2095,7 @@ function getDnsCacheTimeout () {
 
 // "Getter" for menu_blur_spacer
 function getMenuBlurSpacer () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('menu_blur_spacer');
@@ -2101,7 +2107,7 @@ function getMenuBlurSpacer () {
 
 // "Getter" for points_register
 function getPointsRegister () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('points_register');
@@ -2113,7 +2119,7 @@ function getPointsRegister () {
 
 // "Getter" for points_ref
 function getPointsRef () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('points_ref');
@@ -2125,7 +2131,7 @@ function getPointsRef () {
 
 // "Getter" for ref_payout
 function getRefPayout () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('ref_payout');
@@ -2137,7 +2143,7 @@ function getRefPayout () {
 
 // "Getter" for online_timeout
 function getOnlineTimeout () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('online_timeout');
@@ -2149,7 +2155,7 @@ function getOnlineTimeout () {
 
 // "Getter" for index_home
 function getIndexHome () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('index_home');
@@ -2161,7 +2167,7 @@ function getIndexHome () {
 
 // "Getter" for one_day
 function getOneDay () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('ONE_DAY');
@@ -2173,7 +2179,7 @@ function getOneDay () {
 
 // "Getter" for activate_xchange
 function getActivateXchange () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('activate_xchange');
@@ -2185,7 +2191,7 @@ function getActivateXchange () {
 
 // "Getter" for img_type
 function getImgType () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('img_type');
@@ -2197,7 +2203,7 @@ function getImgType () {
 
 // "Getter" for code_length
 function getCodeLength () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('code_length');
@@ -2209,7 +2215,7 @@ function getCodeLength () {
 
 // "Getter" for least_cats
 function getLeastCats () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('least_cats');
@@ -2221,7 +2227,7 @@ function getLeastCats () {
 
 // "Getter" for pass_len
 function getPassLen () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('pass_len');
@@ -2233,7 +2239,7 @@ function getPassLen () {
 
 // "Getter" for admin_menu
 function getAdminMenu () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('admin_menu');
@@ -2245,7 +2251,7 @@ function getAdminMenu () {
 
 // "Getter" for last_month
 function getLastMonth () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('last_month');
@@ -2257,7 +2263,7 @@ function getLastMonth () {
 
 // "Getter" for max_send
 function getMaxSend () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('max_send');
@@ -2269,7 +2275,7 @@ function getMaxSend () {
 
 // "Getter" for mails_page
 function getMailsPage () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('mails_page');
@@ -2281,7 +2287,7 @@ function getMailsPage () {
 
 // "Getter" for rand_no
 function getRandNo () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('rand_no');
@@ -2293,7 +2299,7 @@ function getRandNo () {
 
 // "Getter" for __DB_NAME
 function getDbName () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('__DB_NAME');
@@ -2305,7 +2311,7 @@ function getDbName () {
 
 // "Getter" for DOMAIN
 function getDomain () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('DOMAIN');
@@ -2317,7 +2323,7 @@ function getDomain () {
 
 // "Getter" for proxy_username
 function getProxyUsername () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('proxy_username');
@@ -2329,7 +2335,7 @@ function getProxyUsername () {
 
 // "Getter" for proxy_password
 function getProxyPassword () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('proxy_password');
@@ -2341,7 +2347,7 @@ function getProxyPassword () {
 
 // "Getter" for proxy_host
 function getProxyHost () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('proxy_host');
@@ -2353,7 +2359,7 @@ function getProxyHost () {
 
 // "Getter" for proxy_port
 function getProxyPort () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('proxy_port');
@@ -2365,7 +2371,7 @@ function getProxyPort () {
 
 // "Getter" for SMTP_HOSTNAME
 function getSmtpHostname () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('SMTP_HOSTNAME');
@@ -2377,7 +2383,7 @@ function getSmtpHostname () {
 
 // "Getter" for SMTP_USER
 function getSmtpUser () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('SMTP_USER');
@@ -2389,7 +2395,7 @@ function getSmtpUser () {
 
 // "Getter" for SMTP_PASSWORD
 function getSmtpPassword () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('SMTP_PASSWORD');
@@ -2401,7 +2407,7 @@ function getSmtpPassword () {
 
 // "Getter" for points_word
 function getPointsWord () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('points_word');
@@ -2413,7 +2419,7 @@ function getPointsWord () {
 
 // "Getter" for profile_lock
 function getProfileLock () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('profile_lock');
@@ -2425,7 +2431,7 @@ function getProfileLock () {
 
 // "Getter" for url_tlock
 function getUrlTlock () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('url_tlock');
@@ -2437,7 +2443,7 @@ function getUrlTlock () {
 
 // "Getter" for title_left
 function getTitleLeft () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('title_left');
@@ -2449,7 +2455,7 @@ function getTitleLeft () {
 
 // "Getter" for title_right
 function getTitleRight () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('title_right');
@@ -2461,7 +2467,7 @@ function getTitleRight () {
 
 // "Getter" for title_middle
 function getTitleMiddle () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('title_middle');
@@ -2545,7 +2551,7 @@ function getPointsRemoveAccount () {
 
 // Checks whether proxy configuration is used
 function isProxyUsed () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = ((isExtensionInstalledAndNewer('sql_patches', '0.4.3')) && (getConfig('proxy_host') != '') && (getConfig('proxy_port') > 0));
@@ -2557,7 +2563,7 @@ function isProxyUsed () {
 
 // Checks whether POST data contains selections
 function ifPostContainsSelections ($element = 'sel') {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__][$element])) {
                // Determine it
                $GLOBALS[__FUNCTION__][$element] = ((isPostRequestElementSet($element)) && (is_array(postRequestElement($element))) && (countPostSelection($element) > 0));
@@ -2569,7 +2575,7 @@ function ifPostContainsSelections ($element = 'sel') {
 
 // Checks whether verbose_sql is Y and returns true/false if so
 function isVerboseSqlEnabled () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = ((isExtensionInstalledAndNewer('sql_patches', '0.0.7')) && (getConfig('verbose_sql') == 'Y'));
@@ -2581,7 +2587,7 @@ function isVerboseSqlEnabled () {
 
 // "Getter" for total user points
 function getTotalPoints ($userid) {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__][$userid])) {
                // Init array for filter chain
                $data = array(
@@ -2602,7 +2608,7 @@ function getTotalPoints ($userid) {
 
 // Wrapper to get used points for given userid
 function getUserUsedPoints ($userid) {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__][$userid])) {
                // Determine it
                $GLOBALS[__FUNCTION__][$userid] = countSumTotalData($userid, 'user_data', 'used_points');
@@ -2614,7 +2620,7 @@ function getUserUsedPoints ($userid) {
 
 // Wrapper to check if url_blacklist is enabled
 function isUrlBlacklistEnabled () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = (getConfig('url_blacklist') == 'Y');
@@ -2626,7 +2632,7 @@ function isUrlBlacklistEnabled () {
 
 // Checks whether direct payment is allowed in configuration
 function isDirectPaymentEnabled () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = (getConfig('allow_direct_pay') == 'Y');
@@ -2638,7 +2644,7 @@ function isDirectPaymentEnabled () {
 
 // Checks whether JavaScript-based admin menu is enabled
 function isAdminMenuJavascriptEnabled () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = ((isExtensionInstalledAndNewer('sql_patches', '0.8.7')) && (getAdminMenuJavaScript() == 'Y'));
@@ -2650,7 +2656,7 @@ function isAdminMenuJavascriptEnabled () {
 
 // Wrapper to check if current task is for extension (not update)
 function isExtensionTask ($content) {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__][$content['task_type'] . '_' . $content['infos']])) {
                // Determine it
                $GLOBALS[__FUNCTION__][$content['task_type'] . '_' . $content['infos']] = (($content['task_type'] == 'EXTENSION') && ((isExtensionNameValid($content['infos'])) || (isExtensionDeprecated($content['infos']))) && (!isExtensionInstalled($content['infos'])));
@@ -2758,7 +2764,7 @@ function generateWrappedUserEmailLink ($email) {
 // Wrapper to check if user points are locked
 function ifUserPointsLocked ($userid) {
        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'userid=' . $userid . ' - ENTERED!');
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__][$userid])) {
                // Determine it
                $GLOBALS[__FUNCTION__][$userid] = ((getFetchedUserData('userid', $userid, 'ref_payout') > 0) && (!isDirectPaymentEnabled()));
@@ -2901,7 +2907,7 @@ function getTotalReceivers ($mode = 'normal') {
 
 // Wrapper "getter" to get total unconfirmed mails for given userid
 function getTotalUnconfirmedMails ($userid) {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__][$userid])) {
                // Determine it
                $GLOBALS[__FUNCTION__][$userid] = countSumTotalData($userid, 'user_links', 'id', 'userid', true);
@@ -3081,7 +3087,7 @@ function ifPointsAccountTypeMatchesPost ($type) {
 
 // Gets given user's total referral
 function getUsersTotalReferrals ($userid, $level = NULL) {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__][$userid][$level])) {
                // Is the level NULL?
                if (is_null($level)) {
@@ -3100,7 +3106,7 @@ function getUsersTotalReferrals ($userid, $level = NULL) {
 // Gets given user's total referral
 function getUsersTotalLockedReferrals ($userid, $level = NULL) {
        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'userid=' . $userid . ',level[' . gettype($level) . ']=' . $level . ' - ENTERED!');
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__][$userid][$level])) {
                // Default is all refs
                $add = '';
index 10c3d95e96d9e27956c9ef3d8ff14b596cedeec5..c3cfa51b0be8109eeb207bdbfd813cd1462c698b 100644 (file)
@@ -94,7 +94,7 @@ function addXmlSpecialElements ($template) {
        if (function_exists($FQCN)) {
                // Call it
                call_user_func($FQCN);
-       } else {
+       } elseif (isDebugModeEnabled()) {
                // This callback function is only optional
                logDebugMessage(__FUNCTION__, __LINE__, 'Call-back function ' . $FQCN . ' for template ' . $template . ' does not exist.');
        }
@@ -102,7 +102,7 @@ function addXmlSpecialElements ($template) {
 
 // Parses the XML content
 function parseXmlData ($content) {
-       // Do we have recode?
+       // Is there recode?
        if (!function_exists('recode')) {
                // No fallback ATM
                reportBug('PHP extension recode is missing. Please install it.');
@@ -139,7 +139,7 @@ function parseXmlData ($content) {
 function doCallXmlCallbackFunction () {
        // Loop through all added entries
        foreach ($GLOBALS['__XML_CALLBACKS']['callbacks'] as $callback) {
-               // Do we have the entry?
+               // Is there the entry?
                if ((isset($GLOBALS['__XML_CALLBACKS']['functions'][$callback])) && (isset($GLOBALS['__XML_ARGUMENTS'][$callback]))) {
                        // Run all function callbacks
                        foreach ($GLOBALS['__XML_CALLBACKS']['functions'][$callback] as $function) {
@@ -200,7 +200,7 @@ function xmlCharacterHandler ($resource, $characters) {
        // Trim spaces away
        $characters = trim($characters);
 
-       // Do we have some to handle?
+       // Are there some to handle?
        if (strlen($characters) == 0) {
                // Nothing to handle
                return;
@@ -273,7 +273,7 @@ function getSqlPartFromXmlArray ($columns) {
                // Init SQL part
                $sqlPart = '';
 
-               // Do we have a table/alias
+               // Is there a table/alias
                if (!empty($columnArray['table'])) {
                        // Pre-add it
                        $sqlPart .= $columnArray['table'] . '.';
index 6b6c5d6957477d85f83abcb1f00b32b828f82bbc..a347a260b912cc2bb13ae6b35df1f58ed6d21317 100644 (file)
@@ -78,7 +78,7 @@ loadIncludeOnce('inc/header.php');
 // Handle fatal errors
 runFilterChain('handle_fatal_errors');
 
-// Do we have plain or AJAX-enabled installation?
+// Is plain or AJAX-enabled installation used?
 if (isGetRequestElementSet('installer')) {
        // Set installer type
        setSession('installer', getRequestElement('installer'));
index 283e36d82a23defb5b0fdf38592d9a01a896e6a2..113864a9ee58b7b626fcba27c4034058b76bd9d6 100644 (file)
@@ -491,7 +491,7 @@ function doFooterPage (prefix, htmlId, button) {
                return;
        } // END - if
 
-       // Do we have a 'next' entry?
+       // Is there a 'next' entry?
        //* DEBUG: */ alert('doFooterPage(): button=' + button + ',currentTabId=' + currentTabId + ',nextPage[currentTabId]=' + nextPage[currentTabId]);
        if ((button == 'next') && (nextPage[currentTabId] != null)) {
                // Then call the AJAX requester
@@ -592,7 +592,7 @@ function saveChanges (prefix) {
        // Mark all elements as unchanged
        markAllElementsAsUnchanged();
 
-       // Do we have changed elements
+       // Is there changed elements
        if (changedElements.length == 0) {
                // This should not happen
                displayErrorWindow(prefix, '<div class="ajax_error_message">saveChanges() called with no changed elements.</div>');
@@ -624,7 +624,7 @@ function saveChanges (prefix) {
                        // Reset form
                        resetMailerAjaxForm();
                } else {
-                       // Do we have 'failed_fields' set?
+                       // Is there 'failed_fields' set?
                        if ((ajax_content.failed_fields != undefined) && (ajax_content.message != undefined)) {
                                // Mark all fields as 'failed'
                                markFormFieldsFailed(ajax_content.failed_fields);
index 2e06210044c87c1c2e09876eaa9b13aa758286a5..c75eeba1d23ee9dd9a917cd25d3baf301a0ea0a7 100644 (file)
@@ -37,13 +37,13 @@ var ajaxTest = null;
 
 // Countdown function
 function ajaxTestCounter () {
-       // Do we have element set?
+       // Is there element set?
        if (element != null) {
                // Yes, then set the new counter value
                element.innerHTML = counter;
        } // END - if
 
-       // Do we have reached zero?
+       // Is there reached zero?
        if (counter < 1) {
                // Clear the interval
                clearInterval(ajaxTest);
index d9967f4b8d728b93ca3da607c364d226eaed53be..5acd78168d4cab40abef20a7ef5b8b1fd48f8c8e 100644 (file)
@@ -53,7 +53,7 @@ setContentType('text/html');
 // Base URL for redirection
 $url = 'modules.php?module=index';
 
-// Do we have a referral id?
+// Is there a referral id?
 if (isReferralIdValid()) {
        // We have an refid here. So we simply add it
        $url .= '&amp;what=sponsor_reg&amp;refid=' . determineReferralId();
index 2d233a9b4d6e68608648bb855856b5c78c824152..b411d1769dbee70aac4bde1616852760f8267233 100644 (file)
@@ -41,7 +41,7 @@ $().ready(function() {
        //-----------------------------------------
        $('a').each(function (i) {
                $(this).on('click', {index:i}, function (event) {
-                       // Do we have a valid index?
+                       // Is there a valid index?
                        if (indexTranslation[event.data.index] != null) {
                                // Prevent default action
                                event.preventDefault();
index 3a23fd00ee12ca1e33dd322ab6f0ae77e4c88cbf..611dfffb3331170a8d25e5dbef1430a9016cebad 100644 (file)
@@ -41,7 +41,7 @@ $().ready(function() {
        //-----------------------------------------
        $('a').each(function (i) {
                $(this).on('click', {index:i}, function (event) {
-                       // Do we have a valid index?
+                       // Is there a valid index?
                        if (indexTranslation[event.data.index] != null) {
                                // Prevent default action
                                event.preventDefault();
index 2e9c3e813e9dfb2c7bd7a95def3ae5ae3cbd0903..6595733672049ac704d62bfba67bf214aec07feb 100644 (file)
--- a/view.php
+++ b/view.php
@@ -53,7 +53,7 @@ if ((isGetRequestElementSet('user')) && (isGetRequestElementSet('banner'))) {
        $result = SQL_QUERY_ESC("SELECT `url` FROM `{?_MYSQL_PREFIX?}_refbanner` WHERE `id`=%s LIMIT 1",
                array(bigintval(getRequestElement('banner'))), __FILE__, __LINE__);
 
-       // Do we have the banner?
+       // Is there the banner?
        if (SQL_NUMROWS($result) == 1) {
                // Load the URL
                $data = SQL_FETCHARRAY($result);