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
6 * assign the instructor and admin privileges to the constants.
\r
8 define('AT_PRIV_CCNET', $this->getPrivilege());
\r
9 define('AT_ADMIN_PRIV_CCNET', $this->getAdminPrivilege());
\r
12 * if this module is to be made available to students on the Home or Main Navigation.
\r
14 $_student_tool = 'mods/ccnet/index.php';
\r
17 * add the admin pages when needed.
\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
26 * instructor Manage section:
\r
28 $this->_pages['mods/ccnet/index.php']['title_var'] = 'ccnet';
\r
29 $this->_pages['mods/ccnet/index.php']['parent'] = 'tools/index.php';
\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