示例#1
0
function main_switch(){
	
	switch ($_GET["tab"]) {
		case "system":main_system();exit;break;
		case "network":main_network();exit;break;
		case "services":main_services();exit;break;
		case "dns":main_dns();exit;break;
		case "upd":main_update();exit;break;
		default:main_system();exit;break;
			
	}
	
}
示例#2
0
function switchTab()
{
    switch ($_GET["tab"]) {
        case 0:
            GlobalSettings();
            break;
        case 1:
            main_update();
            break;
        case 2:
            main_rules();
            break;
        case 3:
            main_events();
            break;
        case 4:
            main_stats();
            break;
        case 5:
            main_license();
            break;
        case 6:
            main_services();
            break;
        default:
            GlobalSettings();
            break;
    }
}