3 * doesn't allow this file to be loaded with a browser.
\r
5 if (!defined('AT_INCLUDE_PATH')) { exit; }
\r
8 * this file must only be included within a Module obj
\r
10 if (!isset($this) || (isset($this) && (strtolower(get_class($this)) != 'module'))) { exit(__FILE__ . ' is not a Module'); }
\r
13 * assign the instructor and admin privileges to the constants.
\r
16 define('AT_ADMIN_PRIV_USERPLANE', $this->getAdminPrivilege());
\r
19 * create a side menu box/stack.
\r
21 $this->_stacks['userplane'] = array('title_var'=>'userplane', 'file'=>AT_INCLUDE_PATH.'../mods/userplane/side_menu.inc.php');
\r
24 * if this module is to be made available to students on the Home or Main Navigation.
\r
26 $_student_tool = 'mods/userplane/index.php';
\r
29 * add the admin page so the Userplane ID can be managed
\r
32 if (admin_authenticate(AT_ADMIN_PRIV_USERPLANE, TRUE) || admin_authenticate(AT_ADMIN_PRIV_ADMIN, TRUE)) {
\r
33 $this->_pages[AT_NAV_ADMIN] = array('mods/userplane/index_admin.php');
\r
34 $this->_pages['mods/userplane/index_admin.php']['title_var'] = 'userplane';
\r
35 $this->_pages['mods/userplane/index_admin.php']['parent'] = AT_NAV_ADMIN;
\r
41 $this->_pages['mods/userplane/index.php']['title_var'] = 'userplane';
\r
42 $this->_pages['mods/userplane/index.php']['img'] = 'mods/userplane/userplane.jpg';
\r
44 // You may use the ATutor community ID (e2405db9bcd4f802ffed98a4d1a15ac3) but you should register your own
\r
45 // at http://www.userplane.com/buy/index.cfm
\r