changed git call from https to git readonly
[atutor.git] / mods / merlot / module.php
1 <?php\r
2 /****************************************************************/\r
3 /* ATutor                                                                                                               */\r
4 /****************************************************************/\r
5 /* Copyright (c) 2002-2006 by Greg Gay & Joel Kronenberg        */\r
6 /* Adaptive Technology Resource Centre / University of Toronto  */\r
7 /* http://atutor.ca                                                                                             */\r
8 /*                                                              */\r
9 /* This program is free software. You can redistribute it and/or*/\r
10 /* modify it under the terms of the GNU General Public License  */\r
11 /* as published by the Free Software Foundation.                                */\r
12 /****************************************************************/\r
13 // $Id: merlot.php 6614 2006-09-27 19:32:29Z greg $\r
14 \r
15 \r
16 if (!defined('AT_INCLUDE_PATH')) { exit; }\r
17 if (!isset($this) || (isset($this) && (strtolower(get_class($this)) != 'module'))) { exit(__FILE__ . ' is not a Module'); }\r
18 \r
19 define('AT_PRIV_MERLOT',       $this->getPrivilege());\r
20 define('AT_ADMIN_PRIV_MERLOT', $this->getAdminPrivilege());\r
21 \r
22 /* if this module is to be made available to students on the Home or Main Navigation.  */\r
23 \r
24 $_student_tool = 'mods/merlot/index.php';\r
25 $this->_pages['mods/merlot/add_to_links.php']['title_var'] = 'add_link';\r
26 \r
27 /*******\r
28  * add the admin page so the Userplane ID can be managed\r
29  */\r
30 \r
31 if (admin_authenticate(AT_ADMIN_PRIV_USERPLANE, TRUE) || admin_authenticate(AT_ADMIN_PRIV_ADMIN, TRUE)) {\r
32         $this->_pages[AT_NAV_ADMIN] = array('mods/merlot/index_admin.php');\r
33         $this->_pages['mods/merlot/index_admin.php']['title_var'] = 'merlot';\r
34         $this->_pages['mods/merlot/index_admin.php']['parent']    = AT_NAV_ADMIN;\r
35 }\r
36 \r
37 /*******\r
38  * student or instructor page.\r
39  */\r
40 $this->_pages['mods/merlot/index.php']['title_var'] = 'merlot';\r
41 $this->_pages['mods/merlot/index.php']['img'] = 'mods/merlot/merlot.gif';\r
42 \r
43 ?>