X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=surfbar.php;h=4bfb8caaaf44ed98aa718246ce9f4234a7a9ecbc;hb=da1351305083b71503b9b0ca1bb557133615e063;hp=e835e927dddf0ed613607da04f8d6fca88c17dc2;hpb=d9c334d0126dfa49f2ff15a81612251dea862acb;p=mailer.git
diff --git a/surfbar.php b/surfbar.php
index e835e927dd..4bfb8caaaf 100644
--- a/surfbar.php
+++ b/surfbar.php
@@ -122,12 +122,9 @@ 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' => $points,
+ 'points' => getTotalPoints(getMemberId()),
'reload' => (getConfig('surfbar_stats_reload') * 1000)
);
@@ -194,15 +191,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
@@ -220,7 +210,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 . '
' . print_r($content, true) . ''); loadTemplate($templateName, false, $content); }