// Use cache, so it is fine
return true;
}
- } elseif (isUserDataValid()) {
- // Use cache, so it is fine
+ } elseif (!isExtensionActive('user')) {
+ // Absent ext-user is really not good
+ return false;
+ } elseif (isUserDataValid()) {
+ // Using cache is fine
return true;
}
);
// Load email template
- $message = loadEmailTemplate('confirm-referal', $content, bigintval($userid));
+ $message = loadEmailTemplate('guest_user_confirmed_referal', $content, bigintval($userid));
// Send email
sendEmail($userid, '{--THANX_REFERAL_ONE_SUBJECT--}', $message);
);
// Load message
- $message = loadEmailTemplate('add-points', $content, $userid);
+ $message = loadEmailTemplate('member_add_points', $content, $userid);
// And sent it away
sendEmail($userid, '{--DIRECT_PAYMENT_SUBJECT--}', $message);
// Get default ACL of admin id
function getAdminDefaultAcl ($adminId) {
// By default an invalid ACL value is returned
- $data['default_acl'] = '***';
+ $data['default_acl'] = 'NO-ACL';
// Is sql_patches there and was it found in cache?
if (!isExtensionActive('sql_patches')) {
// Load from database
$result_admin_id = SQL_QUERY_ESC("SELECT `default_acl` FROM `{?_MYSQL_PREFIX?}_admins` WHERE `id`=%s LIMIT 1",
array(bigintval($adminId)), __FUNCTION__, __LINE__);
+
+ // Do we have an entry?
if (SQL_NUMROWS($result_admin_id) == 1) {
// Fetch data
$data = SQL_FETCHARRAY($result_admin_id);
$data['text'] = $reason;
// Now a mail to the user and that's all...
- $message = loadEmailTemplate('del-user', $data, $userid);
+ $message = loadEmailTemplate('member_user_deleted', $data, $userid);
sendEmail($userid, '{--ADMIN_DELETE_ACCOUNT--}', $message);
// Ok, delete the account!