X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel-plugins.git/blobdiff_plain/9bb36542eb6d16df7c978e63c2469b0b28a37371..e3842a1cd4ca886cedd9f11ed46ffc525cb9e78c:/php_mailer/php_mailer.php
diff --git a/php_mailer/php_mailer.php b/php_mailer/php_mailer.php
index 3fbc2b8..27e077a 100644
--- a/php_mailer/php_mailer.php
+++ b/php_mailer/php_mailer.php
@@ -4,7 +4,7 @@
@author Valware
@contact valerie@valware.co.uk
@description Provides support for PHPMailer() to send emails you care about
- @version 1.1
+ @version 1.2
@tested 0.9
@minver 0.9
@icon https://w7.pngwing.com/pngs/78/575/png-transparent-phpmailer-hd-logo.png
@@ -18,7 +18,7 @@ class php_mailer
{
public $name = "php_mailer";
public $author = "Valware";
- public $version = "1.0";
+ public $version = "1.2";
public $description = "Send mail using PHPMailer()";
public $email = "v.a.pond@outlook.com";
@@ -89,7 +89,7 @@ class php_mailer
/**
* Send a notification about the failed attempt
*/
- public static function user_login_fail_notif($fail)
+ public static function user_login_fail_notif($user)
{
self::send_mail(
["email" => get_config("smtp::username"), "name" => get_config("smtp::from_name")],
@@ -100,7 +100,7 @@ class php_mailer
"IP: ".$_SERVER['REMOTE_ADDR']." (".$_SERVER['HTTP_CF_IPCOUNTRY'].")
".
"User Agent: ".$_SERVER['HTTP_USER_AGENT']."
"
);
- $user = new PanelUser($fail['login']);
+ $user = new PanelUser($user['login']);
if ($user->email)
self::send_mail(
["email" => $user->email, "name" => $user->first_name . " " . $user->last_name],