SHOW:
|
|
- or go back to the newest paste.
1 | - | <?php |
1 | + | |
2 | function image_upload($name, $tmpname) { | |
3 | - | if ($_SESSION['username'] != 'admin') { |
3 | + | |
4 | - | echo "<img src='upload/abel.gif' /><h1>This is not the page you are looking for <a href='index.php'>home</a></h1>"; |
4 | + | |
5 | - | echo "<meta http-equiv='refresh' content='1; url=index.php'>"; |
5 | + | |
6 | $var = move_uploaded_file($name, $tmpname); | |
7 | - | else { |
7 | + | if($var == false) { |
8 | - | |
8 | + | echo "FALSE!"; |
9 | - | $pdo = new PDO("mysql:host=localhost;dbname=fantapc", 'fpcroot', ''); |
9 | + | |
10 | } |