Advertisement
Guest User

index.php

a guest
Feb 10th, 2011
315
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.27 KB | None | 0 0
  1. <?php
  2. include_once ('./layout.css');
  3. if (isset($_POST['submitlog']))
  4. {
  5. $username = $_POST['uname'];
  6. $pass = $_POST['password'];
  7. }
  8. ?>
  9. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  10. <html lang="en">
  11. <head>
  12. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  13. <title>JFB Systems</title>
  14. <script type="text/javascript" src="wpscripts/jsValidation.js"></script>
  15. <script type="text/javascript">
  16. <!--
  17. function validate_form_1( form )
  18. {
  19. if( ltrim(rtrim(form.elements['uname'].value,' '),' ')=="" ) { alert("Please enter your username."); form.elements['uname'].focus(); return false; }
  20. if( ltrim(rtrim(form.elements['password'].value,' '),' ')=="" ) { alert("Please enter your username."); form.elements['password'].focus(); return false; }
  21. return true;
  22. }
  23. -->
  24. </script>
  25. <div id="masthead">
  26. <div id="banner-right"></div>
  27. <div id="banner-left"></div>
  28. <div id="banner-center"></div>
  29. </div>
  30.  
  31. </head>
  32. <body class="both" text="#000000" style="background-color:#ffffff; text-align:center; height:800px;">
  33.  
  34. <div style="background-color:transparent;text-align:left;margin-left:auto;margin-right:auto;position:relative;width:900px;height:800px;">
  35. <!-- Navigation Menu -->
  36. <div id="menu" style="position:absolute; left:430px;; top:44px; width:530px; height:51px; z-index:1;"><span class="Body-Navlist">
  37. <ul id="navlist">
  38. <li id="active">
  39. <a href="./">Home</a></li>
  40. <li><a href="./tools.php">Tools</a></li>
  41. <li><a href="./scripts.php">Scripts</a></li>
  42. <li><a href="./portfolio.php">Portfolio</a></li>
  43. <?php
  44. if (isset($_COOKIE['firstname']) AND (substr($_SERVER['PHP_SELF'], -10) != './logout.php')) {
  45. echo '<li><a href="./logout.php">Logout</a></li>
  46. ';
  47. } else {
  48. echo '<li><a href="./register.php">Register</a></li>
  49.  
  50. ';
  51. }
  52. ?>
  53. <li><a href='./contact.php'>Contact</a></li>
  54. </ul>
  55. </span>
  56. </div>
  57. <!-- end -->
  58. <!-- Image layout start -->
  59. <div style="position:absolute; left:35px; top:10px; width:431px; height:72px; z-index:1;">
  60. <img src="wpimages/header.png" width="431px" height="72px" border="0" alt="JFB Systems" ></div>
  61.  
  62. <div style="position:absolute; left:30px; top:79px; width:821px; height:701px z-index:1;">
  63. <img src="wpimages/m1.png" width="821px" height="701px" border="0.5px" ></div>
  64.  
  65. <div style="position:absolute; left:50px; top:104px; width:324px; height:646px; z-index:1;">
  66. <img src="wpimages/section1.png" width="324px" height="646px" border="0" ></div>
  67.  
  68. <div style="position:absolute; left:400px; top:104px; width:431px; height:388px; z-index:1;">
  69. <img src="wpimages/section2.png" width="431px" height="388px" border="0" ></div>
  70.  
  71. <div style="position:absolute; left:400px; top:518px; width:431px; height:227px; z-index:1;">
  72. <img src="wpimages/section3.png" width="431px" height="232px" border="0" ></div>
  73. <!-- end -->
  74. <!-- Welcome section -->
  75. <div id="txt_4" style="position:absolute; left:67px; top:109px; width:97px; height:26px;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box; overflow:hidden; z-index:1;">
  76. <p class="Body-title-P"<label for ="title_login"><span class="Body-title-T"><b>Welcome</b></span</label></p>
  77. </div>
  78. <!-- end -->
  79. <!-- Recent Updates -->
  80. <div id="txt_5" style="position:absolute; left:415px; top:109px; width:160px; height:26px;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box; overflow:hidden; z-index:1;">
  81. <p class="Body-title-P"<label for ="title_login"><span class="Body-title-T"><b>Recent Updates</b></span</label></p>
  82. </div>
  83.  
  84. <!-- end -->
  85.  
  86. <!-- Image layout login/account section-->
  87. <div id="txt_3" style="position:absolute; left:415px; top:523px; width:97px; height:26px;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box; overflow:hidden; z-index:1;">
  88. <p class="Body-title-P"<label for ="title_login"><span class="Body-title-T"><b>Login</b></span</label></p>
  89. </div>
  90. <form id="form_1" name="login1" onSubmit="return validate_form_1(this)" action="logged.php" method="post" target="_self" enctype="application/x-www-form-urlencoded" style="margin:0px;">
  91. <div id="txt_1" style="position:absolute; left:467px; top:570px; width:97px; height:16px;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box; overflow:hidden; z-index:1;">
  92. <p class="Body-text-P"><label for="edit_1"><span class="Body-text-T">Username</span></label></p>
  93. </div>
  94. <div style="position:absolute; left:550px; top:565px; width:150px; height:22px; text-align:left; z-index:1;">
  95. <input type="text" id="edit_1" name="uname" size="20" style="width:150px;" maxlength="50" value="">
  96. </div>
  97. <div id="txt_2" style="position:absolute; left:467px; top:605px; width:101px; height:16px;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box; overflow:hidden; z-index:1;">
  98. <p class="Body-text-P"><label for="edit_2"><span class="Body-text-T">Password</span></label></p>
  99. </div>
  100. <div style="position:absolute; left:550px; top:600px; width:150px; height:22px; text-align:left; z-index:1;">
  101. <input type="password" id="edit_2" name="password" size="20" style="width:150px;" maxlength="100" value="">
  102. </div>
  103. <div style="position:absolute; left:547px; top:635px; width:81px; height:22px; text-align:left; z-index:1;">
  104. <input type="submit" name="submit" value="Submit">
  105. <input type="hidden" name="submitlog" value="TRUE">
  106. </div>
  107. </form>
  108.  
  109. <div style="position:absolute; left:467px; top:684px; width:286px; height:154px; z-index:1;">
  110. <div id="frag_3" style="text-align:left;">
  111. <?php
  112. include_once ("config.php");
  113. if(isset($_COOKIE['firstname'])) //if not cookie present, redirect the user
  114. {
  115. echo "<p class='Body-text-P'><span class='Body-text-T'>You are now logged in, <b>".$_COOKIE['firstname']." ".$_COOKIE['lastname']."</b></p></span>";
  116. } else {
  117. echo '<p class="Body-text-P"><span class="Body-text2-T">You are not logged in at this current time. Please login or register.</p></span>';
  118. }
  119. ?>
  120. </div></div>
  121. <!-- end -->
  122. <!-- Copyright -->
  123. <div id="txt_1" style="position:absolute; left:122px; top:780px; width:656px; height:23px;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box; overflow:hidden;">
  124. <p class="Body-small-P"><span class="Body-small-T">Copyright © All rights reserved. JFB Systems.</span></p>
  125. </div>
  126. <!-- end -->
  127.  
  128. </div>
  129. </body>
  130. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement