I'd have to modify my code a lot to do that, so I'll just give you the gist.
Look at the following piece of code from write.php:
PHP Code:
if(@$_POST[$edit_file]){
$page = $_POST[$edit_file];
$pageu = strtoupper($edit_file);
$newcontent = '$'.$edit_file.' = <<<'.$pageu.'101291'."\n".$page."\n".$pageu.'101291;';
list($a,$b) = explode('$'.$edit_file,$php_file,2);
list($b,$c) = explode($pageu."101291;",$b,2);
$php_final = $a."\n\n".$newcontent."\n\n".$c;
$file = 'inc.php';
$file = @fopen($file,'w+');
@fwrite($file,$php_final);
@fclose($file);
echo '<meta http-equiv="refresh" content="0;url='.$success.'">';}
For mine, it's written a bit different, but do you see what it's doing?
Bookmarks