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');
*/
require_once(dirname(__FILE__) . '/../../config.php');
+if (empty($CFG->enablewebservices)) {
+ die;
+}
+
//retrieve the api name
$classpath = optional_param(classpath,null,PARAM_ALPHA);
require_once(dirname(__FILE__) . '/../../'.$classpath.'/wsapi.php');