本文整理汇总了PHP中gen_admin_mainmenu函数的典型用法代码示例。如果您正苦于以下问题:PHP gen_admin_mainmenu函数的具体用法?PHP gen_admin_mainmenu怎么用?PHP gen_admin_mainmenu使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了gen_admin_mainmenu函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: tr
// static page messages
$tpl->assign(array('TR_CLIENT_CRONJOBS_TITLE' => tr('EasySCP - Admin/Cronjob Manager')));
if (isset($_GET['delete_cron_id']) && is_numeric($_GET['delete_cron_id'])) {
EasyCron::deleteCronJob($_GET['delete_cron_id']);
user_goto('cronjob_overview.php');
}
if (isset($_GET['status_cron_id']) && is_numeric($_GET['status_cron_id'])) {
EasyCron::toggleCronStatus($_GET['status_cron_id']);
user_goto('cronjob_overview.php');
}
/*
*
* static page messages.
*
*/
gen_admin_mainmenu($tpl, 'admin/main_menu_system_tools.tpl');
gen_admin_menu($tpl, 'admin/menu_system_tools.tpl');
gen_logged_from($tpl);
check_permissions($tpl);
if (isset($_POST['uaction']) && $_POST['uaction'] === 'add_cronjob') {
EasyCron::addCronJob();
user_goto('cronjob_overview.php');
}
$tpl->assign(array('TR_ACTIVE' => tr('Active'), 'TR_COMMAND' => tr('Command to run:'), 'TR_CRON_SCHEDULE' => tr('Cronjob schedule'), 'TR_DAY' => tr('Day(s):'), 'TR_DESCRIPTION' => tr('Description'), 'TR_EXPERT_MODE' => tr('Expert mode'), 'TR_CRON_SIMPLE' => tr('Simple schedule'), 'TR_CRON_DATETIME' => tr('Select date/time below'), 'TR_SIMPLE_SCHEDULE' => tr('Simple schedule'), 'TR_HOUR' => tr('Hour(s):'), 'TR_MIN' => tr('Minute(s):'), 'TR_MONTHS' => tr('Month(s):'), 'TR_NAME' => tr('Name'), 'TR_NO' => tr('No'), 'TR_PAGE_TITLE' => tr('EasySCP - Admin/Manage cronjobs'), 'TR_RESET' => tr('Reset'), 'TR_USER' => tr('User'), 'TR_WEEKDAYS' => tr('Weekday(s):'), 'TR_YES' => tr('Yes')));
if (isset($_GET['edit_cron_id']) && is_numeric($_GET['edit_cron_id'])) {
$rs = EasyCron::getCronJobByID($_GET['edit_cron_id']);
if ($rs->rowCount() <= 0) {
user_goto('cronjob_overview.php');
} else {
$row = $rs->fetch();
$scheduleSplit = explode(' ', $row['schedule']);
开发者ID:gOOvER,项目名称:EasySCP,代码行数:31,代码来源:cronjob_manage.php
示例2: check_login
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* @link http://www.easyscp.net
* @author EasySCP Team
*/
require '../../include/easyscp-lib.php';
check_login(__FILE__);
$cfg = EasySCP_Registry::get('Config');
$tpl = EasySCP_TemplateEngine::getInstance();
$template = 'common/ticket_closed.tpl';
// dynamic page data
if (!hasTicketSystem()) {
user_goto('index.php');
}
if (isset($_GET['psi'])) {
$start = $_GET['psi'];
} else {
$start = 0;
}
generateTicketList($tpl, $_SESSION['user_id'], $start, $cfg->DOMAIN_ROWS_PER_PAGE, 'admin', 'closed');
// static page messages
$tpl->assign(array('TR_PAGE_TITLE' => tr('EasySCP - Client/Questions & Comments'), 'TR_SUPPORT_SYSTEM' => tr('Support system'), 'TR_SUPPORT_TICKETS' => tr('Support tickets'), 'TR_STATUS' => tr('Status'), 'TR_NEW' => ' ', 'TR_ACTION' => tr('Action'), 'TR_URGENCY' => tr('Priority'), 'TR_SUBJECT' => tr('Subject'), 'TR_LAST_DATA' => tr('Last reply'), 'TR_DELETE_ALL' => tr('Delete all'), 'TR_OPEN_TICKETS' => tr('Open tickets'), 'TR_CLOSED_TICKETS' => tr('Closed tickets'), 'TR_DELETE' => tr('Delete'), 'TR_TICKET_FROM' => tr('From'), 'TR_MESSAGE_DELETE' => tr('Are you sure you want to delete %s?', true, '%s'), 'TR_EDIT' => tr('Edit')));
gen_admin_mainmenu($tpl, 'admin/main_menu_ticket_system.tpl');
gen_admin_menu($tpl, 'admin/menu_ticket_system.tpl');
gen_page_message($tpl);
if ($cfg->DUMP_GUI_DEBUG) {
dump_gui_debug($tpl);
}
$tpl->display($template);
unset_messages();
开发者ID:gOOvER,项目名称:EasySCP,代码行数:31,代码来源:ticket_closed.php
示例3: check_login
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* @link http://www.easyscp.net
* @author EasySCP Team
*/
require '../../include/easyscp-lib.php';
check_login(__FILE__);
$cfg = EasySCP_Registry::get('Config');
$tpl = EasySCP_TemplateEngine::getInstance();
$template = 'admin/manage_reseller_users.tpl';
// static page messages
update_reseller_user();
gen_user_table($tpl);
$tpl->assign(array('TR_PAGE_TITLE' => tr('EasySCP - Admin/Manage users/User assignment'), 'TR_USER_ASSIGNMENT' => tr('User assignment'), 'TR_RESELLER_USERS' => tr('Users'), 'TR_NUMBER' => tr('No.'), 'TR_MARK' => tr('Mark'), 'TR_USER_NAME' => tr('User name'), 'TR_FROM_RESELLER' => tr('From reseller'), 'TR_TO_RESELLER' => tr('To reseller'), 'TR_MOVE' => tr('Move')));
gen_admin_mainmenu($tpl, 'admin/main_menu_users_manage.tpl');
gen_admin_menu($tpl, 'admin/menu_users_manage.tpl');
gen_page_message($tpl);
if ($cfg->DUMP_GUI_DEBUG) {
dump_gui_debug($tpl);
}
$tpl->display($template);
unset_messages();
/**
* @param EasySCP_TemplateEngine $tpl
*/
function gen_user_table($tpl)
{
$cfg = EasySCP_Registry::get('Config');
$sql = EasySCP_Registry::get('Db');
$query = "\n\t\tSELECT\n\t\t\t`admin_id`, `admin_name`\n\t\tFROM\n\t\t\t`admin`\n\t\tWHERE\n\t\t\t`admin_type` = 'reseller'\n\t\tORDER BY\n\t\t\t`admin_name`\n\t";
开发者ID:gOOvER,项目名称:EasySCP,代码行数:31,代码来源:manage_reseller_users.php
示例4: check_login
require '../../include/easyscp-lib.php';
check_login(__FILE__);
$cfg = EasySCP_Registry::get('Config');
$tpl = EasySCP_TemplateEngine::getInstance();
$template = 'admin/server_statistic_day.tpl';
global $month, $year, $day;
if (isset($_GET['month']) && isset($_GET['year']) && isset($_GET['day']) && is_numeric($_GET['month']) && is_numeric($_GET['year']) && is_numeric($_GET['day'])) {
$year = $_GET['year'];
$month = $_GET['month'];
$day = $_GET['day'];
} else {
user_goto('server_statistic.php');
}
// static page messages
$tpl->assign(array('TR_PAGE_TITLE' => tr('EasySCP - Admin/Server day stats'), 'TR_SERVER_STATISTICS' => tr('Server statistics'), 'TR_SERVER_DAY_STATISTICS' => tr('Server day statistics'), 'TR_MONTH' => tr('Month:'), 'TR_YEAR' => tr('Year:'), 'TR_DAY' => tr('Day:'), 'TR_HOUR' => tr('Hour'), 'TR_WEB_IN' => tr('Web in'), 'TR_WEB_OUT' => tr('Web out'), 'TR_SMTP_IN' => tr('SMTP in'), 'TR_SMTP_OUT' => tr('SMTP out'), 'TR_POP_IN' => tr('POP3/IMAP in'), 'TR_POP_OUT' => tr('POP3/IMAP out'), 'TR_OTHER_IN' => tr('Other in'), 'TR_OTHER_OUT' => tr('Other out'), 'TR_ALL_IN' => tr('All in'), 'TR_ALL_OUT' => tr('All out'), 'TR_ALL' => tr('All'), 'TR_BACK' => tr('Back'), 'MONTH' => $month, 'YEAR' => $year, 'DAY' => $day));
gen_admin_mainmenu($tpl, 'admin/main_menu_statistics.tpl');
gen_admin_menu($tpl, 'admin/menu_statistics.tpl');
gen_page_message($tpl);
generate_page($tpl);
if ($cfg->DUMP_GUI_DEBUG) {
dump_gui_debug($tpl);
}
$tpl->display($template);
unset_messages();
/**
* @param EasySCP_TemplateEngine $tpl
*/
function generate_page($tpl)
{
$sql = EasySCP_Registry::get('Db');
global $month, $year, $day;
开发者ID:gOOvER,项目名称:EasySCP,代码行数:31,代码来源:server_statistic_day.php
示例5: check_login
*
* @link http://www.easyscp.net
* @author EasySCP Team
*/
require '../../include/easyscp-lib.php';
check_login(__FILE__);
$cfg = EasySCP_Registry::get('Config');
$tpl = EasySCP_TemplateEngine::getInstance();
$template = 'common/personal_change.tpl';
if (isset($_POST['uaction']) && $_POST['uaction'] === 'updt_data') {
update_admin_personal_data($sql, $_SESSION['user_id']);
}
gen_admin_personal_data($tpl, $_SESSION['user_id']);
// static page messages
$tpl->assign(array('TR_PAGE_TITLE' => tr('EasySCP - Admin/Change Personal Data'), 'TR_CHANGE_PERSONAL_DATA' => tr('Change personal data'), 'TR_PERSONAL_DATA' => tr('Personal data'), 'TR_FIRST_NAME' => tr('First name'), 'TR_LAST_NAME' => tr('Last name'), 'TR_COMPANY' => tr('Company'), 'TR_ZIP_POSTAL_CODE' => tr('Zip/Postal code'), 'TR_CITY' => tr('City'), 'TR_STATE' => tr('State/Province'), 'TR_COUNTRY' => tr('Country'), 'TR_STREET_1' => tr('Street 1'), 'TR_STREET_2' => tr('Street 2'), 'TR_EMAIL' => tr('Email'), 'TR_PHONE' => tr('Phone'), 'TR_FAX' => tr('Fax'), 'TR_GENDER' => tr('Gender'), 'TR_MALE' => tr('Male'), 'TR_FEMALE' => tr('Female'), 'TR_UNKNOWN' => tr('Unknown'), 'TR_UPDATE_DATA' => tr('Update data')));
gen_admin_mainmenu($tpl, 'admin/main_menu_general_information.tpl');
gen_admin_menu($tpl, 'admin/menu_general_information.tpl');
gen_page_message($tpl);
if ($cfg->DUMP_GUI_DEBUG) {
dump_gui_debug($tpl);
}
$tpl->display($template);
unset_messages();
/**
* @param EasySCP_TemplateEngine $tpl
* @param int $user_id
*/
function gen_admin_personal_data($tpl, $user_id)
{
$cfg = EasySCP_Registry::get('Config');
$sql = EasySCP_Registry::get('Db');
开发者ID:gOOvER,项目名称:EasySCP,代码行数:31,代码来源:personal_change.php
示例6: get_lostpassword_password_email
$data_2 = get_lostpassword_password_email($user_id);
if (isset($_POST['uaction']) && $_POST['uaction'] == 'apply') {
$err_message = '';
$data_1['subject'] = clean_input($_POST['subject1'], false);
$data_1['message'] = clean_input($_POST['message1'], false);
$data_2['subject'] = clean_input($_POST['subject2'], false);
$data_2['message'] = clean_input($_POST['message2'], false);
if (empty($data_1['subject']) || empty($data_2['subject'])) {
$err_message = tr('Please specify a subject!');
}
if (empty($data_1['message']) || empty($data_2['message'])) {
$err_message = tr('Please specify message!');
}
if (!empty($err_message)) {
set_page_message($err_message, 'warning');
} else {
set_lostpassword_activation_email($user_id, $data_1);
set_lostpassword_password_email($user_id, $data_2);
set_page_message(tr('Auto email template data updated!'), 'info');
}
}
// static page messages
$tpl->assign(array('TR_PAGE_TITLE' => tr('EasySCP - Admin/Lostpw email setup'), 'TR_LOSTPW_EMAIL' => tr('Lost password e-mail'), 'TR_MESSAGE_TEMPLATE_INFO' => tr('Message template info'), 'TR_MESSAGE_TEMPLATE' => tr('Message template'), 'SUBJECT_VALUE1' => clean_input($data_1['subject'], true), 'MESSAGE_VALUE1' => tohtml($data_1['message']), 'SUBJECT_VALUE2' => clean_input($data_2['subject'], true), 'MESSAGE_VALUE2' => tohtml($data_2['message']), 'SENDER_EMAIL_VALUE' => tohtml($data_1['sender_email']), 'SENDER_NAME_VALUE' => tohtml($data_1['sender_name']), 'TR_ACTIVATION_EMAIL' => tr('Activation E-Mail'), 'TR_PASSWORD_EMAIL' => tr('Password E-Mail'), 'TR_USER_LOGIN_NAME' => tr('User login (system) name'), 'TR_USER_PASSWORD' => tr('User password'), 'TR_USER_REAL_NAME' => tr('User (first and last) name'), 'TR_LOSTPW_LINK' => tr('Lost password link'), 'TR_SUBJECT' => tr('Subject'), 'TR_MESSAGE' => tr('Message'), 'TR_SENDER_EMAIL' => tr('Senders email'), 'TR_SENDER_NAME' => tr('Senders name'), 'TR_APPLY_CHANGES' => tr('Apply changes'), 'TR_BASE_SERVER_VHOST' => tr('URL to this admin panel'), 'TR_BASE_SERVER_VHOST_PREFIX' => tr('URL protocol')));
gen_admin_mainmenu($tpl, 'admin/main_menu_settings.tpl');
gen_admin_menu($tpl, 'admin/menu_settings.tpl');
gen_page_message($tpl);
if ($cfg->DUMP_GUI_DEBUG) {
dump_gui_debug($tpl);
}
$tpl->display($template);
unset_messages();
开发者ID:gOOvER,项目名称:EasySCP,代码行数:31,代码来源:settings_lostpassword.php
注:本文中的gen_admin_mainmenu函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论