Просмотр файла blackgbs/rega.php

Размер файла: 786B
  1. <?php
  2. $title='Регистрация';
  3. include 'config.php';
  4. include 'head.php';
  5. echo '<h4><center>
  6. '.$title.'<br/></center></h4>';
  7. if (!empty($_SESSION['rega']))
  8. {
  9. exit('К сожалению ты уже зарегистрировался!<br/>
  10. '.$end);
  11. }
  12. $rand=rand(1111,9999);
  13. echo '<form action="postrega.php" method="post">
  14. <input type="hidden" name="rand" value="'.$rand.'"/>
  15. Пароль:<br/>
  16. <input type="text" name="pass" value=""/><br/>
  17. Адрес сайта:<br/>
  18. <input type="text" name="site" value="http://';
  19. if (!file_exists("./admin/config.dat"))
  20. {
  21. echo $_SERVER['HTTP_HOST'];
  22. }
  23. echo '"/><br/>
  24. Проверочное число: '.$rand.'<br/>
  25. <input type="text" name="postrand" value=""/><br/>
  26. <input type="submit" value="Готово"/><br/>
  27. </form>';
  28. echo $end;
  29. ?>