mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 09:26:35 +02:00
32 lines
No EOL
588 B
PHP
32 lines
No EOL
588 B
PHP
<?php
|
|
/**
|
|
* Created on 01/20/2009
|
|
*
|
|
* AMF Moodle server.
|
|
*
|
|
* @author Jerome Mouneyrac
|
|
*/
|
|
|
|
require_once(dirname(__FILE__) . '/../../config.php');
|
|
include "Zend/Loader.php";
|
|
Zend_Loader::registerAutoload();
|
|
if (empty($CFG->enablewebservices)) {
|
|
die;
|
|
}
|
|
|
|
/*
|
|
* FULL SERVER
|
|
*
|
|
*/
|
|
//retrieve the api name
|
|
$classpath = optional_param(classpath,'user',PARAM_ALPHA);
|
|
require_once(dirname(__FILE__) . '/../../'.$classpath.'/external.php');
|
|
|
|
/// run the server
|
|
$server = new Zend_Amf_Server();
|
|
$server->setClass($classpath."_external");
|
|
$response = $server->handle();
|
|
echo $response;
|
|
|
|
|
|
?>
|