X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fhome.php;h=cdf4b371588900a95938fecfb0dfd306ad3718a1;hb=e5a6d91cc4dc8f8546580c656ed6acc7016d4a28;hp=6ed36b7638c1ce39c62adb3be61cc6f0a9f4e764;hpb=9e9765a89fe26d751cbfea6c9ac07ac8d794fa03;p=friendica.git diff --git a/mod/home.php b/mod/home.php index 6ed36b7638..cdf4b37158 100644 --- a/mod/home.php +++ b/mod/home.php @@ -7,10 +7,11 @@ function home_init(&$a) { call_hooks('home_init',$ret); if(local_user() && ($a->user['nickname'])) - goaway( $a->get_baseurl() . "/profile/" . $a->user['nickname'] ); + goaway($a->get_baseurl()."/network"); + //goaway($a->get_baseurl()."/profile/".$a->user['nickname']); if(strlen(get_config('system','singleuser'))) - goaway( $a->get_baseurl() . "/profile/" . get_config('system','singleuser')); + goaway($a->get_baseurl()."/profile/" . get_config('system','singleuser')); }} @@ -25,15 +26,20 @@ function home_content(&$a) { if(x($_SESSION,'mobile-theme')) unset($_SESSION['mobile-theme']); - $o .= '

' . ((x($a->config,'sitename')) ? sprintf( t("Welcome to %s") ,$a->config['sitename']) : "" ) . '

'; - if(file_exists('home.html')) - $o .= file_get_contents('home.html'); + if(file_exists('home.html')){ + if(file_exists('home.css')){ + $a->page['htmlhead'] .= '';} + + $o .= file_get_contents('home.html');} + + else $o .= '

'.((x($a->config,'sitename')) ? sprintf(t("Welcome to %s"), $a->config['sitename']) : "").'

'; + $o .= login(($a->config['register_policy'] == REGISTER_CLOSED) ? 0 : 1); - + call_hooks("home_content",$o); - + return $o; - -}} + +}}