예제 #1
0
파일: main.php 프로젝트: ljhcj/IRISCC
        //		do_registration();
        //		break;
    //	case "func_registration";
    //		func_registration();
    //		break;
    //	case "func_registration2"; //LICENSE
    //		func_registration2();
    //		break;
    //	case "func_registration3"; //PROTECT
    //		func_registration3();
    //		break;
    //	case "do_registration";
    //		do_registration();
    //		break;
    default:
        page_main();
        break;
}
/*------------------------------------
	responser functions
--------------------------------------*/
function page_main()
{
    global $smarty;
    global $rpcpbx;
    global $friconf;
    //version
    $rpcres = sendrequest($rpcpbx->base_version(), 0);
    $smarty->assign("rpcpbx_version", $rpcres['rpcpbx']);
    $smarty->assign("freeiris2_version", $rpcres['freeiris2']);
    $smarty->assign("buildver_version", $rpcres['buildver']);
예제 #2
0
//
$lang = getlang();
if (isset($lang)) {
    if (file_exists("{$configdir}/{$lang}/config.php")) {
        require "{$configdir}/{$lang}/config.php";
    }
}
//
//
$pageid = getpageid();
if (!isset($pageid)) {
    $pageid = $defaultpage;
}
$page_include = "include/" . $pageid;
$config_include = $configdir . "/" . $pageid;
if (file_exists($page_include)) {
    if (file_exists($config_include)) {
        require $config_include;
    }
    if (autherized(getuserid(), $pageauth)) {
        require $page_include;
        $page_var = page_init();
        page_html_header($page_var);
        page_main($page_var);
        page_html_footer($page_var);
        page_cleanup($page_var);
    } else {
        login();
    }
}
// That's all folks ...