allow homepage content to be a full redirect

This commit is contained in:
redmatrix 2015-10-17 16:33:28 -07:00
parent 45bd81fe8c
commit b6c765c9dc
3 changed files with 5 additions and 8999 deletions

View File

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

File diff suppressed because it is too large Load Diff

View File

@ -1 +1 @@
2015-10-15.1186
2015-10-17.1188