"; $linksss=str_replace("&","<>",$linksss); $preg="#page=(.*?)<>#is"; preg_match_all ($preg, $linksss, $item); $page=trim(urldecode($item[1][0])); $preg="#category=(.*?)<>#is"; preg_match_all ($preg, $linksss, $item); $category=trim(urldecode($item[1][0])); $kolonka="name_".$language; $r= mysqli_query($conn, "select $kolonka from category where id='$category'" ); $f=mysqli_fetch_array($r); $naazzvv=$f[0]; $lang['PROOF_TITLE']=str_replace("[nn]",$naazzvv,$lang['PROOF_TITLE']); $lang['PROOF_PAGE_DESCR']=str_replace("[nn]",$naazzvv,$lang['PROOF_PAGE_DESCR']); $TITEL=$lang['PROOF_TITLE']; function head() { global $lang; ?> "; $linksss=str_replace("&","<>",$linksss); $preg="#page=(.*?)<>#is"; preg_match_all ($preg, $linksss, $item); $page=trim(urldecode($item[1][0])); $preg="#country=(.*?)<>#is"; preg_match_all ($preg, $linksss, $item); $country=trim(urldecode($item[1][0])); $preg="#province=(.*?)<>#is"; preg_match_all ($preg, $linksss, $item); $province=trim(urldecode($item[1][0])); $preg="#town=(.*?)<>#is"; preg_match_all ($preg, $linksss, $item); $town=trim(urldecode($item[1][0])); $preg="#category=(.*?)<>#is"; preg_match_all ($preg, $linksss, $item); $category=trim(urldecode($item[1][0])); $preg="#podcategory=(.*?)<>#is"; preg_match_all ($preg, $linksss, $item); $podcategory=trim(urldecode($item[1][0])); $preg="#act=(.*?)<>#is"; preg_match_all ($preg, $linksss, $item); $act=trim(urldecode($item[1][0])); $preg="#favor=(.*?)<>#is"; preg_match_all ($preg, $linksss, $item); $favor=trim(urldecode($item[1][0])); ///////////echo "--$act----"; if ((($country=="") || ($country==0)) & ($Quser>0)) { $r=@mysqli_query($conn, "select id_country, id_region, id_town from user where id='$Quser' and prof='$ur_ur' "); $f=@mysqli_fetch_array($r); if ($act==1) {} else { $country=$f[id_country]; } if ($act==1) {} else { if ($province=="") {$province=$f[id_region];} if ($town=="") {$town=$f[id_town];} } } ///////echo "
---$country---$province--$town----"; ?>


"; ?> 0) & ($ur_ur==0) ) {?>
0) {$wh1=" and id_country='$country' ";} if ($province>0) {$wh2=" and id_region='$province' ";} if ($town>0) {$wh3=" and id_town='$town' ";} if ($category>0) { $sql=""; $r = mysqli_query($conn,"select id, $kolonka from podcategory where id_category='$category' order by name_en"); for($i=0; $i0) { $wh4=" and specs like '%-$podcategory,%' "; } ?>
0 and id_region>0 and blok=0 and specs!='' $wh1 $wh2 $wh3 $wh4 $wh5 "); $x=@mysqli_fetch_array($z); $count = $x[0]; $pages_count = ceil($count / $perpage); if ($page > $pages_count) $page = $pages_count; $start_pos = ($page-1) * $perpage; if ($count==0) { ?>



0 and id_region>0 and id_town>0 and tel1!='' and specs!='' and username!='' and lang!='' $wh1 $wh2 $wh3 $wh4 $wh5 LIMIT $start_pos, $perpage "; $r= @mysqli_query($conn, "select * from user where prof=1 and id_country>0 and id_region>0 and blok=0 and specs!='' and username!='' and lang!='' $wh1 $wh2 $wh3 $wh4 $wh5 LIMIT $start_pos, $perpage "); for($i=0; $i<@mysqli_num_rows($r); $i++) { $f=@mysqli_fetch_array($r); if ($f[img]=="") {$img_pro="nouser.gif";} else {$img_pro=$f[img];} $kolonka="name_".$language; $r1=@mysqli_query($conn, "select $kolonka, flag from country where id='$f[id_country]' "); $f1=@mysqli_fetch_array($r1); $r2=@mysqli_query($conn, "select $kolonka from region where id='$f[id_region]' "); $f2=@mysqli_fetch_array($r2); $r3=@mysqli_query($conn, "select $kolonka from town where id='$f[id_town]' "); $f3=@mysqli_fetch_array($r3); $r4=@mysqli_query($conn, "select sum(rating) from review where id_prof='$f[id]' "); $f4=@mysqli_fetch_array($r4); $r5=@mysqli_query($conn, "select count(id) from review where id_prof='$f[id]' "); $f5=@mysqli_fetch_array($r5); //echo "===$f4[0]==$f5[0]="; if ($f5[0]==0) {$f5[0]=1;} $rating=@($f4[0]/$f5[0]); $rating=round($rating, 1); if ($rating=="") {$rating=0;} ?>