Roland Haeder
c353b31569
- don't commit files that are being ignored, better provide a "template" file that needs copying to the right file and ignore the file that will have local changes like config files will always have. - fixed CHMOD, no need for executable flag here as the server won't execute these files, but only load (read) them - fixed E_NOTICE in boot.php when entrance/index page (no parameter) is being called Signed-off-by: Roland Haeder <roland@mxchange.org>
14 lines
257 B
PHP
14 lines
257 B
PHP
<?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" );
|
|
|
|
}}
|
|
|
|
|