22 lines
618 B
PHP
22 lines
618 B
PHP
<?php
|
|
session_start();
|
|
|
|
require '../../../preset.php';
|
|
require '../../../assets/utils/db_auth.php';
|
|
|
|
$sql = "SELECT *
|
|
FROM user
|
|
WHERE
|
|
username not in ('support','extra')";
|
|
$sth = $pdo1->prepare($sql);
|
|
$sth->execute();
|
|
if ($sth->errorInfo()[0] != "00000" && !empty($sth->errorInfo()[0])) {
|
|
$answer["message"] = (empty($sth->errorInfo()[2])) ? $sth->errorInfo()[0] : $sth->errorInfo()[2];
|
|
exit(json_encode($answer));
|
|
}
|
|
|
|
$answer["output"] = $sth->fetchAll(PDO::FETCH_ASSOC);
|
|
$answer["success"] = 1;
|
|
exit(json_encode($answer));
|
|
|
|
?>
|