-
Notifications
You must be signed in to change notification settings - Fork 37
/
index.php
61 lines (58 loc) · 1.03 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
if(is_file("config.php")) {
require_once("config.php");
} else {
if(is_dir("install")) {
header("location: install");
exit();
}
}
require_once(WWW_DIR."/lib/page.php");
require_once(WWW_DIR."/lib/users.php");
$page = new Page;
$users = new Users;
switch($page->page) {
case 'content':
case 'sendtosab':
case 'browse':
case 'browsegroup':
case 'getnzb':
case 'search':
case 'searchraw':
case 'rss':
case 'api':
case 'apihelp':
case 'movies':
case 'movie':
case 'series':
case 'music':
case 'musicmodal':
case 'consolemodal':
case 'console':
case 'nfo':
case 'details':
case 'forum':
case 'forumpost':
case 'filelist':
case 'getimage':
case 'cart':
case 'queue':
case 'queuedata':
case 'profile':
case 'profileedit':
case 'login':
case 'logout':
case 'register':
case 'forgottenpassword':
case 'sitemap':
case 'contact-us':
case 'terms-and-conditions':
case 'ajax_profile':
case 'ajax_release-admin':
include(WWW_DIR.'pages/'.$page->page.'.php');
break;
default:
$page->show404();
break;
}
?>