From d81a4c42e7ee990f8ad7099fd116bf634b27fdbf Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Fri, 23 Sep 2011 05:14:36 -0400 Subject: [PATCH] - Fixed some awstats problems. - Added SNI config field in sysetm > server config > web. --- server/conf/awstats_index.php.master | 22 +++++++++++----------- 1 files changed, 11 insertions(+), 11 deletions(-) diff --git a/server/conf/awstats_index.php.master b/server/conf/awstats_index.php.master index f6ced55..90cf909 100644 --- a/server/conf/awstats_index.php.master +++ b/server/conf/awstats_index.php.master @@ -5,9 +5,10 @@ iframe.src = url; } </script> + <?php $aw['aw_jump_text'] = 'Jump to previous stats: '; -$aw['aw_renamed_index'] = 'awsindex.html'; +$aw['aw_renamed_index'] = 'fixedindex.html'; if ($handle = opendir('.')) { @@ -19,22 +20,21 @@ } } - $month = date("m")+1-1; + $month = date("n"); + $year = date("Y"); if (date("d") == 1) { - $month = date("m")-1; - } - - $year = date("Y"); - - if (date("m") == 1) - { - $year = date("Y")-1; - $month = "12"; + $awmonth = date("m")-1; + if (date("m") == 1) + { + $awyear = date("Y")-1; + $awmonth = "12"; + } } $awprev[] = $year."-".$month; + closedir($handle); } -- Gitblit v1.9.1