diff --git a/server/conf/awstats_index.php.master b/server/conf/awstats_index.php.master index 00175e7a9119b55e0662cba07d00ddcc94b8c334..e0f185e84c6fbd5989283cdfd31e41e5614a1afa 100644 --- a/server/conf/awstats_index.php.master +++ b/server/conf/awstats_index.php.master @@ -1,66 +1,53 @@ - - function load_content(url){var iframe = document.getElementById(\"content\");iframe.src = url;}\n"; if ($handle = opendir('.')) { - while(false !== ($file = readdir($handle))) - { - if (substr($file,0,1) != "." && is_dir($file)) - { - $orderkey = substr($file,0,4).substr($file,5,2); - if (substr($file,5,2) < 10 ) - { - $orderkey = substr($file,0,4)."0".substr($file,5,2); - } - $awprev[$orderkey] = $file; - } - } - - $month = date("n"); - $year = date("Y"); - - if (date("d") == 1) - { - $month = date("m")-1; - if (date("m") == 1) - { - $year = date("Y")-1; - $month = "12"; - } - } - - $current = $year.$month; - $awprev[$current] = $year."-".$month; - - closedir($handle); + while(false !== ($file = readdir($handle))) + { + if (substr($file,0,1) != "." && is_dir($file)) + { + $orderkey = substr($file,0,4).substr($file,5,2); + if (substr($file,5,2) < 10 ) $orderkey = substr($file,0,4)."0".substr($file,5,2); + $awprev[$orderkey] = $file; + } + } + $month = date("n"); + $year = date("Y"); + if (date("d") == 1) + { + $month = date("m")-1; + if (date("m") == 1) + { + $year = date("Y")-1; + $month = "12"; + } + } + $current = $year.$month; + $awprev[$current] = $year."-".$month; + closedir($handle); } -echo '
' .$aw["aw_jump_text"]. ''; - -echo "
'; - +$html = "\n\n\nStats\n"; +$html .= "\n\n\n"; +$html .= $script; +$html .= "
{$yearmonth_text}\n"; +$html .= "\n
\n\n"; +$html .= ""; +echo $html; ?> \ No newline at end of file