include('inc/config.php'); $config = new config; // Reloadsperre Timeout sind 6 Stunden $now = time(); $sql = "DELETE FROM zs_counter WHERE cTimeOut < '$now'"; $config->db_query($sql); $ip = getenv("REMOTE_ADDR"); $res = $config->db_query("SELECT * FROM zs_counter WHERE cIP = '$ip'"); // Counterstand ermitteln $counter = file_get_contents($config->c_ABSWWW.'img/counter.txt'); if (!mysql_num_rows($res)) { $counter++; $fp = fopen($config->c_ABSWW.'img/counter.txt', 'w+'); fwrite ($fp, $counter); fclose($fp); $timeout = $now + 21600; $config->db_query("INSERT INTO zs_counter (cIP, cTimeOut) VALUES ('$ip', '$timeout')"); } ?>
| Herzlich Willkommen |
|---|
| weiter |
echo $counter; ?> Besucher
seit Anfang 2005