I don't know if you have found an answer for your issue, but here is how I solved some of my iframe issues so far: Using a separate start page instead of home.php. In the incCommon.php, around line 456, replace index.php with the your new start page. You still will be able too use the Home.php to login, but can have a start page you can modify too your hearts content.
Using the same technique, I have a drop down group called External Applications, which execute and look like the rest of the site. Below is my Calendar application using Luxcal. I have not added passing user credentials too it yet, but it should not be a problem.
<?php
$currDir = dirname(__FILE__);
include("$currDir/defaultLang.php");
include("$currDir/language.php");
include("$currDir/lib.php");
include_once("$currDir/header.php");
/* grant access to the groups 'Admins' and 'Data entry' */
$mi = getMemberInfo();
if(!in_array($mi['group'], array('Admins', 'anonymous', 'Elijahs_Child'))){
echo "Access denied";
exit;
}
/**
* @return bool
*/
function is_session_started()
{
if ( php_sapi_name() !== 'cli' ) {
if ( version_compare(phpversion(), '5.4.0', '>=') ) {
return session_status() === PHP_SESSION_ACTIVE ? TRUE : FALSE;
} else {
return session_id() === '' ? FALSE : TRUE;
}
}
return FALSE;
}
// Example
if ( is_session_started() === FALSE ) {
session_start();
//echo "Started Session.";
}else {
//echo "Session already running.";
}
$_SESSION["lcUser"] = "
[email protected]";
$ip=$_SERVER['REMOTE_ADDR'];
if ( substr($ip,0,6) == '10.0.0' )
{
$website = '
http://10.0.0.201';
}
else
{
$website = '
http://XXXXX.thruhere.net';
}
?>
<style>
#luxcal { width:98%; height:740px; margin:20px; border-style:solid; border-width:1px; border-color:grey; }
body {
}
</style>
<iframe id="luxcal" src="<?php echo $website; ?>/luxcal/luxcal430M-calendar/index.php?lc&cP=0&lcUser=
[email protected]"></iframe>
If works great, still needs tweaking.........