From 493a29ea884580dba853c1542159b5bf478356ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20H=C3=A4usler?= Date: Sun, 29 Dec 2013 15:24:54 +0100 Subject: [PATCH] disable api --- public/index.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/index.php b/public/index.php index cf5ab9cc..24d92b9d 100644 --- a/public/index.php +++ b/public/index.php @@ -84,7 +84,9 @@ if (isset($_REQUEST['p']) && preg_match("/^[a-z0-9_]*$/i", $_REQUEST['p']) && (i if ($p == "api") { require_once ('includes/controller/api.php'); - api_controller(); + error("Api disabled temporily."); + redirect(page_link_to('login')); + //api_controller(); } elseif ($p == "ical") { require_once ('includes/pages/user_ical.php'); user_ical();