$form['row'][1]['auth_secret'] = array('type' => 'hidden', 'value' => $_SESSION['auth_secret']); $form['row'][2]['new_pass'] = array('type' => 'password', 'fieldset' => 'change_password', 'name' => 'New Password', 'width' => '95%', 'value' => ''); $form['row'][3]['new_pass2'] = array('type' => 'password', 'fieldset' => 'change_password', 'name' => 'Retype Password', 'width' => '95%', 'value' => ''); $form['row'][10]['submit'] = array('type' => 'submit', 'name' => 'Update Password', 'icon' => 'oicon-lock-warning', 'right' => TRUE, 'value' => 'save'); echo ' <div class="col-md-6">' . PHP_EOL; print_form($form); unset($form, $i); echo ' </div>' . PHP_EOL; } // end change password ?> </div> <!-- left up row end --> <!--<div class="col-md-12">--> <?php print_authlog(array_merge($vars, array('short' => TRUE, 'pagination' => FALSE))); ?> </div> <!-- left column end --> <div class="col-md-5"> <!-- right column begin --> <?php // Begin main permissions block //if ($user_data['permission_access'] === FALSE || $user_data['permission_read'] === FALSE || $user_data['permission_admin']) //{ echo generate_box_open(array('header-border' => TRUE, 'title' => 'Permission level')); echo '<p class="text-center text-uppercase text-' . $user_data['row_class'] . ' bg-' . $user_data['row_class'] . '" style="padding: 10px; margin: 0px;"><strong>' . $user_data['subtext'] . '</strong></p>'; echo generate_box_close(); //print_error($user_data['subtext']); //} else {
<?php /** * Observium Network Management and Monitoring System * Copyright (C) 2006-2014, Adam Armstrong - http://www.observium.org * * @package observium * @subpackage webui * @author Adam Armstrong <*****@*****.**> * @copyright (C) 2006-2014 Adam Armstrong * */ ?> <h2>Observium用户管理: 认证日志</h2> <?php include "usermenu.inc.php"; if ($_SESSION['userlevel'] == '10') { // Pagination $vars['pagination'] = TRUE; print_authlog($vars); $page_title[] = '认证日志'; } else { include "includes/error-no-perm.inc.php"; } // EOF
<?php /** * Observium Network Management and Monitoring System * Copyright (C) 2006-2015, Adam Armstrong - http://www.observium.org * * @package observium * @subpackage webui * @author Adam Armstrong <*****@*****.**> * @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2016 Observium Limited * */ print_authlog(array('page' => $vars['page'], 'username' => $_SESSION['username'], 'short' => TRUE, 'header' => array('header-border' => TRUE, 'title' => 'The last 10 login attempts'))); // EOF