<?php // xhprof_enable(); //开启xhprof测试点 header("Cache-control:private"); //header('Content-Type:text/html; charset=utf-8'); define('dc_root', realpath(dirname(__FILE__)) . '/'); $server_host = isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : 'www.eqphp.com'; define('dc_url', 'http://' . $server_host . '/'); //配置根URL(.htaccess) spl_autoload_register('eqphp_autoload'); include dc_root . 'server/function_lib.php'; //加载方法库 // $begin=debug::set_flag(); //开启系统debug调试点 s_system::dir(); //加载系统常量(目录/URL) s_system::init(); //设置系统环境变量 $group = explode(',', config('group|info')); $start_lie = 0; //配置根URL位置 $root_son = url($start_lie); if (in_array($root_son, $group)) { $start_lie += 1; define('dc_group', $root_son); define('dc_group_dir', dc_root . $root_son . '/'); } $controller = 'a_' . url($start_lie); if ($controller == 'a_' || !class_exists($controller)) { $controller = 'a_index'; } $method = trim(url($start_lie + 1));
function smarty($group = 'home') { return s_system::tpl($group); }