./inc/extensions/ext-network.php:38: * @TODO Yoo!Media: What is LayerAd compared to Layer click? *
./inc/extensions/ext-network.php:92: // @TODO network_type_handle is an internal name and needs documentation
./inc/extensions/ext-newsletter.php:220: // @TODO Move these into configuration
+./inc/extensions/ext-order.php:344: // @TODO This should be moved out to inc/reset/
./inc/extensions/ext-rallye.php:331: // @TODO Move this code into rallye_functions.php
./inc/extensions/ext-rallye.php:94: // @TODO Fix config_rallye_prices to list_rallye_prices
./inc/extensions/ext-sql_patches.php:755: // @TODO Rewrite this to a filter
./inc/extensions-functions.php:143: // @TODO Do we still need this? setExtensionUpdateNotes('');
./inc/extensions-functions.php:423:// @TODO Change from ext_id to ext_name (not just even the variable! ;-) )
./inc/extensions-functions.php:539: // @TODO Extension is loaded, what next?
-./inc/functions.php:1052:// @TODO $simple is deprecated
-./inc/functions.php:1087: // @TODO Do only use $content and deprecate $GLOBALS and $DATA in templates
-./inc/functions.php:2420: // @TODO This can be easily moved out after the merge from EL branch to this is complete
-./inc/functions.php:2569: // @TODO Add a little more infos here
-./inc/functions.php:2652: // @TODO Move this SQL code into a function, let's say 'getTimestampFromPoolId($id) ?
+./inc/functions.php:1055:// @TODO $simple/$constants are deprecated
+./inc/functions.php:1082: // @TODO Do only use $content and deprecate $GLOBALS and $DATA in templates
+./inc/functions.php:2415: // @TODO This can be easily moved out after the merge from EL branch to this is complete
+./inc/functions.php:2564: // @TODO Add a little more infos here
+./inc/functions.php:2647: // @TODO Move this SQL code into a function, let's say 'getTimestampFromPoolId($id) ?
./inc/functions.php:266: // @TODO Remove this sanity-check if all is fine
-./inc/functions.php:2675: // @TODO Rewrite this old lost code to a template
+./inc/functions.php:2670: // @TODO Rewrite this old lost code to a template
./inc/functions.php:269: // @TODO Try to rewrite all $DATA to $content
-./inc/functions.php:2765: // @TODO Are these convertions still required?
-./inc/functions.php:2783:// @TODO Rewrite this function to use readFromFile() and writeToFile()
-./inc/functions.php:3659:// @TODO Lame description for this function
-./inc/functions.php:3681: // @TODO Move this in a filter
-./inc/functions.php:3805: // @TODO This is still very static, rewrite it somehow
+./inc/functions.php:2760: // @TODO Are these convertions still required?
+./inc/functions.php:2778:// @TODO Rewrite this function to use readFromFile() and writeToFile()
+./inc/functions.php:3654:// @TODO Lame description for this function
+./inc/functions.php:3676: // @TODO Move this in a filter
+./inc/functions.php:3800: // @TODO This is still very static, rewrite it somehow
./inc/functions.php:481: // @TODO Do only use $content, not $DATA or raw variables
./inc/functions.php:551: // @TODO Extension 'msg' does not exist
./inc/functions.php:614:// @TODO Rewrite this to an extension 'smtp'
./inc/install-functions.php:63: // @TODO DEACTIVATED: changeDataInFile(getConfig('CACHE_PATH') . 'config-local.php', 'OUTPUT-MODE', "setConfigEntry('OUTPUT_MODE', '", "');", postRequestParameter('omode'), 0);
-./inc/language/de.php:1146:// @TODO Rewrite these two constants
-./inc/language/de.php:1161:// @TODO Rewrite these three constants
+./inc/language/de.php:1143:// @TODO Rewrite these two constants
+./inc/language/de.php:1158:// @TODO Rewrite these three constants
./inc/language/de.php:309: // @TODO Following two are unused?
-./inc/language/de.php:841:// @TODO Are these constants longer used?
+./inc/language/de.php:838:// @TODO Are these constants longer used?
./inc/language-functions.php:234: // @TODO These are all valid languages, again hard-coded
./inc/language-functions.php:46:// @TODO Rewrite all language constants to this function.
./inc/language/rallye_de.php:13: * @TODO Naming convention not applied for language strings *
./inc/language/sponsor_de.php:119:// @TODO Rewrite these four constants to one and use sprintf()
./inc/libs/admins_functions.php:440: // @TODO This can be, somehow, rewritten
./inc/libs/beg_functions.php:58: // @TODO Try to rewrite the following unset()
-./inc/libs/bonus_functions.php:213: // @TODO Try to find a way for rewriting this constant
-./inc/libs/bonus_functions.php:301: // @TODO This query isn't right, it will only update if the user was for a longer time away!
+./inc/libs/bonus_functions.php:213: // @TODO Move this HTML to a template
+./inc/libs/bonus_functions.php:297: // @TODO This query isn't right, it will only update if the user was for a longer time away!
./inc/libs/doubler_functions.php:46:// @TODO Lame description
+./inc/libs/doubler_functions.php:94: // @TODO Can't this be moved into EL?
+./inc/libs/mailid_functions.php:49: // @TODO Rewrite this to a dynamic include or so
./inc/libs/rallye_functions.php:724: $EXPIRE = 3; // @TODO The hard-coded value...
./inc/libs/rallye_functions.php:806:// @TODO Please document this function
./inc/libs/rallye_functions.php:864: // Load count @TODO Can't we rewrite this to our API?
./inc/libs/register_functions.php:375: // @TODO Rewrite this to a filter
./inc/libs/register_functions.php:382: // @TODO Rewrite this whole if() block to addPointsThroughReferalSystem(). This will also make following if() block obsolete
./inc/libs/register_functions.php:383: // @TODO Wether the registration bonus should only be added to user directly or through referal system should be configurable
-./inc/libs/surfbar_functions.php:1549: // @TODO This can be somehow rewritten
-./inc/libs/surfbar_functions.php:721:// @TODO Can't we use our new expression language instead of this ugly code?
-./inc/libs/surfbar_functions.php:965: // @TODO Invalid salt should be refused
+./inc/libs/surfbar_functions.php:1547: // @TODO This can be somehow rewritten
+./inc/libs/surfbar_functions.php:719:// @TODO Can't we use our new expression language instead of this ugly code?
+./inc/libs/surfbar_functions.php:963: // @TODO Invalid salt should be refused
./inc/libs/task_functions.php:245: // @TODO These can be rewritten to filter
./inc/libs/task_functions.php:53:// @TODO Move all extension-dependent queries into filters
-./inc/libs/user_functions.php:138: // @TODO These two constants are no longer used, maybe we reactivate this code?
-./inc/libs/user_functions.php:225:// @TODO Double-check configuration entry here
-./inc/libs/user_functions.php:317: // @TODO Make this filter working: $ADDON = runFilterChain('post_login_update', $content);
-./inc/libs/user_functions.php:337: // @TODO Make this filter working: $url = runFilterChain('do_login', array('content' => $content, 'addon' => $ADDON));
-./inc/libs/user_functions.php:413: // @TODO We should try to rewrite this to fetchUserData() somehow
+./inc/libs/theme_functions.php:95: // @TODO Can't this be rewritten to an API function?
+./inc/libs/user_functions.php:146: // @TODO These two constants are no longer used, maybe we reactivate this code?
+./inc/libs/user_functions.php:233:// @TODO Double-check configuration entry here
+./inc/libs/user_functions.php:325: // @TODO Make this filter working: $ADDON = runFilterChain('post_login_update', $content);
+./inc/libs/user_functions.php:345: // @TODO Make this filter working: $url = runFilterChain('do_login', array('content' => $content, 'addon' => $ADDON));
+./inc/libs/user_functions.php:421: // @TODO We should try to rewrite this to fetchUserData() somehow
./inc/libs/yoomedia_functions.php:116: $response = YOOMEDIA_QUERY_API('out_textmail.php', true); // @TODO Ask Yoo!Media for test script
./inc/load_config.php:77: // @TODO Rewrite them to avoid this else block
./inc/loader/load_cache-extension.php:13: * @TODO Rewrite this whole file to load_cache-extensions.php *
./inc/modules/admin/what-admin_add.php:61: // @TODO Cant this be rewritten?
./inc/modules/admin/what-admin_add.php:77: // @TODO This can be somehow rewritten to a function
./inc/modules/admin/what-adminedit.php:58: // @TODO Kill all constants in this file
-./inc/modules/admin/what-admins_mails.php:61: // @TODO Can this be rewritten???
+./inc/modules/admin/what-admins_mails.php:61: // @TODO Can this be rewritten to an API function?
./inc/modules/admin/what-bonus.php:48:// @TODO Unused at the moment
./inc/modules/admin/what-config_admins.php:146: // @TODO Rewrite this to filter 'run_sqls'
-./inc/modules/admin/what-config_mods.php:141: // @TODO Rewritings: mod->module in template
./inc/modules/admin/what-config_mods.php:57: // @TODO This can be moved into mysql-function.php, see checkModulePermissions() function
./inc/modules/admin/what-config_points.php:113: // @TODO Rewrite this to a filter
./inc/modules/admin/what-config_rallye_prices.php:209: // @TODO Rewritings: level->price_level, infos->info in template
./inc/modules/admin/what-guest_add.php:69: // @TODO Cant this be rewritten?
./inc/modules/admin/what-guest_add.php:85: // @TODO This can be somehow rewritten to a function
./inc/modules/admin/what-holiday_list.php:48:// @TODO Unused at the moment
-./inc/modules/admin/what-list_autopurge.php:55:// @TODO Rewrite those lines to filter
+./inc/modules/admin/what-list_autopurge.php:49:// @TODO Rewrite those lines to filter
./inc/modules/admin/what-list_autopurge.php:85: // @TODO Rewritings: surname->surname,family->family in templates
./inc/modules/admin/what-list_bonus.php:131: // @TODO Can't this be moved into our expression language?
./inc/modules/admin/what-list_cats.php:56: // @TODO No longer needed? define('__CATS_BASE' , '<a href="{%url=modules.php?module=admin&userid=');
+./inc/modules/admin/what-list_cats.php:72: // @TODO Rewrite this to countSum.....() function
./inc/modules/admin/what-list_links.php:57: // @TODO Try to rewrite this to a filter
./inc/modules/admin/what-list_links.php:89: // @TODO Find a way to rewrite this. See some lines above for different queries
./inc/modules/admin/what-list_links.php:98: // @TODO Rewrite this to includes/filter
./inc/modules/admin/what-list_rallyes.php:258: // @TODO Rewritings: opoints->curr_points,old->refs in template
+./inc/modules/admin/what-list_refs.php:110: // @TODO Try to rewrite some to EL
./inc/modules/admin/what-list_task.php:146: // @TODO Rewrite these templates to one and add $OUT
./inc/modules/admin/what-list_task.php:180: // @TODO Rewritings: admin->assigned_admin,userid->userid,type->task_type_msg in template
./inc/modules/admin/what-list_task.php:192: // @TODO Rewrite this to $OUT .= ..., true, ...
./inc/modules/admin/what-list_unconfirmed.php:77: // @TODO This constant might be unused? define('__LIST_UNCON_TITLE', getMessage('LIST_UNCONFIRMED_BONUS_LINKS'));
./inc/modules/admin/what-list_unconfirmed.php:88: // @TODO "Please do not call me directly." Should be rewritten to a nice selection depending on ext-bonus
./inc/modules/admin/what-list_user.php:157: // @TODO Rewrite these to filters
-./inc/modules/admin/what-list_user.php:280: // @TODO Rewrite this into a filter
-./inc/modules/admin/what-list_user.php:334: // @TODO Rewrite this into a filter
+./inc/modules/admin/what-list_user.php:275: // @TODO Rewrite this into a filter
+./inc/modules/admin/what-list_user.php:330: // @TODO Rewrite this into a filter
./inc/modules/admin/what-list_user.php:59:// @TODO Rewrite these if-blocks in a filter
./inc/modules/admin/what-logs.php:69: // @TODO Fix content-type here
./inc/modules/admin/what-logs.php:72: // @TODO Fix content-type here
./inc/modules/admin/what-usage.php:88: // @TODO This code is double, see loadTemplate() and loadEmailTemplate() in functions.php
./inc/modules/admin/what-usr_online.php:51: // @TODO Add a filter for sponsor
./inc/modules/guest/what-beg.php:60:// @TODO No more needed? define('__BEG_UID_TIMEOUT', createFancyTime(getConfig('beg_userid_timeout')));
-./inc/modules/guest/what-confirm.php:113: // @TODO Try to rewrite the following unset()
-./inc/modules/guest/what-login.php:108: // @TODO Move this HTML code into a template
+./inc/modules/guest/what-confirm.php:120: // @TODO Try to rewrite the following unset()
+./inc/modules/guest/what-login.php:114: // @TODO Move this HTML code into a template
./inc/modules/guest/what-mediadata.php:183:// @TODO Rewrite all these if-blocks to filters
./inc/modules/guest/what-mediadata.php:70: // @TODO Find a better formular than this one
./inc/modules/guest/what-rallyes.php:91: // @TODO Reactivate this: $content['admin'] = '<a href="{%url=modules.php?module=index&what=impressum&admin=' . $adminId . '%}">' . $login . '</a>';
./inc/modules/guest/what-sponsor_infos.php:70: // @TODO Rewritings: conv->conv_rate,name->conv_name in template
-./inc/modules/guest/what-sponsor_infos.php:90: // @TODO Rewritings: name->pay_name,min->pay_min_count,min->pay_min_count,curr->pay_currency
-./inc/modules/guest/what-sponsor_reg.php:287: // @TODO Swap this HTML code to templates
+./inc/modules/guest/what-sponsor_reg.php:290: // @TODO Swap this HTML code to templates
./inc/modules/guest/what-stats.php:116: // @TODO This can be somehow rewritten
./inc/modules/guest/what-stats.php:76:// @TODO This can be rewritten in a dynamic include
-./inc/modules/member/what-beg.php:64:// @TODO No more needed? define('__BEG_UID_TIMEOUT', createFancyTime(getConfig('beg_userid_timeout')));
+./inc/modules/member/what-beg.php:56:// @TODO Can't this be moved into EL?
+./inc/modules/member/what-beg.php:65:// @TODO No more needed? define('__BEG_UID_TIMEOUT', createFancyTime(getConfig('beg_userid_timeout')));
./inc/modules/member/what-bonus.php:57: // @TODO Rewrite this to a filter
./inc/modules/member/what-categories.php:129: // @TODO Rewrite this to use $OUT .= ...
./inc/modules/member/what-doubler.php:56:// @TODO The '*100' is in the way to get moved into the template
-./inc/modules/member/what-order.php:456: // @TODO Rewrite this to a filter
+./inc/modules/member/what-order.php:458: // @TODO Rewrite this to a filter
./inc/modules/member/what-order.php:65:// @TODO Rewrite this to a filter
-./inc/modules/member/what-payout.php:221: // @TODO Rewrite this to a filter
+./inc/modules/member/what-payout.php:222: // @TODO Rewrite this to a filter
./inc/modules/member/what-points.php:55:// @TODO Should we rewrite this to a filter?
./inc/modules/member/what-rallyes.php:91: // @TODO Reactivate this: $content['admin'] = '<a href="{%url=modules.php?module=index&what=impressum&admin=' . $content['admin_id'] . '%}">' . $content['login'] . '</a>';
./inc/modules/member/what-refback.php:131: // @TODO UNUSED: $refRow['status'] = translateUserStatus($refRow['status']);
./inc/modules/member/what-reflinks.php:54:// @TODO Move this into a filter
-./inc/modules/member/what-stats.php:119: // @TODO Rewrite in template: clix->clicks
./inc/modules/member/what-transfer.php:132: // @TODO Rewrite this to a filter
./inc/modules/member/what-transfer.php:222: // @TODO Try to rewrite his to $content = SQL_FETCHARRAY(), see some lines above for two different queries
./inc/modules/member/what-transfer.php:304: // @TODO This should be somehow rewritten to $row = SQL_FETCHARRAY(), see switch() block above for SQL queries
./inc/modules/order.php:76: // @TODO Unused: 2,4
./inc/monthly/monthly_bonus.php:69: // @TODO Rewrite this to a filter
./inc/mysql-manager.php:1590: // @TODO Try to rewrite this to $content = SQL_FETCHARRAY()
-./inc/mysql-manager.php:1688: // @TODO Rewrite this to a filter
-./inc/mysql-manager.php:2068: // @TODO Rewrite this to a filter
-./inc/mysql-manager.php:2109:// @TODO Fix inconsistency between last_module and getWhat()
+./inc/mysql-manager.php:1690: // @TODO Rewrite this to a filter
+./inc/mysql-manager.php:2070: // @TODO Rewrite this to a filter
+./inc/mysql-manager.php:2111:// @TODO Fix inconsistency between last_module and getWhat()
./inc/mysql-manager.php:229: // @TODO Nothing helped???
./inc/mysql-manager.php:264: // @TODO Rewrite this to a filter
./inc/mysql-manager.php:563: // @TODO Try to rewrite this to one or more functions
./inc/wrapper-functions.php:455:// @TODO Do some more sanity check here
./inc/wrapper-functions.php:793: * @TODO Do we really need this check? If yes, try to fix this:
./mailid.php:135: // @TODO Rewrite this to a filter
-./mailid.php:215: // @TODO Rewrite this to a dynamic include or so
./mailid.php:95: // @TODO Rewrite this to a filter
-./mailid_top.php:100: // @TODO Rewrite this to a filter
-./mailid_top.php:136: // @TODO Rewrite this to a filter
-./mailid_top.php:183: // @TODO Rewrite this to a filter
-./mailid_top.php:190: // @TODO Rewrite this to a filter
-./mailid_top.php:226: // @TODO Rewrite these blocks to filter
-./mailid_top.php:261: // @TODO Try to rewrite the following unset()
+./mailid_top.php:132: // @TODO Rewrite this to a filter
+./mailid_top.php:179: // @TODO Rewrite this to a filter
+./mailid_top.php:186: // @TODO Rewrite this to a filter
+./mailid_top.php:222: // @TODO Rewrite these blocks to filter
+./mailid_top.php:257: // @TODO Try to rewrite the following unset()
+./mailid_top.php:99: // @TODO Rewrite this to a filter
./view.php:70: // @TODO No banner found, output some default banner
./templates/de/html/admin/admin_add_country.tpl:23: <!-- @TODO Rewrite this selection box to our generic functions //-->
./templates/de/html/admin/admin_admins_contct_form.tpl:4: <!-- @TODO Shouldn't we add a title here? //-->
./templates/de/html/admin/admin_list_bonus.tpl:3: <!-- @TODO No title here? //-->
./templates/de/html/admin/admin_list_mods.tpl:4: <!-- @TODO Shouldn't we add a title here? //-->
./templates/de/html/admin/admin_list_primera_main.tpl:3:<!-- @TODO No title here? //-->
+./templates/de/html/admin/admin_list_refs_level.tpl:21: <!-- @TODO Nothing to say here? //-->
./templates/de/html/admin/admin_list_unconfirmed_list.tpl:3:<!-- @TODO Shouldn't we add a title here? //-->
./templates/de/html/admin/admin_list_wernis_main.tpl:2:<!-- @TODO No title here? //-->
-./templates/de/html/admin/admin_login_form.tpl:35: @TODO Doesn't work with sessions
-./templates/de/html/admin/admin_login_form.tpl:38: @TODO Try to move the select box to our generic functions
+./templates/de/html/admin/admin_login_form.tpl:34: @TODO Doesn't work with sessions
+./templates/de/html/admin/admin_login_form.tpl:37: @TODO Try to move the select box to our generic functions
./templates/de/html/admin/admin_mods_edit.tpl:3: <!-- @TODO Shouldn't we add a title here? //-->
./templates/de/html/admin/admin_optimize.tpl:3: <!-- @TODO Shouldn't we add a title here? //-->
./templates/de/html/admin/admin_send_bonus_form.tpl:4: <!-- @TODO Maybe add some title? //-->
./templates/de/html/guest/guest_login.tpl:21: @TODO Deactivated feature, try to implement it or remove it.
./templates/de/html/guest/guest_nickname_login.tpl:21: @TODO Deactivated feature, try to find a solution for this or remove it.
./templates/de/html/guest/guest_stats_member.tpl:21: @TODO We have to fix these counters.
+./templates/de/html/member/member_unconfirmed_table_nopoints.tpl:11: <!-- @TODO Nothing to say here? //-->
./templates/de/html/surfbar/surfbar_frame_textlinks.tpl:5: <!-- @TODO These are static lines and should be replaced by a filter (see ext-sponsor) //-->
./templates/de/html/surfbar/surfbar_frame_top.tpl:32:// @TODO Try to rewrite this JavaScript to js.php?js=surfbar_frame_top (wouldn't be easy)
### ### DEPRECATION FOLLOWS: ### ###
// Handle the request
if (DEBUG_HANDLE_REQUEST(postRequestParameter('request'))) {
// Construct FQFN for the module
- $inc = sprintf("inc/debug/%s/request_%s",
+ $inc = sprintf("inc/debug/%s/request_%s.php",
getConfig('debug_mode'),
SQL_ESCAPE(postRequestParameter('request'))
);
// Now let's have a look for inactive accounts we want to delete we newly use the same exclude list
// here for e.g. excluding holiday users
- $result_inactive = SQL_QUERY_ESC("SELECT
+ $result_inactive = SQL_QUERY("SELECT
d.userid, d.email, d.last_online
FROM
`{?_MYSQL_PREFIX?}_user_data` AS d
WHERE
`status`='CONFIRMED' AND
- `joined` < (UNIX_TIMESTAMP() - %s) AND
- `last_online` < (UNIX_TIMESTAMP() - %s) AND
- `ap_notified` < (UNIX_TIMESTAMP() - %s)
+ `joined` < (UNIX_TIMESTAMP() - {?ap_inactive_since?}) AND
+ `last_online` < (UNIX_TIMESTAMP() - {?ap_inactive_since?}) AND
+ `ap_notified` < (UNIX_TIMESTAMP() - {?ap_inactive_time?})
".$EXCLUDE_LIST."
ORDER BY
- `userid` ASC",
- array(
- getConfig('ap_inactive_since'),
- getConfig('ap_inactive_since'),
- getConfig('ap_inactive_time')
- ), __FILE__, __LINE__);
+ `userid` ASC", __FILE__, __LINE__);
if (SQL_NUMROWS($result_inactive) > 0) {
// Prepare variable...
/// ... and write it to the new config
//* DEBUG: */ outputHtml('function=' . $function . ',new=' . $new . ',comment=' . $comment . "<br />");
- changeDataInFile(getConfig('CACHE_PATH') . 'config-local.php', $comment, $function . "('" . $oldNew . "', \"", "\");", constant($new), 0);
+ changeDataInFile(getConfig('CACHE_PATH') . 'config-local.php', $comment, $function . "('" . $oldNew . "', \"", '");', constant($new), 0);
//* DEBUG: */ outputHtml("CHANGED!<br />");
// Mark it as done
$key = substr(trim($parts[0]), 1, -1); $value = substr(trim($parts[1]), 1, -2);
// We can now save the right part in new config file
- changeDataInFile(getConfig('CACHE_PATH') . 'config-local.php', $comments[$key], " '".$key."' => \"", "\",", $value, 0);
+ changeDataInFile(getConfig('CACHE_PATH') . 'config-local.php', $comments[$key], " '".$key."' => \"", '",', $value, 0);
}
} // END - foreach
if (is_null($entry['what'])) {
// Main menu is double
SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_%s_menu` WHERE `action`='%s' AND `what` IS NULL LIMIT %s",
- array($menu, $entry['action'], ($entries - 1)), __FILE__, __LINE__);
+ array(
+ $menu,
+ $entry['action'],
+ ($entries - 1)
+ ), __FILE__, __LINE__);
} else {
// Sub menu is double
SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_%s_menu` WHERE `action`='%s' AND `what`='%s' LIMIT %s",
- array($menu, $entry['action'], $entry['what'], ($entries - 1)), __FILE__, __LINE__);
+ array(
+ $menu,
+ $entry['action'],
+ $entry['what'],
+ ($entries - 1)
+ ), __FILE__, __LINE__);
}
} // END - if
}
// Back-ported from the new ship-simu engine. :-)
function debug_get_printable_backtrace () {
// Init variable
- $backtrace = "<ol>\n";
+ $backtrace = '<ol>';
// Get and prepare backtrace for output
$backtraceArray = debug_backtrace();
if (!isset($trace['file'])) $trace['file'] = __FUNCTION__;
if (!isset($trace['line'])) $trace['line'] = __LINE__;
if (!isset($trace['args'])) $trace['args'] = array();
- $backtrace .= "<li class=\"debug_list\"><span class=\"backtrace_file\">".basename($trace['file'])."</span>:" . $trace['line'].", <span class=\"backtrace_function\">" . $trace['function'].'('.count($trace['args']).")</span></li>\n";
+ $backtrace .= '<li class="debug_list"><span class="backtrace_file">' . basename($trace['file']) . '</span>:' . $trace['line'].", <span class=\"backtrace_function\">" . $trace['function'] . '(' . count($trace['args']) . ')</span></li>';
} // END - foreach
// Close it
- $backtrace .= "</ol>\n";
+ $backtrace .= '</ol>';
// Return the backtrace
return $backtrace;
} // END - if
// Add output
- $debug .= "Please report this bug at <a title=\"Direct link to the bug-tracker\" href=\"http://bugs.mxchange.org\" rel=\"external\" target=\"_blank\">http://bugs.mxchange.org</a> and include the logfile from <strong>" . str_replace(getConfig('PATH'), '', getConfig('CACHE_PATH')) . "debug.log</strong> in your report (you can now attach files):<pre>";
+ $debug .= 'Please report this bug at <a title="Direct link to the bug-tracker" href="http://bugs.mxchange.org" rel="external" target="_blank">http://bugs.mxchange.org</a> and include the logfile from <strong>' . str_replace(getConfig('PATH'), '', getConfig('CACHE_PATH')) . 'debug.log</strong> in your report (you can now attach files):<pre>';
$debug .= debug_get_printable_backtrace();
- $debug .= "</pre>\nRequest-URI: " . getRequestUri()."<br />\n";
- $debug .= "Thank you for finding bugs.";
+ $debug .= '</pre>Request-URI: ' . getRequestUri() . '<br />';
+ $debug .= 'Thank you for finding bugs.';
// Send an email? (e.g. not wanted for evaluation errors)
if (($sendEmail === true) && (!isInstallationPhase())) {
// Prepare content
$content = array(
- 'message' => trim($message),
- 'backtrace' => trim(debug_get_mailable_backtrace())
+ 'message' => trim($message),
+ 'backtrace' => trim(debug_get_mailable_backtrace())
);
// Send email to webmaster
// MySQL data
$OUT = '';
foreach ($GLOBALS['install_mysql'] as $key => $value) {
- $OUT .= " <input type=\"hidden\" name=\"mysql[" . $key . "]\" value=\"" . $value . "\" />\n";
+ $OUT .= ' <input type="hidden" name="mysql[' . $key . ']" value="' . $value . '" />';
} // END - foreach
$content['mysql_hidden'] = $OUT;
} // END - if
// Load rankings
- $result = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_bonus_turbo` WHERE %s=%s ORDER BY `level` ASC LIMIT {?bonus_lines?}",
+ $result = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_bonus_turbo` WHERE `%s`=%s ORDER BY `level` ASC LIMIT {?bonus_lines?}",
array($type, $data), __FUNCTION__, __LINE__);
if (SQL_NUMROWS($result) > 0) {
// Start generating the ranking list
$rows['rank'] = $rank;
$rows['sw'] = $SW;
- // Output row
- $OUT .= "<tr>
- <td class=\"bonus_rank_".$rows['rank']." bottom switch_sw".$rows['sw']."\">".$rows['rank'].".</td>
- <td class=\"bonus_rank_".$rows['rank']." bottom switch_sw".$rows['sw']."\" align=\"center\">".$rows['userid']."</td>
- <td class=\"bonus_rank_".$rows['rank']." bottom switch_sw".$rows['sw']."\" align=\"center\">{%pipe,translateComma=".$rows['points']."%}</td>
-</tr>\n";
+ // Load row template
+ $OUT .= loadTemplate('member_bonus_turbo_row', true, $rows);
// Switch color
$SW = 3 - $SW;
if ($self === false) {
// If current user was not found set constant
- // @TODO Try to find a way for rewriting this constant
$GLOBALS['ranking_content']['rankings'] = getMessage('BONUS_RANK_YOU_ARE_404');
} // END - if
} else {
// No entries found!
- $OUT = "<tr>
- <td colspan=\"3\" align=\"center\" height=\"30\" class=\"bottom\">
- <div class=\"guest_failed\">".getMaskedMessage('BONUS_NO_RANKS', $data)."</div>
+ // @TODO Move this HTML to a template
+ $OUT = '<tr>
+ <td colspan="3" align="center" height="30" class="bottom">
+ <div class="guest_failed">' . getMaskedMessage('BONUS_NO_RANKS', $data) . '</div>
</td>
-</tr>\n";
+</tr>';
}
// Retutn content
if ((isExtensionInstalledAndNewer('sql_patches', '0.2.8')) && (getConfig('bonus_active') == 'Y') && (getConfig('bonus_login_yn') == 'Y')) {
// Update last login if far enougth away
// @TODO This query isn't right, it will only update if the user was for a longer time away!
- SQL_QUERY_ESC("UPDATE
+ SQL_QUERY_ESC('UPDATE
`{?_MYSQL_PREFIX?}_user_data`
SET
`last_login`=UNIX_TIMESTAMP()
WHERE
`userid`=%s AND
`last_login` < (UNIX_TIMESTAMP() - {?login_timeout?})
-LIMIT 1",
+LIMIT 1',
array(
getMemberId()
), __FUNCTION__, __LINE__
array(bigintval($id)), __FUNCTION__, __LINE__);
// Transfer all neccessary data to the $content array
- $content['userid_cnt'] = countSumTotalData('CONFIRMED','user_data','userid','status',true);
+ $content['userid_cnt'] = getTotalConfirmedUser();
$content['start'] = generateDateTime($start, 2);
$content['end'] = generateDateTime($end , 2);
$content['now_t'] = generateDateTime(time(), 2);
$return = $points;
// Get all ref levels
- $result_refs = SQL_QUERY("SELECT `level`, `percents` FROM `{?_MYSQL_PREFIX?}_refdepths` WHERE `level` > 0 ORDER BY `level` ASC",
+ $result_refs = SQL_QUERY('SELECT `level`, `percents` FROM `{?_MYSQL_PREFIX?}_refdepths` WHERE `level` > 0 ORDER BY `level` ASC',
__FUNCTION__, __LINE__);
// "Walk" through all level
// Skip identical ids
if ($userid == $ref) return 0;
- // Default is zero
- $percents = '0';
-
- // Get percents from database
- $result = SQL_QUERY_ESC("SELECT refback FROM `{?_MYSQL_PREFIX?}_user_refs` WHERE `userid`=%s AND `refid`=%s LIMIT 1",
- array($ref, $userid), __FUNCTION__, __LINE__);
-
- // Entry found? (Should be!)
- if (SQL_NUMROWS($result) == 1) {
- // Fetch percents
- list($percents) = SQL_FETCHROW($result);
- //* DEBUG: */ print(__FUNCTION__ . '(<font color="#0000aa">' . __LINE__."</font>):percents={$percents}<br />");
- } else {
- // Debug log
- //* DEBUG: */ print(__FUNCTION__ . '(<font color="#0000aa">' . __LINE__."</font>): NO ENTRY FOUND! :-(<br />");
- logDebugMessage(__FUNCTION__, __LINE__, "userid={$userid},ref={$ref} - No entry found! :-(");
- }
-
- // Free result
- SQL_FREERESULT($result);
+ // Is it cached?
+ if (!isset($GLOBALS['refback_percents'][$userid][$ref])) {
+ // Default is zero
+ $GLOBALS['refback_percents'][$userid][$ref] = '0';
+
+ // Get percents from database
+ $result = SQL_QUERY_ESC("SELECT `refback` FROM `{?_MYSQL_PREFIX?}_user_refs` WHERE `userid`=%s AND `refid`=%s LIMIT 1",
+ array($ref, $userid), __FUNCTION__, __LINE__);
+
+ // Entry found? (Should be!)
+ if (SQL_NUMROWS($result) == 1) {
+ // Fetch percents
+ list($GLOBALS['refback_percents'][$userid][$ref]) = SQL_FETCHROW($result);
+ //* DEBUG: */ print(__FUNCTION__ . '(<font color="#0000aa">' . __LINE__."</font>):percents=".$GLOBALS['refback_percents'][$userid][$ref]."<br />");
+ } else {
+ // Debug log
+ //* DEBUG: */ print(__FUNCTION__ . '(<font color="#0000aa">' . __LINE__."</font>): NO ENTRY FOUND! :-(<br />");
+ logDebugMessage(__FUNCTION__, __LINE__, 'userid=' . $userid . ',ref=' . $ref . ' - No entry found! :-(');
+ }
+
+ // Free result
+ SQL_FREERESULT($result);
+ } // END - if
// Return percents
//* DEBUG: */ print("</li></ul>----------------------- <font color=\"#aa0000\">".__FUNCTION__." - EXIT</font> ------------------------<br />");
- return $percents;
+ return $GLOBALS['refback_percents'][$userid][$ref];
}
// "Getter" for userid array which will return only one entry
SQL_FREERESULT($result);
// Construct selection form for the box template
+ // @TODO Can't this be rewritten to an API function?
$OUT = '';
foreach ($themesArray['theme_unix'] as $key => $theme) {
- $OUT .= " <option value=\"".$theme."\"";
+ $OUT .= ' <option value="' . $theme . '"';
if ($theme == getCurrentTheme()) $OUT .= ' selected="selected"';
- $OUT .= ">".$themesArray['theme_name'][$key]."</option>\n";
+ $OUT .= '>' . $themesArray['theme_name'][$key] . '</option>';
} // END - foreach
// Remember content
$remove = SQL_NUMROWS($result) - $max;
// This will make it really old, so the final removal query will find it
- $result = SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_transfers_in` SET `time_trans`=0 ORDER BY `id` LIMIT %s",
+ $result = SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_transfers_in` SET `time_trans`=0 ORDER BY `id` ASC LIMIT %s",
array($remove), __FUNCTION__, __LINE__);
} // END - if
$remove = SQL_NUMROWS($result) - $max;
// This will make it really old, so the final removal query will find it
- $result = SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_transfers_out` SET `time_trans`=0 ORDER BY `id` LIMIT %s",
+ $result = SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_transfers_out` SET `time_trans`=0 ORDER BY `id` ASC LIMIT %s",
array($remove), __FUNCTION__, __LINE__);
} // END - if
}
} // END - while
+ // Prepare content
+ $content = array (
+ 'colspan2' => $colspan,
+ 'alpha_selection' => $OUT
+ );
+
// Load template
- $OUT = loadTemplate('admin_list_user_alpha', true, $OUT);
+ $OUT = loadTemplate('admin_list_user_alpha', true, $content);
if ($return === true) {
// Return generated code
return $OUT;
}
} // END - foreach
+ // Add list and colspan
$content['list'] = substr($OUT, 0, -13);
+ $content['colspan2'] = $colspan;
// Load template
$OUT = loadTemplate('admin_list_user_sort', true, $content);
return $return;
}
+// Generate link to unconfirmed mails for admin
+function generateUnconfirmedAdminLink ($id, $unconfirmed, $type = 'bid') {
+ // Init output
+ $OUT = $unconfirmed;
+
+ // Do we have unconfirmed mails?
+ if ($unconfirmed > 0) {
+ // Add link to list_unconfirmed what-file
+ $OUT = '<a href="{%url=modules.php?module=admin&what=list_unconfirmed&' . $type . '=' . $id . '%}">' . translateComma($unconfirmed) . '</a>';
+ } // END - if
+
+ // Return it
+ return $OUT;
+}
+
// [EOF]
?>
if ($taskData['task_type'] == 'SUPPORT_MEMBER') {
$mode = substr($taskData['text'], 0, strpos($taskData['text'], ':'));
$taskData['text'] = substr($taskData['text'], strpos($taskData['text'], ':') + 1);
- $add = "<li>{--ADMIN_TASK_SUPPORT_MODE--}: <strong>" . $mode . "</strong></li>";
+ $add = '<li>{--ADMIN_TASK_SUPPORT_MODE--}: <strong>' . $mode . '</strong></li>';
} // END - if
// Is a userid assign?
$content = getUserDataArray();
// Generate HTML list entry
- $add = "<li>{--ADMIN_MEMBER_UID--}: <strong>".generateUserProfileLink($taskData['userid'], 'user_data')." (<a href=\"".generateEmailLink($content['email'], 'user_data')."\">".translateGender($content['gender']) . ' ' . $content['surname'] . ' ' . $content['family']."</a>)</strong></li>";
+ $add = '<li>{--ADMIN_MEMBER_UID--}: <strong>' . generateUserProfileLink($taskData['userid'], 'user_data') . ' (<a href="' . generateEmailLink($content['email'], 'user_data') . '">' . translateGender($content['gender']) . ' ' . $content['surname'] . ' ' . $content['family'] . '</a>)</strong></li>';
} else {
// Invalid userid, so log and zero it
logDebugMessage(__FUNCTION__, __LINE__, 'Invalid userid=' . $taskData['userid'] . ' -> not found!');
}
}
}
- $OUT = " <select class=\"admin_select\" name=\"sort\" size=\"1\">
- <option value=\"0\">{--IS_FIRST_MENU--}</option>\n";
+
+ $OUT = ' <select class="admin_select" name="sort" size="1">
+ <option value="0">{--IS_FIRST_MENU--}</option>';
foreach ($below as $key => $m) {
if (is_array($m)) {
foreach ($m as $key2 => $m2) {
- $OUT .= " <option value=\"".$m2."\">".$titles[$key][$key2];
+ $OUT .= ' <option value="' . $m2 . '">' . $titles[$key][$key2];
foreach ($menus as $k => $v) {
if (($v == $key) && (!is_array($v))) {
- $OUT .= " (" . $titles[$k] . ')';
- }
- }
- $OUT .= "</option>\n";
+ $OUT .= ' (' . $titles[$k] . ')';
+ } // END - if
+ } // END - foreach
+ $OUT .= '</option>';
}
} else {
- $OUT .= " <option value=\"".$m."\">".$titles[$key]."</option>\n";
+ $OUT .= ' <option value="' . $m . '">' . $titles[$key] . '</option>';
}
}
- $OUT .= "</select>";
+ $OUT .= '</select>';
// Prepare selections for template
$content['below_selection'] = $OUT;
$OUT = '';
$adminId2 = '0'; $id = '0';
while ($content = SQL_FETCHARRAY($result)) {
- // @TODO Can this be rewritten???
- $OUT .= "<select name=\"admin_id[".$content['id']."]\" size=\"1\" class=\"admin_select\">
-<option value=\"0\"";
+ // @TODO Can this be rewritten to an API function?
+ $OUT .= '<select name="admin_id[' . $content['id'] . ']" size="1" class="admin_select">
+<option value="0"';
if ($content['admin_id'] == '0') $OUT .= ' selected="selected"';
- $OUT .=">{--ADMINS_ALL_ADMINS--}</option>\n";
+ $OUT .= '>{--ADMINS_ALL_ADMINS--}</option>';
if (isExtensionActive('events')) {
- $OUT .= "<option value=\"-1\"";
+ $OUT .= '<option value="-1"';
if ($content['admin_id'] == '-1') $OUT .= ' selected="selected"';
- $OUT .= ">{--ADMINS_TO_USER_EVENTS--}</option>\n";
+ $OUT .= '>{--ADMINS_TO_USER_EVENTS--}</option>';
}
$OUT .= generateOptionList('admins', 'id', 'login', $content['admin_id'], 'email');
- $OUT .= "</select>\n<br />\n";
+ $OUT .= '</select>';
// Transfer ids
$adminId2 = $content['admin_id'];
foreach (postRequestParameter('rate') as $rate) {
$rate = trim(convertCommaToDot($rate));
if (!empty($rate)) $RATES[] = $rate;
- }
+ } // END - foreach
setPostRequestParameter('turbo_rates', trim(implode(';', $RATES)));
unsetPostRequestParameter('rate');
if (getConfig('turbo_rates') == '') $RANKS = array(round(getConfig('turbo_bonus') / 2), round(getConfig('turbo_bonus') / 4));
// Generate list
- $OUT = "<ol start=\"2\">\n";
+ $OUT = '<ol start="2">';
$cnt = '0';
foreach ($RANKS as $k => $rate) {
- if (!empty($rate)) {
+ if (!empty($rate)) {
// Print only when something is in
- $OUT .= " <li><input type=\"text\" name=\"rate[".($k + 2)."]\" class=\"admin_normal\" size=\"4\" maxlength=\"7\" value=\"".$rate."\" /> <div class=\"admin_note\">({?POINTS?})</div></li>\n";
+ $OUT .= '<li><input type="text" name="rate[' . ($k + 2) . ']" class="admin_normal" size="4" maxlength="7" value="' . $rate . '" /> <div class="admin_note">({?POINTS?})</div></li>';
} // END - if
$cnt++;
} // END - foreach
// Add more empty fields
for ($i = $cnt; $i < $max; $i++) {
- $OUT .= " <li><input type=\"text\" name=\"rate[".($i+2)."]\" class=\"admin_normal\" size=\"4\" maxlength=\"7\" /> <div class=\"admin_note\">({?POINTS?})</div></li>\n";
+ $OUT .= ' <li><input type="text" name="rate[' . ($i+2) . ']" class="admin_normal" size="4" maxlength="7" /> <div class="admin_note">({?POINTS?})</div></li>';
} // END - for
- $OUT .= "</ol>\n";
+ $OUT .= '</ol>';
$content['trates_list'] = $OUT;
// Selection boxes
if (countPostSelection() == 0) {
// Load module data (We do not need to check if there's at least one...)
- $result = SQL_QUERY('SELECT id, module, locked, hidden, admin_only, title, mem_only
-FROM `{?_MYSQL_PREFIX?}_mod_reg`
-ORDER BY module', __FILE__, __LINE__);
+ $result = SQL_QUERY('SELECT
+ `id`, `module`, `locked`, `hidden`, `admin_only`, `title`, `mem_only`
+FROM
+ `{?_MYSQL_PREFIX?}_mod_reg`
+ORDER BY
+ `module` ASC', __FILE__, __LINE__);
+
$OUT = ''; $SW = 2;
while ($content = SQL_FETCHARRAY($result)) {
// Reset title to --- if it is NULL
if (empty($content['title'])) $content['title'] = '---';
if (($content['module'] == 'index') || ($content['module'] == 'login')) {
// Add link to detail statistics
- $content['module'] = "<strong><a href=\"{%url=modules.php?module=admin&what=stats_mods&mod=" . $content['module'] . "%}\">" . $content['module'] . "</a></strong>";
+ $content['module'] = '<strong><a href="{%url=modules.php?module=admin&what=stats_mods&mod=' . $content['module'] . '%}">' . $content['module'] . '</a></strong>';
} // END - if
// Prepare array for the template
- // @TODO Rewritings: mod->module in template
- $content = array(
- 'sw' => $SW,
- 'id' => $content['id'],
- 'mod' => $content['module'],
- 'title' => $content['title'],
- 'locked' => translateYesNo($content['locked']),
- 'hidden' => translateYesNo($content['hidden']),
- 'admin' => translateYesNo($content['admin_only']),
- 'mem' => translateYesNo($content['mem_only']),
- );
+ $content['sw'] = $SW;
// Load row template
$OUT .= loadTemplate('admin_list_mods_row', true, $content);
// Switch colors
$SW = 3 - $SW;
- }
+ } // END - while
// Free memory
SQL_FREERESULT($result);
// Load main template
loadTemplate('admin_list_mods', false, $OUT);
-}
+} // END - if
// [EOF]
?>
// Add more data
$content['sw'] = $SW;
- $content['selection'] = addSelectionBox('yn', $content['field_required'], "sel[".$content['id']."]");
+ $content['selection'] = addSelectionBox('yn', $content['field_required'], 'sel[' . $content['id'] . ']');
// @TODO Move this HTML code into a template
- $OUT .= "<tr>
- <td align=\"center\" class=\"switch_sw".$content['sw']." bottom right\">".$content['id']."</td>
- <td class=\"switch_sw".$content['sw']." bottom right\">".$content['field_name']."</td>
- <td align=\"center\" class=\"switch_sw".$content['sw']." bottom right\">
- ".$content['selection']."
- </td>
-</tr>\n";
+ $OUT .= loadTemplate('admin_config_register_row', true, $content);
// Switch color
$SW = 3 - $SW;
// Delete entries...
foreach (postRequestParameter('sel') as $id => $sel) {
- addSql(SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_user_transfers_in` WHERE `trans_id`=%s LIMIT 1",
+ addSql(SQL_QUERY_ESC('DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_user_transfers_in` WHERE `trans_id`=%s LIMIT 1',
array(bigintval($id)), __FILE__, __LINE__, false));
- addSql(SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_user_transfers_out` WHERE `trans_id`=%s LIMIT 1",
+ addSql(SQL_QUERY_ESC('DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_user_transfers_out` WHERE `trans_id`=%s LIMIT 1',
array(bigintval($id)), __FILE__, __LINE__, false));
} // END - foreach
} // END - if
// We only need outgoing transfers
-$result = SQL_QUERY("SELECT `userid`, `to_userid`, `trans_id`, `points`, `reason`, `time_trans` FROM `{?_MYSQL_PREFIX?}_user_transfers_out` ORDER BY `trans_id` ASC", __FILE__, __LINE__);
+$result = SQL_QUERY('SELECT
+ `userid` AS `from_userid`, `to_userid`, `trans_id`, `points`, `reason`, `time_trans`
+FROM
+ `{?_MYSQL_PREFIX?}_user_transfers_out`
+ORDER BY
+ `trans_id` ASC', __FILE__, __LINE__);
+
$total = '0';
if (SQL_NUMROWS($result) > 0) {
// Output rows
$OUT = ''; $SW = 2;
while ($content = SQL_FETCHARRAY($result)) {
// Prepare data for the row template
- $content = array(
- 'sw' => $SW,
- 'trans_id' => $content['trans_id'],
- 'time_trans' => generateDateTime($content['time_trans'], 3),
- 'userid_from' => generateUserProfileLink($content['userid']),
- 'userid_to' => generateUserProfileLink($content['to_userid']),
- 'reason' => $content['reason'],
- 'points' => translateComma($content['points']),
- );
+ $content['sw'] = $SW;
+ $content['time_trans'] = generateDateTime($content['time_trans'], 3);
// Load row template
$OUT .= loadTemplate('admin_del_transfer_row', true, $content);
// Sum points and switch colors
- $total += $content['points']; $SW = 3 - $SW;
+ $total += $content['points'];
+ $SW = 3 - $SW;
} // END - while
// Free memory
SQL_FREERESULT($result);
} else {
// Nothing for in and out
- $OUT = "<tr>
- <td colspan=\"6\" align=\"center\" class=\"bottom\">
- ".loadTemplate('admin_settings_saved', true, getMessage('TRANSFER_NO_INOUT_TRANSFERS'))."
+ $OUT = '<tr>
+ <td colspan="6" align="center" class="bottom">
+ ' . loadTemplate('admin_settings_saved', true, getMessage('TRANSFER_NO_INOUT_TRANSFERS')) . '
</td>
-</tr>";
+</tr>';
}
// ... and add them to a constant for the template
if (!isGetRequestParameterSet('offset')) setGetRequestParameter('offset', getConfig('mails_page'));
// Add limitation to SQL string
-$sql .= " LIMIT ".(getRequestParameter('offset') * getRequestParameter('page') - getRequestParameter('offset')) . ', ' . getRequestParameter('offset');
+$sql .= ' LIMIT ' . (getRequestParameter('offset') * getRequestParameter('page') - getRequestParameter('offset')) . ', ' . getRequestParameter('offset');
// Run SQL query for normal mails
$result = SQL_QUERY($sql, __FILE__, __LINE__);
} // END - if
// Prepare data for the row template
- $content = merge_array($content, array(
- 'sw' => $SW,
- 'u_link' => generateUserProfileLink($pool['sender']),
- 'subject' => $pool['subject'],
- 'text' => $pool['text'],
- 'pay' => getPaymentTitlePrice($pool['payment_id']),
- 'cat' => getCategory($pool['cat_id']),
- 'sent' => $pool['max_rec'],
- 'ruserids' => convertReceivers($pool['receivers']),
- 'unconfirmed' => $pool['unconfirmed'],
- 'type' => translatePoolType($pool['data_type']),
- 'target_send' => $pool['target_send'],
- 'frametester' => generateFrametesterUrl($pool['url']),
- 'url' => $pool['url'],
- 'timestamp' => generateDateTime($pool['timestamp'], 0),
- 'mid' => $pool['id'],
- ));
+ $content['sw'] = $SW;
+ $content['timestamp'] = generateDateTime($pool['timestamp'], 0);
+
+ // Merge pool data with content
+ $content = merge_array($content, $pool);
// Load row template and switch colors
$OUT .= loadTemplate('admin_email_archiv_row', true, $content);
addMenuDescription('admin', __FILE__);
// Normal mails ordered by your members
-// 0 1 2 3 4 5 6 7 8 9 10
-$sql = "SELECT id, sender, subject, text, receivers, payment_id, data_type, timestamp, url, target_send, cat_id
-FROM `{?_MYSQL_PREFIX?}_pool`
-WHERE data_type IN('ADMIN','TEMP','NEW','ACTIVE')
-ORDER BY timestamp DESC";
+$sql = "SELECT
+ `id`, `sender`, `subject`, `text`, `receivers`, `payment_id`, `data_type`, `timestamp`, `url`, `target_send`, `cat_id`
+FROM
+ `{?_MYSQL_PREFIX?}_pool`
+WHERE
+ `data_type` IN('ADMIN','TEMP','NEW','ACTIVE')
+ORDER BY
+ `timestamp` DESC";
$WHO = getMessage('_ALL');
$SQL2 = '';
if (isGetRequestParameterSet(('mid'))) {
// Only a specific mail shall be displayed
- // 0 1 2 3 4 5 6 7 8 9 10
- $sql = "SELECT id, sender, subject, text, receivers, payment_id, data_type, timestamp, url, target_send, cat_id
- FROM `{?_MYSQL_PREFIX?}_pool`
- WHERE `id`='".bigintval(getRequestParameter('mid'))."'
- LIMIT 1";
- $WHO = getMessage('MAIL_ID').": ".getRequestParameter('mid');
+ $sql = "SELECT
+ `id`, `sender`, `subject`, `text`, `receivers`, `payment_id`, `data_type`, `timestamp`, `url`, `target_send`, `cat_id`
+FROM
+ `{?_MYSQL_PREFIX?}_pool`
+WHERE
+ `id`='".bigintval(getRequestParameter('mid'))."'
+LIMIT 1";
+ $WHO = getMessage('MAIL_ID') . ': ' . getRequestParameter('mid');
} elseif (isGetRequestParameterSet('userid')) {
// All mails by a specific member shall be displayed
- // 0 1 2 3 4 5 6 7 8 9 10
- $sql = "SELECT id, sender, subject, text, receivers, payment_id, data_type, timestamp, url, target_send, cat_id
-FROM `{?_MYSQL_PREFIX?}_pool`
-WHERE sender='".bigintval(getRequestParameter('userid'))."'
-ORDER by timestamp DESC";
- $WHO = getMessage('USER_ID').": ".getRequestParameter('userid');
+ $sql = "SELECT
+ `id`, `sender`, `subject`, `text`, `receivers`, `payment_id`, `data_type`, `timestamp`, `url`, `target_send`, `cat_id`
+FROM
+ `{?_MYSQL_PREFIX?}_pool`
+WHERE
+ `sender`='".bigintval(getRequestParameter('userid'))."'
+ORDER BY
+ `timestamp` DESC";
+ $WHO = getMessage('USER_ID') . ': ' . getRequestParameter('userid');
}
if ((isExtensionActive('bonus')) && ($WHO == getMessage('_ALL'))) {
- // Bonus mails sent by you
- // 0 1 2 3 4 5 6 7 8 9 10 11 12
- $SQL2 = "SELECT id, subject, text, receivers, points, time, data_type, timestamp, url, cat_id, target_send, mails_sent, clicks
-FROM `{?_MYSQL_PREFIX?}_bonus`
-WHERE is_notify='N'
-ORDER BY timestamp DESC";
-
// Check for maximum pages
- $result_bonus = SQL_QUERY($SQL2, __FILE__, __LINE__);
+ $result_bonus = SQL_QUERY("SELECT
+ `id`, `subject`, `text`, `receivers`, `points`, `time`, `data_type`, `timestamp`, `url`, `cat_id`, `target_send`, `mails_sent`, `clicks`
+ (`mails_sent` - `clicks`) AS `unconfirmed`
+FROM
+ `{?_MYSQL_PREFIX?}_bonus`
+WHERE
+ `is_notify`='N'
+ORDER BY
+ `timestamp` DESC", __FILE__, __LINE__);
}
// Check for maximum pages
// Add limitation to SQL string
if (!isGetRequestParameterSet(('mid'))) {
// Create limitation line
- $add = " LIMIT ".(bigintval(getRequestParameter('offset')) * bigintval(getRequestParameter('page')) - bigintval(getRequestParameter('offset'))).", ".bigintval(getRequestParameter('offset'));
+ $add = ' LIMIT ' . (bigintval(getRequestParameter('offset')) * bigintval(getRequestParameter('page')) - bigintval(getRequestParameter('offset'))) . ', ' . bigintval(getRequestParameter('offset'));
// For normal mails
$sql .= $add;
$MAIL = false;
if (SQL_NUMROWS($result_list) > 0) {
// Init rows
- $OUT = ''; $content = array();
+ $OUT = '';
// Walk through all entries
- while ($pool = SQL_FETCHARRAY($result_list)) {
+ while ($content = SQL_FETCHARRAY($result_list)) {
// Unconfirmed mails and sent mails
- $result_uncon = SQL_QUERY_ESC("SELECT max_rec, clicks FROM `{?_MYSQL_PREFIX?}_user_stats` WHERE `pool_id`=%s LIMIT 1",
- array(bigintval($pool['id'])), __FILE__, __LINE__);
- list($pool['sent_email'], $pool['clicks']) = SQL_FETCHROW($result_uncon);
+ $result_uncon = SQL_QUERY_ESC("SELECT (`max_rec` - `clicks`) AS `unconfirmed` FROM `{?_MYSQL_PREFIX?}_user_stats` WHERE `pool_id`=%s LIMIT 1",
+ array(bigintval($content['id'])), __FILE__, __LINE__);
+
+ // Load and merge data
+ $content = merge_array($content, SQL_FETCHARRAY($result_uncon));
+
+ // Free result
SQL_FREERESULT($result_uncon);
// Unconfirmed mails
- $pool['unconfirmed'] = $pool['sent_email'] - $pool['clicks'];
- if ($pool['unconfirmed'] > 0) {
- // Add link to list_unconfirmed what-file
- $pool['unconfirmed'] = "<strong><a href=\"{%url=modules.php?module=admin&what=list_unconfirmed&mid=" . $pool['id'] . "%}\">" . $pool['unconfirmed'] . "</a></strong>";
- } elseif ($pool['unconfirmed'] < 0) {
- // Sometimes rarely displayed minus values will be "fixed" to zero
- $pool['unconfirmed'] = '0';
- }
+ $content['unconfirmed'] = generateUnconfirmedAdminLink($content['id'], ($content['unconfirmed']), 'mid');
// Prepare content
- $content = $pool;
- $content['sender_link'] = generateUserProfileLink($pool['sender']);
- $content['payment'] = getPaymentTitlePrice($pool['payment_id']);
- $content['category'] = getCategory($pool['cat_id']);
- $content['receivers'] = convertReceivers($pool['receivers']);
- $content['type'] = translatePoolType($pool['data_type']);
- $content['frametester'] = generateFrametesterUrl($pool['url']);
- $content['timestamp'] = generateDateTime($pool['timestamp'], 0);
+ $content['timestamp'] = generateDateTime($content['timestamp'], 0);
// Load row template
$OUT .= loadTemplate('admin_list_emails_row', true, $content);
$PAGES = round(SQL_NUMROWS($result_bonus) / getConfig('mails_page') + 0.5);
// List emails
- $OUT = ''; $content = array();
- while ($bonus = SQL_FETCHARRAY($result_bonus)) {
- // Calculate unconfirmed emails
- $bonus['unconfirmed'] = $bonus['mails_sent'] - $bonus['clicks'];
-
- // Add link?
- if ($bonus['unconfirmed'] > 0) {
- // Add link to list_unconfirmed what-file
- $bonus['unconfirmed'] = "<strong><a href=\"{%url=modules.php?module=admin&what=list_unconfirmed&bid=" . $bonus['id'] . "%}\">" . $bonus['unconfirmed'] . "</a></strong>";
- } // END - if
+ $OUT = '';
+ while ($content = SQL_FETCHARRAY($result_bonus)) {
+ // Add link to list_unconfirmed what-file
+ $content['unconfirmed'] = generateUnconfirmedAdminLink($content['id'], $content['unconfirmed']);
// Prepare content
- $content = $bonus;
- $content['time'] = createFancyTime($content['time']);
- $content['category'] = getCategory($content['cat_id']);
- $content['receivers'] = convertReceivers($content['receivers']);
- $content['type'] = translatePoolType($content['data_type']);
- $content['frametester'] = generateFrametesterUrl($content['url']);
$content['timestamp'] = generateDateTime($content['timestamp'], 0);
// Load row template
loadTemplate('admin_settings_saved', false, getMessage('ADMIN_NO_MAILS_IN_POOL'));
} // END - if
-//
+// [EOF]
?>
} // END - if
// Autopurge installed?
- $lastOnline = "%s"; $ONLINE = '';
+ $lastOnline = '';
if (isExtensionActive('autopurge')) {
// Use last online timestamp to keep inactive members away from here
- $lastOnline = " AND `last_online` >= (UNIX_TIMESTAMP() - %s)";
- $ONLINE = getConfig('ap_inactive_since');
+ $lastOnline = " AND `last_online` >= (UNIX_TIMESTAMP() - {?ap_inactive_since?})";
} // END - if
// Check if at least one is in the active rallye
- $result = SQL_QUERY_ESC("SELECT userid, email, gender, surname, family, beg_points, last_online
-FROM `{?_MYSQL_PREFIX?}_user_data`
-WHERE `status`='CONFIRMED' AND beg_points > 0".$lastOnline."
-ORDER BY beg_points DESC, last_online DESC, userid",
- array($ONLINE), __FILE__, __LINE__);
+ $result = SQL_QUERY("SELECT `userid`, `gender`, `surname`, `family`, `email`, `beg_points`, `last_online`
+FROM
+ `{?_MYSQL_PREFIX?}_user_data`
+WHERE
+ `status`='CONFIRMED' AND beg_points > 0".$lastOnline."
+ORDER BY
+ `beg_points` DESC,
+ `last_online` DESC,
+ `userid` ASC", __FILE__, __LINE__);
if (SQL_NUMROWS($result) > 0) {
// List users
$content = array(
'userid' => $content['userid'],
'email' => generateEmailLink($content['email'], 'user_data'),
- 'gender' => translateGender($content['gender']),
- 'surname' => $content['surname'],
- 'family' => $content['family'],
- 'turbo' => translateComma($content['beg_points']),
+ 'gender' => $content['gender'],
+ 'turbo' => $content['beg_points'],
'last_online' => generateDateTime($content['last_online'], 2),
'sw' => $SW,
'win1' => $WIN1,
// Load template and add it
$OUT .= loadTemplate('admin_list_beg_rows', true, $content);
$SW = 3 - $SW; $cnt++; $total += $content['beg_points'];
- }
+ } // END - while
$content['rows'] = $OUT;
$content['total'] = translateComma($total);
$content = merge_array($content, $row);
// Check user's selection
+ // @TODO Rewrite this to countSum.....() function
$result_user = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_user_cats` WHERE `userid`=%s AND `cat_id`=%s LIMIT 1",
array(bigintval(getRequestParameter('userid')), bigintval($content['id'])), __FILE__, __LINE__);
// Set selection
- $selection = "<font color=\"#ee0000\">{--NO--}</div>";
- if (SQL_NUMROWS($result_user) == 1) $selection = "<font color=\"#00ee00\">{--YES--}</div>";
+ $selection = '<font color="#ee0000">{--NO--}</div>';
+ if (SQL_NUMROWS($result_user) == 1) $selection = '<font color="#00ee00">{--YES--}</div>';
// Add more elements
$content['sw'] = $SW;
if (isExtensionActive('bonus')) {
// Bonus mails sent by you
- // 0 1 2 3 4 5 6 7 8 9 10 11 12
- $SQL2 = "SELECT id, subject, text, receivers, points, time, data_type, timestamp, url, cat_id, target_send, mails_sent, clicks
-FROM `{?_MYSQL_PREFIX?}_bonus`
-WHERE is_notify='Y'
-ORDER BY timestamp DESC";
+ $SQL2 = "SELECT
+ `id`, `subject`, `text`, `receivers`, `points`, `time`, `data_type`, `timestamp`, `url`, `cat_id`, `target_send`,
+ `mails_sent`, `clicks`, (`mails_sent` - `clicks) AS `unconfirmed`
+FROM
+ `{?_MYSQL_PREFIX?}_bonus`
+WHERE
+ `is_notify`='Y'
+ORDER BY
+ `timestamp` DESC";
// Check for maximum pages
$result_max = SQL_QUERY($SQL2, __FILE__, __LINE__);
}
// Create limitation line
-$add = " LIMIT ".(bigintval(getRequestParameter('offset')) * bigintval(getRequestParameter('page')) - bigintval(getRequestParameter('offset'))).", ".bigintval(getRequestParameter('offset'));
+$add = ' LIMIT ' . (bigintval(getRequestParameter('offset')) * bigintval(getRequestParameter('page')) - bigintval(getRequestParameter('offset'))) . ', ' . bigintval(getRequestParameter('offset'));
// Add limitation
if (!empty($SQL2)) $SQL2 .= $add;
// List emails
$OUT = ''; $content = array();
- while ($bonus = SQL_FETCHARRAY($result_bonus)) {
- // Calculate unconfirmed emails
- $bonus['unconfirmed'] = $bonus['mails_sent'] - $bonus['clicks'];
-
- // Add link?
- if ($bonus['unconfirmed'] > 0) {
- // Add link to list_unconfirmed what-file
- $bonus['unconfirmed'] = "<strong><a href=\"{%url=modules.php?module=admin&what=list_unconfirmed&bid=" . $bonus['id'] . "%}\">" . $bonus['unconfirmed'] . "</a></strong>";
- } // END - if
+ while ($content = SQL_FETCHARRAY($result_bonus)) {
+ // Add "unconfirmed-link"
+ $content['unconfirmed_content'] = generateUnconfirmedAdminLink($content['id'], $content['unconfirmed']);
// Prepare content
- $content = $bonus;
- $content['time'] = createFancyTime($content['time']);
- $content['category'] = getCategory($content['cat_id']);
- $content['receivers'] = convertReceivers($content['receivers']);
- $content['type'] = translatePoolType($content['data_type']);
- $content['frametester'] = generateFrametesterUrl($content['url']);
$content['timestamp'] = generateDateTime($content['timestamp'], 0);
// Load row template
$OUT .= loadTemplate('admin_list_notify_emails_row', true, $content);
- }
+ } // END - if
// Add navigation (without change box but with colspan=3)
$content['nav'] = '';
$refs_cnt = countSumTotalData(getUserData('userid'), 'user_refs', 'id', 'userid', true);
// Prepare data for the template
+ // @TODO Try to rewrite some to EL
$content = array(
'sw' => $SW,
'u_link' => generateUserProfileLink(getUserData('userid')),
'refs_link' => 0,
'surname' => getUserData('surname'),
'family' => getUserData('family'),
- 'email' => "[<a href=\"".generateEmailLink(getUserData('email'), 'user_data')."\">".getUserData('email')."</a>]",
+ 'email' => '[<a href="' . generateEmailLink(getUserData('email'), 'user_data') . '">' . getUserData('email') . '</a>]',
'status' => translateUserStatus(getUserData('status')),
'registered' => generateDateTime(getUserData('joined'), 3),
);
// Check if referal count is larger 0 and update link
- if ($refs_cnt > 0) $content['refs_link'] = generateUserProfileLink(getUserData('userid'), $refs_cnt, "list_refs");
+ if ($refs_cnt > 0) $content['refs_link'] = generateUserProfileLink(getUserData('userid'), $refs_cnt, 'list_refs');
// Load template for level one
$OUT_REFS .= loadTemplate('admin_list_refs_row', true, $content);
'refs_link' => 0,
'surname' => $levels['surname'],
'family' => $levels['family'],
- 'email' => "[<a href=\"".generateEmailLink($levels['email'], 'user_data')."\">".$levels['email']."</a>]",
+ 'email' => '[<a href="' . generateEmailLink($levels['email'], 'user_data') . '">' . $levels['email'] . '</a>]',
'status' => translateUserStatus($levels['status']),
'registered' => generateDateTime($levels['joined'], 3),
);
addMenuDescription('admin', __FILE__);
// We only need outgoing transfers
-$result = SQL_QUERY("SELECT userid, to_userid, trans_id, points, reason, time_trans FROM `{?_MYSQL_PREFIX?}_user_transfers_out` ORDER BY trans_id", __FILE__, __LINE__);
+$result = SQL_QUERY('SELECT
+ `userid` AS `from_userid`, `to_userid`, `trans_id`, `points`, `reason`, `time_trans`
+FROM
+ `{?_MYSQL_PREFIX?}_user_transfers_out`
+ORDER BY
+ `trans_id` ASC', __FILE__, __LINE__);
+
$total = '0';
if (SQL_NUMROWS($result) > 0) {
// Output rows
$OUT = ''; $SW = 2;
while ($content = SQL_FETCHARRAY($result)) {
// Prepare data for the row template
- $content = array(
- 'sw' => $SW,
- 'trans_id' => $content['trans_id'],
- 'time_trans' => generateDateTime($content['time_trans'], 3),
- 'from_link' => generateUserProfileLink($content['userid']),
- 'to_link' => generateUserProfileLink($content['to_userid']),
- 'reason' => wordwrap($content['reason'], 15),
- 'points' => translateComma($content['points']),
- );
+ $content['sw'] = $SW;
+ $content['time_trans'] = generateDateTime($content['time_trans'], 3);
+ $content['reason'] = wordwrap($content['reason'], 15);
// Load row template add points and switch color
$OUT .= loadTemplate('admin_list_transfer_row', true, $content);
$total += $content['points']; $SW = 3 - $SW;
- }
+ } // END - while
// Free memory
SQL_FREERESULT($result);
} else {
// Nothing for in and out
- $OUT = "<tr>
- <td colspan=\"6\" align=\"center\" class=\"bottom\">
- ".loadTemplate('admin_settings_saved', true, getMessage('TRANSFER_NO_INOUT_TRANSFERS'))."
+ $OUT = '<tr>
+ <td colspan="6" align="center" class="bottom">
+ ' . loadTemplate('admin_settings_saved', true, getMessage('TRANSFER_NO_INOUT_TRANSFERS')) . '
</td>
-</tr>";
+</tr>';
}
// ... and add them to a constant for the template
if (!isGetRequestParameterSet('offset')) setGetRequestParameter('offset', getConfig('user_limit'));
// Add limitation to SQL string and run him again
- $sql .= " LIMIT ".(getRequestParameter('offset') * getRequestParameter('page') - getRequestParameter('offset')).", ".getRequestParameter('offset');
+ $sql .= ' LIMIT ' . (getRequestParameter('offset') * getRequestParameter('page') - getRequestParameter('offset')) . ', ' . getRequestParameter('offset');
$result = SQL_QUERY($sql, __FILE__, __LINE__);
- // Count all confirmed users
- $user_count = countSumTotalData('CONFIRMED','user_data','userid','status',true);
-
// Are there some entries?
if (SQL_NUMROWS($result_master) > 0) {
// We have some (new?) registrations!
- define('__COLSPAN2' , ($colspan + 2));
- define('__USER_CNT' , $user_count);
+ $templateContent['colspan2'] = ($colspan + 2);
+ $templateContent['user_count'] = getTotalConfirmedUser();
// Sorting links
- define('__ALPHA_SORT', alpha(getRequestParameter('sortby'), $colspan, true));
- define('__SORT_LINKS', addSortLinks(getRequestParameter('letter'), getRequestParameter('sortby'), $colspan, true));
+ $templateContent['alpha_sort'] = alpha(getRequestParameter('sortby'), ($colspan + 1), true);
+ $templateContent['sort_links'] = addSortLinks(getRequestParameter('letter'), getRequestParameter('sortby'), ($colspan + 1), true);
+ $templateContent['page_nav'] = '';
if ($PAGES > 1) {
- define('__PAGE_NAV', addPageNavigation($PAGES, getConfig('user_limit'), true, $colspan, true));
- } else {
- // No page navigation is required
- define('__PAGE_NAV', '');
- }
+ $templateContent['page_nav'] = addPageNavigation($PAGES, getConfig('user_limit'), true, $colspan, true);
+ } // END - if
// Column with nickname when nickname extension is present
- // @TODO Rewrite this into a filter
+ // @TODO Rewrite this into a filter
+ $templateContent['nickname_th'] = '';
if (isExtensionActive('nickname')) {
// Nickname extension found
- define('__NICKNAME_TH', " <td class=\"header_column bottom\" align=\"center\">{--NICKNAME--}</td>");
- } else {
- // Not found
- define('__NICKNAME_TH', '');
- }
+ $templateContent['nickname_th'] = '<td class="header_column bottom" align="center">{--NICKNAME--}</td>';
+ } // END - if
// Load all users
$OUT = ''; $SW = 2;
while ($content = SQL_FETCHARRAY($result)) {
+ // Merge more data in
+ $content = merge_array($content, $templateContent);
+
// Set refid link
if ($content['refid'] > 0) $content['refid'] = generateUserProfileLink($content['refid']);
$content['title'] = getMessage(sprintf("ADMIN_LIST_MODE_%s_ACCOUNTS", strtoupper(getRequestParameter('mode'))));
}
+ // Merge more data again
+ $content = merge_array($content, $templateContent);
+
// Load main template
loadTemplate('admin_list_user', false, $content);
} else {
if (($content['module'] == 'index') || ($content['module'] == 'login')) {
// Add link to detail statistics
- $content['module'] = "<strong><a href=\"{%url=modules.php?module=admin&what=stats_mods&mod=" . $content['module'] . "%}\">" . $content['module'] . "</a></strong>";
+ $content['module'] = '<a href="{%url=modules.php?module=admin&what=stats_mods&mod=' . $content['module'] . '%}">' . $content['module'] . '</a>';
} // END - if
// Add color switch
if (isPostRequestParameterSet(('status'))) {
// Change status
if (postRequestParameter('active', $id) == 'Y') {
- $sql = "UPDATE `{?_MYSQL_PREFIX?}_themes` SET theme_active='N' WHERE `id`=" . bigintval($id) . " LIMIT 1";
+ $sql = "UPDATE `{?_MYSQL_PREFIX?}_themes` SET `theme_active`='N' WHERE `id`=%s LIMIT 1";
} else {
- $sql = "UPDATE `{?_MYSQL_PREFIX?}_themes` SET theme_active='Y' WHERE `id`=" . bigintval($id) . " LIMIT 1";
+ $sql = "UPDATE `{?_MYSQL_PREFIX?}_themes` SET `theme_active`='Y' WHERE `id`=%s LIMIT 1";
}
$OUT = getMessage('ADMIN_THEMES_UPDATED');
} elseif (isFormSent('del')) {
// Delete themes
- $sql = "DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_themes` WHERE `id`=" . bigintval($id) . " LIMIT 1";
+ $sql = "DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_themes` WHERE `id`=%s LIMIT 1";
$OUT = getMessage('ADMIN_THEMES_DELETED');
}
// Run SQL command?
if (!empty($sql)) {
// Run it
- $result = SQL_QUERY($sql, __FILE__, __LINE__);
+ $result = SQL_QUERY_ESC($sql, array(bigintval($id)), __FILE__, __LINE__);
// Rebuild cache
rebuildCache('themes', 'them');
// Prepare data for the row template
$content = array(
- 'sw' => $SW,
- 'id' => $content['id'],
- 'active' => $content['theme_active'],
- 'link' => $LINK,
- 'name' => $content['theme_name'],
- 'is_act' => translateYesNo($content['theme_active']),
- 'email' => '<a href="mailto:' . $GLOBALS['theme_data']['email'] . '?Subject=[Theme:] ' . $GLOBALS['theme_data']['name'] . ' (' . $content['theme_path'] . ')\>' . $GLOBALS['theme_data']['author'] . '</a>',
- 'url_link' => generateDerefererUrl($GLOBALS['theme_data']['url']),
- 'url_title' => $GLOBALS['theme_data']['url'],
- 'ver' => $content['theme_ver'],
+ 'sw' => $SW,
+ 'id' => $content['id'],
+ 'link' => $LINK,
+ 'theme_name' => $content['theme_name'],
+ 'theme_active' => $content['theme_active'],
+ 'email' => '<a href="mailto:' . $GLOBALS['theme_data']['email'] . '?Subject=[Theme:] ' . $GLOBALS['theme_data']['name'] . ' (' . $content['theme_path'] . ')\>' . $GLOBALS['theme_data']['author'] . '</a>',
+ 'url_link' => generateDerefererUrl($GLOBALS['theme_data']['url']),
+ 'url_title' => $GLOBALS['theme_data']['url'],
+ 'theme_ver' => $content['theme_ver'],
);
// Load row template and switch color
SQL_FREERESULT($result);
} else {
// No themes found???
- $OUT .= "<tr>
- <td colspan=\"7\" class=\"bottom\" height=\"60\">
- ".loadTemplate('admin_settings_saved', true, getMessage('ADMIN_NO_THEMES_FOUND'))."
+ $OUT .= '<tr>
+ <td colspan="7" class="bottom" height="60">
+ ' . loadTemplate('admin_settings_saved', true, getMessage('ADMIN_NO_THEMES_FOUND')) . '
</td>
-</tr>\n";
+</tr>';
}
// Load template
'subject' => $content['subject'],
'tester' => generateFrametesterUrl($content['url']),
'url' => $content['url'],
- 'cat_title' => str_replace("\"", '"', getCategory($content['category'])),
+ 'cat_title' => str_replace('"', '"', getCategory($content['category'])),
'cat_link' => $content['category'],
- 'pay_title' => str_replace("\"", '"', getPaymentTitlePrice($content['payment'], true)),
+ 'pay_title' => str_replace('"', '"', getPaymentTitlePrice($content['payment'], true)),
'pay_link' => $content['payment'],
'timestamp' => generateDateTime($content['timestamp'], 2),
'target_send' => $content['target_send'],
// Insert text
$content['text'] = trim(secureString(postRequestParameter('text')));
+ // Load email template
+ $message = loadEmailTemplate('member_contct', $content, getRequestParameter('userid'));
+
// Send contact form out
- $message = loadEmailTemplate('member_contct', $content);
sendEmail($content['email'], getMessage('ADMIN_CONTACT_USER_SUBJECT'), $message);
+
+ // Display message
loadTemplate('admin_settings_saved', false, getMessage('ADMIN_USER_CONTACTED'));
} else {
// Load contact form template
// Login problems?
if (!empty($errorCode)) {
- // @TODO Move this HTML code into a template
- $message = "<tr>
- <td colspan=\"4\" align=\"center\">
- <span class=\"guest_failed\">";
-
// Do we have a userid set?
if (isSessionVariableSet('current_userid')) {
// Then prefetch data for this account
fetchUserData(getSession('current_userid'));
} // END - if
- // Convert the code to message
- $message .= getMessageFromErrorCode($errorCode);
-
- // Continue with HTML
- $message .= "</span>
+ // @TODO Move this HTML code into a template
+ $content['message'] = '<tr>
+ <td colspan="4" align="center">
+ <span class="guest_failed">' . getMessageFromErrorCode($errorCode) . '</span>
</td>
-</tr>\n";
- $content['message'] = $message;
+</tr>';
} // END - if
// Display login form with resend-password form
loadTemplate('admin_settings_saved', false, $message);
} else {
// Check for payment types
- $result = SQL_QUERY("SELECT `id`, `pay_name`, `pay_rate`, `pay_currency`, `pay_min_count`
-FROM `{?_MYSQL_PREFIX?}_sponsor_paytypes`
-ORDER BY `pay_name`", __FILE__, __LINE__);
+ $result = SQL_QUERY('SELECT
+ `id`, `pay_name`, `pay_rate`, `pay_currency`, `pay_min_count`
+FROM
+ `{?_MYSQL_PREFIX?}_sponsor_paytypes`
+ORDER BY
+ pay_name` ASC', __FILE__, __LINE__);
if (SQL_NUMROWS($result) > 0) {
// Load all types...
// @TODO Swap this HTML code to templates
foreach ($urlArray as $id => $content) {
// "Translate"/insert data
$content['sw'] = $SW;
- $content['url'] = generateDerefererUrl($content['url']);
if ($content['views_total'] > 0) {
// Include link to stats
- $content['views_total'] = "[<a href=\"{%url=modules.php?module=login&what=surfbar_list%}\">".translateComma($content['views_total'])."</a>]";
+ $content['views_total'] = '[<a href="{%url=modules.php?module=login&what=surfbar_list%}">' . translateComma($content['views_total']) . '</a>]';
} // END - if
$content['url_registered'] = generateDateTime($content['url_registered'], 2);
$content['url_last_locked'] = generateDateTime($content['url_last_locked'], 2);
$content['actions'] = SURFBAR_MEMBER_ACTIONS($content['id'], $content['url_status']);
- $content['url_status'] = translateSurfbarUrlStatus($content['url_status']);
if (empty($content['url_lock_reason'])) {
// Fixes some HTML problems with empty cells
$content['url_lock_reason'] = '---';
loadTemplate('admin_settings_saved', false, getMessage('MEMBER_SURFBAR_NO_URLS_FOUND'));
}
-//
+// [EOF]
?>
ON
p.userid=d.userid
WHERE
- p.userid=%s",
+ p.userid=%s
+LIMIT 1",
array(bigintval($userid)), __FUNCTION__, __LINE__);
// Do we have an entry?
$data = SQL_FETCHARRAY($result);
// Delete points entries as well
- SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_user_points` WHERE `userid`=%s", array(bigintval($userid)), __FUNCTION__, __LINE__);
+ SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_user_points` WHERE `userid`=%s",
+ array(bigintval($userid)), __FUNCTION__, __LINE__);
// Update mediadata as well
if (isExtensionInstalledAndNewer('mediadata', '0.0.4')) {
`status`='CONFIRMED' AND
`birth_day`=%s AND
`birth_month`=%s AND
- `birthday_sent` < (UNIX_TIMESTAMP() - ".(getConfig('ONE_DAY') * 364).")
+ `birthday_sent` < (UNIX_TIMESTAMP() - ({?ONE_DAY?} * 364))
".$add."
ORDER BY
`userid` ASC",
Hallo Administrator,
-In Ihrem {?mt_word?} wurden Mitglieder gefunden, die seit $content[since] Tagen nicht mehr aktiv waren! Sollten diese Mitglieder weitere {!__INACTIVE_TIME!} Tage inaktiv bleiben, werden sie automatisch gelöscht!
+In Ihrem {?mt_word?} wurden Mitglieder gefunden, die seit $content[since] Tagen nicht mehr aktiv waren! Sollten diese Mitglieder weitere {%config,createFancyTime=ap_inactive_time%} inaktiv bleiben, werden sie automatisch gelöscht!
Hier alle inaktiven Mitglieder:
--------------------------------
--- /dev/null
+<tr>
+ <td align="center" class="switch_sw$content[sw] bottom right">$content[id]</td>
+ <td class="switch_sw$content[sw] bottom right">$content[field_name]</td>
+ <td align="center" class="switch_sw$content[sw] bottom right">
+ $content[selection]
+ </td>
+</tr>
$content[time_trans]
</td>
<td class="switch_sw$content[sw] bottom right">
- $content[userid_from]
+ {%pipe,generateUserProfileLink=$content[from_userid]%}
</td>
<td class="switch_sw$content[sw] bottom right">
- $content[userid_to]
+ {%pipe,generateUserProfileLink=$content[to_userid]%}
</td>
<td class="switch_sw$content[sw] bottom right">
$content[reason]
</td>
<td class="switch_sw$content[sw] bottom">
- $content[points]
+ {%pipe,translateComma=$content[points]%}
</td>
</tr>
<tr>
<td class="switch_sw$content[sw] bottom right" width="23%" align="center">
{--EMAIL_SENDER--}:<br />
- <strong class="admin_misc">$content[u_link]</strong>
+ <strong class="admin_misc">{%pipe,generateUserProfileLink=$content[sender]%}</strong>
</td>
<td class="switch_sw$content[sw] bottom right" width="23%" align="center">
{--EMAIL_SUBJECT--}:<br />
<tr>
<td colspan="2" align="center" class="switch_sw$content[sw] bottom right">
{--EMAIL_PAYMENT--}:<br />
- <strong class="admin_misc">{%pipe,translateComma=$content[pay]%}</strong>
+ <strong class="admin_misc">{%pipe,getPaymentTitlePrice,translateComma=$content[payment_id]%}</strong>
</td>
<td align="center" class="switch_sw$content[sw] bottom">
{--EMAIL_CATEGORY--}:<br />
- <strong class="admin_misc">$content[cat]</strong>
+ <strong class="admin_misc">{%pipe,getCategory=$content[cat_id]%}</strong>
</td>
</tr>
<tr>
<td align="center" class="switch_sw$content[sw] bottom right">
{--EMAIL_RECEIVERS--}:<br />
<strong class="admin_misc">$content[sent]</strong> ({--EMAIL_RUIDS--}:
- <strong class="admin_misc">$content[ruserids]</strong>)
+ <strong class="admin_misc">{%pipe,convertReceivers=$content[receivers]%}</strong>)
</td>
<td align="center" class="switch_sw$content[sw] bottom right">
{--USERS_LINKS--}:<br />
</td>
<td align="center" class="switch_sw$content[sw] bottom">
{--EMAIL_POOL_TYPE--}:<br />
- <strong class="admin_misc">$content[type]</strong>
+ <strong class="admin_misc">{%pipe,translatePoolType=$content[data_type]%}</strong>
</td>
</tr>
<tr>
</td>
<td align="center" class="switch_sw$content[sw] bottom right">
{--EMAIL_URL--}:<br />
- <strong class="admin_misc"><a href="$content[frametester]"
+ <strong class="admin_misc"><a href="{%pipe,generateFrametesterUrl=$content[url]%}"
target="_blank">{--ADMIN_TEST_URL--}</a></strong>
</td>
<td align="center" class="switch_sw$content[sw] bottom">
</tr>
<tr>
<td align="center" class="switch_sw$content[sw] bottom admin_del_link" colspan="3">
- <a href="{%url=modules.php?module=admin&what=del_email&mid=$content[mid]%}">{--ADMIN_DELETE_NORMAL_MAIL--}</a>
+ <a href="{%url=modules.php?module=admin&what=del_email&mid=$content[id]%}">{--ADMIN_DELETE_NORMAL_MAIL--}</a>
</td>
</tr>
<tr>
<td class="switch_sw$content[sw] bottom right" align="center">$content[win1]$content[cnt]$content[win2]</td>
<td class="switch_sw$content[sw] bottom right" align="center">$content[win1]<a href="{%url=modules.php?module=admin&what=list_user&userid=$content[userid]%}">$content[userid]</a>$content[win2]</td>
- <td class="switch_sw$content[sw] bottom right">$content[win1]<a href="$content[email]">$content[gender] $content[surname] $content[family]</a>$content[win2]</td>
- <td class="switch_sw$content[sw] bottom right">$content[turbo] {?POINTS?}</td>
+ <td class="switch_sw$content[sw] bottom right">$content[win1]<a href="$content[email]">{%pipe,translateGender=$content[gender]%} $content[surname] $content[family]</a>$content[win2]</td>
+ <td class="switch_sw$content[sw] bottom right">{%pipe,translateComma=$content[beg_points]%} {?POINTS?}</td>
<td class="switch_sw$content[sw] bottom">$content[last_online]</td>
</tr>
<tr>
<td align="center" class="top bottom right" width="23%">
<div>{--EMAIL_POINTS--}:</div>
- <div><strong class="admin_misc">$content[points] {?POINTS?}</strong></div>
+ <div><strong class="admin_misc">{%pipe,translateComma=$content[points]%} {?POINTS?}</strong></div>
</td>
<td align="center" class="top bottom right" width="23%">
<div>{--EMAIL_SECONDS--}:</div>
- <div><strong class="admin_misc">$content[time]</strong></div>
+ <div><strong class="admin_misc">{%pipe,createFancyTime=$content[time]%}</strong></div>
</td>
<td align="center" class="top bottom">
<div>{--EMAIL_CATEGORY--}:</div>
- <div><strong class="admin_misc">$content[category]</strong></div>
+ <div><strong class="admin_misc">{%pipe,getCategory=$content[cat_id]%}</strong></div>
</td>
</tr>
<tr>
<td align="center" class="top bottom right">
<div>{--EMAIL_RECEIVERS--}:</div>
- <div><strong class="admin_misc">$content[mails_sent]</strong>
- ({--EMAIL_RUIDS--}: <strong class="admin_misc">$content[receivers]</strong>)</div>
+ <div><strong class="admin_misc">{%pipe,translateComma=$content[mails_sent]%}</strong>
+ ({--EMAIL_RUIDS--}: <strong class="admin_misc">{%pipe,convertReceivers=$content[receivers]%}</strong>)</div>
</td>
<td align="center" class="top bottom right">
<div>{--USERS_LINKS--}:</div>
</td>
<td align="center" class="top bottom">
<div>{--EMAIL_POOL_TYPE--}:</div>
- <div><strong class="admin_misc">$content[type]</strong></div>
+ <div><strong class="admin_misc">{%pipe,translatePoolType=$content[data_type]%}</strong></div>
</td>
</tr>
<tr>
</td>
<td align="center" class="top bottom right">
<div>{--EMAIL_URL--}:</div>
- <div><strong class="admin_misc"><a href="$content[frametester]" target="_blank">{--ADMIN_TEST_URL--}</a></strong></div>
+ <div><strong class="admin_misc"><a href="{%pipe,generateFrametesterUrl=$content[url]%}" target="_blank">{--ADMIN_TEST_URL--}</a></strong></div>
</td>
<td align="center" class="top bottom">
<div>{--EMAIL_TIMESTAMP--}:</div>
<tr>
<td class="bottom top right" width="23%" align="center">
{--EMAIL_SENDER--}:<br />
- <div class="admin_misc">$content[sender_link]</div>
+ <div class="admin_misc">{%pipe,generateUserProfileLink=$content[sender]%}</div>
</td>
<td class="bottom top right" width="23%" align="center">
{--EMAIL_SUBJECT--}:<br />
<div class="admin_misc">$content[text]</div>
</td>
</tr>
-<tr><td height="5" colspan="3"></td></tr>
<tr>
<td colspan="2" align="center" class="top bottom right">
{--EMAIL_PAYMENT--}:<br />
- <div class="admin_misc">$content[payment]
+ <div class="admin_misc">{%pipe,getPaymentTitlePrice=$content[payment_id]%}</div>
</td>
<td align="center" class="top bottom">
{--EMAIL_CATEGORY--}:<br />
- <div class="admin_misc">$content[category]
+ <div class="admin_misc">{%pipe,getCategory=$content[cat_id]%}</div>
</td>
</tr>
-<tr><td height="5" colspan="3"></td></tr>
<tr>
<td align="center" class="top bottom right">
{--EMAIL_RECEIVERS--}:<br />
- <div class="admin_misc">$content[sent_email]</div>
- ({--EMAIL_RUIDS--}: <div class="admin_misc">$content[receivers]</div>)
+ <div class="admin_misc">{%pipe,translateComma=$content[sent_email]%}</div>
+ ({--EMAIL_RUIDS--}: <div class="admin_misc">{%pipe,convertReceivers=$content[receivers]%}</div>)
</td>
<td align="center" class="top bottom right">
{--USERS_LINKS--}:<br />
</td>
<td align="center" class="top bottom">
{--EMAIL_POOL_TYPE--}:<br />
- <div class="admin_misc">$content[type]</div>
+ <div class="admin_misc">{%pipe,translatePoolType=$content[data_type]%}</div>
</td>
</tr>
-<tr><td height="5" colspan="3"></td></tr>
<tr>
<td align="center" class="top right">
{--EMAIL_TSEND--}:<br />
- <div class="admin_misc">$content[target_send]</div>
+ <div class="admin_misc">{%pipe,translateComma=$content[target_send]%}</div>
</td>
<td align="center" class="top right">
{--EMAIL_URL--}:<br />
- <div class="admin_misc"><a href="$content[frametester]" target="_blank">{--ADMIN_TEST_URL--}</a></div>
+ <div class="admin_misc"><a href="{%pipe,generateFrametesterUrl=$content[url]%}" target="_blank">{--ADMIN_TEST_URL--}</a></div>
</td>
<td align="center" class="top">
{--EMAIL_TIMESTAMP--}:<br />
<input type="checkbox" title="{--ID_SELECT--} $content[id]" class="admin_normal" name="sel[$content[id]]" value="1" />
</td>
<td class="switch_sw$content[sw] bottom right">
- $content[mod]
+ $content[module]
</td>
<td class="switch_sw$content[sw] bottom right">
- $content[title]
+ $content[title]
</td>
<td class="switch_sw$content[sw] bottom right" align="center">
- $content[locked]
+ {%pipe,translateYesNo=$content[locked]%}
</td>
<td class="switch_sw$content[sw] bottom right" align="center">
- $content[hidden]
+ {%pipe,translateYesNo=$content[hidden]%}
</td>
<td class="switch_sw$content[sw] bottom right" align="center">
- $content[admin]
+ {%pipe,translateYesNo=$content[admin_only]%}
</td>
<td class="switch_sw$content[sw] bottom" align="center">
- $content[mem]
+ {%pipe,translateYesNo=$content[mem_only]%}
</td>
</tr>
<tr>
<td align="center" class="top bottom right" width="23%">
{--EMAIL_POINTS--}:<br />
- <strong class="admin_misc">$content[points] {?POINTS?}</strong>
+ <strong class="admin_misc">{%pipe,translateComma=$content[points]%} {?POINTS?}</strong>
</td>
<td align="center" class="top bottom right" width="23%">
{--EMAIL_SECONDS--}:<br />
- <strong class="admin_misc">$content[time]</strong>
+ <strong class="admin_misc">{%pipe,createFancyTime=$content[time]%}</strong>
</td>
<td align="center" class="top bottom">
{--EMAIL_CATEGORY--}:<br />
- <strong class="admin_misc">$content[category]</strong>
+ <strong class="admin_misc">{%pipe,getCategory=$content[cat_id]%}</strong>
</td>
</tr>
<tr>
<td align="center" class="top bottom right">
{--EMAIL_RECEIVERS--}:<br />
- <strong class="admin_misc">$content[mails_sent]</strong>
- ({--EMAIL_RUIDS--}: <strong class="admin_misc">$content[receivers]</strong>)
+ <strong class="admin_misc">{%pipe,translateComma=$content[mails_sent]%}</strong>
+ ({--EMAIL_RUIDS--}: <strong class="admin_misc">{%pipe,convertReceivers=$content[receivers]%}</strong>)
</td>
<td align="center" class="top bottom right">
{--USERS_LINKS--}:<br />
- <strong class="admin_misc">$content[unconfirmed]</strong>
+ <strong class="admin_misc">$content[unconfirmed_content]</strong>
</td>
<td align="center" class="top bottom">
{--EMAIL_POOL_TYPE--}:<br />
- <strong class="admin_misc">$content[type]</strong>
+ <strong class="admin_misc">{%pipe,translatePoolType=$content[data_type]%}</strong>
</td>
</tr>
<tr>
<td align="center" class="top bottom right">
{--EMAIL_TSEND--}:<br />
- <strong class="admin_misc">$content[target_send]</strong>
+ <strong class="admin_misc">{%pipe,translateComma=$content[target_send]%}</strong>
</td>
<td align="center" class="top bottom right">
{--EMAIL_URL--}:<br />
- <strong class="admin_misc"><a href="$content[frametester]" target="_blank">{--ADMIN_TEST_URL--}</a></strong>
+ <strong class="admin_misc"><a href="{%pipe,generateFrametesterUrl=$content[url]%}" target="_blank">{--ADMIN_TEST_URL--}</a></strong>
</td>
<td align="center" class="top bottom">
{--EMAIL_TIMESTAMP--}:<br />
<tr>
- <td class="switch_sw$content[sw] bottom right" align="center"><strong>$content[trans_id]</strong></td>
- <td class="switch_sw$content[sw] bottom right" align="center">$content[time_trans]</td>
- <td class="switch_sw$content[sw] bottom right" align="center">$content[from_link]</td>
- <td class="switch_sw$content[sw] bottom right" align="center">$content[to_link]</td>
- <td class="switch_sw$content[sw] bottom right">$content[reason]</td>
- <td class="switch_sw$content[sw] bottom" align="center">$content[points]</td>
+ <td class="switch_sw$content[sw] bottom right" align="center">
+ <strong>$content[trans_id]</strong>
+ </td>
+ <td class="switch_sw$content[sw] bottom right" align="center">
+ $content[time_trans]
+ </td>
+ <td class="switch_sw$content[sw] bottom right" align="center">
+ {%pipe,generateUserProfileLink=$content[from_userid]%}
+ </td>
+ <td class="switch_sw$content[sw] bottom right" align="center">
+ {%pipe,generateUserProfileLink=$content[to_userid]%}
+ </td>
+ <td class="switch_sw$content[sw] bottom right">
+ $content[reason]
+ </td>
+ <td class="switch_sw$content[sw] bottom" align="center">
+ {%pipe,translateComma=$content[points]%}
+ </td>
</tr>
<div align="center">
<table border="0" cellspacing="0" cellpadding="0" class="admin_table dashed">
<tr>
- <td class="admin_title bottom" colspan="{!__COLSPAN2!}" align="center">
+ <td class="admin_title bottom" colspan="$content[colspan2]" align="center">
<strong>$content[title]:</strong>
</td>
</tr>
- {!__ALPHA_SORT!}
- {!__SORT_LINKS!}
- {!__PAGE_NAV!}
+ $content[alpha_sort]
+ $content[sort_links]
+ $content[page_nav]
$content[rows]
- {!__PAGE_NAV!}
+ $content[page_nav]
</table>
</div>
<tr>
- <td colspan="{!__COLSPAN2!}" align="center">
+ <td colspan="$content[colspan2]" align="center">
<table border="0" cellspacing="0" cellpadding="0" width="510">
<tr>
<td class="admin_alpha">
- {--ADMIN_ALPHA_SELCTION--} [ $content ]</td>
+ {--ADMIN_ALPHA_SELCTION--} [ $content[alpha_selection] ]</td>
</tr>
</table>
</td>
<tr>
- <td class="admin_title" colspan="{!__COLSPAN2!}" align="center">
+ <td class="admin_title" colspan="$content[colspan2]" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="admin_pagenav">
<tr>
- <td class="bottom" colspan="{!__COLSPAN2!}" align="center">
+ <td class="bottom" colspan="$content[colspan2]" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="admin_sortlinks">
<tr>
- <td colspan="{!__COLSPAN2!}" align="center">
+ <td colspan="$content[colspan2]" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center">
<tr>
<td class="switch_sw$content[sw] bottom right">
- $content[title] ($content[module])
+ $content[title] (<span class="admin_misc">$content[module]</span>)
</td>
<td class="switch_sw$content[sw] bottom" align="center">
$content[clicks]
<tr>
<td class="switch_sw$content[sw] bottom right" align="center">
<input type="checkbox" name="sel[$content[id]]" title="{--ID_SELECT--} $content[id]" class="admin_normal" value="1" />
- <input type="hidden" name="active[$content[id]]" value="$content[active]" />
+ <input type="hidden" name="active[$content[id]]" value="$content[theme_active]" />
</td>
<td class="switch_sw$content[sw] bottom right" align="center">
$content[link]
</td>
<td class="switch_sw$content[sw] bottom right" align="center">
- $content[name]
+ $content[theme_name]
</td>
<td class="switch_sw$content[sw] bottom right" align="center">
- $content[is_act]
+ {%pipe,translateYesNo=$content[theme_active]%}
</td>
<td class="switch_sw$content[sw] bottom right" align="center">
$content[email]
<a href="$content[url_link]" target="_blank">$content[url_title]</a>
</td>
<td class="switch_sw$content[sw] bottom" align="center">
- v$content[ver]
+ v$content[theme_ver]
</td>
</tr>
--- /dev/null
+<tr>
+ <td class="bonus_rank_$rows[rank] bottom switch_sw$rows[sw]">{%pipe,translateComma=$rows[rank]%}.</td>
+ <td class="bonus_rank_$rows[rank] bottom switch_sw$rows[sw]" align="center">$rows[userid]</td>
+ <td class="bonus_rank_$rows[rank] bottom switch_sw$rows[sw]" align="center">{%pipe,translateComma=$rows[points]%}</td>
+</tr>
<tr>
<td align="center" class="switch_sw$content[sw] bottom right">
- <a href="$content[url]" target="_blank" title="{--MEMBER_TEST_URL--}">{--MEMBER_SURFBAR_TEST_URL--}</a>
+ <a href="{%pipe,generateDerefererUrl=$content[url]%}" target="_blank" title="{--MEMBER_TEST_URL--}">{--MEMBER_SURFBAR_TEST_URL--}</a>
</td>
<td align="center" class="switch_sw$content[sw] bottom right">
{%pipe,translateSurfbarUrlStatus=$content[url_status]%}