dir/mod/home.php

15 lines
257 B
PHP
Raw Normal View History

2012-05-16 07:31:36 +02:00
<?php
if(! function_exists('home_init')) {
function home_init(&$a) {
$r = q("SELECT * FROM `user` WHERE 1 LIMIT 1");
if(count($r))
goaway( $a->get_baseurl() . "/profile/" . $r[0]['nickname'] );
else
goaway( $a->get_baseurl() . "/register" );
}}