-
Notifications
You must be signed in to change notification settings - Fork 3
/
admin.php
37 lines (32 loc) · 1.36 KB
/
admin.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
<?php
/**
* @package Social Ninja
* @version 1.0
* @author InspiredDev <iamrock68@gmail.com>
* @copyright 2015
*/
$login_required = true;
$admin_required = true;
$title = 'Admin Panel';
include(dirname(__FILE__).'/loader.php');
$admin = new admin();
include(__ROOT__.'/templates/header.php');
if(empty($_GET['module'])){
include(__ROOT__.'/templates/admin.php');
}
else{
if($_GET['module'] == 'users')include(__ROOT__.'/templates/admin/users.php');
else if($_GET['module'] == 'folders')include(__ROOT__.'/templates/admin/folders.php');
else if($_GET['module'] == 'files')include(__ROOT__.'/templates/admin/files.php');
else if($_GET['module'] == 'accounts')include(__ROOT__.'/templates/admin/accounts.php');
else if($_GET['module'] == 'pages')include(__ROOT__.'/templates/admin/pages.php');
else if($_GET['module'] == 'schedules')include(__ROOT__.'/templates/admin/schedules.php');
else if($_GET['module'] == 'videos')include(__ROOT__.'/templates/admin/videos.php');
else if($_GET['module'] == 'plan')include(__ROOT__.'/templates/admin/plan.php');
else if($_GET['module'] == 'lang')include(__ROOT__.'/templates/admin/lang.php');
else if($_GET['module'] == 'payments')include(__ROOT__.'/templates/admin/payments.php');
else include(__ROOT__.'/templates/admin.php');
}
include(__ROOT__.'/templates/admin/adminjs.php');
include(__ROOT__.'/templates/footer.php');
?>