forked from hacker_marc/spamhasi
...
This commit is contained in:
1 parent
8bfa783d9d
commit
f2bb74dd12
63 files changed
+22576
-252
No files matched your search
@@ -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));
|
||||
?>
|
||||
Reference in new issue
Block a user