$links=array('home','kontakt','impressum','über mich');
$links=file('menue.txt', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
setlocale(LC_ALL, "de_DE"); ini_set('display_errors', 1);error_reporting(E_ALL ^ E_NOTICE);error_reporting(-1);
$p=(isset($_GET['p'])? $_GET['p']:'Mein-Angebot-für-Sie');?>
Pflanzen und Pflegen
echo isset($_GET['p'])? str_replace('-',' ',mb_strtoupper(mb_substr($p, 0, 1, 'UTF-8'), 'UTF-8'). mb_substr($p, 1, null, 'UTF-8')): 'Sabine Baumann'?>
if(array_search($p,$links)>2 ) echo nl2br(file_get_contents(str_replace('-','_',$p.'.htm'))); else include(str_replace('-','_',$p.'.htm'));//
//echo $p;
?>
Seitenbesucher:
include('inc/statistics.inc');
if(file_exists('statistics/H'.date('G').'.log'))echo ' diese Stunde: '.count(file('statistics/H'.date('G').'.log'));
if(file_exists('statistics/H'.date('G', strtotime('-1 hour')).'.log'))echo ', letzte Stunde: '.count(file('statistics/H'.date('G', strtotime('-1 hour')).'.log'));
if(file_exists('statistics/D'.date('z').'.log'))echo ', heute: '.count(file('statistics/D'.date('z').'.log'));
if(file_exists('statistics/D'.date('z', strtotime('-1 day')).'.log'))echo ', gestern: '.count(file('statistics/D'.date('z', strtotime('-1 day')).'.log'));
if(file_exists('statistics/W'.date('W').'.log'))echo ', diese Woche: '.count(file('statistics/W'.date('W').'.log'));
if(file_exists('statistics/W'.date('W', strtotime('-1 week')).'.log'))echo ', letzte Woche: '.count(file('statistics/W'.date('W', strtotime('-1 week')).'.log'));
if(file_exists('statistics/M'.date('n').'.log'))echo ', diesen Monat: '.count(file('statistics/M'.date('n').'.log'));
if(file_exists('statistics/M'.date('n', strtotime('-1 month')).'.log'))echo ', letzten Monat: '.count(file('statistics/M'.date('n', strtotime('-1 month')).'.log'));
if(file_exists('statistics/Y'.date('y').'.log'))echo ', dieses Jahr: '.count(file('statistics/Y'.date('y').'.log'));
if(file_exists('statistics/Y'.date('y', strtotime('-1 year')).'.log'))echo ', letztes Jahr: '.count(file('statistics/Y'.date('y', strtotime('-1 year')).'.log'));
echo'.';
?>