initial
This commit is contained in:
commit
ea309f20ee
184 changed files with 16564 additions and 0 deletions
14
mod/home.php
Executable file
14
mod/home.php
Executable file
|
@ -0,0 +1,14 @@
|
|||
<?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" );
|
||||
|
||||
}}
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue