removed mods directory from the ATutor codebase
[atutor.git] / mods / photo_album / admin_config.php
diff --git a/mods/photo_album/admin_config.php b/mods/photo_album/admin_config.php
deleted file mode 100644 (file)
index 4cf15dc..0000000
+++ /dev/null
@@ -1,68 +0,0 @@
-<?php\r
-/*==============================================================\r
-  Photo Album\r
- ==============================================================\r
-  Copyright (c) 2006 by Dylan Cheon & Kelvin Wong\r
-  Institute for Assistive Technology / University of Victoria\r
-  http://www.canassist.ca/                                    \r
-                                                               \r
-  This program is free software. You can redistribute it and/or\r
-  modify it under the terms of the GNU General Public License  \r
-  as published by the Free Software Foundation.                \r
- ==============================================================\r
- */\r
-// $Id:\r
-\r
-/**\r
- * @desc       This file generates the administrator course moderation config page\r
- * @author     Dylan Cheon & Kelvin Wong\r
- * @copyright  2006, Institute for Assistive Technology / University of Victoria \r
- * @link       http://www.canassist.ca/                                    \r
- * @license GNU\r
- */\r
-define('AT_INCLUDE_PATH', '../../include/');\r
-require (AT_INCLUDE_PATH.'vitals.inc.php');\r
-require (AT_INCLUDE_PATH.'header.inc.php');\r
-admin_authenticate(AT_ADMIN_PRIV_PHOTO_ALBUM);\r
-?>\r
-\r
-<?php\r
-require_once ('define.php');\r
-require_once ('HTML/Template/ITX.php');\r
-require_once ('include/data_func.php');\r
-$_SESSION['pa']['administrator_mode']=true;\r
-\r
-if (isset($_POST['submit']) && (isset($_POST['radiobutton']))){        //check whether the config moderation request was submitted\r
-       if ($_POST['radiobutton']=='make_enabled'){\r
-               modify_config_mode($_SESSION['pa']['course_id'], CONFIG_ENABLED);\r
-       } else if ($_POST['radiobutton']=='make_disabled'){\r
-               modify_config_mode($_SESSION['pa']['course_id'], CONFIG_DISABLED);\r
-       }\r
-}\r
-\r
-$template=new HTML_Template_ITX("./Template");\r
-$template->loadTemplateFile("admin_config.tpl.php");\r
-$template->setVariable("TITLE", _AT('pa_title_instructor_config'));\r
-$template->setVariable("CONFIG_NOTE", _AT('pa_note_instructor_config'));\r
-\r
-$mode=get_config_mode($_SESSION['pa']['course_id']);\r
-$template->setVariable("CONFIG_STRING", _AT('pa_tag_config_string'));\r
-if ($mode==CONFIG_ENABLED){\r
-       $template->setVariable("CONFIG_VALUE", _AT('pa_tag_config_enabled'));\r
-       $template->setVariable("CHECKED1", "checked=\"checked\"");\r
-} else {\r
-       $template->setVariable("CONFIG_VALUE", _AT('pa_tag_config_disabled'));\r
-       $template->setVariable("CHECKED2", "checked=\"checked\"");\r
-}\r
-\r
-$template->setVariable("FORM_NAME", "config_form");\r
-$template->setVariable("ACTION", $_SERVER['PHP_SELF']);\r
-$template->setVariable("RADIO_VALUE1", "make_enabled");\r
-$template->setVariable("RADIO_STRING1", _AT('yes'));\r
-$template->setVariable("RADIO_VALUE2", "make_disabled");\r
-$template->setVariable("RADIO_STRING2", _AT('no'));\r
-$template->setVariable("SUBMIT_VALUE", _AT('pa_button_config_change'));\r
-\r
-$template->show();\r
-?>\r
-<?php require_once(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file