Пример #1
0
 static function Run()
 {
     AZLib::CheckDir(PAGE_CACHE_DIR);
     if (isset($_REQUEST['page'])) {
         if ($_REQUEST['page'] == "home") {
             Url::redirect_url(WEB_DIR, 301);
         }
         $page_name = strtolower($_REQUEST['page']);
     } else {
         $page_name = 'home';
     }
     AZNet::$page_cache_file = PAGE_CACHE_DIR . $page_name . '.php';
     if (Url::get('refresh_page') == 1) {
         self::del_page_cache($page_name);
     }
     if (Url::get('refresh_page') != 1 && PAGE_CACHE_ON && file_exists(AZNet::$page_cache_file)) {
         require_once AZNet::$page_cache_file;
     } else {
         $re = DB::query('SELECT id, name, title, layout  FROM page WHERE name="' . addslashes($page_name) . '"', __LINE__ . __FILE__);
         if ($re) {
             AZNet::$page = mysql_fetch_assoc($re);
         }
         if (!AZNet::$page) {
             Url::redirect_url(WEB_DIR, 301);
         }
         AZGen::PageGenerate();
     }
 }
Пример #2
0
<?php

AZNet::$page = array('id' => '7791', 'name' => 'list_detail', 'title' => 'Danh sách sản phẩm', 'layout' => 'layouts/nq_list_product.html');
$blocks = array(48895 => array('id' => '48895', 'module_id' => '5524', 'region' => 'footer', 'module' => array('id' => '5524', 'name' => 'Footer')), 48793 => array('id' => '48793', 'module_id' => '5557', 'region' => 'header', 'module' => array('id' => '5557', 'name' => 'Header')), 49621 => array('id' => '49621', 'module_id' => '5733', 'region' => 'left', 'module' => array('id' => '5733', 'name' => 'eBoxMenuCate')), 49595 => array('id' => '49595', 'module_id' => '5686', 'region' => 'center', 'module' => array('id' => '5686', 'name' => 'HeaderNavigation')), 49606 => array('id' => '49606', 'module_id' => '5731', 'region' => 'left', 'module' => array('id' => '5731', 'name' => 'eBoxSupportOnline')), 49307 => array('id' => '49307', 'module_id' => '5565', 'region' => 'center', 'module' => array('id' => '5565', 'name' => 'ListItem')), 49610 => array('id' => '49610', 'module_id' => '5698', 'region' => 'left', 'module' => array('id' => '5698', 'name' => 'NewsHomeHot')));
foreach ($blocks as &$block) {
    if (file_exists(DIR_MODULE . $block['module']['name'] . '/class.php')) {
        require_once DIR_MODULE . $block['module']['name'] . '/class.php';
        $block['object'] =& new $block['module']['name']($block);
        if (isset($_POST['form_block_id']) && $_POST['form_block_id'] == $block['id']) {
            $block['object']->submit();
        }
    }
}
require_once ROOT_PATH . "core/PageBegin.php";
?>
<div id="vs_wrapper">
    <div id="tcs-header">
<?php 
if (isset($blocks[48793]['object'])) {
    $blocks[48793]['object']->on_draw();
}
?>
</div>
    <div id="tcs-container" style="padding: 0;">
        <div id="tcs-left" class="left">
            
<?php 
if (isset($blocks[49621]['object'])) {
    $blocks[49621]['object']->on_draw();
}
if (isset($blocks[49606]['object'])) {
Пример #3
0
<?php

AZNet::$page = array('id' => '7899', 'name' => 'contact_us', 'title' => 'Gửi thông tin liên hệ', 'layout' => 'layouts/nghiemquang_home_1col.html');
$blocks = array(49530 => array('id' => '49530', 'module_id' => '5524', 'region' => 'footer', 'module' => array('id' => '5524', 'name' => 'Footer')), 49531 => array('id' => '49531', 'module_id' => '5717', 'region' => 'center', 'module' => array('id' => '5717', 'name' => 'Feedback')), 49529 => array('id' => '49529', 'module_id' => '5557', 'region' => 'header', 'module' => array('id' => '5557', 'name' => 'Header')), 49556 => array('id' => '49556', 'module_id' => '5719', 'region' => 'footer', 'module' => array('id' => '5719', 'name' => 'AdvCover')));
foreach ($blocks as &$block) {
    if (file_exists(DIR_MODULE . $block['module']['name'] . '/class.php')) {
        require_once DIR_MODULE . $block['module']['name'] . '/class.php';
        $block['object'] =& new $block['module']['name']($block);
        if (isset($_POST['form_block_id']) && $_POST['form_block_id'] == $block['id']) {
            $block['object']->submit();
        }
    }
}
require_once ROOT_PATH . "core/PageBegin.php";
?>
<div id="vs_wrapper">
    <div id="tcs-header">
<?php 
if (isset($blocks[49529]['object'])) {
    $blocks[49529]['object']->on_draw();
}
?>
</div>
	<div>
	
    <div class="c"></div>
    </div>
	<div class="mt10">
		
<?php 
if (isset($blocks[49531]['object'])) {
Пример #4
0
<?php

AZNet::$page = array('id' => '2134', 'name' => 'module', 'title' => 'module', 'layout' => 'layouts/admin.html');
$blocks = array(6157 => array('id' => '6157', 'module_id' => '1387', 'region' => 'center', 'module' => array('id' => '1387', 'name' => 'ModuleAdmin')), 49039 => array('id' => '49039', 'module_id' => '5333', 'region' => 'header', 'module' => array('id' => '5333', 'name' => 'Navigation')));
foreach ($blocks as &$block) {
    if (file_exists(DIR_MODULE . $block['module']['name'] . '/class.php')) {
        require_once DIR_MODULE . $block['module']['name'] . '/class.php';
        $block['object'] = new $block['module']['name']($block);
        if (isset($_POST['form_block_id']) && $_POST['form_block_id'] == $block['id']) {
            $block['object']->submit();
        }
    }
}
require_once ROOT_PATH . "core/PageBegin.php";
?>
<table width="100%" border="0" cellspacing="0" cellpadding="3"  style="background-color:#FFFFFF">
	<tr>
		<td colspan="1">
        
<?php 
if (isset($blocks[49039]['object'])) {
    $blocks[49039]['object']->on_draw();
}
?>
        
        </td>
	</tr>
	<tr>
		<td align="left" valign="top">
<?php 
if (isset($blocks[6157]['object'])) {
Пример #5
0
<?php

AZNet::$page = array('id' => '7874', 'name' => 'news', 'title' => 'Tin tức', 'layout' => 'layouts/nghiepquang_news_detail.html');
$blocks = array(49432 => array('id' => '49432', 'module_id' => '5557', 'region' => 'header', 'module' => array('id' => '5557', 'name' => 'Header')), 49660 => array('id' => '49660', 'module_id' => '5735', 'region' => 'center', 'module' => array('id' => '5735', 'name' => 'NewsPage')), 49438 => array('id' => '49438', 'module_id' => '5695', 'region' => 'left', 'module' => array('id' => '5695', 'name' => 'NewsMenu')), 49625 => array('id' => '49625', 'module_id' => '5688', 'region' => 'banner_slide', 'module' => array('id' => '5688', 'name' => 'IntroBanner')), 49431 => array('id' => '49431', 'module_id' => '5524', 'region' => 'footer', 'module' => array('id' => '5524', 'name' => 'Footer')), 49627 => array('id' => '49627', 'module_id' => '5733', 'region' => 'left', 'module' => array('id' => '5733', 'name' => 'eBoxMenuCate')), 49628 => array('id' => '49628', 'module_id' => '5731', 'region' => 'left', 'module' => array('id' => '5731', 'name' => 'eBoxSupportOnline')), 49630 => array('id' => '49630', 'module_id' => '5698', 'region' => 'left', 'module' => array('id' => '5698', 'name' => 'NewsHomeHot')), 49629 => array('id' => '49629', 'module_id' => '5723', 'region' => 'left', 'module' => array('id' => '5723', 'name' => 'PublicSurvey')));
foreach ($blocks as &$block) {
    if (file_exists(DIR_MODULE . $block['module']['name'] . '/class.php')) {
        require_once DIR_MODULE . $block['module']['name'] . '/class.php';
        $block['object'] = new $block['module']['name']($block);
        if (isset($_POST['form_block_id']) && $_POST['form_block_id'] == $block['id']) {
            $block['object']->submit();
        }
    }
}
require_once ROOT_PATH . "core/PageBegin.php";
?>
<div id="vs_wrapper">
    <div id="tcs-header">
<?php 
if (isset($blocks[49432]['object'])) {
    $blocks[49432]['object']->on_draw();
}
?>
</div>
    <div id="tcs-container" style="padding: 0;">
        <div id="tcs-left" class="left">
            
<?php 
if (isset($blocks[49438]['object'])) {
    $blocks[49438]['object']->on_draw();
}
if (isset($blocks[49627]['object'])) {
Пример #6
0
<?php

AZNet::$page = array('id' => '3009', 'name' => 'home', 'title' => 'Trang chủ', 'layout' => 'layouts/nghiepquang_home.html');
$blocks = array(48882 => array('id' => '48882', 'module_id' => '5524', 'region' => 'footer', 'module' => array('id' => '5524', 'name' => 'Footer')), 48878 => array('id' => '48878', 'module_id' => '5557', 'region' => 'header', 'module' => array('id' => '5557', 'name' => 'Header')), 49648 => array('id' => '49648', 'module_id' => '5693', 'region' => 'center', 'module' => array('id' => '5693', 'name' => 'NewsHome')), 49645 => array('id' => '49645', 'module_id' => '5731', 'region' => 'right', 'module' => array('id' => '5731', 'name' => 'eBoxSupportOnline')), 49586 => array('id' => '49586', 'module_id' => '5688', 'region' => 'banner_slide', 'module' => array('id' => '5688', 'name' => 'IntroBanner')), 49646 => array('id' => '49646', 'module_id' => '5698', 'region' => 'right', 'module' => array('id' => '5698', 'name' => 'NewsHomeHot')), 49647 => array('id' => '49647', 'module_id' => '5723', 'region' => 'right', 'module' => array('id' => '5723', 'name' => 'PublicSurvey')));
foreach ($blocks as &$block) {
    if (file_exists(DIR_MODULE . $block['module']['name'] . '/class.php')) {
        require_once DIR_MODULE . $block['module']['name'] . '/class.php';
        $block['object'] =& new $block['module']['name']($block);
        if (isset($_POST['form_block_id']) && $_POST['form_block_id'] == $block['id']) {
            $block['object']->submit();
        }
    }
}
require_once ROOT_PATH . "core/PageBegin.php";
?>
<div id="vs_wrapper">
    <div id="tcs-header">
<?php 
if (isset($blocks[48878]['object'])) {
    $blocks[48878]['object']->on_draw();
}
?>
</div>
    <div id="tcs-container">
        <div id="tcs-product-left" style="float: left;">


            <div id="tcs-banner-slide" style="min-height: 250px;">
                
<?php 
if (isset($blocks[49586]['object'])) {
Пример #7
0
<?php

AZNet::$page = array('id' => '7878', 'name' => 'news_detail', 'title' => 'Chi tiết tin', 'layout' => 'layouts/tcs_detail.html');
$blocks = array(49453 => array('id' => '49453', 'module_id' => '5524', 'region' => 'footer', 'module' => array('id' => '5524', 'name' => 'Footer')), 49454 => array('id' => '49454', 'module_id' => '5692', 'region' => 'center', 'module' => array('id' => '5692', 'name' => 'NewsDetail')), 49451 => array('id' => '49451', 'module_id' => '5557', 'region' => 'header', 'module' => array('id' => '5557', 'name' => 'Header')), 49649 => array('id' => '49649', 'module_id' => '5688', 'region' => 'banner_slide', 'module' => array('id' => '5688', 'name' => 'IntroBanner')), 49615 => array('id' => '49615', 'module_id' => '5695', 'region' => 'left', 'module' => array('id' => '5695', 'name' => 'NewsMenu')), 49616 => array('id' => '49616', 'module_id' => '5731', 'region' => 'left', 'module' => array('id' => '5731', 'name' => 'eBoxSupportOnline')), 49617 => array('id' => '49617', 'module_id' => '5698', 'region' => 'left', 'module' => array('id' => '5698', 'name' => 'NewsHomeHot')), 49618 => array('id' => '49618', 'module_id' => '5723', 'region' => 'left', 'module' => array('id' => '5723', 'name' => 'PublicSurvey')), 49632 => array('id' => '49632', 'module_id' => '5732', 'region' => 'left', 'module' => array('id' => '5732', 'name' => 'eBoxSiteStatic')));
foreach ($blocks as &$block) {
    if (file_exists(DIR_MODULE . $block['module']['name'] . '/class.php')) {
        require_once DIR_MODULE . $block['module']['name'] . '/class.php';
        $block['object'] =& new $block['module']['name']($block);
        if (isset($_POST['form_block_id']) && $_POST['form_block_id'] == $block['id']) {
            $block['object']->submit();
        }
    }
}
require_once ROOT_PATH . "core/PageBegin.php";
?>
<div class="body">
    <div id="tcs-header">
<?php 
if (isset($blocks[49451]['object'])) {
    $blocks[49451]['object']->on_draw();
}
?>
</div>
    <div id="tcs-container">
        <div id="tcs-left" class="left">
            
<?php 
if (isset($blocks[49615]['object'])) {
    $blocks[49615]['object']->on_draw();
}
if (isset($blocks[49616]['object'])) {
Пример #8
0
<?php

AZNet::$page = array('id' => '7820', 'name' => 'sph_search', 'title' => 'Enbac Search', 'layout' => 'layouts/nq_list_product.html');
$blocks = array(49566 => array('id' => '49566', 'module_id' => '5721', 'region' => 'right', 'module' => array('id' => '5721', 'name' => 'FilterMenuSearch')), 49656 => array('id' => '49656', 'module_id' => '5721', 'region' => 'left', 'module' => array('id' => '5721', 'name' => 'FilterMenuSearch')), 49071 => array('id' => '49071', 'module_id' => '5524', 'region' => 'footer', 'module' => array('id' => '5524', 'name' => 'Footer')), 49072 => array('id' => '49072', 'module_id' => '5557', 'region' => 'header', 'module' => array('id' => '5557', 'name' => 'Header')), 49658 => array('id' => '49658', 'module_id' => '5734', 'region' => 'center', 'module' => array('id' => '5734', 'name' => 'sphinx_search')), 49657 => array('id' => '49657', 'module_id' => '5731', 'region' => 'left', 'module' => array('id' => '5731', 'name' => 'eBoxSupportOnline')));
foreach ($blocks as &$block) {
    if (file_exists(DIR_MODULE . $block['module']['name'] . '/class.php')) {
        require_once DIR_MODULE . $block['module']['name'] . '/class.php';
        $block['object'] = new $block['module']['name']($block);
        if (isset($_POST['form_block_id']) && $_POST['form_block_id'] == $block['id']) {
            $block['object']->submit();
        }
    }
}
require_once ROOT_PATH . "core/PageBegin.php";
?>
<div id="vs_wrapper">
    <div id="tcs-header">
<?php 
if (isset($blocks[49072]['object'])) {
    $blocks[49072]['object']->on_draw();
}
?>
</div>
    <div id="tcs-container" style="padding: 0;">
        <div id="tcs-left" class="left">
            
<?php 
if (isset($blocks[49656]['object'])) {
    $blocks[49656]['object']->on_draw();
}
if (isset($blocks[49657]['object'])) {
Пример #9
0
<?php

AZNet::$page = array('id' => '7766', 'name' => 'item_detail', 'title' => 'item_detail', 'layout' => 'layouts/nq_list_product.html');
$blocks = array(49596 => array('id' => '49596', 'module_id' => '5686', 'region' => 'center', 'module' => array('id' => '5686', 'name' => 'HeaderNavigation')), 48553 => array('id' => '48553', 'module_id' => '5524', 'region' => 'footer', 'module' => array('id' => '5524', 'name' => 'Footer')), 49633 => array('id' => '49633', 'module_id' => '5733', 'region' => 'left', 'module' => array('id' => '5733', 'name' => 'eBoxMenuCate')), 49636 => array('id' => '49636', 'module_id' => '5695', 'region' => 'right', 'module' => array('id' => '5695', 'name' => 'NewsMenu')), 49592 => array('id' => '49592', 'module_id' => '5688', 'region' => 'banner_slide', 'module' => array('id' => '5688', 'name' => 'IntroBanner')), 49424 => array('id' => '49424', 'module_id' => '5557', 'region' => 'header', 'module' => array('id' => '5557', 'name' => 'Header')), 49055 => array('id' => '49055', 'module_id' => '5594', 'region' => 'center', 'module' => array('id' => '5594', 'name' => 'ItemDetail')), 49637 => array('id' => '49637', 'module_id' => '5698', 'region' => 'right', 'module' => array('id' => '5698', 'name' => 'NewsHomeHot')), 49634 => array('id' => '49634', 'module_id' => '5731', 'region' => 'left', 'module' => array('id' => '5731', 'name' => 'eBoxSupportOnline')), 49635 => array('id' => '49635', 'module_id' => '5698', 'region' => 'left', 'module' => array('id' => '5698', 'name' => 'NewsHomeHot')), 49056 => array('id' => '49056', 'module_id' => '5595', 'region' => 'center', 'module' => array('id' => '5595', 'name' => 'ItemSameCategory')), 49638 => array('id' => '49638', 'module_id' => '5723', 'region' => 'right', 'module' => array('id' => '5723', 'name' => 'PublicSurvey')));
foreach ($blocks as &$block) {
    if (file_exists(DIR_MODULE . $block['module']['name'] . '/class.php')) {
        require_once DIR_MODULE . $block['module']['name'] . '/class.php';
        $block['object'] =& new $block['module']['name']($block);
        if (isset($_POST['form_block_id']) && $_POST['form_block_id'] == $block['id']) {
            $block['object']->submit();
        }
    }
}
require_once ROOT_PATH . "core/PageBegin.php";
?>
<div id="vs_wrapper">
    <div id="tcs-header">
<?php 
if (isset($blocks[49424]['object'])) {
    $blocks[49424]['object']->on_draw();
}
?>
</div>
    <div id="tcs-container" style="padding: 0;">
        <div id="tcs-left" class="left">
            
<?php 
if (isset($blocks[49633]['object'])) {
    $blocks[49633]['object']->on_draw();
}
if (isset($blocks[49634]['object'])) {
Пример #10
0
<?php

AZNet::$page = array('id' => '7271', 'name' => 'sign_in', 'title' => 'Đăng nhập', 'layout' => 'layouts/nghiepquang_news_detail.html');
$blocks = array(48798 => array('id' => '48798', 'module_id' => '5557', 'region' => 'header', 'module' => array('id' => '5557', 'name' => 'Header')), 48582 => array('id' => '48582', 'module_id' => '5524', 'region' => 'footer', 'module' => array('id' => '5524', 'name' => 'Footer')), 49654 => array('id' => '49654', 'module_id' => '1704', 'region' => 'center', 'module' => array('id' => '1704', 'name' => 'SignIn')), 49650 => array('id' => '49650', 'module_id' => '5688', 'region' => 'banner_slide', 'module' => array('id' => '5688', 'name' => 'IntroBanner')), 49651 => array('id' => '49651', 'module_id' => '5733', 'region' => 'left', 'module' => array('id' => '5733', 'name' => 'eBoxMenuCate')), 49652 => array('id' => '49652', 'module_id' => '5695', 'region' => 'left', 'module' => array('id' => '5695', 'name' => 'NewsMenu')), 49653 => array('id' => '49653', 'module_id' => '5731', 'region' => 'left', 'module' => array('id' => '5731', 'name' => 'eBoxSupportOnline')));
foreach ($blocks as &$block) {
    if (file_exists(DIR_MODULE . $block['module']['name'] . '/class.php')) {
        require_once DIR_MODULE . $block['module']['name'] . '/class.php';
        $block['object'] = new $block['module']['name']($block);
        if (isset($_POST['form_block_id']) && $_POST['form_block_id'] == $block['id']) {
            $block['object']->submit();
        }
    }
}
require_once ROOT_PATH . "core/PageBegin.php";
?>
<div id="vs_wrapper">
    <div id="tcs-header">
<?php 
if (isset($blocks[48798]['object'])) {
    $blocks[48798]['object']->on_draw();
}
?>
</div>
    <div id="tcs-container" style="padding: 0;">
        <div id="tcs-left" class="left">
            
<?php 
if (isset($blocks[49651]['object'])) {
    $blocks[49651]['object']->on_draw();
}
if (isset($blocks[49652]['object'])) {
Пример #11
0
<?php

AZNet::$page = array('id' => '1096', 'name' => 'edit_page', 'title' => 'Sửa nội dung của trang', 'layout' => 'layouts/admin_simple.html');
$blocks = array(45153 => array('id' => '45153', 'module_id' => '5333', 'region' => 'center', 'module' => array('id' => '5333', 'name' => 'Navigation')), 2002 => array('id' => '2002', 'module_id' => '8', 'region' => 'center', 'module' => array('id' => '8', 'name' => 'EditPage')));
foreach ($blocks as &$block) {
    if (file_exists(DIR_MODULE . $block['module']['name'] . '/class.php')) {
        require_once DIR_MODULE . $block['module']['name'] . '/class.php';
        $block['object'] =& new $block['module']['name']($block);
        if (isset($_POST['form_block_id']) && $_POST['form_block_id'] == $block['id']) {
            $block['object']->submit();
        }
    }
}
require_once ROOT_PATH . "core/PageBegin.php";
?>
<div id="simple_layout" style="background-color:#FFFFFF">
<?php 
if (isset($blocks[45153]['object'])) {
    $blocks[45153]['object']->on_draw();
}
if (isset($blocks[2002]['object'])) {
    $blocks[2002]['object']->on_draw();
}
?>
</div>

<?php 
require_once ROOT_PATH . 'core/PageEnd.php';
Пример #12
0
<?php

AZNet::$page = array('id' => '7821', 'name' => 'shop', 'title' => 'shop', 'layout' => 'layouts/personal1col.html');
$blocks = array(49077 => array('id' => '49077', 'module_id' => '5524', 'region' => 'footer', 'module' => array('id' => '5524', 'name' => 'Footer')), 49086 => array('id' => '49086', 'module_id' => '5557', 'region' => 'header', 'module' => array('id' => '5557', 'name' => 'Header')));
foreach ($blocks as &$block) {
    if (file_exists(DIR_MODULE . $block['module']['name'] . '/class.php')) {
        require_once DIR_MODULE . $block['module']['name'] . '/class.php';
        $block['object'] =& new $block['module']['name']($block);
        if (isset($_POST['form_block_id']) && $_POST['form_block_id'] == $block['id']) {
            $block['object']->submit();
        }
    }
}
require_once ROOT_PATH . "core/PageBegin.php";
if (isset($blocks[49086]['object'])) {
    $blocks[49086]['object']->on_draw();
}
?>
<div class="enbacContent" align="center">
    
</div>	

<?php 
if (isset($blocks[49077]['object'])) {
    $blocks[49077]['object']->on_draw();
}
require_once ROOT_PATH . 'core/PageEnd.php';