$sqlcnt" while($an=mysql_fetch_array($sel_ancnt)) { $count=$an["count(*)"]; } } if ($count==0) { //include "../templates/top.php"; if ($lang=="eng") { $curpage="The announcement is absent"; include $_SERVER['DOCUMENT_ROOT']."/templates/top.php"; echo "Such announcement doesn't exist! - However, look please at our new announcements.

 

"; } elseif ($lang=="esp"){ $curpage="El anuncio esta ausente"; include $_SERVER['DOCUMENT_ROOT']."/templates/top.php"; echo "Dicho anuncio no existe! - Sin embargo, mire por favor a nuestros nuevos anuncios.

 

"; } else { $curpage="Объявление отсутствует"; include $_SERVER['DOCUMENT_ROOT']."/templates/top.php"; echo "Такого объявления не существует! - однако, посмотрите пожалуйста наши новые объявления.

 

"; } $filename = 'notif'; $handle = fopen($filename, 'w'); fwrite($handle, time()." - ".$_SERVER["REQUEST_URI"]); fclose($handle); include $_SERVER['DOCUMENT_ROOT']."/view/new.php"; } else { $sql2="SELECT * FROM ". $db_prefix ."messages where ob_id=$ob_id"; $sel_an2=mysql_query("$sql2"); while($an=mysql_fetch_array($sel_an2)) { $ob_nonactive=$an["ob_nonactive"]; $ob_author=$an["ob_author"]; $ob_author_english=$an["ob_author_english"]; $ob_author_esp=$an["ob_author_esp"]; $ob_phone=$an["ob_phone"]; $ob_email=$an["ob_email"]; $ob_city=$an["ob_city"]; $ob_city_english=$an["ob_city_english"]; $ob_city_esp=$an["ob_city_esp"]; $ob_title=$an["ob_title"]; $ob_title_english=$an["ob_title_english"]; $ob_title_esp=$an["ob_title_esp"]; //$ob_title_esp=iconv('Windows-1251', 'UTF-8', $an["ob_title_esp"]); //$an["ob_title_esp"]; $ob_keywords=$an["ob_keywords"]; $ob_keywords_english=$an["ob_keywords_english"]; $ob_keywords_esp=$an["ob_keywords_esp"]; $ob_desc=nl2br($an["ob_desc"]); $ob_desc_english=nl2br($an["ob_desc_english"]); $ob_desc_esp=nl2br($an["ob_desc_esp"]); $ob_url=$an["ob_url"]; $ob_url_counters=$an["ob_url_counters"]; $category=$an["category"]; $posted=$an["posted"]; $ob_views=$an["ob_views"]; $ob_visitors=$an["ob_visitors"]; $ob_viewiplast=$an["ob_viewiplast"]; $ob_altname=$an["ob_altname"]; $ob_vip=$an["ob_vip"]; $ob_vip_till=$an["ob_vip_till"]; $ob_vip_payed=$an["ob_vip_payed"]; $ob_desc=strip_tags($ob_desc); $trans=totranslit($ob_title); $qsel_an1=mysql_query("SELECT * FROM ". $db_prefix ."categories where id='$category'"); //echo "SELECT * FROM ". $db_prefix ."categories where id='$category'"."
"; while($an=mysql_fetch_array($qsel_an1)) { $qcatname=$an["catname"]; $qcatname_eng=$an["engname"]; $qcatname_esp=$an["espname"]; $qid=$an["id"]; $qaltname=$an["altname"]; $qparent=$an["parent"]; $psel_an=mysql_query("SELECT * FROM ". $db_prefix ."categories where id='$qparent'"); while($an=mysql_fetch_array($psel_an)) { $pcatid=$an["id"]; $paltname=$an["altname"]; $pcatname=$an["catname"]; $pcatname_eng=$an["engname"]; $pcatname_esp=$an["espname"]; } } //$ob_views=($ob_views+1); //$updateviews=mysql_query("UPDATE ". $db_prefix ."messages SET ob_views=$ob_views where ob_id='$ob_id'"); //include ("update.php"); if ($lang=="eng") { $curpage="$ob_title_english - $ob_city_english"; $desc="$ob_desc_english"; $keywords="$ob_keywords_english"; $ob_title=$ob_title_english; $ob_desc=$ob_desc_english; $ob_city=$ob_city_english; $ob_author=$ob_author_english; $pcatname=$pcatname_eng; $qcatname=$qcatname_eng; } elseif ($lang=="esp"){ $curpage="$ob_title_esp - $ob_city_esp"; $desc="$ob_desc_esp"; $keywords="$ob_keywords_esp"; $ob_title=$ob_title_esp; $ob_desc=$ob_desc_esp; $ob_city=$ob_city_esp; $ob_author=$ob_author_esp; $pcatname=$pcatname_esp; $qcatname=$qcatname_esp; } else { $curpage="$ob_title - $ob_city"; $desc="$ob_desc"; $keywords="$ob_keywords"; } /*if ($ob_id<'41622') $ob_desc = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]", $board_links1, $ob_desc); elseif (($ob_id>'48030')&&($ob_id<'59473')) $ob_desc = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]", $board_links3, $ob_desc); elseif (($ob_id>'59473')&&($ob_id<'81373')) $ob_desc = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]", $board_links4, $ob_desc); elseif ($ob_id>'81373') $ob_desc = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]", $board_links5, $ob_desc); else $ob_desc = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]", $board_links2, $ob_desc);*/ $ob_desc = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]", "", $ob_desc); $description=substr("$ob_desc", 0, 150); // "$ob_desc"; $titleoff=1; if ($lang=="eng") { $rss="rss_en"; $html="html_en"; $bloknot="bloknot_en"; //include $_SERVER['DOCUMENT_ROOT']."/templates/top.php"; } elseif ($lang=="esp"){ $rss="rss_es"; $html="html_es"; $bloknot="bloknot_es"; //include $_SERVER['DOCUMENT_ROOT']."/templates/top.php"; } elseif ($lang=="ruz"){ $rss="rss"; $html="htmls"; $bloknot="bloknot"; //include $_SERVER['DOCUMENT_ROOT']."/templates/top.php"; } else { $rss="rss"; $html="html"; $bloknot="bloknot"; } include $_SERVER['DOCUMENT_ROOT']."/templates/top.php"; $fname=""; $fname=$_SERVER['DOCUMENT_ROOT']."/obj_img/$ob_id.jpg"; if (file_exists($fname)) { $img="\"$ob_title\"

"; } else { $img=""; } //include $_SERVER['DOCUMENT_ROOT']."/templates/ad_before_message.php"; echo "

$vars[16]$pcatname$qcatname $vars[17]

$vars[1]

"; if (($ob_vip=='1')||($ob_vip=='2')||($ob_vip=='3')||($ob_vip=='4')) {echo "

$vars[2]!

"; echo "
$img

$ob_title   $ob_title


$ob_desc

"; }elseif($lang=="ruz"){ echo "
$img

$ob_title

$ob_desc

"; } elseif ($lang=="eng") { echo "
$img

$ob_title

$ob_desc

$vars[108] -> $ob_title
"; } else { if ($ob_nonactive) echo "
$img
$ob_title
Данное объявление более не актуально, обратите пожалуйста внимание на другие аналогичные объявления!
$ob_desc
$vars[108] -> $ob_title
"; else echo "
$img

$ob_title

$ob_desc

$vars[108] -> $ob_title
"; } include $_SERVER['DOCUMENT_ROOT']."/view/comments.php"; echo "

$vars[13]



"; echo "$vars[3]: $ob_city
$vars[4]: $ob_author
"; if(strlen($ob_phone)>0) echo "$vars[5]: $ob_phone
"; if ($ob_vip=='1') { if ($ob_url=="http://") {} elseif($ob_url=="") {} elseif(strstr($ob_url,"http://")) echo "$ob_title - $ob_url
"; elseif(strstr($ob_url,"www.")) echo "$ob_title - $ob_url
"; else echo "$ob_title - $ob_url
"; echo " $vars[10]: ".$ob_vip_till.""; //echo "$vars[6]: $board_url/html/$ob_id.html
"; } elseif ($ob_vip_payed=='2') { // если объявление имеет статус VIP 2, открываем сайт if ($ob_url=="http://") {} elseif($ob_url=="") {} elseif(strstr($ob_url,"http://")) echo "$ob_title - $ob_url
"; elseif(strstr($ob_url,"www.")) echo "$ob_title - $ob_url
"; else echo "$ob_title - $ob_url
"; } else { if(strlen($ob_url)>0) { echo "$vars[111]: $ob_url
"; echo "$vars[112]: $ob_url_counters
"; } } echo "$vars[7]: $posted
$vars[8]: $ob_views
$vars[110]: $ob_visitors
"; echo "
$vars[9]

"; ?>
" title=""><? echo $curpage; ?>
- !
"; echo "

$vars[14]



"; echo ''.$vars[54].'
'.$vars[55].' *
'.$vars[49].'
E-Mail *
   '.$vars[51] . $ob_id . '-' . $ob_title .'
'.$vars[50].' *
  
'; if ($lang=="eng") include $_SERVER['DOCUMENT_ROOT']."/view/adv_en2.php"; elseif ($lang=="esp") include $_SERVER['DOCUMENT_ROOT']."/view/adv_es2.php"; else include $_SERVER['DOCUMENT_ROOT']."/view/adv_ru2.php"; ?>
"; echo "$vars[15]: "; if ($lang=="eng") { $search="search_en"; $info = "$ob_keywords_english"; } elseif ($lang=="esp") { $search="search_es"; $info = "$ob_keywords_esp"; } else { $search="search"; $info = "$ob_keywords"; //$info = ""; } $tokens = ":|,"; $tokenized = strtok($info, $tokens); while ($tokenized) : echo "$tokenized, "; $tokenized = strtok($tokens); endwhile; echo "
"; echo "

$vars[16]$pcatname$qcatname $vars[17]



"; $sql22="SELECT * FROM ". $db_prefix ."messages where category='$category' $cityfilter2 order by ob_id DESC limit 0,5"; $sel_an22=mysql_query("$sql22"); while($an=mysql_fetch_array($sel_an22)) { $aob_id=$an["ob_id"]; $aob_author=$an["ob_author"]; $aob_phone=$an["ob_phone"]; $aob_email=$an["ob_email"]; $aob_city=$an["ob_city"]; $aob_title=$an["ob_title"]; $aob_title_en=$an["ob_title_english"]; $aob_title_es=$an["ob_title_esp"]; $aob_keywords=$an["ob_keywords"]; $aob_altname=$an["ob_altname"]; $acategory=$an["category"]; if ($lang=="eng") echo "
  • $aob_title_en
    "; elseif ($lang=="esp") echo "
  • $aob_title_es
    "; else echo "
  • $aob_title
    "; } } echo "

    "; // include $_SERVER['DOCUMENT_ROOT']."/vip_v.php"; ?>