Advertisement
Guest User

Untitled

a guest
Jul 11th, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.85 KB | None | 0 0
  1. <?php
  2.  
  3. require_once("libs/functions.php");
  4. require_once("libs/AccountData.class.php");
  5. require_once("libs/Captcha.class.php");
  6.  
  7. class Login
  8. {
  9. function Title()
  10. {
  11. ?>
  12. .:InfinityServers Voting:.
  13. <?php
  14. }
  15.  
  16. function Form()
  17. {
  18. ?>
  19.  
  20. <tr>
  21.  
  22. </tr>
  23. </table>
  24.  
  25. <table width="90%" border="0" cellpadding="2" cellspacing="2" class="erro">
  26.  
  27. <form action="" method="post">
  28. <input name="login" type="hidden" />
  29. <br />
  30. <br /><br />
  31. <tr>
  32. <td width="42%" height="30" align="right"> <strong>Username :</strong></td>
  33. <td width="58%" valign="top"> <input name="name" type="text" class="inputs" id="name" style="width:120px;" maxlength="45"/>
  34. </td>
  35. </tr>
  36.  
  37. <tr>
  38. <td height="30" align="right"> <strong>Password :</strong></td>
  39. <td valign="top"> <input name="password" type="password" class="inputs" id="password" style="width:100px;" maxlength="65"/>
  40. </td>
  41. <br /><br />
  42. </tr>
  43. <tr>
  44.  
  45.  
  46. <td >&nbsp;</td>
  47.  
  48. <td width="60%" height="30" align="mid"><input type="image" src="img/enter_button.gif" width="50" height="20" border="0"></td>
  49. </tr>
  50. </form>
  51. </table>
  52. <?php
  53. }
  54.  
  55. function Fail()
  56. {
  57. ?>
  58. Please enter correctly your account name or/and your password !
  59. <script type="text/javascript">window.setTimeout("window.location=''",2000);</script>
  60.  
  61. <?php
  62. }
  63.  
  64. function Success()
  65. {
  66. ?>
  67. Successfully logged in. Please wait while we redirect you.
  68. <script type="text/javascript">window.setTimeout("window.location=''",2000);</script>
  69. <?php
  70. }
  71.  
  72. function Content()
  73. {
  74.  
  75.  
  76. if(file_exists('install/index.php'))
  77. echo('<div style="font-size: 20px; background-color: #FFF; color:#000;"><strong><center><br />Warning: The install folder exists. Please delete install folder, before start AVRS on your live server.<br /><br /></center></strong></div>');
  78. if(isset($_POST["password"]))
  79. {
  80.  
  81.  
  82. $objAccountData = new AccountData();
  83. $objAccountData->LoadByPost();
  84.  
  85. if($objAccountData->FazerLogin())
  86. {
  87.  
  88. $_SESSION['id'] = $objAccountData->id;
  89. $_SESSION['name'] = $objAccountData->name;
  90. $_SESSION['access_level'] = $objAccountData->access_level;
  91. $_SESSION['id1'] = $objAccountData->id;
  92. $_SESSION['points'] = $objAccountData->reward_points;
  93. $_SESSION['account'] = $objAccountData->name;
  94. $_SESSION['authenticated']= true;
  95.  
  96. $this->Success();
  97. return;
  98.  
  99. }else{
  100. return $this->Fail();
  101. }
  102.  
  103.  
  104.  
  105. }
  106. $this->Form();
  107. }
  108.  
  109. function __construct()
  110. {
  111. include("html/main4.php");
  112. include("footer.php");
  113. }
  114. }
  115.  
  116. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement