Guest User

Untitled

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