function displayLoginBanner() { $userInfo = getCurrentUserInfo(); if (isset($userInfo)) { displayWelcomeBack($userInfo); } else { displayLoginForm(); } }
include_once 'php/piute_includes.php'; session_start(); ?> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Piute Ponds and District 14</title> <link href="PiuteMasterCSS.css" rel="stylesheet" type="text/css" /> <div id="apDiv2"><img src="images/Piute_Background_Image.jpg" width="720" height="778" alt="PiutePonds-Background_Image" /></div> <div id="login"><span class="style9" id="heading1"> <?php if (showLoginBanner()) { $userInfo = getCurrentUserInfo(); if (isset($userInfo)) { displayWelcomeBack($userInfo); } else { ?> <form method='POST' action='../php/login_action.php'> <table> <tr> <td class="errorMessage" colspan="5"><?php echoErrorMessages("login"); ?> </td> </tr> <tr> <td>email:</td> <td><input type='text' name='email'></td> <td>password:</td> <td><input type='password' name='password'></td>