From d134e3a3130a9bd2417be776e5a3a7f8f2467418 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 22 Jan 2009 14:28:15 +0100 Subject: [PATCH] move phpmailer to lib/ --- config.php-dist | 3 --- functions.php | 6 +++--- {phpmailer => lib/phpmailer}/class.phpmailer.php | 0 {phpmailer => lib/phpmailer}/class.smtp.php | 0 .../phpmailer}/language/phpmailer.lang-en.php | 0 modules/pref-users.php | 6 +++--- register.php | 8 ++++---- 7 files changed, 10 insertions(+), 13 deletions(-) rename {phpmailer => lib/phpmailer}/class.phpmailer.php (100%) rename {phpmailer => lib/phpmailer}/class.smtp.php (100%) rename {phpmailer => lib/phpmailer}/language/phpmailer.lang-en.php (100%) diff --git a/config.php-dist b/config.php-dist index 78f1a2b3..e7238a60 100644 --- a/config.php-dist +++ b/config.php-dist @@ -43,9 +43,6 @@ // some use-cases (if you have more than one tt-rss window open, for example) // so it is disabled by default. - define('MAIL_RESET_PASS', true); - // Send mail to user on password reset - define('ENABLE_FEED_BROWSER', true); // Enable or disable local feed browser diff --git a/functions.php b/functions.php index bddee8b1..0d82f817 100644 --- a/functions.php +++ b/functions.php @@ -96,7 +96,7 @@ require_once 'errors.php'; require_once 'version.php'; - require_once 'phpmailer/class.phpmailer.php'; + require_once 'lib/phpmailer/class.phpmailer.php'; define('MAGPIE_USER_AGENT_EXT', ' (Tiny Tiny RSS/' . VERSION . ')'); define('MAGPIE_OUTPUT_ENCODING', 'UTF-8'); @@ -3618,8 +3618,8 @@ $mail = new PHPMailer(); - $mail->PluginDir = "phpmailer/"; - $mail->SetLanguage("en", "phpmailer/language/"); + $mail->PluginDir = "lib/phpmailer/"; + $mail->SetLanguage("en", "lib/phpmailer/language/"); $mail->CharSet = "UTF-8"; diff --git a/phpmailer/class.phpmailer.php b/lib/phpmailer/class.phpmailer.php similarity index 100% rename from phpmailer/class.phpmailer.php rename to lib/phpmailer/class.phpmailer.php diff --git a/phpmailer/class.smtp.php b/lib/phpmailer/class.smtp.php similarity index 100% rename from phpmailer/class.smtp.php rename to lib/phpmailer/class.smtp.php diff --git a/phpmailer/language/phpmailer.lang-en.php b/lib/phpmailer/language/phpmailer.lang-en.php similarity index 100% rename from phpmailer/language/phpmailer.lang-en.php rename to lib/phpmailer/language/phpmailer.lang-en.php diff --git a/modules/pref-users.php b/modules/pref-users.php index 6a768ced..392e596a 100644 --- a/modules/pref-users.php +++ b/modules/pref-users.php @@ -283,7 +283,7 @@ print_notice(T_sprintf("Changed password of user %s to %s", $login, $tmp_user_pwd)); - if (MAIL_RESET_PASS && $email) { + if ($email) { print_notice(T_sprintf("Notifying %s.", $email)); require_once "MiniTemplator.class.php"; @@ -303,8 +303,8 @@ $mail = new PHPMailer(); - $mail->PluginDir = "phpmailer/"; - $mail->SetLanguage("en", "phpmailer/language/"); + $mail->PluginDir = "lib/phpmailer/"; + $mail->SetLanguage("en", "lib/phpmailer/language/"); $mail->CharSet = "UTF-8"; diff --git a/register.php b/register.php index edd28937..db6dcb86 100644 --- a/register.php +++ b/register.php @@ -268,8 +268,8 @@ $mail = new PHPMailer(); - $mail->PluginDir = "phpmailer/"; - $mail->SetLanguage("en", "phpmailer/language/"); + $mail->PluginDir = "lib/phpmailer/"; + $mail->SetLanguage("en", "lib/phpmailer/language/"); $mail->CharSet = "UTF-8"; @@ -302,8 +302,8 @@ $mail = new PHPMailer(); - $mail->PluginDir = "phpmailer/"; - $mail->SetLanguage("en", "phpmailer/language/"); + $mail->PluginDir = "lib/phpmailer/"; + $mail->SetLanguage("en", "lib/phpmailer/language/"); $mail->CharSet = "UTF-8"; -- 2.39.5