-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
38 lines (36 loc) · 867 Bytes
/
index.php
File metadata and controls
38 lines (36 loc) · 867 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
<?php
/**
* Created by PhpStorm.
* User: Guillaume
* Date: 08/01/2015
* Time: 20:30
*/
include_once("controller/commons/config.php");
if (isset($_GET['type']) && $_GET['type'] == "install")
{
if ($CURRENT_CONFIG->isInstalled == "true")
{
include("data://text/plain,".urlencode(translate(file_get_contents("view/install/installed.php"))));
exit(0);
}
include_once("controller/install/index.php");
}
elseif (isset($_GET['type']) && $_GET['type'] == "admin")
{
include_once("controller/admin/index.php");
}
elseif (isset($_GET['type']) && $_GET['type'] == "logout")
{
session_destroy();
header('Location: index.php');
}
else{
if ($CURRENT_CONFIG->isInstalled == "false")
{
include_once("controller/install/index.php");
}
else
{
include_once("controller/Standard/index.php");
}
}