示例#1
0
$_GET['op'] = $_GET['op'] ? strtolower($_GET['op']) : ($_POST['op'] ? strtolower($_POST['op']) : null);
if (empty($_GET['act'])) {
    require_once BASE_CORE_PATH . '/framework/core/route.php';
    new Uk86Route($config);
}
//统一ACTION
$_GET['act'] = preg_match('/^[\\w]+$/i', $_GET['act']) ? $_GET['act'] : 'index';
$_GET['op'] = preg_match('/^[\\w]+$/i', $_GET['op']) ? $_GET['op'] : 'index';
//对GET POST接收内容进行过滤,$ignore内的下标不被过滤
$ignore = array('article_content', 'pgoods_body', 'doc_content', 'content', 'sn_content', 'g_body', 'store_description', 'p_content', 'groupbuy_intro', 'remind_content', 'note_content', 'ref_url', 'adv_pic_url', 'adv_word_url', 'adv_slide_url', 'appcode', 'mail_content');
if (!class_exists('Security')) {
    require BASE_CORE_PATH . '/framework/libraries/security.php';
}
$_GET = !empty($_GET) ? Uk86Security::uk86_getAddslashesForInput($_GET, $ignore) : array();
$_POST = !empty($_POST) ? Uk86Security::uk86_getAddslashesForInput($_POST, $ignore) : array();
$_REQUEST = !empty($_REQUEST) ? Uk86Security::uk86_getAddslashesForInput($_REQUEST, $ignore) : array();
$_SERVER = !empty($_SERVER) ? Uk86Security::uk86_getAddSlashes($_SERVER) : array();
//启用ZIP压缩
if ($config['gzip'] == 1 && function_exists('ob_gzhandler') && $_GET['inajax'] != 1) {
    ob_start('ob_gzhandler');
} else {
    ob_start();
}
require_once BASE_CORE_PATH . '/framework/libraries/queue.php';
require_once BASE_CORE_PATH . '/framework/function/core.php';
require_once BASE_CORE_PATH . '/framework/core/base.php';
require_once BASE_CORE_PATH . '/framework/function/goods.php';
if (function_exists('spl_autoload_register')) {
    spl_autoload_register(array('Uk86Base', 'uk86_autoload'));
} else {
    function __autoload($class)