Netwok page redirect to login page if not local_user
This commit is contained in:
parent
2ea85fd67e
commit
28ebbe38d6
|
@ -2,6 +2,10 @@
|
||||||
|
|
||||||
|
|
||||||
function network_init(&$a) {
|
function network_init(&$a) {
|
||||||
|
if(! local_user())
|
||||||
|
goaway( $a->get_baseurl() . "/login" );
|
||||||
|
|
||||||
|
|
||||||
require_once('include/group.php');
|
require_once('include/group.php');
|
||||||
if(! x($a->page,'aside'))
|
if(! x($a->page,'aside'))
|
||||||
$a->page['aside'] = '';
|
$a->page['aside'] = '';
|
||||||
|
@ -22,8 +26,7 @@ function network_init(&$a) {
|
||||||
function network_content(&$a, $update = 0) {
|
function network_content(&$a, $update = 0) {
|
||||||
|
|
||||||
if(! local_user())
|
if(! local_user())
|
||||||
return '';
|
return "";
|
||||||
|
|
||||||
$o = '';
|
$o = '';
|
||||||
|
|
||||||
require_once("include/bbcode.php");
|
require_once("include/bbcode.php");
|
||||||
|
|
Loading…
Reference in a new issue