0) extract($arr, EXTR_SKIP); } } require_once("mainfile.php"); $PHP_SELF = "index.php"; GETMODULE($_GET[name],$_GET[file]); //include ("db_config.php"); ?> <?=WEB_TITLE;?>
"admin") { ?>
  
connectdb(DB_NAME,DB_USERNAME,DB_PASSWORD); $res[page] = $db->select_query("SELECT name,menuname FROM ".TB_PAGE." WHERE status='1' and menugr='mainmenu' ORDER BY sort "); while($arr[page] = $db->fetch($res[page])){ echo ""; echo '
  
'; ?>
 
connectdb(DB_NAME,DB_USERNAME,DB_PASSWORD); $res[block] = $db->select_query("SELECT * FROM ".TB_BLOCK." where pblock='2' and status='1' order by sort"); while ($arr[block] = $db->fetch($res[block])) { if ( $arr[block][filename] !='') { // echo "".$arr[block][filename].".".$arr[block][sfile].""; include "modules/block/".$arr[block][filename].".".$arr[block][sfile].""; } else { ?>



  
connectdb(DB_NAME,DB_USERNAME,DB_PASSWORD); // Connect DB $res[config] = $db->select_query("SELECT * FROM ".TB_CONFIG." where posit='3' "); $arr[config] = $db->fetch($res[config]); $name=$arr[config][name]; $widthf=$arr[config][width]; $heightf=$arr[config][height]; ?>
สถานีตำรวจนครบาลพญาไท
ตั้งอยู่ที่ เลขที่ 320 ถนนศรีอยุธยา แขวงทุ่งพญาไท เขตราชเทวี กรุงเทพมหานคร 10400
โทรศัพท์ 0-23546957-61 โทรสาร 0-2354-6963