ÔªøThe Language Workshop: Managing and Adding Workshops ____________________________________________________ The design of these scripts is modular in order to allow for additional "workshops" created at a later time. Each workshop usually has one or two php scripts for the editing, creation, and deletion of exercises for use by the students. One script can handle the user interface to creating new exercises, and one process the input of the user and create the exercise files themselves. In addition to this, a workshop has its own folder, in the main directory of the language workshop, where it stores its files and, usually, an index.php file which generates a dynamic index of the files within for those who enter the directory directly on the web. Finally, all the php documents, and the outputed exercises should take advantage of the header.html and footer.html in the main directory (or its own). To review by exmaple: Compenents of a new workshop (example) called "myworkshop": workshop/myworkshop.php [the user interface for new files] workshop/newmyworkshop.php [an optional second script to process the input of the user] myworkshopfiles/ [all new files here] myworkshopfile/index.php [an index file to generate a list of exercises contained within] How to install a newly created workshop: In order to properly install the new scripts, they must be recognized along with the other workshops in the global list of workshops. The list of available workshops is listed in the file "includes/workshoplist.php" but may be modified most safely by running: workshop/addworkshop.php Here you must add the name of your workshop (e.g. "My Workshop"), the name of its file (e.g. myworkshop.php), the name of the directory where its files will be located (e.g. myworkshopfiles), and what extension the files it creates has (e.g. .html or .php, .jpg etc.). Once added, the preferences (preferences.php) will note the presence of your workshop and allow a link to it be displayed in the workshop index as well as available files located on the exercises page.