mirror of https://github.com/IoTcat/ushio-auth.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
332 B
19 lines
332 B
<?php |
|
|
|
include './functions.php'; |
|
|
|
header('Access-Control-Allow-Origin:*'); |
|
header("Content-Type: application/json;charset=utf-8"); |
|
|
|
$cnn = db__connect(); |
|
$res = db__getData($cnn, "account"); |
|
|
|
$o = array(); |
|
|
|
foreach($res as $item){ |
|
if($item['email']){ |
|
array_push($o, md5($item['email'])); |
|
} |
|
} |
|
|
|
echo json_encode($o);
|
|
|