module.php
来自「ATutor是一个学习管理系统(LCMS/LMS), 为教师和学生建立一个网络教」· PHP 代码 · 共 41 行
PHP
41 行
<?php
if (!defined('AT_INCLUDE_PATH')) { exit; }
if (!isset($this) || (isset($this) && (strtolower(get_class($this)) != 'module'))) { exit(__FILE__ . ' is not a Module'); }
define('AT_ADMIN_PRIV_LANGUAGES', $this->getAdminPrivilege());
if (admin_authenticate(AT_ADMIN_PRIV_LANGUAGES, TRUE) || admin_authenticate(AT_ADMIN_PRIV_ADMIN, TRUE)) {
if (admin_authenticate(AT_ADMIN_PRIV_ADMIN, TRUE)) {
$this->_pages['admin/config_edit.php']['children'] = array('admin/language.php');
$this->_pages['admin/language.php']['parent'] = 'admin/config_edit.php';
} else {
$this->_pages[AT_NAV_ADMIN] = array('admin/language.php');
$this->_pages['admin/language.php']['parent'] = AT_NAV_ADMIN;
}
//admin
$this->_pages['admin/language.php']['title_var'] = 'languages';
$this->_pages['admin/language.php']['guide'] = 'admin/?p=languages.php';
$this->_pages['admin/language.php']['children'] = array('admin/language_import.php', 'admin/language_editor.php', 'admin/language_translate.php');
$this->_pages['admin/language_add.php']['title_var'] = 'add_language';
$this->_pages['admin/language_add.php']['parent'] = 'admin/language.php';
$this->_pages['admin/language_edit.php']['title_var'] = 'edit_language';
$this->_pages['admin/language_edit.php']['parent'] = 'admin/language.php';
$this->_pages['admin/language_delete.php']['title_var'] = 'delete_language';
$this->_pages['admin/language_delete.php']['parent'] = 'admin/language.php';
$this->_pages['admin/language_import.php']['title_var'] = 'import';
$this->_pages['admin/language_import.php']['parent'] = 'admin/language.php';
$this->_pages['admin/language_translate.php']['title_var'] = 'translate';
$this->_pages['admin/language_translate.php']['parent'] = 'admin/language.php';
$this->_pages['admin/language_editor.php']['title_var'] = 'editor';
$this->_pages['admin/language_editor.php']['parent'] = 'admin/language.php';
$this->_pages['admin/language_term.php']['title_var'] = 'editor';
}
?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?