Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(!$Auth->isLoggedIn()) { header(""); }
- $title = 'Dodawanie nowego filmu';
- if($_POST['wyslij'])
- {
- $userid = $Auth->getId();
- $ip = ip();
- $czas = date("Y-m-d H:i:s");
- $tytul = strip_tags(stripslashes(trim($_POST['tytul'])));
- $opis = strip_tags(stripslashes(trim(nl2br($_POST['opis']))), '<strong>');
- $link = strip_tags(trim($_POST['link']));
- include 'lib/link.lib.php';
- if(!checkurl($link)) { $zlyLink = true; }
- if(!$tytul) { $brakTytul = true; }
- if(!$opis) { $brakOpis = true; }
- if(!$link) { $brakLink = true; }
- if(strlen($tytul) < 3) { $krotkiTytul = true; }
Add Comment
Please, Sign In to add comment