From: pkiddie <pk...@us...> - 2005-09-01 13:53:51
|
Update of /cvsroot/stack/stack-1-0/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16848/scripts Modified Files: stackAuthor.php stackDatabase.php Log Message: Latest iteration of HTTP 1.1 code to ensure IIS compatibility Echo'ing of authoring form to buffer if accessing function remotely new stackRQP library, parses form fields returned from RQP client Index: stackDatabase.php =================================================================== RCS file: /cvsroot/stack/stack-1-0/scripts/stackDatabase.php,v retrieving revision 1.39 retrieving revision 1.40 diff -C2 -d -r1.39 -r1.40 *** stackDatabase.php 30 Aug 2005 14:46:54 -0000 1.39 --- stackDatabase.php 1 Sep 2005 13:50:18 -0000 1.40 *************** *** 666,669 **** --- 666,670 ---- global $stackQuestion,$stack_mysql; + $query = ""; foreach ($stackQuestion as $qfield => $val) { if ('meta' == $val['type']) { *************** *** 1388,1392 **** $quiz_list = NULL; $quiz_fields = array_keys($stackQuiz); ! foreach ($quiz_fields as $val) { $query .= ' ,'.$val; --- 1389,1394 ---- $quiz_list = NULL; $quiz_fields = array_keys($stackQuiz); ! $query = ''; ! foreach ($quiz_fields as $val) { $query .= ' ,'.$val; Index: stackAuthor.php =================================================================== RCS file: /cvsroot/stack/stack-1-0/scripts/stackAuthor.php,v retrieving revision 1.37 retrieving revision 1.38 diff -C2 -d -r1.37 -r1.38 *** stackAuthor.php 30 Aug 2005 18:30:19 -0000 1.37 --- stackAuthor.php 1 Sep 2005 13:50:18 -0000 1.38 *************** *** 94,97 **** --- 94,100 ---- global $stackOptions; + if ($remoteCaller) + ob_start(); + echo "<table cellpadding='4'><tr> <td> <b>".get_string('stackQuestion_questionOptions','stack')."</b> </td> *************** *** 123,126 **** --- 126,135 ---- echo "\n</table>\n\n\n"; + + if ($remoteCaller) { + $html = ob_get_contents(); + ob_end_flush(); + return $html; + } } *************** *** 202,206 **** //For use by RQP - buffer these echo's ! ob_start(); // hidden metadata --- 211,216 ---- //For use by RQP - buffer these echo's ! if($remoteCaller) ! ob_start(); // hidden metadata *************** *** 397,411 **** $html = ob_get_contents(); ! if (!$remoteCaller) { ob_end_flush(); ! } ! //Do not ask server to display options, waste of processor power ! else { ! ob_end_clean(); } - - return $html; - } // end of edit_form_table --- 407,420 ---- $html = ob_get_contents(); ! /*if (!$remoteCaller) { ob_end_flush(); ! }*/ ! if ($remoteCaller) ! { ! $html = ob_get_contents(); ! ob_end_clean(); ! return $html; } } // end of edit_form_table |