", htmlentities($_POST['text']))."\")"); } else if (isset($_GET['del'])) { mysql_query("DELETE FROM blog WHERE id=".$_GET['del']); } } function encodeToHex($int) { $hex = dechex($int); $code = substr($hex, -6, 6); return strtoupper(substr($code, 0, 5)); } function dumpToFile($file, $str) { $fp = fopen($file, "a+"); fputs($fp, $str."\r\n"); fclose($fp); } function getCaptcha($relPathToRoot, $id) { $timestamp = substr(microtime(), 2, 6); $c = explode(" ", microtime()); $a = substr($c[0], 2, 8); $b = substr($c[1], 2, 8); $nr = intval($a) + intval($b); $code = encodeToHex($nr); $str = "
"; return $str; } function checkCaptcha($input, $nr) { $code = encodeToHex($nr); return ($code == strtoupper($input)); } ?> Tauchblog
"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "


Hier können Tauchgänge vereinbart und Infos getauscht werden.

Login:

Name:

Nachricht:



"; echo "
".$row['name'].""; $parts = explode(" ", $row['timestamp']); $date = explode("-", $parts[0]); $time = explode(":", $parts[1]); echo "am ".$date[2].".".$date[1].".".$date[0]; echo " um ".$time[0].":".$time[1]; if (isset($_SESSION['userid'])) { echo " Löschen"; } echo "
"; echo $row['message']; echo "
"; echo "
"; } if ($numentries == 0) { echo "Keine Einträge vorhanden"; } if ($numentries > 10 && intval($_GET['i']) + 10 < $numentries) { echo "Ältere Einträge"; } if ($numentries > 10 && intval($_GET['i']) > 0) { $in = intval($_GET['i']) - 10; if ($in < 0) $in = 0; echo "Neuere Einträge"; } ?>