fix email for
- registration request - registration approval - account created by admin add a reditect after registration approval or deny
This commit is contained in:
parent
bec92bf22e
commit
7687342849
4 changed files with 11 additions and 13 deletions
|
@ -795,7 +795,7 @@ function admin_page_users_post(&$a){
|
|||
|
||||
notification(array(
|
||||
'type' => "SYSTEM_EMAIL",
|
||||
'to_email' => $email,
|
||||
'to_email' => $nu['email'],
|
||||
'subject'=> sprintf( t('Registration details for %s'), $a->config['sitename']),
|
||||
'preamble'=> $preamble,
|
||||
'body' => $body));
|
||||
|
|
|
@ -48,8 +48,6 @@ function register_post(&$a) {
|
|||
}
|
||||
|
||||
|
||||
require_once('include/user.php');
|
||||
|
||||
$arr = $_POST;
|
||||
|
||||
$arr['blocked'] = $blocked;
|
||||
|
@ -140,7 +138,7 @@ function register_post(&$a) {
|
|||
'source_link' => $a->get_baseurl()."/admin/users/",
|
||||
'link' => $a->get_baseurl()."/admin/users/",
|
||||
'source_photo' => $a->get_baseurl() . "/photo/avatar/".$user['uid'].".jpg",
|
||||
'to_email' => $admin['mail'],
|
||||
'to_email' => $admin['email'],
|
||||
'uid' => $admin['uid'],
|
||||
'language' => ($admin['language']?$admin['language']:'en'))
|
||||
);
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?php
|
||||
|
||||
require_once('include/enotify.php');
|
||||
require_once('include/user.php');
|
||||
|
||||
function user_allow($hash) {
|
||||
|
||||
|
@ -119,10 +120,14 @@ function regmod_content(&$a) {
|
|||
|
||||
|
||||
if($cmd === 'deny') {
|
||||
if (!user_deny($hash)) killme();
|
||||
user_deny($hash);
|
||||
goaway("/admin/users/");
|
||||
killme();
|
||||
}
|
||||
|
||||
if($cmd === 'allow') {
|
||||
if (!user_allow($hash)) killme();
|
||||
user_allow($hash);
|
||||
goaway("/admin/users/");
|
||||
killme();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue