]> git.mxchange.org Git - friendica.git/blob - mod/home.php
lighter colours
[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         $a->page['htmlhead'] .= "<meta name=\"dfrn-template\" content=\"" . $a->get_baseurl() . "/profile/%s" . "\" />\r\n";
13  
14 }}
15
16
17 if(! function_exists('home_content')) {
18 function home_content(&$a) {
19
20         $a->page['footer'] .= "<div class=\"powered\" >Powered by <a href=\"http://mistpark.com\" name=\"Mistpark\" >Mistpark</a></div>";
21         $o .= '<h1>Welcome' . ((x($a->config,'sitename')) ? " to {$a->config['sitename']}" : "" ) . '</h1>';
22         $o .= login(($a->config['register_policy'] == REGISTER_CLOSED) ? 0 : 1);
23         return $o;
24
25         
26 }}