From b31bb1f27f066a2d49f5ab9ee0ca15e985efc788 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Mon, 26 Sep 2011 06:50:23 -0400
Subject: [PATCH] Fixed: FS#1619 - Add apache SNI / SAN support for SSL.

---
 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