Skip to content

Commit 5d143fe

Browse files
author
Thom
committed
Improve awsindex setting
1 parent f85318e commit 5d143fe

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

server/conf/awstats_index.php.master

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ foreach ($awprev as $key => $value) {
5454
else $options .= "<option value=\"{$value}/{$awstatsindex}\">{$value}</option>\n";
5555
}
5656

57-
$awstatsindex = 'awsindex.html'
5857
$html = "<!DOCTYPE html>\n<html>\n<head>\n<title>Stats</title>\n";
5958
$html .= "<style>\nhtml,body {margin:0px;padding:0px;width:100%;height:100%;background-color: #ccc;}\n";
6059
$html .= "#header\n{\nwidth:100%;margin:0px auto;\nheight:20px;\nposition:fixed;\npadding:4px;\ntext-align:center;\n}\n";
@@ -63,7 +62,7 @@ $html .= $script;
6362
$html .= "<div id=\"header\">{$yearmonth_text}\n";
6463
$html .= "<select name=\"awdate\" onchange=\"load_content(this.value)\">\n";
6564
$html .= $options;
66-
$html .= "</select>\n</div>\n<iframe src=\"{$awstatsindex}\" id=\"content\"></iframe>\n";
65+
$html .= "</select>\n</div>\n<iframe src=\"awsindex.html\" id=\"content\"></iframe>\n";
6766
$html .= "</body></html>";
6867
echo $html;
6968
?>

0 commit comments

Comments
 (0)