2 /****************************************************************/
\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
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
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
19 define('AT_PRIV_MERLOT', $this->getPrivilege());
\r
20 define('AT_ADMIN_PRIV_MERLOT', $this->getAdminPrivilege());
\r
22 /* if this module is to be made available to students on the Home or Main Navigation. */
\r
24 $_student_tool = 'mods/merlot/index.php';
\r
25 $this->_pages['mods/merlot/add_to_links.php']['title_var'] = 'add_link';
\r
28 * add the admin page so the Userplane ID can be managed
\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
38 * student or instructor page.
\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