changed git call from https to git readonly
[atutor.git] / mods / ccnet / module.php
1 <?php\r
2 if (!defined('AT_INCLUDE_PATH')) { exit; }\r
3 if (!isset($this) || (isset($this) && (strtolower(get_class($this)) != 'module'))) { exit(__FILE__ . ' is not a Module'); }\r
4 \r
5 /*******\r
6  * assign the instructor and admin privileges to the constants.\r
7  */\r
8 define('AT_PRIV_CCNET',       $this->getPrivilege());\r
9 define('AT_ADMIN_PRIV_CCNET', $this->getAdminPrivilege());\r
10 \r
11 /*******\r
12  * if this module is to be made available to students on the Home or Main Navigation.\r
13  */\r
14 $_student_tool = 'mods/ccnet/index.php';\r
15 \r
16 /*******\r
17  * add the admin pages when needed.\r
18  */\r
19 if (admin_authenticate(AT_ADMIN_PRIV_CCNET, TRUE) || admin_authenticate(AT_ADMIN_PRIV_ADMIN, TRUE)) {\r
20         $this->_pages[AT_NAV_ADMIN] = array('mods/ccnet/ccnet.php');\r
21         $this->_pages['mods/ccnet/ccnet.php']['parent']    = AT_NAV_ADMIN;\r
22         $this->_pages['mods/ccnet/ccnet.php']['title_var'] = 'ccnet';\r
23 }\r
24 \r
25 /*******\r
26  * instructor Manage section:\r
27  */\r
28 $this->_pages['mods/ccnet/index.php']['title_var'] = 'ccnet';\r
29 $this->_pages['mods/ccnet/index.php']['parent']   = 'tools/index.php';\r
30 \r
31 \r
32 /*******\r
33  * student page.\r
34  */\r
35 $this->_pages['mods/ccnet/index.php']['title_var'] = 'ccnet';\r
36 $this->_pages['mods/ccnet/index.php']['img']       = 'mods/ccnet/ccnet_logo.jpg';\r
37 \r
38 ?>