Oppaitime's version of Gazelle
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

disabled.php 3.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <?
  2. BIC::challenge();
  3. View::show_header('Disabled');
  4. if (isset($_POST['email']) && FEATURE_EMAIL_REENABLE) {
  5. // Handle auto-enable request
  6. if ($_POST['email'] != '') {
  7. $Output = AutoEnable::new_request(db_string($_POST['username']), db_string($_POST['email']));
  8. } else {
  9. $Output = "Please enter a valid email address.";
  10. }
  11. $Output .= "<br /><br /><a href='login.php?action=disabled'>Back</a>";
  12. }
  13. if ((empty($_POST['submit']) || empty($_POST['username'])) && !isset($Output)) {
  14. ?>
  15. <p class="warning">
  16. Your account has been disabled.<br />
  17. This is either due to inactivity or rule violation(s).<br /><br /></p>
  18. <? if (FEATURE_EMAIL_REENABLE) { ?>
  19. If you believe your account was in good standing and was disabled for inactivity, you may request it be re-enabled via email using the form below.<br />
  20. Please note that you will need access to the email account associated with your account at <?=SITE_NAME?> for this to work;<br />
  21. if you do not, please see the section after this form.<br /><br />
  22. <form action="" method="POST">
  23. <input type="email" class="inputtext" placeholder="Email Address" name="email" required /> <input type="submit" value="Submit" />
  24. <input type="hidden" name="username" value="<?=$_COOKIE['username']?>" />
  25. </form><br /><br />
  26. <? } ?>
  27. If you are unsure why your account is disabled, or you wish to discuss this with staff, come to our IRC network at: <?=BOT_SERVER?><br />
  28. And join <?=BOT_DISABLED_CHAN?><br /><br />
  29. <strong>Be honest.</strong> At this point, lying will get you nowhere.<br /><br /><br />
  30. </p>
  31. <strong>Before joining the disabled channel, please read our <br /> <span style="color: gold;">Golden Rules</span> which can be found <a style="color: #1464F4;" href="#" onclick="toggle_visibility('golden_rules')">here</a>.</strong> <br /><br />
  32. <script type="text/javascript">
  33. function toggle_visibility(id) {
  34. var e = document.getElementById(id);
  35. if (e.style.display == 'block') {
  36. e.style.display = 'none';
  37. } else {
  38. e.style.display = 'block';
  39. }
  40. }
  41. </script>
  42. <div id="golden_rules" class="rule_summary" style="width: 35%; font-weight: bold; display: none; text-align: left;">
  43. <? Rules::display_golden_rules(); ?>
  44. <br /><br />
  45. </div>
  46. <p class="strong">
  47. If you do not have access to an IRC client, you can use the WebIRC interface provided below.<br />
  48. Please use your <?=SITE_NAME?> username.
  49. </p>
  50. <br />
  51. <form class="confirm_form" name="chat" action="<?echo 'https://chat.'.SITE_DOMAIN.BOT_DISABLED_CHAN?>" target="_blank" method="pre">
  52. <input type="text" name="nick" width="20" />
  53. <input type="submit" value="Join WebIRC" />
  54. </form>
  55. <?
  56. } else if (!isset($Output)) {
  57. $Nick = $_POST['username'];
  58. $Nick = preg_replace('/[^a-zA-Z0-9\[\]\\`\^\{\}\|_]/', '', $Nick);
  59. if (strlen($Nick) == 0) {
  60. $Nick = SITE_NAME.'Guest????';
  61. } else {
  62. if (is_numeric(substr($Nick, 0, 1))) {
  63. $Nick = '_' . $Nick;
  64. }
  65. }
  66. ?>
  67. <div class="thin">
  68. <div class="header">
  69. <h3 id="general">Disabled IRC</h3>
  70. </div>
  71. <div class="box pad" style="padding: 10px 0px 10px 0px;">
  72. <div style="padding: 0px 10px 10px 20px;">
  73. <p>Please read the topic carefully.</p>
  74. </div>
  75. <applet codebase="static/irc/" code="IRCApplet.class" archive="irc.jar,sbox.jar" width="800" height="600" align="center">
  76. <param name="nick" value="<?=($Nick)?>" />
  77. <param name="alternatenick" value="<?=SITE_NAME?>Guest????" />
  78. <param name="name" value="Java IRC User" />
  79. <param name="host" value="<?=(BOT_SERVER)?>" />
  80. <param name="multiserver" value="false" />
  81. <param name="autorejoin" value="false" />
  82. <param name="command1" value="JOIN <?=BOT_DISABLED_CHAN?>" />
  83. <param name="gui" value="sbox" />
  84. <param name="pixx:highlight" value="true" />
  85. <param name="pixx:highlightnick" value="true" />
  86. <param name="pixx:prefixops" value="true" />
  87. <param name="sbox:scrollspeed" value="5" />
  88. </applet>
  89. </div>
  90. </div>
  91. <?
  92. } else {
  93. echo $Output;
  94. }
  95. View::show_footer();
  96. ?>