...
This commit is contained in:
4
api/opfer/add.php
Normal file
4
api/opfer/add.php
Normal file
@@ -0,0 +1,4 @@
|
||||
<?php
|
||||
require "../api.php";
|
||||
|
||||
$api = new spamhasiApi()
|
||||
@@ -21,12 +21,18 @@ if ($result) {
|
||||
$opfer["mail"] = $opfer_res["mail"];
|
||||
$opfer["number"] = $opfer_res["number"];
|
||||
|
||||
if ($opfer_res["status"] == 1) {
|
||||
$opfer["enabled"] = true;
|
||||
}else{
|
||||
$opfer["enabled"] = false;
|
||||
}
|
||||
|
||||
$all_opfer[] = $opfer;
|
||||
}
|
||||
|
||||
$json["servers"] = $all_opfer;
|
||||
$json["opfer"] = $all_opfer;
|
||||
}else{
|
||||
$json["servers"] = [];
|
||||
$json["opfer"] = [];
|
||||
}
|
||||
|
||||
$json["status"] = 200;
|
||||
|
||||
Reference in New Issue
Block a user