forked from TFcis/SkyOnlinejudge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
24 lines (24 loc) · 1.09 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php namespace SKYOJ;
require_once 'GlobalSetting.php';
require_once 'function/SkyOJ.php';
$SkyOJ->RegisterHandle('index','\\SKYOJ\\Index',null,true);
$SkyOJ->RegisterHandle('code' ,'\\SKYOJ\\Code\\CodeHandle',$_E['ROOT'].'/code.php');
$SkyOJ->RegisterHandle('rank' ,'\\SKYOJ\\Rank\\RankHandle',$_E['ROOT'].'/function/rank/rank.php');
$SkyOJ->RegisterHandle('admin','\\SKYOJ\\Admin\\AdminHandle',$_E['ROOT'].'/admin.php');
$SkyOJ->RegisterHandle('user','\\SKYOJ\\User\\UserHandle',$_E['ROOT'].'/user.php');
$SkyOJ->RegisterHandle('problem','\\SKYOJ\\Problem\\ProblemHandle',$_E['ROOT'].'/function/problem/problem.php');
$SkyOJ->RegisterHandle('chal','\\SKYOJ\\Challenge\\ChallengeHandle',$_E['ROOT'].'/challenge.php');
$SkyOJ->RegisterHandle('contest','\\SKYOJ\\Contest\\ContestHandle',$_E['ROOT'].'/function/contest/contest.php');
$SkyOJ->run();
function Index(){
global $SkyOJ;
$param = $SkyOJ->UriParam(1);
switch($param){
case 'old':
\Render::render('index_1', 'index');
break;
default:
\Render::render('index', 'index');
break;
}
}