Advertisement
Guest User

Untitled

a guest
Dec 22nd, 2014
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. <?php
  2. include 'theme.php';
  3. ceklogin();
  4. css();
  5. if($_POST['wget-send'])
  6. {
  7. $dir=$_POST['dir'];
  8. $link=$_POST['link'];
  9. exec('cd '.$dir,$out);
  10. exec('echo '.$link' > /tmp/wget-download-link.txt',$out);
  11. exec('wget -i /tmp/wget-download-link.txt -o /tmp/wget.log -c -t 100 -w 10',$out);
  12. echo $out[2];
  13. exit();
  14. }
  15. echo "<br><br><form action="".$PHP_SELF."" method="post">";
  16. echo "Download directory :<br><input type="text" name="dir" size="15" value="/mnt/usb/"/><br>";
  17. echo '<br>Download link :<br>';
  18. echo "<textarea name="link" rows="4" cols="35"></textarea><br><br>";
  19. echo '<input type="submit" name="wget-send" value="Send" />';
  20. echo "</form></div>";
  21.  
  22. foot();
  23. echo '
  24. </div>
  25. </body>
  26. </div>
  27. </html>';
  28. ?>
  29.  
  30. Parse error: syntax error, unexpected '' > /tmp/wget-download-link.tx' (T_CONSTANT_ENCAPSED_STRING) in /www/wget.php on line 10
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement