provide a mechanism for loading the frontpage without redirecting.

This commit is contained in:
redmatrix 2015-06-08 21:19:05 -07:00
parent 91249c4bfa
commit 54b61f817d

View File

@ -60,6 +60,11 @@ function home_content(&$a, $update = 0, $load = false) {
return $o; return $o;
} }
} }
if(intval(get_config('system','mirror_frontpage'))) {
$o = '<html><head><title>' . t('$Projectname') . '</title></head><body style="margin: 0; padding: 0; broder: none;" ><iframe src="' . z_root() . '/' . $frontpage . '" width="100%" height="100%" style="margin: 0; padding: 0; border: none;" ></iframe></body></html>';
echo $o;
killme();
}
goaway(z_root() . '/' . $frontpage); goaway(z_root() . '/' . $frontpage);
} }