This commit is contained in:
marc-go
2026-04-14 20:00:21 +02:00
parent 8bfa783d9d
commit f2bb74dd12
63 changed files with 22576 additions and 252 deletions

19
api/login/isauth.php Normal file
View File

@@ -0,0 +1,19 @@
<?php
require "../api.php";
$api = new spamhasiApi();
if ($api->checkAuth()) {
$json["auth"] = true;
if ($api->checkLogin()) {
$json["method"] = "cookie";
}else{
$json["method"] = "api_key";
}
}else{
$json["auth"] = false;
}
die(json_encode($json));
?>