connect(); /* DATUM */ $d = date("d"); # day xx $m = date("m"); # month xx $Y = date("Y"); # year xxxx $H = date("H"); # hour xx $i = date("i"); # minute xx $datum = date("d.m.Y"); # full date xx.xx.xxxx $zeit = date("H:i"); # full time xx:xx /* REMOTE HOST */ $ip = getenv("REMOTE_ADDR"); #$_SERVER['REMOTE_ADDR']; $host = gethostbyaddr($_SERVER['REMOTE_ADDR']); /* SESSION BEGINN FÜR DEN COUNTER */ session_start(); /* COUNTER */ $ctr = $mysql->fetch_array("SELECT * FROM t_counter WHERE id=2"); if(!$visit) { $visit = 1; session_register('visit'); $counter = $ctr['counter']+1; mysql_query ("UPDATE t_counter SET counter='$counter' WHERE id=2"); } switch($index) { default: $templates->set_file("content", "templates/main.htm"); break; case "members": $templates->set_file("content", "templates/members.htm"); break; case "Impressum": $templates->set_file("content", "templates/Impressum.htm"); break; case "Classic Cup 07": $templates->set_file("content", "templates/Classic Cup 07.htm"); break; case "Classic Cup 08": $templates->set_file("content", "templates/Classic Cup 08.htm"); break; case "Classic Cup 15": $templates->set_file("content", "templates/Classic Cup 15.htm"); break; case "Classic Cup 201516": $templates->set_file("content", "templates/Classic Cup 201516.htm"); break; case "Classic Cup 2016": $templates->set_file("content", "templates/Classic Cup 2016.htm"); break; case "Classic Cup 2017": $templates->set_file("content", "templates/Classic Cup 2017.htm"); break; case "Classic Cup 2018": $templates->set_file("content", "templates/Classic Cup 2018.htm"); break; case "Classic Cup 2019": $templates->set_file("content", "templates/Classic Cup 2019.htm"); break; case "Classic Cup 2020": $templates->set_file("content", "templates/Classic Cup 2020.htm"); break; case "Classic Cup 2021": $templates->set_file("content", "templates/Classic Cup 2021.htm"); break; case "Hall of Fame 08": $templates->set_file("content", "templates/Hall of Fame 08.htm"); break; case "Results": $templates->set_file("content", "templates/Results.htm"); break; case "Youngtimer Cup": $templates->set_file("content", "templates/Youngtimer Cup.htm"); break; case "Caterham": $templates->set_file("content", "templates/Caterham.htm"); break; case "April Classics": $templates->set_file("content", "templates/April Classics.htm"); break; case "May Classics": $templates->set_file("content", "templates/May Classics.htm"); break; case "June Classics": $templates->set_file("content", "templates/June Classics.htm"); break; case "July Classics": $templates->set_file("content", "templates/July Classics.htm"); break; case "August Classics": $templates->set_file("content", "templates/August Classics.htm"); break; case "September Classics": $templates->set_file("content", "templates/September Classics.htm"); break; case "Oktober Classics": $templates->set_file("content", "templates/Oktober Classics.htm"); break; case "November Classics": $templates->set_file("content", "templates/November Classics.htm"); break; case "December Classics": $templates->set_file("content", "templates/December Classics.htm"); break; case "januar08": $templates->set_file("content", "templates/januar08.htm"); break; case "Classic Cup 10": $templates->set_file("content", "templates/Classic Cup 10.htm"); break; case "Classic Cup 09": $templates->set_file("content", "templates/Classic Cup 09.htm"); break; case "Skalman": $templates->set_file("content", "templates/Skalman.htm"); break; case "Ja-Sweden": $templates->set_file("content", "templates/Ja-Sweden.htm"); break; case "greco": $templates->set_file("content", "templates/greco.htm"); break; case "jiMMy": $templates->set_file("content", "templates/jiMMy.htm"); break; case "X-Ray Eyes": $templates->set_file("content", "templates/X-Ray Eyes.htm"); break; case "Classic Cup 11": $templates->set_file("content", "templates/Classic Cup 11.htm"); break; case "Classic Cup 12": $templates->set_file("content", "templates/Classic Cup 12.htm"); break; case "Classic Cup 13": $templates->set_file("content", "templates/Classic Cup 13.htm"); break; case "Classic Cup 14": $templates->set_file("content", "templates/Classic Cup 14.htm"); break; case "Februar Classics": $templates->set_file("content", "templates/Februar Classics.htm"); break; case "March Classics": $templates->set_file("content", "templates/March Classics.htm"); break; case "Links": $templates->set_file("content", "templates/Links.htm"); break; } $templates->set_file("Hauptseite", "templates/index.htm"); $ctr = $mysql->fetch_array("SELECT * FROM t_counter WHERE id=2"); $templates->replace(array("TITLE", "[www.bkl.bruhy.de]", "TIME", $time, "DATE", $datum, "content", $tpl_content, "counter", $ctr[counter], ), "Hauptseite"); # Template ausgeben $templates->parse("Hauptseite"); #$mysql->close(); ?>