old work
This commit is contained in:
parent
4aed96037d
commit
4f7b1715f7
0
.gitignore
vendored
Normal file → Executable file
0
.gitignore
vendored
Normal file → Executable file
0
TablIP.sql
Normal file → Executable file
0
TablIP.sql
Normal file → Executable file
7
addNetwork.php
Normal file → Executable file
7
addNetwork.php
Normal file → Executable file
@ -4,8 +4,10 @@ $gateway = ip2long(filter_input(INPUT_POST, "gateway", FILTER_VALIDATE_IP));
|
||||
$mask = ip2long(filter_input(INPUT_POST, "mask", FILTER_VALIDATE_IP));
|
||||
$siteId = filter_input(INPUT_POST, "siteId", FILTER_VALIDATE_INT);
|
||||
if (!($name && $gateway && $mask && $siteId)) {
|
||||
header("Location: 400.php");
|
||||
exit;
|
||||
/*header("Location: 400.php");
|
||||
exit;*/
|
||||
include "400.php";
|
||||
die();
|
||||
}
|
||||
$networkAddress = $gateway & $mask;
|
||||
include "connect.php";
|
||||
@ -19,4 +21,3 @@ try {
|
||||
header("Location: 500.php");
|
||||
exit;
|
||||
}
|
||||
?>
|
||||
|
6
addSite.php
Normal file → Executable file
6
addSite.php
Normal file → Executable file
@ -1,8 +1,10 @@
|
||||
<?php
|
||||
$siteName = filter_input(INPUT_POST, "siteName", FILTER_SANITIZE_STRING);
|
||||
if (!$siteName) {
|
||||
header("Location: 400.php");
|
||||
exit;
|
||||
/*header("Location: 400.php");
|
||||
exit;*/
|
||||
include "400.php";
|
||||
die();
|
||||
}
|
||||
include "connect.php";
|
||||
try {
|
||||
|
0
config_db.php.inc
Normal file → Executable file
0
config_db.php.inc
Normal file → Executable file
4
connect.php
Normal file → Executable file
4
connect.php
Normal file → Executable file
@ -5,6 +5,6 @@ try {
|
||||
$db->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);
|
||||
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
||||
} catch (Exception $e) {
|
||||
header("Location: 500.php");
|
||||
//header("Location: 500.php");
|
||||
die($e);
|
||||
}
|
||||
?>
|
0
css/icons.css
Normal file → Executable file
0
css/icons.css
Normal file → Executable file
0
css/materialize.css
vendored
Normal file → Executable file
0
css/materialize.css
vendored
Normal file → Executable file
0
css/style.css
Normal file → Executable file
0
css/style.css
Normal file → Executable file
0
fonts/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2
Normal file → Executable file
0
fonts/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2
Normal file → Executable file
0
js/materialize.js
vendored
Normal file → Executable file
0
js/materialize.js
vendored
Normal file → Executable file
0
js/script.js
Normal file → Executable file
0
js/script.js
Normal file → Executable file
0
network.php
Normal file → Executable file
0
network.php
Normal file → Executable file
0
updateHost.php
Normal file → Executable file
0
updateHost.php
Normal file → Executable file
Loading…
x
Reference in New Issue
Block a user