[Aimmath-commit] moodle/mod/math_assignment lib.php,1.27,1.28
Brought to you by:
gustav_delius,
npstrick
From: <gus...@us...> - 2003-09-29 02:36:28
|
Update of /cvsroot/aimmath/moodle/mod/math_assignment In directory sc8-pr-cvs1:/tmp/cvs-serv29069/mod/math_assignment Modified Files: lib.php Log Message: taken out more unwanted links Index: lib.php =================================================================== RCS file: /cvsroot/aimmath/moodle/mod/math_assignment/lib.php,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -d -r1.27 -r1.28 *** lib.php 28 Sep 2003 11:57:39 -0000 1.27 --- lib.php 28 Sep 2003 15:23:07 -0000 1.28 *************** *** 662,665 **** --- 662,672 ---- // remove Options section (from both Subject and Quiz administration) $out = preg_replace("/<a name=\"Options\"[\s\S]*?<hr noshade=\"true\" \/>/","",$out); + // remove Find student section from Subject administration + $out = preg_replace("/<a name=\"FindStudent\"[\s\S]*?<hr noshade=\"true\" \/>/","",$out); + + // Remove unwanted links + $unwanted = array(">Download<",">Browse source<",">Edit home page<",">Download results<", + ">Edit register<",">Student details<"); + $out = str_replace($unwanted,"><",$out); // covert the URLs *************** *** 689,692 **** --- 696,700 ---- $out = preg_replace("/<a(?:\s[^<>]*?|)\shref=[^<>]*>New Quiz<\/a>/i", "", $out); + /* // modify download links $commonpostdata = ""; *************** *** 721,724 **** --- 729,733 ---- $out = preg_replace("/<\/span>/i", "", $out); $out = preg_replace("/(?<=<)(\w*(?:\s[^<>]*?|))\sclass=(?(?=\")\"[^\"<>]*?\"(?=\W)|\S*?(?=>))/i", "\\1", $out); + */ ////// HACK - sort out non-xml complient AIM output |