Hanno Böck To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty. You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see http://creativecommons.org/publicdomain/zero/1.0/ Nevertheless, in case you use a significant part of this code, we ask (but not require, see the license) that you keep the authors' names in place and return your changes to the public. We would be especially happy if you tell us what you're going to do with this code. */ require_once("inc/icons.php"); require_once("vhosts.php"); require_role(ROLE_SYSTEMUSER); title("Zugriffs-Statistiken"); warning('Diese Statistiken werden in Kürze abgeschafft. Wenn Sie eine solche Funktion weiterhin nutzen möchten, können Sie mit dem Programm "webalizer" selbst solche Statistiken erstellen lassen. Auf Anfrage können wir Ihnen die bestehenden Daten verfügbar machen um die rückblickenden Auswertungen zu erhalten.'); 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('

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.

Statistiken für Ihre Seiten

'); if (count($stats_vhosts) > 0) { output(' '); foreach ($stats_vhosts as $v) { output(""); output(""); if ($v['stats'] == 'public') { output(""); } else { output(""); } output(""); output(""); } output('
Für WebsiteÖffentlich abrufbar?Operationen
".internal_link('showstats', $v['fqdn'], "vhost={$v['id']}")."".icon_enabled("Diese Statistiken können von jedermann aufgerufen werden. Klicken Sie hier um die öffentliche Version zu sehen.")."".icon_disabled("Diese Statistiken können nur hier im Webinterface betrachtet werden.").""); if ($v['stats'] == 'public') { output(internal_link("", other_icon("lock.png", "Statistiken nicht mehr öffentlich anzeigen"), "vhost={$v['id']}&public=0")); } else { output(internal_link("", other_icon("world.png", "Statistiken veröffentlichen"), "vhost={$v['id']}&public=1")); } output("   ".internal_link("", icon_delete("Diese Statistiken löschen"), "vhost={$v['id']}&action=delete")."
'); } else { output('Für Ihre Seiten werden bisher keine Statistiken erzeugt'); } }