X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=surfbar.php;h=cacbe4e64fcd13a1a74ae2622475bf57bbcbd05e;hb=bd6c043a3124914a3dc541b56400f551add987bf;hp=d65986193579c31409ff9397d53c0c4cabba1839;hpb=740ebc7e0fa047159dc57a3a4bf7365c69ad9e17;p=mailer.git
diff --git a/surfbar.php b/surfbar.php
index d659861935..cacbe4e64f 100644
--- a/surfbar.php
+++ b/surfbar.php
@@ -14,8 +14,6 @@
* $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 *
@@ -122,12 +120,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,8 +189,8 @@ if ((SURFBAR_CHECK_RELOAD_FULL()) || ((isGetRequestParameterSet('frame')) && (in
if ($nextId > 0) {
// Then prepare other content
$content = array(
- 'url_id' => $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
@@ -213,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 . '
' . print_r($content, true) . ''); loadTemplate($templateName, false, $content); }