forked from XG-Project/XG-Project
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathajax.php
More file actions
46 lines (33 loc) · 829 Bytes
/
Copy pathajax.php
File metadata and controls
46 lines (33 loc) · 829 Bytes
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
<?php
/**
* @package XG Project
* @copyright Copyright (c) 2008 - 2015
* @license http://opensource.org/licenses/gpl-3.0.html GPL-3.0
* @since Version 3.0.0
*/
define ( 'INSIDE' , TRUE );
define ( 'IN_LOGIN' , TRUE );
define ( 'XGP_ROOT' , './' );
$InLogin = TRUE;
include ( XGP_ROOT . 'application/core/common.php' );
switch ( ( isset ( $_GET['content'] ) ? $_GET['content'] : '' ) )
{
// information ajax request
case 'info':
include ( XGP_ROOT . AJAX_PATH. 'info.php' );
new Info();
break;
// media ajax request
case 'media':
include ( XGP_ROOT . AJAX_PATH. 'media.php' );
new Media();
break;
// home ajax request
case '':
case 'home':
default:
include ( XGP_ROOT . AJAX_PATH. 'home.php' );
new Home();
break;
}
/* end of ajax.php */