$sitelink = t('Please visit %s to approve or reject the request.');
$tsitelink = sprintf( $sitelink, $params['link'] );
- $hsitelink = sprintf( $sitelink, '<a href="' . $params['link'] . '">' . $sitename . '</a>');
+ $hsitelink = sprintf( $sitelink, '<a href="' . $params['link'] . '">' . $sitename . '</a><br><br>');
$itemlink = $params['link'];
break;
case "SYSTEM_DB_UPDATE_FAIL":
// add a notification to the user, with could be inexistent)
$subject = $params['subject'];
$preamble = $params['preamble'];
- if (x($params,'epreamble')){
- $epreamble = $params['epreamble'];
- } else {
- $epreamble = str_replace("\n","<br>\n",$preamble);
- }
$body = $params['body'];
$sitelink = "";
$tsitelink = "";
$email_html_body = replace_macros($tpl,array(
'$banner' => $datarray['banner'],
'$product' => $datarray['product'],
- '$preamble' => $datarray['preamble'],
+ '$preamble' => str_replace("\n","<br>\n",$datarray['preamble']),
'$sitename' => $datarray['sitename'],
'$siteurl' => $datarray['siteurl'],
'$source_name' => $datarray['source_name'],
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));
}
- require_once('include/user.php');
-
$arr = $_POST;
$arr['blocked'] = $blocked;
'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'))
);
<?php
require_once('include/enotify.php');
+require_once('include/user.php');
function user_allow($hash) {
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();
}
}