b10c63bbebe6cbc0f4742fcb6d364956366da05e
[atutor.git] / mods / adobe_connect / module.php
1 <?php
2
3 if (!defined('AT_INCLUDE_PATH')) { exit;}
4
5 if (!isset($this) ||
6    (isset($this) && (strtolower(get_class($this) != 'Module')))) {
7     exit(__FILE__ . ' is not a module');
8 }
9
10
11 define('AT_PRIV_ADOBE_CONNECT', $this->getPrivilege());
12 define('AT_ADMIN_PRIV_ADOBE_CONNECT', $this->getAdminPrivilege());
13
14
15 $_student_tool = 'mods/adobe_connect/index.php';
16
17
18 // admin
19 if (admin_authenticate(AT_ADMIN_PRIV_ADOBE_CONNECT, TRUE) || admin_authenticate(AT_ADMIN_PRIV_ADMIN, TRUE)) {
20         $this->_pages[AT_NAV_ADMIN] = array('mods/adobe_connect/index_admin.php');
21         $this->_pages['mods/adobe_connect/index_admin.php']['title_var'] = 'adobe_connect';
22         $this->_pages['mods/adobe_connect/index_admin.php']['parent']    = AT_NAV_ADMIN;
23 }
24
25
26 // course -> home
27 $this->_pages['mods/adobe_connect/index.php']['title_var'] = 'adobe_connect';
28 $this->_pages['mods/adobe_connect/index.php']['img']       = 'mods/adobe_connect/adobe_connect.gif';
29
30
31 ?>