Guest User

Untitled

a guest
Feb 19th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. <form action="" method="post">
  2. Heslo: <input id="author" name="geslo" type="author" value="" size="100" /><br />
  3. <input name="submit" type="submit" id="submit" value="Přihlášení" />
  4. </form>
  5.  
  6.  
  7. <?
  8.  
  9. {
  10. session_start();
  11. session_register("heslo");
  12. echo $_SESSION["heslo"];
  13. }
  14.  
  15. if ($_POST["geslo"] == "mellon")
  16. {
  17. session_start();
  18. session_register("heslo");
  19. $_SESSION["heslo"]="mellon";
  20. echo "už nezapisuji";
  21. }
  22.  
  23.  
  24. if ($_SESSION["heslo"] == "mellon")
  25. echo '
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34. <br />
  35.  
  36. <h2>Administrace stránek</h2>
  37. <br /><br />
  38. <b>Vkládání příspěvků</b>
  39.  
  40.  
  41. <form action="obsah/admin1.php" method="post">
  42.  
  43. Kategorie: <input id="author" name="skupina" type="author" value="" size="100" /><br />
  44. Nadpis:<input id="author" name="nadpis" type="author" value="" size="100" /><br /><br />
  45. Obsah:<br /><textarea id="comment" name="obsah" class="comment-textarea"></textarea><br />
  46. <br />
  47. <p class="comment-note">
  48. <code><a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> </code></p>
  49.  
  50.  
  51. <br />
  52.  
  53. Obrázek:<br /><textarea id="comment" name="obr" class="comment-textarea"></textarea><br />
  54. <input name="submit" type="submit" id="submit" value="Vložit" />
  55. </form>
  56.  
  57. '
  58. ?>
Add Comment
Please, Sign In to add comment