From: pkiddie <pk...@us...> - 2005-08-19 09:05:07
|
Update of /cvsroot/stack/stack-1-0/scripts/rqp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2496/scripts/rqp Modified Files: Tag: development_xmlrqp RQPv1p0Server.php rqp_util.php Added Files: Tag: development_xmlrqp stackDetails.php stackDocs.php Removed Files: Tag: development_xmlrqp RQPv1p0Client.php Log Message: Implementation of initial ServerInformation RQP call --- RQPv1p0Client.php DELETED --- --- NEW FILE: stackDetails.php --- <?php /** * This simple script returns some specific server information */ require('../../stackstd.php'); echo 'Properties of the current STACK server<br><br>'; echo 'Current STACK version: '.$stack_ver['release'].'<br>'; echo 'Administrator:'.'Admin User<br>'; echo 'Administrators e-mail: <a href="mailto:'.$stack_mail['admin_email'].'">'.$stack_mail['admin_email'].'</a><br>'; ?> Index: rqp_util.php =================================================================== RCS file: /cvsroot/stack/stack-1-0/scripts/rqp/Attic/rqp_util.php,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** rqp_util.php 28 Jul 2005 13:38:01 -0000 1.1.2.1 --- rqp_util.php 19 Aug 2005 09:04:57 -0000 1.1.2.2 *************** *** 91,98 **** $item = NULL; ! if ('' == trim($source)) { ! // No source supplied ! return MakeRQPFault(MakeRQPError('emptySource', 'No item source supplied.'), 'No item source supplied.'); } --- 91,100 ---- $item = NULL; ! ! // No source supplied if ('' == trim($source)) { ! ! //return MakeRQPFault(MakeRQPError('emptySource', 'No item source supplied.'), 'No item source supplied.'); ! return 'No item source supplied' } *************** *** 192,195 **** --- 194,198 ---- } + class /** * Creates an RQP style SOAP fault object. Index: RQPv1p0Server.php =================================================================== RCS file: /cvsroot/stack/stack-1-0/scripts/rqp/Attic/RQPv1p0Server.php,v retrieving revision 1.1.2.4 retrieving revision 1.1.2.5 diff -C2 -d -r1.1.2.4 -r1.1.2.5 *** RQPv1p0Server.php 17 Aug 2005 11:24:06 -0000 1.1.2.4 --- RQPv1p0Server.php 19 Aug 2005 09:04:57 -0000 1.1.2.5 *************** *** 1,782 **** ! <?php ! include("nb_easyxml_lite.php"); ! include("nb_soapfuncs.php"); ! ! include("rqp_util.php"); //Stack/RQP utility functions ! include("../../stackstd.php"); //Reqd for version info for STACK ! ! /********* Data structures used by this web service ********* ! * ! * type ServerInformationDType{ [...3217 lines suppressed...] ! $cidx = $xml->FindChildElement($idx); ! ! while($cidx != false) ! ! { ! ! $ret[] = $this->desoap_anyURI($xml, $cidx, "anyURI"); ! ! $cidx = $xml->FindNextPeer($cidx); ! ! } ! ! } ! ! ! ! } ! ?> \ No newline at end of file --- NEW FILE: stackDocs.php --- <?php /** Script responsible for reproducing documentation for the student in how to answer questions * Depends on the stack server's language - check from stackstd.php */ require('../../stackstd.php'); //Retrieve language from stackstd: $lang = $stack_defaultlang; $lang = 'en'; $action = $_GET['action']; switch ($action) { case('student'): //Retrieve the relevent docs include("{$stack_root}/lang/$lang/doc/student_input.php"); break; case('admin'): include("{$stack_root}/lang/$lang/doc/author_gettingstarted.php"); break; case('teacher'): echo("Teacher docs here"); break; default: echo("What to do when no action supplied?"); break; } //Generate HTML for a back button echo '<FORM> <INPUT type="button" value="Back to Moodle" onClick="javascript:history.back()"> </FORM>' ?> |