aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/network.php8
-rw-r--r--mod/profiles.php5
2 files changed, 12 insertions, 1 deletions
diff --git a/mod/network.php b/mod/network.php
index aa42e2f52..096c8a79f 100644
--- a/mod/network.php
+++ b/mod/network.php
@@ -2,6 +2,12 @@
function network_init(&$a) {
+ if(! local_user()) {
+ notice( t('Permission denied.') . EOL);
+ return;
+ }
+
+
require_once('include/group.php');
if(! x($a->page,'aside'))
$a->page['aside'] = '';
@@ -22,7 +28,7 @@ function network_init(&$a) {
function network_content(&$a, $update = 0) {
if(! local_user())
- return '';
+ return login(false);
$o = '';
diff --git a/mod/profiles.php b/mod/profiles.php
index 54c57f73e..0bb476549 100644
--- a/mod/profiles.php
+++ b/mod/profiles.php
@@ -10,6 +10,8 @@ function profiles_post(&$a) {
$namechanged = false;
+ call_hooks('profile_post', $_POST);
+
if(($a->argc > 1) && ($a->argv[1] !== "new") && intval($a->argv[1])) {
$orig = q("SELECT * FROM `profile` WHERE `id` = %d AND `uid` = %d LIMIT 1",
intval($a->argv[1]),
@@ -389,6 +391,9 @@ function profiles_content(&$a) {
'$contact' => $r[0]['contact']
));
+ $arr = array('profile' => $r[0], 'entry' => $o);
+ call_hooks('profile_edit', $arr);
+
return $o;
}
else {