login.php 679 B

12345678910111213141516171819202122
  1. <form method="post">
  2. Informe a senha:
  3. <input type="password" name="senha">
  4. <input type="submit" value="Enviar">
  5. <?php
  6. if (isset($_POST['senha'])) {
  7. require_once ('../config/linequest.php');
  8. global $CFG;
  9. if ($CFG->viewpass == $_POST['senha']) {
  10. session_start();
  11. $_SESSION['hash_user'] = md5($_POST['senha'].time());
  12. header('Location: index.php');
  13. } else {
  14. echo "<b style='color: red'>Senha incorreta!</b>";
  15. }
  16. }
  17. ?>
  18. </form>