CMXX - Custom folder
This commit is contained in:
@@ -42,7 +42,8 @@ $owner_user = (($user_data['username'] == $username)? 1 : 0);
|
||||
$stmt = $pdo->prepare($sql);
|
||||
$stmt->execute([$resetkey,$username,$id]);
|
||||
//STEP 3 - Send to user
|
||||
include_once './assets/mail/email_template_reset.php';
|
||||
$mail_location = (file_exists($_SERVER['DOCUMENT_ROOT'].'/custom/'.$domain.'/mail/email_template_reset.php') ? $_SERVER['DOCUMENT_ROOT'].'/custom/'.$domain.'/mail/email_template_reset.php' : './assets/mail/email_template_reset.php');
|
||||
include_once $mail_location;
|
||||
send_mail($user_data['email'],$subject,$message,'','');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user