forked from XG-Project/XG-Project
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
45 lines (32 loc) · 859 Bytes
/
Copy pathindex.php
File metadata and controls
45 lines (32 loc) · 859 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
<?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['page'] ) ? $_GET['page'] : '' ) )
{
// REGISTER PAGE
case 'reg':
include ( XGP_ROOT . HOME_PATH . 'register.php' );
new Register();
break;
// RECOVER PASSWORD PAGE
case 'recoverpassword':
include ( XGP_ROOT . HOME_PATH . 'recoverpassword.php' );
new Recoverpassword();
break;
// HOME - INDEX - DEFAULT - START PAGE
case '':
default:
include ( XGP_ROOT . HOME_PATH . 'home.php' );
new Home();
break;
}
/* end of index.php */