Advertisement
Guest User

Untitled

a guest
May 6th, 2017
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.35 KB | None | 0 0
  1. <!--<?php
  2. if($action == "showLoginForm" || empty($action)) {
  3.     include("header.php");
  4.     include("links.php");
  5.     include("functions.inc.php");
  6.     ?>
  7. <DIV ID='loginForm' STYLE="width: 80%;"><BR>
  8. <BR>
  9. <DIV ID='errorDiv'
  10.     style='width: 40%; align: center; color: red; text-align: center;'></div>
  11. <BR>
  12. <FORM ACTION='login.php?action=processLogin' METHOD='POST' ID='loginForm' >
  13. <TABLE CLASS='logintable' width='40%'  ALIGN='center'>
  14.     <TR>
  15.         <TH COLSPAN='2' align='center'
  16.             style='vertical-align: top; margin-top: 0px; padding-top: 0px; color: white; background-color: red;'><B>Login</B></th>
  17.     </TR>
  18.     <TR>
  19.         <TD align='right' width='20%'>Username:</td>
  20.         <TD align='left'><input type='text' name='username' id='username'
  21.             style='width: 80%;'></td>
  22.     </tr>
  23.     <TR>
  24.         <TD align='right' width='20%'>Password:</td>
  25.         <TD align='left'><input type='password' id='password' name='password'
  26.             style='width: 80%;'>
  27.    
  28.     </TR>
  29.     <TR>
  30.         <TD COLSPAN='2' align='center'><input type='image'
  31.             src='images/btn-login-red.gif'></td>
  32.     </tr>
  33. </table>
  34. </form>
  35.  
  36. </div>
  37.  
  38.     <?
  39.     br(20);
  40.     include("footer.php");
  41. }
  42.  
  43. if($action == "processLogin") {
  44.     include("functions.inc.php");
  45.     print("Logging in...");
  46.     $c = do_Login($_POST['username'], $_POST['password']);
  47.     if($c == 1) {
  48.             print("<CENTER>Logged in!");
  49.     }else {
  50.         print("<CENTER>This sux</CENTER>");
  51.     }
  52. }
  53.  
  54.  
  55. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement