"," ",$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); ?> Partner-kereső.hu - Ahol megtalálod, amit keresel