Add login
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
| | | | | | (__ ____) | __/ | \ V /| |___| (_) | | | | |_| | | (_) | |
|
||||
|_| |_| |_|\___|_____/ \___|_| \_/ \_____\___/|_| |_|\__|_| \___/|_|
|
||||
|
||||
* By RootMarc
|
||||
* By marc-go
|
||||
*/
|
||||
|
||||
require "../main.php";
|
||||
@@ -20,5 +20,8 @@ if (!$mcServ->checkConf()) {
|
||||
}
|
||||
|
||||
if (!$mcServ->checkLogin()) {
|
||||
|
||||
header("Location: /admin");
|
||||
exit;
|
||||
}else{
|
||||
echo "true";
|
||||
}
|
||||
Reference in New Issue
Block a user