forked from adrianosilvareis/intranet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
57 lines (48 loc) · 1.39 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
ob_start();
require_once './_app/Config.inc.php';
$Session = new Session;
?>
<!DOCTYPE html>
<html lang="pt-br" itemscope itemtype="http://schema.org/Article">
<head>
<?php
$Link = new Link;
$Link->getTags();
?>
</head>
<body>
<?php
$Login = new Login(5);
$logoff = filter_input(INPUT_GET, 'logoff', FILTER_VALIDATE_BOOLEAN);
$getexe = filter_input(INPUT_GET, 'exe', FILTER_DEFAULT);
Check::UserOnline();
if (!$Login->CheckLogin()):
unset($_SESSION['userlogin']);
header('Location: ' . HOME . '/login.php?exe=restrito');
else:
$userlogin = $_SESSION['userlogin'];
endif;
if ($logoff):
unset($_SESSION['userlogin']);
header('Location: ' . HOME . '/login.php?exe=logoff');
endif;
require(REQUIRE_PATH . '/inc/header.inc.php');
?>
<div class="section">
<div class="container container-mobile">
<?php
if (!require($Link->getPatch())):
WSErro('Erro ao incluir arquivo de navegação!', WS_ERROR, true);
endif;
?>
</div>
</div>
<?php
require(REQUIRE_PATH . '/inc/footer.inc.php');
Register::getRegister();
?>
</body>
</html>
<?php
ob_end_flush();