X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=index.php;h=3ccdc725f60ab955e42d478a19e5403c1818d665;hb=c8717ede42478d7086511ac7d326f6882ab2ab68;hp=dd19bb83360e57b18d8b465f2a4ce7ea528ffee1;hpb=c5845be74edd2e48d743772c3dd31e6ad5c2a25e;p=friendica.git diff --git a/index.php b/index.php index dd19bb8336..3ccdc725f6 100644 --- a/index.php +++ b/index.php @@ -1,5 +1,6 @@ query_string = preg_replace('/[\?&]zrl=(.*?)([\?&]|$)/is','',$a->query_string); zrl_init($a); @@ -135,8 +138,13 @@ if(! x($_SESSION,'sysmsg_info')) if($install) $a->module = 'install'; -else - check_config($a); +elseif($maintenance) + $a->module = 'maintenance'; +else { + check_url($a); + check_db(); + check_plugins($a); +} nav_set_selected('nothing'); @@ -237,7 +245,7 @@ if (file_exists($theme_info_file)){ if(! x($a->page,'content')) $a->page['content'] = ''; -if(! $install) +if(!$install && !$maintenance) call_hooks('page_content_top',$a->page['content']); /** @@ -372,20 +380,14 @@ $a->page['content'] .= '
'; * */ -if($a->module != 'install') { +if($a->module != 'install' && $a->module != 'maintenance') { nav($a); } /** - * Build the page - now that we have all the components + * Add a "toggle mobile" link if we're using a mobile device */ -if(!$a->theme['stylesheet']) - $stylesheet = current_theme_url(); -else - $stylesheet = $a->theme['stylesheet']; -$a->page['htmlhead'] = replace_macros($a->page['htmlhead'], array('$stylesheet' => $stylesheet)); - if($a->is_mobile || $a->is_tablet) { if(isset($_SESSION['show-mobile']) && !$_SESSION['show-mobile']) { $link = $a->get_baseurl() . '/toggle_mobile?address=' . curPageURL(); @@ -399,6 +401,16 @@ if($a->is_mobile || $a->is_tablet) { )); } +/** + * Build the page - now that we have all the components + */ + +if(!$a->theme['stylesheet']) + $stylesheet = current_theme_url(); +else + $stylesheet = $a->theme['stylesheet']; +$a->page['htmlhead'] = replace_macros($a->page['htmlhead'], array('$stylesheet' => $stylesheet)); + $page = $a->page; $profile = $a->profile;