function access_denied($p_url = null) { if (null === $p_url) { global $g_logout; $p_url = $g_logout; } print_html_top(); print_head_top(); print_title(config_get('window_title')); print_css(config_get('css_inc_file')); print_head_bottom(); print_body_top(); print_header(config_get('page_title')); print_top_page(config_get('top_page_inc')); echo '<div class="warning">'; echo '<div align="center">Access Denied<br /><br />'; print_bracket_link($p_url, lang_get('proceed')); print '</div></div>'; print_bottom_page(config_get('bottom_page_inc')); print_footer(__FILE__); print_body_bottom(); print_html_bottom(); exit; }
# -------------------------------------------------------- # $Id: login_page.php,v 1.22 2002/09/22 04:17:38 vboctor Exp $ # -------------------------------------------------------- require_once 'core' . DIRECTORY_SEPARATOR . 'api.php'; ### Check to see if already logged in if (isset($g_string_cookie_val) && !empty($g_string_cookie_val)) { login_cookie_check($g_admin_page); } $f_msg = gpc_get_string('f_msg', ''); print_html_top(); print_head_top(); print_title($g_window_title); print_css($g_css_inc_file); print_meta_inc($g_meta_inc_file); print_head_bottom(); print_body_top(); print_header($g_page_title); print_top_page($g_top_page_inc); if ($f_msg === 'error') { echo <<<EOT \t\t<div class="error" align="center"> \t\t\t<strong>ERROR:</strong> Unauthorised access for supplied user name and password. \t\t</div> EOT; } # Warning, if plain passwords are selected if (config_get('auth_type') == AUTH_PLAIN) { echo <<<EOT \t\t<div class="warning" align="center"> \t\t\t<strong>WARNING:</strong> Plain password authentication is used, this will expose your passwords to administrators. \t\t</div>