//set_time_limit(1); /** * index.php PHPCMS ��￿ * * @copyright (C) 2005-2010 PHPCMS * @license http://www.phpcms.cn/license/ * @lastmodify 2010-6-1 */ //PHPCMS��Ŀ¼ //register_shutdown_function('my_exception_handler'); /* $t = I_AM_NOT_DEFINED; //generates a warning trigger_error("Vectors need to be of the same size", E_USER_ERROR);*/ /*function my_exception_handler() { if($e = error_get_last()) { //$e['type']对应php_error常量 $message = ''; $message .= "出错信息:\t".$e['message']."\n\n"; $message .= "出错文件:\t".$e['file']."\n\n"; $message .= "出错行数:\t".$e['line']."\n\n"; $message .= "\t\t请工程师检查出现程庿.$e['file']."出现错误的原因\n"; $message .= "\t\t希望能您早点解决故障出现的原囿br/>"; echo $message; //sendemail to } }*/ define('PHPCMS_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR); include PHPCMS_PATH.'/phpcms/base.php'; function pre($arr) { echo '
' . print_r($arr,true) . '
'; } $pathinfo = str_replace(array('/html','/11','11'), '', $_SERVER['PATH_INFO']); // if ($_SERVER['HTTP_HOST']=='new.360quan.com' && (strlen($_SERVER['REQUEST_URI']) >1) && (strpos($_SERVER['REQUEST_URI'],'city') == false) ) { if ($_SERVER['HTTP_HOST']=='new.360quan.com' && (strlen($pathinfo ) >1) && (strpos($pathinfo ,'city') == false) ) { include PHPCMS_PATH.'/phpcms/new360.php'; } else { pc_base::creat_app(); } ?>