$SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD `surfbar_autostart` ENUM('Y','N') NOT NULL DEFAULT 'Y'";
$SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD `surfbar_total_counter` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0";
$SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD `surfbar_daily_counter` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0";
+ $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD `surfbar_yester_counter` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0";
$SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD `surfbar_weekly_counter` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0";
$SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD `surfbar_monthly_counter` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0";
$SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD `surfbar_stats_reload` BIGINT(20) UNSIGNED NOT NULL DEFAULT 30";
if (($CSS == 1) || (defined('__DAILY_RESET'))) return;
// Reset surfbar counter
-UPDATE_CONFIG("surfbar_daily_counter", "0");
+UPDATE_CONFIG(array("surfbar_daily_counter", "surfbar_yester_counter`"), array(0, $_CONFIG['surfbar_daily_counter']));
+$_CONFIG['surfbar_yester_counter'] = $_CONFIG['surfbar_daily_counter'];
$_CONFIG['surfbar_daily_counter'] = 0;
//
// Prepare content
$content = array(
- 'points' => TRANSLATE_COMMA($points),
- 'online' => SURFBAR_DETERMINE_TOTAL_ONLINE(),
- 'reload' => ($_CONFIG['surfbar_stats_reload'] * 1000),
- 'c_total' => TRANSLATE_COMMA($_CONFIG['surfbar_total_counter']),
- 'c_today' => TRANSLATE_COMMA($_CONFIG['surfbar_daily_counter']),
- 'c_week' => TRANSLATE_COMMA($_CONFIG['surfbar_weekly_counter']),
- 'c_month' => TRANSLATE_COMMA($_CONFIG['surfbar_monthly_counter']),
+ 'points' => TRANSLATE_COMMA($points),
+ 'online' => SURFBAR_DETERMINE_TOTAL_ONLINE(),
+ 'reload' => ($_CONFIG['surfbar_stats_reload'] * 1000),
+ 'c_total' => TRANSLATE_COMMA($_CONFIG['surfbar_total_counter']),
+ 'c_today' => TRANSLATE_COMMA($_CONFIG['surfbar_yester_counter']),
+ 'c_yester' => TRANSLATE_COMMA($_CONFIG['surfbar_daily_counter']),
+ 'c_week' => TRANSLATE_COMMA($_CONFIG['surfbar_weekly_counter']),
+ 'c_month' => TRANSLATE_COMMA($_CONFIG['surfbar_monthly_counter']),
);
// Load template for "stats" page
»Guthaben: <span class="surfbar_points">$content[points] {!POINTS!}</span>« -
»Jetzt Online: <span class="surfbar_counter">$content[online]</span>« -
»Seitenaufrufe: Heute:<span class="surfbar_counter">$content[c_today]</span> -
+ Gestern:<span class="surfbar_counter">$content[c_yester]</span> -
Woche:<span class="surfbar_counter">$content[c_week]</span> -
Monat:<span class="surfbar_counter">$content[c_month]</span> -
Gesamt:<span class="surfbar_counter">$content[c_total]</span>«