echo "\n<h2>" . $page_title . "</h2>"; echo get_user_input_form(NULL, $HTTP_VARS); echo format_footer_links($footer_links_r); echo _theme_footer(); } } else { //End of $HTTP_VARS['op'] checks opendb_operation_not_available(); } } } } } } } } } } } } } } else { // invalid login, so login instead. redirect_login($PHP_SELF, $HTTP_VARS); } } else { //if(is_site_enabled()) opendb_site_disabled(); } // Cleanup after begin.inc.php require_once "./include/end.inc.php";
} else { //if($HTTP_VARS['op'] == 'login') if (strlen($HTTP_VARS['uid']) > 0 && strlen($HTTP_VARS['passwd']) > 0) { $result = perform_login($HTTP_VARS); if ($result === TRUE) { if (strlen($HTTP_VARS['redirect']) > 0) { // User tried to get in with an invalid session. // We've just given her a valid one, so log it // appropriately and send a redirect to where she // really wanted to go. opendb_redirect(urldecode($HTTP_VARS['redirect'])); return; } else { opendb_redirect('welcome.php'); return; } } else { if ($result === "SITE_IS_DISABLED") { opendb_site_disabled(get_opendb_config_var('login', 'show_menu') !== FALSE); } else { // $result === FALSE show_login_form($HTTP_VARS, array('error' => get_opendb_lang_var('login_failure'), details => get_opendb_lang_var('double_check_info'))); } } } else { show_login_form($HTTP_VARS); } } } // Cleanup after begin.inc.php require_once "./include/end.inc.php";