## Forum archive 2000-2006

### Zbigniew Fiedorowicz - profBuildProblemSetPage.pl bug fix

by Arnold Pizer -
Number of replies: 0
 profBuildProblemSetPage.pl bug fix topic started 7/30/2001; 11:29:01 AMlast post 7/30/2001; 11:29:01 AM
 Zbigniew Fiedorowicz - profBuildProblemSetPage.pl bug fix  7/30/2001; 11:29:01 AM (reads: 614, responses: 0) In the current version of WeBWorK the editting of problem set header files is broken. The "Build Problem Set" page only allows you to edit header files which are located in the top level of the course templates directory. However these header files are usually located in the subdirectories associated with a given problem set. This misfeature is easy to fix. In the script profBuildProblemSetPage.pl find the line starting print heading('editSetHead'... and then a couple of lines down, replace the line $cgi->popup_menu(-name=>'filename', ... with the following line:$cgi->textfield(-name=>'filename', -size => 45, -value=> "", -override=>1), "\n", I also found it convenient to let this item allow the editting of the motd.txt (Message of the Day for the course) as well as the course homepage ../html/index.html. This requires a few additional minor changes in the script profEditCourseFiles.pl. You need to allow the editting of files with suffixes "txt" and "html" in addition to the default "pg", and also override the security feature which disallows saving files in directories outside the course templates directory. To preserve security, only give an exemption to the explicit filename "../html/index.html". These changes allow WeBWorK instructors to manage their course without shell access to the WeBWorK server. Zig Fiedorowicz <| Post or View Comments |>