"," ",$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; } if (isset($_GET["tema"])) { $tema=(int)$_GET["tema"]; } elseif (isset($_POST["tema"])) { $tema=(int)$_POST["tema"]; } elseif (isset($_SESSION["tema"])) { $tema=(int)$_SESSION["tema"]; } else { $tema=0; } $_SESSION["tema"] = $tema; $temak=array( 1=>"Úr keres Hölgyet", 2=>"Hölgy keres Urat", 3=>"Úr keres Urat", 4=>"Hölgy keres Hölgyet", 5=>"Kiegészítők", 6=>"Egyéb" ); $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 = 10; $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; // maximum feltoltheto kepek szama $max_uploads_image = 6; //Color & font setting $background = "#ffffff"; $fo_title = "Állás, munka"; $table_content_1a = "#FFF8EB"; $table_content_1b = "#e4e4e4"; $table_content_2a = "#c7d8d0"; $table_content_2b = "#ffefdf"; $table_bottom = "#c7d8d0"; $table_border = "#FFF8EB"; $title_color = "#183a30"; $link = "blue"; $visited_link = "blue"; $active_link = "#2e5f49"; $font_face = "verdana"; $message_font_face = "arial"; $message_font_size = "2"; //-- 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"; if ($do=="delete") { $delcode=$_GET["delcode"]; if ($delcode=="") { redir("$self?page=$page","Hibás kód!"); } $record = file($data_file); $talalat = false; $jmlrec = count($record); for ($i=0; $i<$jmlrec; $i++) { $row = explode("|~|",trim($record[$i])); if (($row[10] == $delcode)) { $record[$i] = ""; $talalat = true; break; } } if (!$talalat) { redir("$self?page=$page","Hibás kód!"); } $update_data = fopen($data_file,"w"); if (strtoupper($os) == "UNIX") { if (flock($update_data,LOCK_EX)) { for ($j=0; $j<$jmlrec; $j++) { if ($record[$j] != "") { fputs($update_data,$record[$j]); } } flock($update_data,LOCK_UN); } } else { for ($j=0; $j<$jmlrec; $j++) { if ($record[$j] != "") { fputs($update_data,$record[$j]); } } } fclose($update_data); redir("$self?page=$page","Törölve !"); } switch ($do) { case "": $record = file($data_file); rsort($record); $jmlrec=0; $ujrecord = array(); //echo $tema; foreach ($record as $k) { $row = explode("|~|", $k); //echo $row[11]; if (($row[11] == $tema)) { $jmlrec++; $ujrecord[]=$k; } } $record = $ujrecord; $jmlrec = count($record); //echo $jmlrec; ?> Partner-kereső.hu - Ahol megtalálod, amit keresel