Netwok page redirect to login page if not local_user
This commit is contained in:
parent
2ea85fd67e
commit
28ebbe38d6
1 changed files with 5 additions and 2 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue