]> jfr.im git - irc/unrealircd/unrealircd-webpanel-plugins.git/blobdiff - php_mailer/php_mailer.php
Update README.md
[irc/unrealircd/unrealircd-webpanel-plugins.git] / php_mailer / php_mailer.php
index f180836fd257d35297916093efdb6eb7eafc863b..27e077a7600ca2b45b35de6e6372ce1feea7ce19 100644 (file)
@@ -4,8 +4,8 @@
   @author Valware
   @contact valerie@valware.co.uk
   @description Provides support for PHPMailer() to send emails you care about
-  @version 1.0
-  @tested 1.0
+  @version 1.2
+  @tested 0.9
   @minver 0.9
   @icon https://w7.pngwing.com/pngs/78/575/png-transparent-phpmailer-hd-logo.png
   @maxver *
@@ -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'].")<br>".
                        "User Agent: ".$_SERVER['HTTP_USER_AGENT']."<br><br>"
                );
-               $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],