Guest User

Untitled

a guest
May 21st, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. <?php
  2. if(!$Auth->isLoggedIn()) { header(""); }
  3. $title = 'Dodawanie nowego filmu';
  4.  
  5. if($_POST['wyslij'])
  6. {
  7. $userid = $Auth->getId();
  8. $ip = ip();
  9. $czas = date("Y-m-d H:i:s");
  10.  
  11. $tytul = strip_tags(stripslashes(trim($_POST['tytul'])));
  12. $opis = strip_tags(stripslashes(trim(nl2br($_POST['opis']))), '<strong>');
  13. $link = strip_tags(trim($_POST['link']));
  14.  
  15. include 'lib/link.lib.php';
  16.  
  17. if(!checkurl($link)) { $zlyLink = true; }
  18.  
  19. if(!$tytul) { $brakTytul = true; }
  20. if(!$opis) { $brakOpis = true; }
  21. if(!$link) { $brakLink = true; }
  22.  
  23. if(strlen($tytul) < 3) { $krotkiTytul = true; }
Add Comment
Please, Sign In to add comment