Initial Commit
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
header("Cache-Control: no-cache, must-revalidate");
|
||||
header("Expires: Sat, 6 May 1998 03:10:00 GMT");
|
||||
|
||||
/*===============================================*\
|
||||
|| ############################################# ||
|
||||
|| # JAKWEB.CH # ||
|
||||
|| # ----------------------------------------- # ||
|
||||
|| # Copyright 2019 JAKWEB All Rights Reserved # ||
|
||||
|| ############################################# ||
|
||||
\*===============================================*/
|
||||
|
||||
if (!file_exists('config.php')) die('rest_api config.php not exist');
|
||||
require_once 'config.php';
|
||||
|
||||
$lcurl = "";
|
||||
if (isset($_REQUEST['url']) && !empty($_REQUEST['url'])) $lcurl = $_REQUEST['url'];
|
||||
if (isset($_REQUEST['device']) && !empty($_REQUEST['device'])) $device = $_REQUEST['device'];
|
||||
if (isset($_REQUEST['token']) && !empty($_REQUEST['token'])) $token = $_REQUEST['token'];
|
||||
|
||||
if (!empty($lcurl) && filter_var($lcurl, FILTER_VALIDATE_URL)) {
|
||||
|
||||
// Return the json object
|
||||
die(json_encode(array('status' => true, 'ios' => "", 'android' => "", 'title' => "CloudDesk 3")));
|
||||
}
|
||||
|
||||
die(json_encode(array('status' => false, 'errorcode' => 12)));
|
||||
?>
|
||||
Reference in New Issue
Block a user