bernd
Benutze überall title() statt output("<h3>...</h3>")
bernd commited f2550e9 at 2010-09-18 13:35:15
<?php
require_once("inc/icons.php");
require_once("vhosts.php");
require_role(ROLE_SYSTEMUSER);
title("Zugriffs-Statistiken");
if (isset($_REQUEST['vhost']))
{
$v = get_vhost_details($_REQUEST['vhost']);
if (isset($_REQUEST['public']))
{
$v['stats'] = ($_REQUEST['public'] == 1) ? 'public' : 'private';
}
if (isset($_REQUEST['action']))
{
if ($_REQUEST['action'] == 'delete')
$v['stats'] = NULL;
elseif ($_REQUEST['action'] == 'new')
check_form_token('stats_new');
}
save_vhost($v);
redirect('stats');
}
else
{
$all_vhosts = list_vhosts();
$stats_vhosts = array();
foreach ($all_vhosts AS $v)
if ($v['stats'])
$stats_vhosts[] = $v;
output('<p>Um die Reichweite und das Publikum Ihrer Internet-Seiten besser einschätzen zu können, besteht die Möglichkeit aus den ggf. vorhandenen Webserver-Logfiles grafisch aufbereitete Statistiken erstellen zu lassen.</p>
<h3>Statistiken für Ihre Seiten</h3>
');
if (count($stats_vhosts) > 0)
{
output('
<table><tr><th>Für Website</th><th>Öffentlich abrufbar?</th><th>Operationen</th></tr>
');
foreach ($stats_vhosts AS $v)
 
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX