} display_toolbar($buttons); //display any text generated by functions called before header echo $status; /********************************************************************** * Section 3: perform action *********************************************************************/ // only these actions can be done if not logged in switch ($action) { case 'new-account': // get rid of session variables session_destroy(); display_account_form(); break; case 'store-account': if (store_account($_SESSION['normal_user'], $_SESSION['admin_user'], $_POST)) { $action = ''; } if (!check_logged_in()) { display_login_form($action); } break; case 'log-in': case '': if (!check_logged_in()) { display_login_form($action); } break; case 'show-all-lists': display_items('All Lists', get_all_lists(), 'information', 'show-archive', ''); break;
} display_toolbar($buttons); //display any text generated by functions called before header echo $status; /********************************************************************** * Section 3: perform action *********************************************************************/ // only these actions can be done if not logged in switch ($action) { case 'new-account': // get rid of session variables session_destroy(); display_account_form(); break; case 'store-account': if (store_account($HTTP_SESSION_VARS['normal_user'], $HTTP_SESSION_VARS['admin_user'], $HTTP_POST_VARS)) { $action = ''; } if (!check_logged_in()) { display_login_form($action); } break; case 'log-in': case '': if (!check_logged_in()) { display_login_form($action); } break; case 'show-all-lists': display_items('All Lists', get_all_lists(), 'information', 'show-archive', ''); break;