"; exit; } mysql_connect("localhost:/tmp/mysql5.sock","resu321","rabota") or die("No connection!"); mysql_select_db('eplovdiv_news_bg'); mysql_query("SET NAMES 'cp1251'")or die("No setting names!"); $res=mysql_query("select * from imoti where id='$id'"); $res2=""; $tip=""; $num=mysql_num_rows($res); if($num){$tip = mysql_result($res,0,"tip"); $viewnum=mysql_result($res,0,"viewnum"); $res2=mysql_query("select * from categoriq where id='$tip'"); ######## $statsql=mysql_query("UPDATE imoti SET viewnum = '$viewnum'+1 WHERE id = '$id' "); ######## } mysql_close(); if($num){ $articleid=mysql_result($res,0,"id"); $zagl=mysql_result($res,0,"zagl"); $tipid=mysql_result($res2,0,"name"); $mqsto = mysql_result($res,0,"mqsto"); $pic=mysql_result($res,0,"pic"); $mater = mysql_result($res,0,"mater"); $spalnq=mysql_result($res,0,"spalnq"); $gostna=mysql_result($res,0,"gostna"); $banq=mysql_result($res,0,"banq"); $kvsg=mysql_result($res,0,"kvsg"); $kvdv=mysql_result($res,0,"kvdv"); $cena=mysql_result($res,0,"cena"); $opis=mysql_result($res,0,"opisan"); $datata=mysql_result($res,0,"date"); $edited=mysql_result($res,0,"edited"); $video=mysql_result($res,0,"video"); $audio=mysql_result($res,0,"audio"); $fb=mysql_result($res,0,"fb"); $original=mysql_result($res,0,"original"); $viewnum=mysql_result($res,0,"viewnum"); $videofile=mysql_result($res,0,"videofile"); $tags=mysql_result($res,0,"tags"); ######### function getSEOName ($zagl) { $latime = array ( 'а' => 'a', 'б' => 'b', 'в' => 'v', 'г' => 'g', 'д' => 'd', 'е' => 'e', 'ж' => 'zh', 'з' => 'z', 'и' => 'i', 'й' => 'y', 'к' => 'k', 'л' => 'l', 'м' => 'm', 'н' => 'n', 'о' => 'o', 'п' => 'p', 'р' => 'r', 'с' => 's', 'т' => 't', 'у' => 'u', 'ф' => 'f', 'х' => 'h', 'ц' => 'c', 'ч' => 'ch', 'ш' => 'sh', 'щ' => 'sht', 'ъ' => 'a', 'ь' => 'y', 'ю' => 'yu', 'я' => 'ya', 'А' => 'A', 'Б' => 'B', 'В' => 'V', 'Г' => 'G', 'Д' => 'D', 'Е' => 'E', 'Ж' => 'Zh', 'З' => 'Z', 'И' => 'I', 'Й' => 'Y', 'К' => 'K', 'Л' => 'L', 'М' => 'M', 'Н' => 'N', 'О' => 'O', 'П' => 'P', 'Р' => 'R', 'С' => 'S', 'Т' => 'T', 'У' => 'U', 'Ф' => 'F', 'Х' => 'H', 'Ц' => 'C', 'Ч' => 'Ch', 'Ш' => 'Sh', 'Щ' => 'Sht', 'Ъ' => 'A', 'Ь' => 'Y', 'Ю' => 'Yu', 'Я' => 'Ya' ); return strtr($zagl, $latime); } $seo = getSEOName($zagl); ########### ######### ### $texta = str_replace("\\\"", "'", $zagl); ### $texta = str_replace("\\'", "'", $zagl); ### $texta = str_replace("\\\\", "'", $zagl); ### $texta = str_replace("\'", "'", $zagl); ######## ### $zagl = str_replace("\\", "\\\\", $zagl); ### $zagl = str_replace('/', '\\/', $zagl); ## $zagl = str_replace('"','',$zagl); ############## $texta=trim($texta,"\"\'"); $opische=trim($opis,"\"\'"); $opische = trim($opische,"\"\'"); ######## $opische = str_replace("\\", "\\\\", $opische); $opische = str_replace('/', '\\/', $opische); $opische = str_replace('"','',$opische); ############# $texta = str_replace("\\", "\\\\", $texta); $texta = str_replace('/', '\\/', $texta); $texta = str_replace('"','',$texta); ############# mb_internal_encoding("cp1251"); $texta = htmlspecialchars($texta,ENT_QUOTES,'cp1251'); $opische = htmlspecialchars($opische,ENT_QUOTES,'cp1251'); $kluch=mysql_result($res,0,"zagl"); $opische = stripslashes($opische); $texta = stripslashes($texta); $kluch = stripslashes($kluch); $zagl = trim($zagl); $texta = trim($texta); ####### $kluch = str_replace("\\", "\\\\", $kluch); $kluch = str_replace('/', '\\/', $kluch); $kluch = str_replace('"','',$kluch); $kluch=str_replace(' ',', ',trim(preg_replace('#\r?\n#',' ',$kluch))); } include('functions.php'); ?> e-Plovdiv.com: <? echo " $zagl "; ?> "; ?> "; ?> "; ?> ,новини,пловдив" /> " /> " /> "/> "/> times"> " /> "/> ######## ?> " /> "/> "; ?> " /> " /> " /> " /> " /> "; ?> " /> " /> "; echo " "; echo " "; $k=$a+1; if(($k%1)==0)echo""; $a+=1; } ### - Kray Meta - Pic - ############ #### - Meta Video - ##### if($videofile) echo" "; ###### - Kray Meta Video - ##### if($original) echo" "; ?> "; $k=$a+1; if(($k%1)==0)echo""; $a+=1; } ### - Kray Pic - ############ ?> "/> "/> "/> "/>
<? echo $zagl; ?> - Начало
 
"; if($pic){ $pic2=explode(",",$pic); echo"
Натиснете за увеличение
"; $a=0; while($pic2[$a]) { echo""; $k=$a+1; if(($k%1)==0)echo""; $a+=1; } echo"
$zagl
$mqsto

"; echo " "; }else echo" "; echo"
"; include '/home/eplovdiv/www/www/reklamen-panel.php'; if($mqsto) echo"
$mqsto
"; else { echo "";} $obshto=$kvsg+$kvdv; $opis=nl2br($opis); echo"

".wordwrap(ParseCode($opis))."

"; ### echo"
"; ####### Tags ######## if($tags){ ###### ### Embed ###### if($videofile) echo" Код за вграждане на видеото:

"; ########## Kray Embed ######## echo "
Ключови думи:
"; $tag=explode(",",$tags); $c=0; $x=0; while($tag[$c]) { $tag[$b] = urlencode($tag[$c]); echo ""; $q=$c+1; if(($q%1)==0)echo" "; $c+=1; } echo" "; echo"
"; }else echo" "; #### Kray Tags ##### ?>

Версия за печат:

Запазете във вашия компютър:


Разгледано: пъти. | e-Plovdiv.com

" >



"; ?> ######## ?>

Още новини от категория: $tipid

"; ### Drugi novini ot kategoriqta include'conn2.php'; $res3=mysql_query("select * from imoti where tip='$tip' order by id desc limit 10"); $num3=mysql_num_rows($res3); for($d=0; $d<$num3; $d++)echo"
"; mysql_close(); echo"
Вие сте се озовали тук, вероятно защото сте търсили в интернет по следния начин:

- $seo или
- $zagl

"; echo"
"; ?>