X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Fhome.php;h=cdf4b371588900a95938fecfb0dfd306ad3718a1;hb=a22581e86cba4c96980ef7bd334aaaa43d02176d;hp=0320c1b3988a5b20bd2cda7fc02bf443de78a120;hpb=8a80ea24d1d8039be6dc532c9db23c60e71eb467;p=friendica.git diff --git a/mod/home.php b/mod/home.php index 0320c1b398..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')); }} @@ -22,16 +23,23 @@ function home_content(&$a) { if(x($_SESSION,'theme')) unset($_SESSION['theme']); + if(x($_SESSION,'mobile-theme')) + unset($_SESSION['mobile-theme']); + + if(file_exists('home.html')){ + if(file_exists('home.css')){ + $a->page['htmlhead'] .= '';} + + $o .= file_get_contents('home.html');} + + else $o .= '