changed git call from https to git readonly
[atutor.git] / mods / flowplayer / module_install.php
1 <?php\r
2 /**\r
3  * @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::install() method.\r
4  */\r
5 if (!defined('AT_INCLUDE_PATH')) { exit; }\r
6 \r
7 /**\r
8  * the following code checks if there are any errors (generated previously)\r
9  * then uses the SqlUtility to run any database queries it needs, ie. to create\r
10  * its own tables.\r
11  */\r
12 if (!$msg->containsErrors() && file_exists(dirname(__FILE__) . '/module.sql')) {\r
13         // deal with the SQL file:\r
14         require(AT_INCLUDE_PATH . 'classes/sqlutility.class.php');\r
15         $sqlUtility =& new SqlUtility();\r
16 \r
17         /**\r
18          * the SQL file could be stored anywhere, and named anything, "module.sql" is simply\r
19          * a convention we're using.\r
20          */\r
21         $sqlUtility->queryFromFile(dirname(__FILE__) . '/module.sql', TABLE_PREFIX);\r
22 }\r
23 \r
24 ?>