Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!--<?php
- if($action == "showLoginForm" || empty($action)) {
- include("header.php");
- include("links.php");
- include("functions.inc.php");
- ?>
- <DIV ID='loginForm' STYLE="width: 80%;"><BR>
- <BR>
- <DIV ID='errorDiv'
- style='width: 40%; align: center; color: red; text-align: center;'></div>
- <BR>
- <FORM ACTION='login.php?action=processLogin' METHOD='POST' ID='loginForm' >
- <TABLE CLASS='logintable' width='40%' ALIGN='center'>
- <TR>
- <TH COLSPAN='2' align='center'
- style='vertical-align: top; margin-top: 0px; padding-top: 0px; color: white; background-color: red;'><B>Login</B></th>
- </TR>
- <TR>
- <TD align='right' width='20%'>Username:</td>
- <TD align='left'><input type='text' name='username' id='username'
- style='width: 80%;'></td>
- </tr>
- <TR>
- <TD align='right' width='20%'>Password:</td>
- <TD align='left'><input type='password' id='password' name='password'
- style='width: 80%;'>
- </TR>
- <TR>
- <TD COLSPAN='2' align='center'><input type='image'
- src='images/btn-login-red.gif'></td>
- </tr>
- </table>
- </form>
- </div>
- <?
- br(20);
- include("footer.php");
- }
- if($action == "processLogin") {
- include("functions.inc.php");
- print("Logging in...");
- $c = do_Login($_POST['username'], $_POST['password']);
- if($c == 1) {
- print("<CENTER>Logged in!");
- }else {
- print("<CENTER>This sux</CENTER>");
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement