//--Change the following variables
//Title of your guestbook
$title = "Gästebuch";
//Change "admin" with your own password. It's required when you delete an entry
$admin_password = "skf-stm03";
//Enter your email here
$admin_email = "office@it-hasler.at";
//URLs regular expression which are not allowed to add ...
$url_blacklist_regexp='\.(biz|cn)([ \/]|$)';
//Your website URL
$home = "http://www.segelkunstflug.at/";
//Send you an email when someone add your guestbook, YES or NO
$notify = "NO";
//Your Operating System
//For Windows/NT user : WIN
//For Linux/Unix user : UNIX
$os = "UNIX";
//Maximum entry per page when you view your guest book
$max_entry_per_page = "5";
//Name of file used to store your entry, change it if necessary
$data_file = "eintrag.txt";
//Maximum entry stored in data file
$max_record_in_data_file = "500";
//Color setting
$background = "#555555";
$table_top = "#EC7600";
$table_content_1a = "#DFDFFF";
$table_content_1b = "#AAAAFF";
$table_content_2a = "#FFE1E1";
$table_content_2b = "#FFB9B9";
$table_bottom = "#FFB164";
$table_border = "#000000";
$title_color = "#990000";
// $title_color = "yellow";
$link = "blue";
$visited_link = "blue";
$active_link = "red";
//-- Don't change bellow this line
if (!defined('PMA_GRAB_GLOBALS_INCLUDED')) {
define('PMA_GRAB_GLOBALS_INCLUDED', 1);
if (!empty($_GET)) extract($_GET);
else if (!empty($HTTP_GET_VARS)) extract($HTTP_GET_VARS);
if (!empty($_POST)) extract($_POST);
else if (!empty($HTTP_POST_VARS)) extract($HTTP_POST_VARS);
}
if (!isset($PHP_SELF)) $PHP_SELF = $_SERVER["PHP_SELF"];
if (!isset($do)) $do = "";
if (!isset($page)) $page=1;
if (!file_exists($data_file)) {
if ($f = fopen($data_file,"w")) fclose($f);
else { echo "Error !!Can't create data file. "; exit; } } else { if ($max_record_in_data_file <> "0"): $f = file($data_file); rsort($f); $j = count($f); if ($j > $max_record_in_data_file): $rf = fopen($data_file,"w"); if (strtoupper($os)=="UNIX") { if (flock($rf,2)): for ($i=0; $i<$max_record_in_data_file; $i++): fwrite($rf,$f[$i]); endfor; flock($rf,3); endif; } else { for ($i=0; $i<$max_record_in_data_file; $i++): fwrite($rf,$f[$i]); endfor; } fclose($rf); endif; endif; } switch ($do) { case "": $record = file($data_file); rsort($record); $jmlrec = count($record); ?>
|