diff --git a/api.php b/api.php index 2970e4c..ea704a5 100644 --- a/api.php +++ b/api.php @@ -27,12 +27,12 @@ require_once("common.inc.functions.php"); require_once("account.inc.php"); require_once("user.inc.php"); require_once("schedule.inc.php"); -/*if($_SERVER['HTTPS']!="on") { +if($_SERVER['HTTPS']!="on") { $ret['status']="error"; $ret['error']="SSL is required for API access, please access the API over https"; echo json_encode($ret); exit; -}*/ +} $request=explode("/",$_GET['request']); $ret=array();