Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <body>
- <?php
- if (isset($_REQUEST['filepath']))
- {
- $filepath = $_REQUEST['filepath'];
- $filecats = "$filepath s";
- $filecontent = $_REQUEST['filecontent'] ;
- $file = fopen("../$filepath.php","x");
- echo fwrite($file,"<?php include(header.php); include($filecats.php); include(footer.php);");
- fclose($file);
- $files = fopen("../$filecats.php","x");
- echo fwrite($file,$filecontent);
- fclose($files);
- }
- else
- {
- echo "<form method='post' action='addfile.php'>
- Filepath: ../<input name='filepath' type='text' />.php<br />
- Fillinnehåll:<br />
- <textarea id='filecontent' rows='40' cols='100'>
- </textarea><br />
- <input type='submit' />
- </form>";
- }
- ?>
- </body>
- </html>
Add Comment
Please, Sign In to add comment