forked from pepiuox/PHP-GrapesJS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
33 lines (27 loc) · 761 Bytes
/
index.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
<?php
//
// This application develop by PEPIUOX.
// Created by : Lab eMotion
// Author : PePiuoX
// Email : [email protected]
//
if (!isset($_SESSION)) {
session_start();
}
$currentDate = new DateTime();
$connfile = 'config/dbconnection.php';
if (file_exists($connfile)) {
$page = $_SERVER['PHP_SELF'];
include 'config/dbconnection.php';
require 'classes/UserClass.php';
require 'classes/GetVisitor.php';
$login = new UserClass();
$timestamp = $currentDate->format('Y-m-d H:i:s');
$visitor = new GetVisitor($timestamp);
include 'start.php';
} else {
$_SESSION['PathInstall'] = "http://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}";
header('Location: installer/install.php');
exit();
}
?>