";} if ((isset($_GET['oblast'])) OR (isset($_GET['doroga'])) OR (isset($_GET['gorod'])) ) { if (isset($_GET['gorod'])) {$id = $_GET['gorod']; $sql="!R2_".$id; $table = 'ts_sity'; $tip = 1; $vid = array(); $vid[]=1; $vid[]=2;$vid[]=4; $vid[]=5; $t=1;} if (isset($_GET['oblast'])) {$id = $_GET['oblast']; $sql="!R1_".$id; $table = 'oblast'; $tip = 2; $vid = array(); $vid[]=3; $t =3;} if (isset($_GET['doroga'])) {$id = $_GET['doroga']; $sql="!R3_".$id; $table = 'dorogi_rzd'; $tip = 3; $vid = array(); $vid[]=6; $t=6;} } else {exit("Обнаружена попытка взлома!");} $gorod_r = mysql_query("SELECT * FROM `$table` WHERE id='$id'",$db); $gorod = mysql_fetch_array($gorod_r); if (!$gorod){exit("Неизвестный город!");} $name_gorod = $gorod['sity']; $id_gorod = $gorod['id']; $strana_gorod = $gorod['strana']; $info = chek_user_activ(); ?> <? echo echo_gorod($id_gorod,$t); ?> - стфл.рф
$name_gorod
"; $count_r = mysql_query("SELECT COUNT(ts_user.id) AS c FROM ts_user WHERE ts_user.n_prava LIKE '%$sql%'"); $count = mysql_fetch_array($count_r); if ($count['c']>0) { if ($count['c']==1) {$t = "Редактор: ";} else {$t = "Редакторы: ";} $count_r = mysql_query("SELECT * FROM ts_user WHERE ts_user.n_prava LIKE '%$sql%'"); while ($count = mysql_fetch_array($count_r)) { $id_red=$count['id']; $t .= avtor_to_link($id_red)." "; } echo $t; } else {echo "Действующих редакторов по городу нет.";} ?>
%s
",$nazv['tip']); do { echo "
".$depo['depo'].""; if (($depo['staty'] != "") AND ($depo['staty'] != " ")) {echo "
".$depo['staty']."";} echo "
"; } while ($depo = mysql_fetch_array($depo_r));} } if ($t == 1) { $depo_r = mysql_query("SELECT * FROM `ts_gorod_depo` WHERE `show_page_gorod`='$id' AND `tip_ts`= '3'"); $depo = mysql_fetch_array($depo_r); if ($depo) { echo "
Автобус
"; do { printf("
%s", $depo['id'], $depo['depo'] ) ;if (($depo['staty'] != "") AND ($depo['staty'] != " ")) {echo "
".$depo['staty']."";} echo "
"; } while ($depo = mysql_fetch_array($depo_r));} $depo_r = mysql_query("SELECT * FROM `ts_gorod_depo` WHERE `show_page_gorod`='$id' AND `tip_ts`= '6'"); $depo = mysql_fetch_array($depo_r); if ($depo) { echo "
ЖД
"; do { printf("
%s", $depo['id'], $depo['depo'] ); if (($depo['staty'] != "") AND ($depo['staty'] != " ")) {echo "
".$depo['staty']."";} echo "
"; } while ($depo = mysql_fetch_array($depo_r));} } ?> Статьи"; do { printf("
%s
", $depo2['id'], $depo2['name'] ); } while($depo2 = mysql_fetch_array($depo_r2)); } ?>

Новое по городу

",$foto_data['id'],$fmyrow2['mini']); $i =$i+1; } } while (($fmyrow2 = mysql_fetch_array($fresult2)) && ($i<8)); } else {} ?>