"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "server/conf/awstats_index.php.master" between
ISPConfig-3.2.4.tar.gz and ISPConfig-3.2.5.tar.gz

About: ISPConfig is an ISP management and Hosting Control Panel (for different Managed Services).

awstats_index.php.master  (ISPConfig-3.2.4):awstats_index.php.master  (ISPConfig-3.2.5)
skipping to change at line 46 skipping to change at line 46
$current = $year."0".$month; $current = $year."0".$month;
} }
$awprev[$current] = $year."-".$month; $awprev[$current] = $year."-".$month;
closedir($handle); closedir($handle);
} }
arsort($awprev); arsort($awprev);
$options = ""; $options = "";
foreach ($awprev as $key => $value) foreach ($awprev as $key => $value) {
{ // Define name for the index file
$awstatsindex = 'awsindex.html';
if(file_exists($value.'/awsindex.html') && file_exists($value.'/goaindex. if(!file_exists($value.'/awsindex.html') && file_exists($value.'/goainde
html')) { x.html')) {
$awstatsindex = 'awsindex.html'; $awstatsindex = 'goaindex.html';
} elseif(file_exists($value.'/awsindex.html') && !file_exists($value.'/go }
aindex.html')) { // Set name for first entry in month list
$awstatsindex = 'awsindex.html';
} else {
$awstatsindex = 'goaindex.html';
}
if($key == $current) $options .= "<option selected=\"selected\" value=\"{ $awstatsindex}\">{$value}</option>\n"; if($key == $current) $options .= "<option selected=\"selected\" value=\"{ $awstatsindex}\">{$value}</option>\n";
else $options .= "<option value=\"{$value}/{$awstatsindex}\">{$value}</op tion>\n"; else $options .= "<option value=\"{$value}/{$awstatsindex}\">{$value}</op tion>\n";
} }
$awstatsindex = 'awsindex.html';
$html = "<!DOCTYPE html>\n<html>\n<head>\n<title>Stats</title>\n"; $html = "<!DOCTYPE html>\n<html>\n<head>\n<title>Stats</title>\n";
$html .= "<style>\nhtml,body {margin:0px;padding:0px;width:100%;height:100%;back ground-color: #ccc;}\n"; $html .= "<style>\nhtml,body {margin:0px;padding:0px;width:100%;height:100%;back ground-color: #ccc;}\n";
$html .= "#header\n{\nwidth:100%;margin:0px auto;\nheight:20px;\nposition:fixed; \npadding:4px;\ntext-align:center;\n}\n"; $html .= "#header\n{\nwidth:100%;margin:0px auto;\nheight:20px;\nposition:fixed; \npadding:4px;\ntext-align:center;\n}\n";
$html .= "iframe {width:100%;height:90%;margin:0px;margin-top:40px;border:0px;pa dding:0px;}\n</style>\n</head>\n<body>\n"; $html .= "iframe {width:100%;height:90%;margin:0px;margin-top:40px;border:0px;pa dding:0px;}\n</style>\n</head>\n<body>\n";
$html .= $script; $html .= $script;
$html .= "<div id=\"header\">{$yearmonth_text}\n"; $html .= "<div id=\"header\">{$yearmonth_text}\n";
$html .= "<select name=\"awdate\" onchange=\"load_content(this.value)\">\n"; $html .= "<select name=\"awdate\" onchange=\"load_content(this.value)\">\n";
$html .= $options; $html .= $options;
$html .= "</select>\n</div>\n<iframe src=\"{$awstatsindex}\" id=\"content\"></if rame>\n"; $html .= "</select>\n</div>\n<iframe src=\"awsindex.html\" id=\"content\"></ifra me>\n";
$html .= "</body></html>"; $html .= "</body></html>";
echo $html; echo $html;
?> ?>
 End of changes. 3 change blocks. 
16 lines changed or deleted 9 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)