3 if(! function_exists('home_init')) {
4 function home_init(&$a) {
6 if(x($_SESSION,'authenticated') && (x($_SESSION,'uid'))) {
7 if($a->user['nickname'])
8 goaway( $a->get_baseurl() . "/profile/" . $a->user['nickname'] );
10 goaway( $a->get_baseurl() . "/profile/" . $_SESSION['uid'] );
12 $a->page['htmlhead'] .= "<meta name=\"dfrn-template\" content=\"" . $a->get_baseurl() . "/profile/%s" . "\" />\r\n";
17 if(! function_exists('home_content')) {
18 function home_content(&$a) {
19 $a->page['footer'] .= "<div class=\"powered\" >Powered by <a href=\"http://mistpark.com\" name=\"mistpark\" >mistpark</a></div>";
20 $o .= '<h1>Welcome' . ((x($a->config,'sitename')) ? " to {$a->config['sitename']}" : "" ) . '</h1>';
21 $o .= login(($a->config['register_policy'] == REGISTER_CLOSED) ? 0 : 1);