You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
<?php
|
|
|
|
require_once './required.php';
|
|
|
|
if (!isAdmin()) {
|
|
die("Unauthorized.");
|
|
}
|
|
|
|
header('Content-Type: application/json');
|
|
|
|
$data = $database->select("badges", "badgesid", ["OR" => ["badgesid[~]" => $_GET['q'], "badgename[~]" => $_GET['q']]]);
|
|
echo json_encode($data); |