X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=surfbar.php;h=eb9ab63004b2dda97c1ca90a7851760718a39aff;hp=fb6a5dd02c7fdf057c51c92b7569a88e662047ba;hb=0b3c067e92787167d135981d4fe6f3a039bad0af;hpb=b6a10f5ccfe2ff6e9e5c43f42e33966ae25ffbaa diff --git a/surfbar.php b/surfbar.php index fb6a5dd02c..eb9ab63004 100644 --- a/surfbar.php +++ b/surfbar.php @@ -14,11 +14,9 @@ * $Date:: $ * * $Tag:: 0.2.1-FINAL $ * * $Author:: $ * - * Needs to be in all Files and every File needs "svn propset * - * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009, 2010 by Mailer Developer Team * + * Copyright (c) 2009 - 2011 by Mailer Developer Team * * For more information visit: http://www.mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -81,7 +79,7 @@ if (!isMember()) { // Is there a 'code' provided? if (isGetRequestParameterSet('code')) { // Then generate an error message - loadTemplate('admin_settings_saved', false, getMessageFromErrorCode(getRequestParameter('code'))); + displayMessage(getMessageFromErrorCode(getRequestParameter('code'))); } // END - if // Display login form @@ -122,19 +120,10 @@ if ((SURFBAR_CHECK_RELOAD_FULL()) || ((isGetRequestParameterSet('frame')) && (in // This makes the footer appear again unsetGetRequestParameter('frame'); } elseif ((isGetRequestParameterSet('frame')) && (getRequestParameter('frame') == 'stats')) { - // Get total points amount - $points = countSumTotalData(getMemberId(), 'user_points', 'points') - countSumTotalData(getMemberId(), 'user_data', 'used_points'); - // Prepare content $content = array( - 'points' => translateComma($points), - 'online' => SURFBAR_DETERMINE_TOTAL_ONLINE(), - 'reload' => (getConfig('surfbar_stats_reload') * 1000), - 'c_total' => translateComma(getConfig('surfbar_total_counter')), - 'c_today' => translateComma(getConfig('surfbar_daily_counter')), - 'c_yester' => translateComma(getConfig('surfbar_yester_counter')), - 'c_week' => translateComma(getConfig('surfbar_weekly_counter')), - 'c_month' => translateComma(getConfig('surfbar_monthly_counter')), + 'points' => getTotalPoints(getMemberId()), + 'reload' => (getConfig('surfbar_stats_reload') * 1000) ); // Load template for "stats" page @@ -142,8 +131,7 @@ if ((SURFBAR_CHECK_RELOAD_FULL()) || ((isGetRequestParameterSet('frame')) && (in } elseif ((isGetRequestParameterSet('frame')) && (getRequestParameter('frame') == 'textlinks')) { // Prepare content $content = array( - 'online' => SURFBAR_DETERMINE_TOTAL_ONLINE(), - 'reload' => (getConfig('surfbar_stats_reload') * 1000) + 'reload' => (getConfig('surfbar_stats_reload') * 1000) ); // Load template for "stats" page @@ -201,15 +189,8 @@ if ((SURFBAR_CHECK_RELOAD_FULL()) || ((isGetRequestParameterSet('frame')) && (in if ($nextId > 0) { // Then prepare other content $content = array( - 'url_id' => $nextId, - 'check' => SURFBAR_GENERATE_VALIDATION_CODE($nextId), - 'salt' => SURFBAR_GET_SALT(), - 'reward' => translateComma(SURFBAR_GET_REWARD($nextId)), - 'url' => SURFBAR_GET_URL($nextId), - 'curr_reload' => SURFBAR_GET_USER_LOCKS(), - 'max_urls' => SURFBAR_GET_TOTAL_URLS(), - 'reload' => SURFBAR_GET_RELOAD_TIME($nextId), - 'xxx' => str_repeat('X', strlen(SURFBAR_GET_RELOAD_TIME($nextId))) + 'url_id' => $nextId, + 'xxx' => str_repeat('X', strlen(SURFBAR_GET_RELOAD_TIME($nextId))), ); // Update salt (double-call lock!) and statistics @@ -227,7 +208,7 @@ if ((SURFBAR_CHECK_RELOAD_FULL()) || ((isGetRequestParameterSet('frame')) && (in loadIncludeOnce('inc/header.php'); // Load that template - //* DEBUG: */ die("templateName={$templateName}
\ncontent=
".print_r($content, true)."
"); + //* DEBUG: */ die('templateName=' . $templateName . '
content=
' . print_r($content, true) . '
'); loadTemplate($templateName, false, $content); }