-
Notifications
You must be signed in to change notification settings - Fork 2
/
ajax.php
42 lines (33 loc) · 1008 Bytes
/
ajax.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
<?php
/**
* include dependencies
*/
include_once (dirname(__FILE__).'/includes/common/require.php');
_load_class('cpanel' );
_load_class('mysql', 'cpanel');
_load_class('user', 'cpanel');
_load_class('ftp', 'cpanel');
_load_class('fileman', 'cpanel');
include_once(dirname(__FILE__). '/includes/backup.php');
include_once(dirname(__FILE__). '/includes/mail.php');
include_once(dirname(__FILE__). '/includes/wp.php');
require_once (ROOT_DIR. '/includes/svn.php');
require_once (ROOT_DIR. '/includes/ftp.php');
global $hooks, $DB;
/*$luser = _post('luser');
$lpass = _post('lpass');
//check user login
if(!login($luser, $lpass)) {
exit('unAuthorize');
if($auth){
#$cpanel = authorize_cpanel($acc_id);
}
}*/
$task = _get('do');
$params = array(
'auth' => _get('auth'),
'task' => _get('do'),
'json_format' => _get('json')
);
//do ajax action
$hooks->do_action(get_ajax_task_name($task), new HW_CPanel_Utilities(_req('acc', 8), $params));