Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- if(isset($_POST['searcb'])){
- $filename = $_POST['search'];
- if(file_exists(filename)){
- echo '<meta http-equipv="refresh" content="0;url=http://flashstyle.servegame.com/downloads/$filename">';
- }
- else
- echo "Este ficheiro não existe...";
- }
- ?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>Download arquivo...t</title>
- </head>
- <body>
- <form method="post">
- Nome do ficheiro: <input type="text" name="search"/>
- <input type="submit" name="searchb" value="Download"/>
- </form>
- </body>
- </html>
Add Comment
Please, Sign In to add comment