diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-06-08 21:19:05 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-06-08 21:19:05 -0700 |
commit | 54b61f817d8911dec26e3aa2aee32fad25f67571 (patch) | |
tree | 3686d8c35656f897dcdc5230448dddc55ce9af50 /mod | |
parent | 91249c4bfad36f02cdc3fe5e9d415b4dc49b10f5 (diff) | |
download | volse-hubzilla-54b61f817d8911dec26e3aa2aee32fad25f67571.tar.gz volse-hubzilla-54b61f817d8911dec26e3aa2aee32fad25f67571.tar.bz2 volse-hubzilla-54b61f817d8911dec26e3aa2aee32fad25f67571.zip |
provide a mechanism for loading the frontpage without redirecting.
Diffstat (limited to 'mod')
-rw-r--r-- | mod/home.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mod/home.php b/mod/home.php index 39b42b630..42f448aae 100644 --- a/mod/home.php +++ b/mod/home.php @@ -60,6 +60,11 @@ function home_content(&$a, $update = 0, $load = false) { 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); } |