mirror of https://github.com/IoTcat/ushio-auth.git
parent
83cb200258
commit
da36a5fb34
1 changed files with 19 additions and 0 deletions
@ -0,0 +1,19 @@ |
|||||||
|
<?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); |
Loading…
Reference in new issue