From 445513c1a26f7f1639fad2f622ce12f7491dfd88 Mon Sep 17 00:00:00 2001 From: ftimme <ft@falkotimme.com> Date: Tue, 27 Sep 2011 08:28:22 -0400 Subject: [PATCH] - Added PHP-FPM pm settings (pm.max_children, pm.start_servers, pm.min_spare_servers, pm.max_spare_servers) to the "Options" tab of a website. --- 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