changed git call from https to git readonly
[atutor.git] / mods / openmeetings / 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  * Note: the many options for these variables are used to decrease confusion.\r
10  *       TRUE | FALSE | 1 will be the convention.\r
11  *\r
12  * $_course_privilege\r
13  *     specifies the type of instructor privilege this module uses.\r
14  *     set to empty | FALSE | 0   to disable any privileges.\r
15  *     set to 1 | AT_PRIV_ADMIN   to use the instructor only privilege.\r
16  *     set to TRUE | 'new'        to create a privilege specifically for this module:\r
17  *                                will make this module available as a student privilege.\r
18  *\r
19  * $_admin_privilege\r
20  *    specifies the type of ATutor administrator privilege this module uses.\r
21  *    set to FALSE | AT_ADMIN_PRIV_ADMIN   to use the super administrator only privilege.\r
22  *    set to TRUE | 'new'                  to create a privilege specifically for this module:\r
23  *                                         will make this module available as an administrator privilege.\r
24  *\r
25  *\r
26  * $_cron_interval\r
27  *    if non-zero specifies in minutes how often the module's cron job should be run.\r
28  *    set to 0 or not set to disable.\r
29  */\r
30 $_course_privilege = TRUE; // possible values: FALSE | AT_PRIV_ADMIN | TRUE\r
31 $_admin_privilege  = TRUE; // possible values: FALSE | TRUE\r
32 \r
33 \r
34 if (!$msg->containsErrors() && file_exists(dirname(__FILE__) . '/module.sql')) {\r
35         // deal with the SQL file:\r
36         require(AT_INCLUDE_PATH . 'classes/sqlutility.class.php');\r
37         $sqlUtility =& new SqlUtility();\r
38 \r
39         /*\r
40          * the SQL file could be stored anywhere, and named anything, "module.sql" is simply\r
41          * a convention we're using.\r
42          */\r
43         $sqlUtility->queryFromFile(dirname(__FILE__) . '/module.sql', TABLE_PREFIX);\r
44 }\r
45 \r
46 ?>