MDL-12886 adding killswitch for webservices

This commit is contained in:
skodak
2009-01-14 16:26:00 +00:00
parent adc82791a0
commit d9e233af76
2 changed files with 9 additions and 0 deletions
+4
View File
@@ -15,6 +15,10 @@
require_once(dirname(dirname(dirname(__FILE__))) . '/config.php');
require_once('lib.php');
if (empty($CFG->enablewebservices)) {
die;
}
//retrieve path and function name from the URL
$rest_arguments = get_file_argument('server.php');
@@ -12,6 +12,11 @@
require_once("../../../config.php");
require_once ('lib.php');
if (empty($CFG->enablewebservices)) {
die;
}
$CFG->serverurl = $CFG->wwwroot.'/webservice/rest/server.php';
if (!function_exists('curl_init')) die ('CURL library was not found!');