-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.php
More file actions
84 lines (73 loc) · 2.07 KB
/
index.php
File metadata and controls
84 lines (73 loc) · 2.07 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?php
// load configfile
require_once 'config.inc.php';
require_once 'class/mysq.class.php';
require_once 'class/ipv6.php';
require_once 'functions.php';
// load Session cookie
error_reporting(E_ERROR | E_PARSE);
// start database connection
$sql = new mysql("localhost","user","passwort","datenbank");
if (! isset($_GET['action']))
$_GET['action'] = "none";
if ($_GET['action']=="addNewNetwork")
include_once 'addNewNetwork.php';
elseif ($_GET['action']=="storeEditedNetwork")
include_once 'storeEditedNetwork.php';
?>
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>IPv6 Address Management Tool | by Helmut Schimkowski</title>
<link rel="stylesheet" href="css/main.css">
<script src="sudoku.js"></script>
</head>
<body>
<header>
<h1 style="list-style-type: none;">IPv6 address management tool</h1>
</header>
<main>
<div class="container">
<aside class="sidebar">
<?php left(); ?>
</aside>
<section class="content">
<?php
if($_GET['action']=="sudoku")
include_once 'sudoku.php';
elseif ($_GET['action']=="showIpv6Route")
include_once 'showIpv6Route.php';
elseif ($_GET['action']=="addCustomNetworkForm")
include_once 'addCustomNetworkForm.php';
elseif ($_GET['action']=="editNetworkForm")
include_once 'editNetworkForm.php';
elseif ($_GET['action']=="todo")
{
echo "<pre>";
include_once 'todo.txt';
echo "</pre>";
}
elseif ($_GET['action']=="help")
include_once 'help.html';
elseif ($_GET['action']=="deleteNetwork")
include_once 'deleteNetwork.php';
else
echo "Please select your root network first!";
?>
</section>
</div>
</main>
<footer>
<nav class="footer-links">
<a href="mailto:helge.holz@dataport.de">Concept by Helge Holz</a>
<a href="http://www.schimkowski.net" target="_blank">developed by Helmut Schimkowski</a>
</nav>
</footer>
</body>
</html>
<?php
$sql->free_result();
$sql->close_connect();
?>