|
include 'modules/config/top1.php'; ?> |
| include 'modules/config/top2.php'; ?> |
 |
 |
 |
 |
 |
 |
 |
 |
 |
|
|
if($name<>"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 '| ';
?>
|
}
?>
|
|
|
|
|
|
|
|
|
|
|
| |
$db->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 {
?>
|
echo $arr[block][code];
?>
|
}
}
?>
|
|
|

}
?>
include ("modules/index/index.php");
} else {
?>
include ("".$MODPATHFILE."");
} ?>
|
|
|