-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathindex.php
53 lines (41 loc) · 1.5 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
<?php
session_start();
if ( !isset( $_SESSION[ 'loggedin' ] ) ) {
header( 'location: login.php' );
exit;
}
include "db/_pdo.php";
include "api/routeros_api.class.php";
PDO_Connect( "sqlite:./db/sqlite-database.sqlite3" );
$_SESSION[ 'mikrotik' ] = $_SESSION[ 'mikrotik' ] ?? "1";
include "page/header.php";
?>
<body>
<?php
include "page/nav.php";
$page = $_GET[ 'page' ] ?? ( $_SESSION[ 'adminaccess' ] === "yes" ? 'dashboard' : 'user' );
include "page/" . $page . ".php";
?>
<div class="text-center text-muted align-self-center mt-3"
style="font-size: 15px;"
id=crdts>Powered by AZK Manager v3.0.6</div>
<div class="text-center text-muted align-self-center"
style="font-size: 10px;"
id=crdts>Made by <a class="text-decoration-none"
href=https://github.com/Kintoyyy
id=kintoyyy>kintoyyy 🖤</a></div>
<div class="text-center text-muted align-self-center mb-5"
style="font-size: 10px;"
id=crdts>Gcash: <a class="text-decoration-none"
href=https://www.facebook.com/kint.oyyy>09760009422</a></div>
</body>
<script src="src/js/switch.js?ver=<?= $random; ?>"></script>
<script async
src="https://www.googletagmanager.com/gtag/js?id=G-LPJDPP6XP6"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-LPJDPP6XP6');
</script>
</html>