function sys_rgpc_safe($msg, $f = false)
 {
     $status = get_magic_quotes_gpc();
     if (!$status || $f) {
         if (is_array($msg)) {
             foreach ($msg as $key => $value) {
                 $msg[$key] = sys_rgpc_safe($value, $f);
             }
         } else {
             $msg = addslashes($msg);
         }
     }
     return $msg;
 }
//判断是否有启用调试功能
if (defined("SYS_IF_DEBUG") && SYS_IF_DEBUG == true) {
    //error_reporting(E_ALL);
    error_reporting(7);
} else {
    error_reporting(0);
}
require_once LIBS . 'control.sys.php';
//加载辅助函数,这里的辅助函数均不涉及到APP层上的信息
//即这里的辅助函数均可以单独运行
require_once LIBS . 'helper.sys.php';
//[格式化Get,Post及$_FILES参数]
@extract(sys_rgpc_safe($_POST));
@extract(sys_rgpc_safe($_GET));
if (!get_magic_quotes_gpc()) {
    $_FILES = sys_rgpc_safe($_FILES);
}
//执行GET参数,以获取有效的控制文件
//如果没有检查到C层
$p_c = sys_get_cf($config['control_trigger']);
if (!$p_c) {
    $p_c = "index";
}
$p_f = sys_get_cf($config['function_trigger']);
if (!$p_f) {
    $p_f = "index";
}
$p_d = sys_get_d($config['dir_trigger']);
if ($p_d) {
    if (substr($p_d, -1) != '/') {
        $p_d .= '/';