-
Notifications
You must be signed in to change notification settings - Fork 90
/
index.php
37 lines (32 loc) · 1.12 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
<?php
/**
* 前端页面加载
* @copyright (c) w8ay All Rights Reserved
*/
require_once "init.php";
//测试
$Webshell_Model = new Webshell_Model();
$web_title = "w8ay WebShell在线管理系统";
$num = $Webshell_Model->getLogNum('where uid='.UID);
include View::getView('header');
$gid = $_GET["gid"];
$path = $_GET["path"];
switch ($action) {
//webshell管理
case '':Shellog_Controller::display_index();break;
case 'add':Shellog_Controller::display_add();break;
case 'del':Shellog_Controller::display_del($gid);break;
case 'edit':Shellog_Controller::display_edit($gid);break;
case 'opera':Shellog_Controller::display_opera();break;
//webshell操作
case 'file':ShellFile_Controller::Display_index($gid,$path);break;
case 'filedit':ShellFile_Controller::Display_edit($gid,$path);break;
case 'filedel':ShellFile_Controller::Display_del($gid,$path);break;
//其他操作
case 'help':Help_Controller::Display();break;
case 'logout':Login_Controller::Logout();break;
default:wmsg("错误的指令!");break;
}
include View::getView('footer');
View::output();
?>