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.

16 lines
380 B

4 years ago
<?php
include './functions.php';
header("Access-Control-Allow-Origin: *");
$url = $_REQUEST['url'];
$url = base64_decode($url);
if(!isset($url)) die();
4 years ago
$key = substr(md5($url.time()), 0, 6);
4 years ago
db__pushData(db__connect(), "reflect", array("keyword"=>$key, "type"=>"auto", "url"=>$url, "insert_at"=>date("Y-m-d H:i:s")));
echo json_encode(array("key"=>"http://eee.dog/".$key));