]> git.mxchange.org Git - friendica.git/blob - mod/home.php
not needed
[friendica.git] / mod / home.php
1 <?php
2
3 if(! function_exists('home_init')) {
4 function home_init(&$a) {
5
6         if(x($_SESSION,'authenticated') && (x($_SESSION,'uid'))) {
7                 if($a->user['nickname'])
8                         goaway( $a->get_baseurl() . "/profile/" . $a->user['nickname'] );
9                 else
10                         goaway( $a->get_baseurl() . "/profile/" . $_SESSION['uid'] );
11         }
12 }}
13
14
15 if(! function_exists('home_content')) {
16 function home_content(&$a) {
17
18         $a->page['footer'] .= "<div class=\"powered\" >Powered by <a href=\"http://dfrn.org\" name=\"DFRN.org\" >DFRN</a></div>";
19         $o .= '<h1>Welcome' . ((x($a->config,'sitename')) ? " to {$a->config['sitename']}" : "" ) . '</h1>';
20         $o .= login(1);
21         return $o;
22
23         
24 }}