$admin_password = "Kereso813";
$admin_email = "info@partner-kereso.hu";
$home = "http://partner-kereso.hu";
//Send you an email when someone add your guestbook, YES or NO
$notify = "YES";
//Your Operating System
//For Windows/NT user : WIN
//For Linux/Unix user : UNIX
$os = "UNIX";
$max_entry_per_page = 5;
$data_file = "partner--kereso.dat";
//Maximum entry stored in data file
$max_record_in_data_file = "5000";
//Maximum entries allowed per session, to prevent multiple entries made by one visitor
$max_entry_per_session = 100;
//Color & font setting
$background = "#183a30";
$fo_title = "partner-kereso.hu";
$table_content_1a = "#FFF8EB";
$table_content_1b = "#e4e4e4";
$table_content_2a = "#c7d8d0";
$table_content_2b = "#ffefdf";
$table_bottom = "#c7d8d0";
$table_border = "#000000";
$title_color = "#183a30";
$link = "blue";
$visited_link = "blue";
$active_link = "#2e5f49";
$font_face = "verdana";
$message_font_face = "arial";
$message_font_size = "2";
function expert_return_no_html($html,$limit=0){
if($limit == 0){
return $html;
}else{
$html = str_replace("
"," ",$html);
$no_html = strip_tags($html);
$html_lenght = strlen($no_html);
$no_html.= " ";
$no_html = substr($no_html,0,strrpos(substr($no_html,0,$limit), " "));
if($html_lenght > strlen($no_html)){
$no_html.= " ...";
}
return $no_html;
}
}
function img_list($row_img){
$img_tomb = explode("|",$row_img);
return $img_tomb;
}
//-- Don't change bellow this line unless you know what you're doing
$do = isset($_REQUEST['do']) ? trim($_REQUEST['do']) : "";
$id = isset($_GET['id']) ? trim($_GET['id']) : "";
$page = isset($_GET['page']) ? $_GET['page'] : 1;
$self = $_SERVER['PHP_SELF'];
if (!file_exists($data_file)) {
echo "Error !! A következő file nem található : $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,LOCK_EX)) {
for ($i=0; $i<$max_record_in_data_file; $i++) {
fwrite($rf,$f[$i]);
}
flock($rf,LOCK_UN);
}
} else {
for ($i=0; $i<$max_record_in_data_file; $i++) {
fwrite($rf,$f[$i]);
}
}
fclose($rf);
}
}
}
session_start();
$newline = (strtoupper($os) == "WIN") ? "\r\n" : "\n";
switch ($do) {
case "":
$record = file($data_file);
rsort($record);
$jmlrec = count($record);
?>