forked from science-ation/science-ation
oops - committed with some code remarked
This commit is contained in:
parent
637a35ca60
commit
88055eb6a6
3
api.php
3
api.php
@ -26,13 +26,12 @@ include "common.inc.php";
|
|||||||
require_once("account.inc.php");
|
require_once("account.inc.php");
|
||||||
require_once("user.inc.php");
|
require_once("user.inc.php");
|
||||||
require_once("schedule.inc.php");
|
require_once("schedule.inc.php");
|
||||||
/* FIXME: UNREMARK BEFORE COMMITTING
|
|
||||||
if($_SERVER['HTTPS']!="on") {
|
if($_SERVER['HTTPS']!="on") {
|
||||||
$ret['status']="error";
|
$ret['status']="error";
|
||||||
$ret['error']="SSL is required for API access, please access the API over https";
|
$ret['error']="SSL is required for API access, please access the API over https";
|
||||||
echo json_encode($ret);
|
echo json_encode($ret);
|
||||||
exit;
|
exit;
|
||||||
}*/
|
}
|
||||||
|
|
||||||
$request=explode("/",$_GET['request']);
|
$request=explode("/",$_GET['request']);
|
||||||
$ret=array();
|
$ret=array();
|
||||||
|
Loading…
Reference in New Issue
Block a user