aboutsummaryrefslogtreecommitdiffstats
path: root/mod/network.php
diff options
context:
space:
mode:
authorfabrixxm <fabrix.xm@gmail.com>2011-01-20 20:19:20 +0100
committerfabrixxm <fabrix.xm@gmail.com>2011-01-20 20:19:20 +0100
commit28ebbe38d6f987c91b508d384e24ba15c2dad06b (patch)
treec7e240967a7a3629bf50b5489e382c945111963b /mod/network.php
parent2ea85fd67e4fe61b56658eb7c3c13495438c60ba (diff)
downloadvolse-hubzilla-28ebbe38d6f987c91b508d384e24ba15c2dad06b.tar.gz
volse-hubzilla-28ebbe38d6f987c91b508d384e24ba15c2dad06b.tar.bz2
volse-hubzilla-28ebbe38d6f987c91b508d384e24ba15c2dad06b.zip
Netwok page redirect to login page if not local_user
Diffstat (limited to 'mod/network.php')
-rw-r--r--mod/network.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/mod/network.php b/mod/network.php
index aa42e2f52..10683aeda 100644
--- a/mod/network.php
+++ b/mod/network.php
@@ -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");