parent
ce5f9eb9d8
commit
9d0c1b0a14
5 changed files with 22 additions and 2 deletions
After Width: | Height: | Size: 4.2 KiB |
After Width: | Height: | Size: 4.2 KiB |
@ -0,0 +1,13 @@ |
||||
<?php |
||||
include '../../../functions.php'; |
||||
header('Access-Control-Allow-Origin:*'); |
||||
|
||||
|
||||
$res = db__getData(db__connect("yulu"), "yulu", "wid", mt_rand(1,42)); |
||||
|
||||
echo json_encode(array("s" => $res[0]['words'])); |
||||
|
||||
yimian__log("log_api", array("api" => "words", "timestamp" => date('Y-m-d H:i:s', time()), "ip" => ip2long(get_ip()), "_from" => get_from(), "content" => $res[0]['words'])); |
||||
|
||||
|
||||
die(); |
After Width: | Height: | Size: 4.2 KiB |
Loading…
Reference in new issue