X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fhome.php;h=13b6d56c4a797f6417a69546ee9b44f0d5614c1c;hb=5e6e92a10bbca8e2beb44b4d2aa0ae772eb56295;hp=d89b47bc20dc7eb9c7da68de61975fdae021d562;hpb=2370a3f89b5f10e6c98edf019fe25d98eb58d401;p=friendica.git diff --git a/mod/home.php b/mod/home.php index d89b47bc20..13b6d56c4a 100644 --- a/mod/home.php +++ b/mod/home.php @@ -3,21 +3,23 @@ if(! function_exists('home_init')) { function home_init(&$a) { - if(x($_SESSION,'authenticated') && (x($_SESSION,'uid'))) { - if($a->user['nickname']) + if(local_user() && ($a->user['nickname'])) goaway( $a->get_baseurl() . "/profile/" . $a->user['nickname'] ); - else - goaway( $a->get_baseurl() . "/profile/" . $_SESSION['uid'] ); - } - $a->page['htmlhead'] .= "get_baseurl() . "/profile/%s" . "\" />\r\n"; - + + $a->page['htmlhead'] .= "get_baseurl() . "/profile/%s" . "\" />\r\n"; }} if(! function_exists('home_content')) { function home_content(&$a) { - $a->page['footer'] .= "
Powered by mistpark
"; + + $o = ''; + if(! (x($a->page,'footer'))) + $a->page['footer'] = ''; + $a->page['footer'] .= "
Powered by friendika
"; $o .= '

Welcome' . ((x($a->config,'sitename')) ? " to {$a->config['sitename']}" : "" ) . '

'; + if(file_exists('home.html')) + $o .= file_get_contents('home.html'); $o .= login(($a->config['register_policy'] == REGISTER_CLOSED) ? 0 : 1); return $o;