Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include 'theme.php';
- ceklogin();
- css();
- if($_POST['wget-send'])
- {
- $dir=$_POST['dir'];
- $link=$_POST['link'];
- exec('cd '.$dir,$out);
- exec('echo '.$link' > /tmp/wget-download-link.txt',$out);
- exec('wget -i /tmp/wget-download-link.txt -o /tmp/wget.log -c -t 100 -w 10',$out);
- echo $out[2];
- exit();
- }
- echo "<br><br><form action="".$PHP_SELF."" method="post">";
- echo "Download directory :<br><input type="text" name="dir" size="15" value="/mnt/usb/"/><br>";
- echo '<br>Download link :<br>';
- echo "<textarea name="link" rows="4" cols="35"></textarea><br><br>";
- echo '<input type="submit" name="wget-send" value="Send" />';
- echo "</form></div>";
- foot();
- echo '
- </div>
- </body>
- </div>
- </html>';
- ?>
- 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