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
5 define('AT_ADMIN_PRIV_CATEGORIES', $this->getAdminPrivilege());
\r
7 if (admin_authenticate(AT_ADMIN_PRIV_CATEGORIES, TRUE) || admin_authenticate(AT_ADMIN_PRIV_ADMIN, TRUE)) {
\r
8 if (admin_authenticate(AT_ADMIN_PRIV_ADMIN, TRUE)) {
\r
9 $this->_pages['admin/courses.php']['children'] = array('admin/course_categories.php');
\r
10 $this->_pages['admin/course_categories.php']['parent'] = 'admin/courses.php';
\r
12 $this->_pages[AT_NAV_ADMIN] = array('admin/course_categories.php');
\r
13 $this->_pages['admin/course_categories.php']['parent'] = AT_NAV_ADMIN;
\r
16 $this->_pages['admin/course_categories.php']['title_var'] = 'cats_categories';
\r
17 $this->_pages['admin/course_categories.php']['guide'] = 'admin/?p=categories.php';
\r
18 $this->_pages['admin/course_categories.php']['children'] = array('admin/create_category.php');
\r
20 $this->_pages['admin/create_category.php']['title_var'] = 'create_category';
\r
21 $this->_pages['admin/create_category.php']['parent'] = 'admin/course_categories.php';
\r
23 $this->_pages['admin/edit_category.php']['title_var'] = 'edit_category';
\r
24 $this->_pages['admin/edit_category.php']['parent'] = 'admin/course_categories.php';
\r
26 $this->_pages['admin/delete_category.php']['title_var'] = 'delete_category';
\r
27 $this->_pages['admin/delete_category.php']['parent'] = 'admin/course_categories.php';
\r