Netwok page redirect to login page if not local_user

This commit is contained in:
fabrixxm 2011-01-20 20:19:20 +01:00
parent 2ea85fd67e
commit 28ebbe38d6
1 changed files with 5 additions and 2 deletions

View File

@ -2,6 +2,10 @@
function network_init(&$a) {
if(! local_user())
goaway( $a->get_baseurl() . "/login" );
require_once('include/group.php');
if(! x($a->page,'aside'))
$a->page['aside'] = '';
@ -22,8 +26,7 @@ function network_init(&$a) {
function network_content(&$a, $update = 0) {
if(! local_user())
return '';
return "";
$o = '';
require_once("include/bbcode.php");