-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
20 lines (18 loc) · 673 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
$currDir = dirname(__FILE__);
define('HOMEPAGE', true);
include("{$currDir}/defaultLang.php");
include("{$currDir}/language.php");
include("{$currDir}/lib.php");
$x = new DataList;
$x->TableTitle = $Translation['homepage'];
// according to provided GET parameters, either log out, show login form (possibly with a failed login message), or show homepage
if(isset($_GET['signOut'])) {
logOutUser();
redirect("index.php?signIn=1");
} elseif(isset($_GET['loginFailed']) || isset($_GET['signIn'])) {
if(isset($_GET['loginFailed'])) @header('HTTP/1.0 403 Forbidden');
include("{$currDir}/login.php");
} else {
include("{$currDir}/home_lte.php");
}