changed git call from https to git readonly
[atutor.git] / mods / phpmyadmin / module_uninstall.php
1 <?php\r
2 /*******\r
3  * the line below safe-guards this file from being accessed directly from\r
4  * a web browser. It will only execute if required from within an ATutor script,\r
5  * in our case the Module::uninstall() method.\r
6  */\r
7 if (!defined('AT_INCLUDE_PATH')) { exit; }\r
8 \r
9 if (!$msg->containsErrors() && file_exists(dirname(__FILE__) . '/module.sql')) {\r
10         // deal with the SQL file:\r
11         require(AT_INCLUDE_PATH . 'classes/sqlutility.class.php');\r
12         $sqlUtility = new SqlUtility();\r
13 \r
14         /*\r
15          * the SQL file could be stored anywhere, and named anything, "module.sql" is simply\r
16          * a convention we're using.\r
17          */\r
18         $sqlUtility->revertQueryFromFile(dirname(__FILE__) . '/module.sql', TABLE_PREFIX);\r
19 }\r
20 \r
21 ?>