]> git.mxchange.org Git - friendica.git/blob - mod/home.php
Merge branch 'master' of git://github.com/friendika/friendika
[friendica.git] / mod / home.php
1 <?php
2
3 if(! function_exists('home_init')) {
4 function home_init(&$a) {
5
6         if(local_user() && ($a->user['nickname']))
7                         goaway( $a->get_baseurl() . "/profile/" . $a->user['nickname'] );
8
9         $a->page['htmlhead'] .= "<meta name=\"dfrn-template\" content=\"" . $a->get_baseurl() . "/profile/%s" . "\" />\r\n"; 
10 }}
11
12
13 if(! function_exists('home_content')) {
14 function home_content(&$a) {
15
16         $o = '';
17 /*
18  *      if(! (x($a->page,'footer')))
19  *              $a->page['footer'] = '';
20  *      $a->page['footer'] .= "<div class=\"powered\" >Powered by <a href=\"http://friendika.com\" title=\"friendika\" >friendika</a></div>";
21  */
22         $o .= '<h1>' . ((x($a->config,'sitename')) ? t("Welcome to ").$a->config['sitename'] : "" ) . '</h1>';
23         if(file_exists('home.html'))
24                 $o .= file_get_contents('home.html');
25
26         $o .= login(($a->config['register_policy'] == REGISTER_CLOSED) ? 0 : 1);
27         return $o;
28
29         
30 }}