Advertisement
Guest User

Untitled

a guest
Jul 1st, 2017
529
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.74 KB | None | 0 0
  1. <?php
  2. /*=========================
  3. Simple Login System
  4. ===========================
  5. Made by Winterpartys
  6. ===========================*/
  7. session_start();
  8. include "config.php";
  9.  
  10. if ($session){
  11. echo "<title>Winterpartys.ORG - $session</title>";
  12. }else{
  13. echo "<title>Winterpartys.ORG</title>";
  14. }
  15.  
  16. include "inc-/news.php";
  17.  
  18. ?>
  19. <head>
  20. <meta http-equiv="Content-Language" content="en-us">
  21. </head>
  22.  
  23. <body bgcolor="#C0C0C0">
  24.  
  25. <table border="0" width="100%" id="table1" bgcolor="#000000">
  26. <tr>
  27. <td>
  28. <p align="center"><b><font face="Tahoma" size="6" color="#FFFFFF">
  29. Winterpartys.ORG</font></b></td>
  30. </tr>
  31. </table>
  32. <table border="0" width="100%" id="table2" bgcolor="#000000">
  33. <tr>
  34. <td>
  35. <p align="center"><font color="#FFFFFF" face="Tahoma" size="2">Navigation bar here soon....</font></td>
  36. </tr>
  37. </table>
  38. <table border="0" width="100%" id="table3" bgcolor="#000000" height="134">
  39. <tr>
  40. <td width="165" bgcolor="#C0C0C0">
  41. <font face="Tahoma">
  42. <?php
  43. if($session&&$row['ban']==1)
  44. {
  45. echo "<font face='Tahoma' size='2'>It appears you have been user banned, please contact at webmaster@domain.com to see for changes.</font>";
  46. }
  47. elseif($session&&$session==$rowq['ip'])
  48. {
  49. echo "<font face='Tahoma' size='2'>It appears you have been ip banned, please contact at webmaster@domain.com to see for changes.</font>";
  50. }
  51. elseif($session&&$row['ban']==0)
  52. {
  53. echo"<font face='Tahoma' size='2'><b>Hello, $session!</b>
  54. <ul>
  55. <li>You have <b>".$row['coins']."</b> coins</li>
  56. <li><a href='?page=what-are-coins'>What are coins?</li>
  57. <li><a href='?page=edit'>Edit my profile</a><ul>
  58. <li><a href='?page=edit&do=pass'>Password</a></li>
  59. <li><a href='?page=edit&do=email'>Email</a></li>
  60. <li><a href='?page=edit&do=profile'>Profile</a></li>
  61. </ul></li>";
  62. if($row['rank'] == 4)
  63. {
  64. echo '<li><a href="admincp">AdminCP</a></li>';
  65. }
  66. echo" <li><a href='?page=logout'>Logout</a></li>";
  67.  
  68. }else{
  69. echo"<title>Winterpartys.ORG - Site</title><form method='POST' action='?page=login'>
  70. <p><b><font face='Tahoma' size='2'>Please login, or <a href='?page=register'>
  71. register</a>.</font></b></p>
  72. <table border='0' width='100%' id='table1'>
  73. <tr>
  74. <td width='102'><font face='Tahoma' size='2'>Username:</font></td>
  75. <td><font size='1' face='Tahoma'>
  76. <input type='text' name='user' size='20'></font></td>
  77. </tr>
  78. <tr>
  79. <td width='102'><font face='Tahoma' size='2'>Password:</font></td>
  80. <td><font size='1' face='Tahoma'>
  81. <input type='password' name='pass' size='20'></font></td>
  82. </tr>
  83. </table>
  84. <font size='1' face='Tahoma'><input type='submit' value='Submit' name='B1'></font></form>";
  85. }
  86. ?></font></td>
  87. <td bgcolor="#E8E8E8">
  88. <font face="Tahoma"><?php
  89. if ($_GET['page'] == "register"){
  90. include "inc-/register.php";
  91. }elseif($_GET['page'] == "complete"){
  92. include "inc-/complete.php";
  93. }elseif($_GET['page'] == "login"){
  94. include "inc-/login.php";
  95. }elseif($_GET['page'] == "logout"){
  96. include "inc-/logout.php";
  97. }elseif($_GET['page'] == "edit"){
  98. include "inc-/edit.php";
  99. }elseif($_GET['page'] == "what-are-coins"){
  100. include "inc-/wac.php";
  101. }else{
  102. echo '<table border="0" width="100%" id="table4">
  103. <tr>
  104. <td width="84"><b><font face="Tahoma" size="2">News Title:</font></b></td>
  105. <td><?php echo $title ?></td>
  106. </tr>
  107. <tr>
  108. <td width="84"><b><font face="Tahoma" size="2">Description:</font></b></td>
  109. <td><?php echo $text ?></td>
  110. </tr>
  111. <tr>
  112. <td width="84"><b><font face="Tahoma" size="2">Author:</font></b></td>
  113. <td><?php echo $author ?></td>
  114. </tr>
  115. <tr>
  116. <td width="84"><b><font face="Tahoma" size="1">Date:</font></b></td>
  117. <td><?php echo $date ?></td>
  118. </tr>
  119. </table>';
  120. } ?></font></td>
  121. </tr>
  122. </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement