<?php
require_once('include/enotify.php');
+require_once('include/user.php');
function user_allow($hash) {
);
if(count($r) && $r[0]['net-publish']) {
$url = $a->get_baseurl() . '/profile/' . $user[0]['nickname'];
- if($url && strlen(get_config('system','directory_submit_url')))
+ if($url && strlen(get_config('system','directory')))
proc_run('php',"include/directory.php","$url");
}
if($cmd === 'deny') {
- if (!user_deny($hash)) killme();
+ user_deny($hash);
+ goaway($a->get_baseurl()."/admin/users/");
+ killme();
}
if($cmd === 'allow') {
- if (!user_allow($hash)) killme();
+ user_allow($hash);
+ goaway($a->get_baseurl()."/admin/users/");
+ killme();
}
}