예제 #1
0
파일: citygen.php 프로젝트: duynhan07/elink
<?php

//TuấnNK add (20090619_10h):
//Xử lý cập nhật lại tỉnh thành phố:
require_once 'core/Debug.php';
//System Debug...
require_once 'core/config.php';
//System Config...
require_once ROOT_PATH . 'core/CGlobal.php';
require_once ROOT_PATH . 'core/DB.php';
//Khởi tạo các biến hệ thống:
global $server_list;
CGlobal::$my_server = $server_list;
unset($server_list);
if (MEMCACHE_ON) {
    require_once ROOT_PATH . 'core/AZMemcache.php';
}
require_once ROOT_PATH . 'core/AZLib.php';
require_once ROOT_PATH . 'core/AZArrCache.php';
require_once ROOT_PATH . 'core/System.php';
require_once ROOT_PATH . 'core/Url.php';
// Disable ALL magic_quote
set_magic_quotes_runtime(0);
register_shutdown_function(array("DB", "close"));
$js_file = ROOT_PATH . "javascript/enbac/cities.js";
AZLib::getProvinces();
echo "<pre>";
print_r(CGlobal::$provinces);
echo "</pre>";
$cities = array();
if (CGlobal::$provinces) {