PageRenderTime 46ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/signup.php

https://github.com/delete66/sikevux-s-tracker
PHP | 173 lines | 161 code | 9 blank | 3 comment | 3 complexity | e5d34102eccc92988f6fb398a10b30df MD5 | raw file
Possible License(s): GPL-2.0
  1. <?php
  2. require_once("include/bittorrent.php");
  3. require_once ("include/user_functions.php");
  4. require_once ("include/bbcode_functions.php");
  5. dbconn();
  6. maxcoder();
  7. //ini_set('session.use_trans_sid', '0');
  8. // Begin the session
  9. session_start();
  10. //(time() - $_SESSION['captcha_time'] < 10) ? exit('No Spam - 10 Sec Delay - Stop Hammering !') : NULL;
  11. $res = sql_query("SELECT COUNT(*) FROM users") or sqlerr(__FILE__, __LINE__);
  12. $arr = mysql_fetch_row($res);
  13. if ($arr[0] >= $maxusers)
  14. stderr("Sorry", "The current user account limit (" . number_format($maxusers) . ") has been reached. Inactive accounts are pruned all the time, please check back again later...");
  15. stdhead("Signup");
  16. ?>
  17. <!--
  18. <table width=500 border=1 cellspacing=0 cellpadding=10><tr><td align=left>
  19. <h2 align=center>Proxy check</h2>
  20. <b><font color=red>Important - please read:</font></b> We do not accept users connecting through public proxies. When you
  21. submit the form below we will check whether any commonly used proxy ports on your computer is open. If you have a firewall it may alert of you of port
  22. scanning activity originating from <b>69.10.142.42</b> (torrentbits.org). This is only our proxy-detector in action.
  23. <b>The check takes up to 30 seconds to complete, please be patient.</b> The IP address we will test is <b><?= $_SERVER["REMOTE_ADDR"]; ?></b>.
  24. By proceeding with submitting the form below you grant us permission to scan certain ports on this computer.
  25. </td></tr></table>
  26. <p>
  27. -->
  28. <!--<script type="text/javascript" src="captcha/captcha.js"></script>-->
  29. <center><p> Note: You need cookies enabled to sign up or log in.</p></center>
  30. <p>
  31. <form method="post" action="takesignup.php">
  32. <table align="center" border="1" cellspacing=0 cellpadding="10">
  33. <tr><td align="right" class="heading">Desired username:</td><td align=left><input type="text" size="40" name="wantusername" /></td></tr>
  34. <tr><td align="right" class="heading">Pick a password:</td><td align=left><input type="password" size="40" name="wantpassword" /></td></tr>
  35. <tr><td align="right" class="heading">Enter password again:</td><td align=left><input type="password" size="40" name="passagain" /></td></tr>
  36. <tr valign=top><td align="right" class="heading">Email address:</td><td align=left><input type="text" size="40" name="email" />
  37. <table width=250 border=0 cellspacing=0 cellpadding=0><tr><td class=embedded><font class=small>The email address should always be valid.
  38. Your email address won't be publicly shown anywhere.</font></td></tr>
  39. </table>
  40. <?php
  41. $questions = array(
  42. array("id"=> "1", "question"=> "Mother's birthplace"),
  43. array("id"=> "2", "question"=> "Best childhood friend"),
  44. array("id"=> "3", "question"=> "Name of first pet"),
  45. array("id"=> "4", "question"=> "Favorite teacher"),
  46. array("id"=> "5", "question"=> "Favorite historical person"),
  47. array("id"=> "6", "question"=> "Grandfather's occupation")
  48. );
  49. foreach($questions as $sph){
  50. $passhint .= "<option value=".$sph['id'].">".$sph['question']."</option>\n"; }
  51. tr("Question", "<select name=passhint>\n$passhint\n</select>",1);
  52. ?>
  53. <tr><td class=rowhead>Enter hint answer:</td><td align=left><input type="text" size="40" name="hintanswer" /><br/><font class=small>This answer will be used to reset your password in case you forget it.<br/>Make sure its something you will not forget!</font></td></tr>
  54. </td></tr>
  55. <tr>
  56. <td>&nbsp;</td>
  57. <td>
  58. <!-- /*<div id="captchaimage">
  59. <a href="<?php// echo $_SERVER['PHP_SELF']; ?>" onclick="refreshimg(); return false;" title="Click to refresh image">
  60. <img class="cimage" src="/tracker/captcha/GD_Security_image.php?<?php //echo time(); ?>" alt="Captcha image" />
  61. </a>
  62. </div>
  63. </td>
  64. </tr>
  65. <tr>
  66. <td class="rowhead">PIN:</td>
  67. <td>
  68. <input type="text" maxlength="6" name="captcha" id="captcha" onBlur="check(); return false;"/>
  69. </td>
  70. </tr>*/-->
  71. <td colspan="2" align="center">
  72. <div style="width:100%; height:130px; overflow: auto" class="quickjump">
  73. <table width="100%" border="0" cellspacing="2" cellpadding="2">
  74. <tr>
  75. <td width="75%"><strong>Sikevux's Tracker's Rules</strong>
  76. <p align="left">for all Users!<br />
  77. <br />
  78. </p></td>
  79. <td width="25%"><font size="-2"><br />
  80. <br />
  81. <br />
  82. </font></td>
  83. </tr>
  84. <tr>
  85. <td colspan="2"><h2>General rules - Breaking these rules can and will get you banned!</h2>
  86. <table border="1" cellpadding="10" cellspacing="0" width="100%">
  87. <tbody>
  88. <tr>
  89. <td><ul>
  90. <li>Do not defy the moderators expressed wishes!</li>
  91. <li>Do not upload our torrents to other trackers! (See the <a href="faq.php#up3"><strong>FAQ</strong></a> for details.)</li>
  92. <li><a name="warning" id="warning"></a>Disruptive behaviour in the forums or on the game server will result in a warning (<img src="pic/warned.gif" /> ).<br />
  93. You will only get <strong>one</strong> warning! After that it's bye bye Kansas!</li>
  94. </ul></td>
  95. </tr>
  96. </tbody>
  97. </table>
  98. <h2>Downloading rules - By not following these rules you will lose download privileges!</h2>
  99. <table border="1" cellpadding="10" cellspacing="0" width="100%">
  100. <tbody>
  101. <tr>
  102. <td><ul>
  103. <li>Access to the newest torrents is conditional on a good ratio! (See the <a href="faq.php#dl8"><strong>FAQ</strong></a> for details.)</li>
  104. <li>Low ratios may result in severe consequences, including banning in extreme cases.</li>
  105. </ul></td>
  106. </tr>
  107. </tbody>
  108. </table>
  109. <h2>General Forum Guidelines - Please follow these guidelines or else you might end up with a warning!</h2>
  110. <table border="1" cellpadding="10" cellspacing="0" width="100%">
  111. <tbody>
  112. <tr>
  113. <td><ul>
  114. <li>No aggressive behaviour or flaming in the forums.</li>
  115. <li>No trashing of other peoples topics (i.e. SPAM).</li>
  116. <li>No language other than English in the forums.</li>
  117. <li>No systematic foul language (and none at all on titles).</li>
  118. <li>No links to warez or crack sites in the forums.</li>
  119. <li>No requesting or posting of serials, CD keys, passwords or cracks in the forums.</li>
  120. <li>No requesting if there has been no '<a href="http://www.nforce.nl/">scene</a>' release in the last 7 days.</li>
  121. <li>No bumping... (All bumped threads will be deleted.)</li>
  122. <li>No images larger than 800x600, and preferably web-optimised.</li>
  123. <li>No double posting. If you wish to post again, and yours is the last post in the thread please use the EDIT function, instead of posting a double.</li>
  124. <li>Please ensure all questions are posted in the correct section!<br />
  125. (Game questions in the Games section, Apps questions in the Apps section, etc.)</li>
  126. <li>Last, please read the <a href="faq.php"><strong>FAQ</strong></a> before asking any questions!</li>
  127. </ul></td>
  128. </tr>
  129. </tbody>
  130. </table>
  131. <h2>Avatar Guidelines - Please try to follow these guidelines</h2>
  132. <table border="1" cellpadding="10" cellspacing="0" width="100%">
  133. <tbody>
  134. <tr>
  135. <td><ul>
  136. <li>The allowed formats are .gif, .jpg and .png. </li>
  137. <li>Be considerate. Resize your images to a width of 150 px and a size of no more than 150 KB. (Browsers will rescale them anyway: smaller images will be expanded and will not look good; larger images will just waste bandwidth and CPU cycles.) For now this is just a guideline but it will be automatically enforced in the near future. </li>
  138. <li>Do not use potentially offensive material involving childporn, religious material, animal / human cruelty or ideologically charged images. Mods have wide discretion on what is acceptable. If in doubt PM one. </li>
  139. </ul></td>
  140. </tr>
  141. </tbody>
  142. </table>
  143. <p align="left"></p></td>
  144. </tr>
  145. </table>
  146. </div></td></tr>
  147. <tr>
  148. <td colspan="2" align="center">
  149. <tr><td align="right" class="heading"></td><td align=left><input type=checkbox name=rulesverify value=yes> I have read the site rules page.<br>
  150. <input type=checkbox name=faqverify value=yes> I agree to read the FAQ before asking questions.<br>
  151. <input type=checkbox name=ageverify value=yes> I am at least 15 years old.</td></tr>
  152. <tr><td colspan="2" align="center"><input type=submit value="Sign up! (PRESS ONLY ONCE)" style='height: 25px'></td></tr>
  153. </table>
  154. </form>
  155. <center><a href="http://www.mozilla.com" />
  156. <img alt="Get Firefox" border="0" src="/pic/firefox.png"></a>
  157. <a href="http://tbdev.net" />
  158. <img alt="Powered By TBDEV" border="0" src="/pic/tbdev.png"></a> </center>
  159. <?
  160. ?>