allow homepage content to be a full redirect
This commit is contained in:
parent
45bd81fe8c
commit
b6c765c9dc
@ -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');
|
||||
|
8996
util/messages.po
8996
util/messages.po
File diff suppressed because it is too large
Load Diff
@ -1 +1 @@
|
||||
2015-10-15.1186
|
||||
2015-10-17.1188
|
||||
|
Reference in New Issue
Block a user