IFrame Redirect Plugin

Can't get Iframe plugin to work...

No error msg, just snippets of php code:
PHP:
$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"; ?>

A bug?
Files have 777 permissions, so I honestly don't know what I'm doing wrong. I need to get this up and working since I'm moving from an old Win server to a "real" server today, with 40 domains using the same codebase + some 1300 "no-domain" member sites. Yes, this is a CMS-project.

I could use jlasman's solution with hardcoding a zero-sized frameset, but it would be sooo much smoother with a plugin that dealt with this. Any help/idea is highly appreciated. :)

Erik
 
You should just give it a try. If the plugin download is still available I can't think of any reason why it would be unsafe or not working.
 
For those who are still interested in the iFrame option, the broken script is caused by the php engine.
The solution is to replace <?=$domain;?> with <?php echo $domain ?> in the index.html located in /usr/local/directadmin/plugins/iframe/user

Code:
#!/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>

Regards,
Ronald
 
Possibly, however, I want to give a client the an easy iFrame forwarder which they can manage in DA when registering a domainname only.

Regards,
Ronald
 
Back
Top