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.
12 lines
273 B
PHTML
12 lines
273 B
PHTML
8 years ago
|
<?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);
|