removed mods directory from the ATutor codebase
[atutor.git] / mods / photo_album / module_uninstall.php
diff --git a/mods/photo_album/module_uninstall.php b/mods/photo_album/module_uninstall.php
deleted file mode 100644 (file)
index d62b347..0000000
+++ /dev/null
@@ -1,64 +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 installs the photo album module\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
\r
-/**\r
- * @desc the line below safe-guards this file from being accessed directly from a web browser. It will only execute if required from within an ATutor script, in our case the Module::uninstall() method.\r
- */\r
-if (!defined('AT_INCLUDE_PATH')) { exit; }\r
-if (!defined('AT_MODULE_PATH')) { exit; }\r
-//define('AT_MODULE_PATH', realpath(AT_INCLUDE_PATH.'../mods') . DIRECTORY_SEPARATOR);\r
-\r
-/********\r
- * the following code is used for removing a module-specific directory created in module_install.php.\r
- * it generates appropriate error messages to aid in its creation.\r
- */\r
-$pa_array[0]=AT_CONTENT_DIR.'photo_album';\r
-\r
-// check if the directory exists\r
-foreach ($pa_array as $directory){\r
-       if (is_dir($directory)) {\r
-               require(AT_INCLUDE_PATH.'lib/filemanager.inc.php');\r
-       \r
-               if (!clr_dir($directory))\r
-                       $msg->addError(array('MODULE_UNINSTALL', '<li>'.$directory.' can not be removed. Please manually remove it.</li>'));\r
-       }\r
-}\r
-\r
-/******\r
- * the following code checks if there are any errors (generated previously)\r
- * then uses the SqlUtility to run reverted database queries of module.sql, \r
- * ie. "create table" statement in module.sql is run as drop according table.\r
- */\r
-if (!$msg->containsErrors() && file_exists(dirname(__FILE__) . '/module.sql')) {\r
-       // deal with the SQL file:\r
-       require(AT_INCLUDE_PATH . 'classes/sqlutility.class.php');\r
-       $sqlUtility =& new SqlUtility();\r
-\r
-       /**\r
-        * the SQL file could be stored anywhere, and named anything, "module.sql" is simply\r
-        * a convention we're using.\r
-        */\r
-       $sqlUtility->revertQueryFromFile(dirname(__FILE__) . '/module.sql', TABLE_PREFIX);\r
-}\r
-\r
-?>\r