add tailadmin
This commit is contained in:
1 parent
c82f80fe74
commit
75899064c5
5 files changed
+17
-2
No files matched your search
@@ -35,7 +35,7 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") {
|
|||||||
setcookie("device_id", $device_id, time() + 3600, "/");
|
setcookie("device_id", $device_id, time() + 3600, "/");
|
||||||
setcookie("username", $user, time() + 3600, "/");
|
setcookie("username", $user, time() + 3600, "/");
|
||||||
|
|
||||||
header("Location: /admin");
|
header("Location: /panel");
|
||||||
exit;
|
exit;
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
+2
-1
@@ -23,5 +23,6 @@ if (!$mcServ->checkLogin()) {
|
|||||||
header("Location: /login.php");
|
header("Location: /login.php");
|
||||||
exit;
|
exit;
|
||||||
}else{
|
}else{
|
||||||
echo "angemeldet";
|
header("Location: /panel");
|
||||||
|
exit;
|
||||||
}
|
}
|
||||||
Whitespace-only changes.
@@ -0,0 +1,13 @@
|
|||||||
|
<?php
|
||||||
|
require "../../main.php";
|
||||||
|
|
||||||
|
$mcServ = new mcServ();
|
||||||
|
|
||||||
|
if ($mcServ->checkLogin()) {
|
||||||
|
header("Location: /admin/home.php");
|
||||||
|
exit;
|
||||||
|
}else{
|
||||||
|
header("Location: /login.php");
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
?>
|
||||||
Submodule
+1
Submodule tailadmin added at 50aa8c15fa.
Reference in new issue
Block a user