]> git.mxchange.org Git - mailer.git/blobdiff - surfbar.php
Rewrites/fixes for surfbar
[mailer.git] / surfbar.php
index fb6a5dd02c7fdf057c51c92b7569a88e662047ba..63facf329f15a92886fa1e1fabc9bd9c8fb0a6d7 100644 (file)
@@ -127,14 +127,8 @@ if ((SURFBAR_CHECK_RELOAD_FULL()) || ((isGetRequestParameterSet('frame')) && (in
 
                // 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' => $points,
+                       'reload' => (getConfig('surfbar_stats_reload') * 1000)
                );
 
                // Load template for "stats" page
@@ -142,8 +136,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 +194,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 +213,7 @@ if ((SURFBAR_CHECK_RELOAD_FULL()) || ((isGetRequestParameterSet('frame')) && (in
        loadIncludeOnce('inc/header.php');
 
        // Load that template
-       //* DEBUG: */ die("templateName={$templateName}<br />\n<strong>content</strong>=<pre>".print_r($content, true)."</pre>");
+       //* DEBUG: */ die('templateName=' . $templateName . '<br /><strong>content</strong>=<pre>' . print_r($content, true) . '</pre>');
        loadTemplate($templateName, false, $content);
 }