From 81d79a79e4b29e9314b64b2e4c49b48ae8319767 Mon Sep 17 00:00:00 2001
From: ftimme <ft@falkotimme.com>
Date: Tue, 11 Oct 2011 08:50:45 -0400
Subject: [PATCH] - WebDAV Users: show only domains that run on Apache (because nginx does not have full WebDAV support).

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