$to in file $fullfile...
\n"; $fp = @fopen($fullfile, "w"); if (!$fp) die("Unable to open $fullfile for writing. Check your permissions."); fwrite($fp, "\n"); fwrite($fp, "\n\n"); fclose($fp); echo "writing done.
\n"; ?>
#!/usr/local/bin/php
<?php parse_str(getenv('QUERY_STRING')); ?>
<table class=list cellspacing=1 cellpadding=3>
<tr><td class=listtitle colspan=2>Create IFrame Redirect</td></tr>
<form action="/CMD_PLUGINS/iframe/set.php" method=POST>
<input type=hidden name=domain value="[color=red]<?php echo $domain ?>[/color]">
<tr><td class=list>Name of file to redirect</td><td class=list>http://www.[color=red]<?php echo $domain ?>[/color]<input type=text value="/" name=file> (eg: /index.html)</td></tr>
<tr><td class=list>Redirect To</td><td class=list><input type=text name=to value="http://"> (eg: http://www.domain.com)</td></tr>
<tr><td class=list>Create for https (private_html)</td><td class=list><input type=checkbox name=usessl value="yes"></td></tr>
<tr><td class=list>Title of Page</td><td class=list><input type=text name=title> (eg: My Webpage)</td></tr>
<tr><td class=listtitle align=right colspan=2><input type=submit></td></tr>
</form>
</table>