c6fa2703f1b0f2b9afdc2d5c0249458d61285103
[atutor.git] / mods / tle / module_install.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::install() method.\r
6  */\r
7 if (!defined('AT_INCLUDE_PATH')) { exit; }\r
8 \r
9 $_course_privilege = AT_PRIV_ADMIN;\r
10 $_admin_privilege  = FALSE;\r
11 \r
12 \r
13 if (file_exists(dirname(__FILE__) . '/module.sql')) {\r
14         require(AT_INCLUDE_PATH . 'classes/sqlutility.class.php');\r
15         $sqlUtility =& new SqlUtility();\r
16 \r
17         $sqlUtility->queryFromFile(dirname(__FILE__) . '/module.sql', TABLE_PREFIX);\r
18 }\r
19 \r
20 ?>