aboutsummaryrefslogtreecommitdiffstats
path: root/install.php
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2012-01-14 13:08:43 +0000
committermistic100 <mistic@piwigo.org>2012-01-14 13:08:43 +0000
commit5ea5350deb37777e815248488fd49699c18ab9e2 (patch)
tree5470bfcb5d8ccb7fca0ca07e9bd7448206cf5225 /install.php
parent34a70eceec0cdfed0203e4bee816256faa8c0294 (diff)
feature:2021 email notification on user creation, add checkboxes on register and install pages
git-svn-id: http://piwigo.org/svn/trunk@12885 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'install.php')
-rw-r--r--install.php41
1 files changed, 22 insertions, 19 deletions
diff --git a/install.php b/install.php
index 2084d8f08..9bbaa6157 100644
--- a/install.php
+++ b/install.php
@@ -461,25 +461,28 @@ else
log_user($user['id'], false);
// email notification
- include_once(PHPWG_ROOT_PATH.'include/functions_mail.inc.php');
-
- $keyargs_content = array(
- get_l10n_args('Hello %s,', $admin_name),
- get_l10n_args('Welcome to your new installation of Piwigo!', ''),
- get_l10n_args('', ''),
- get_l10n_args('Here is your password: %s', $admin_pass1),
- get_l10n_args('', ''),
- get_l10n_args('Don\'t hesitate to consult our forums for any help: %s', PHPWG_URL),
- );
-
- pwg_mail(
- $admin_mail,
- array(
- 'subject' => 'Just another Piwigo gallery',
- 'content' => l10n_args($keyargs_content),
- 'content_format' => 'text/plain',
- )
- );
+ if (isset($_POST['send_password_by_mail']))
+ {
+ include_once(PHPWG_ROOT_PATH.'include/functions_mail.inc.php');
+
+ $keyargs_content = array(
+ get_l10n_args('Hello %s,', $admin_name),
+ get_l10n_args('Welcome to your new installation of Piwigo!', ''),
+ get_l10n_args('', ''),
+ get_l10n_args('Here is your password: %s', $admin_pass1),
+ get_l10n_args('', ''),
+ get_l10n_args('Don\'t hesitate to consult our forums for any help: %s', PHPWG_URL),
+ );
+
+ pwg_mail(
+ $admin_mail,
+ array(
+ 'subject' => 'Just another Piwigo gallery',
+ 'content' => l10n_args($keyargs_content),
+ 'content_format' => 'text/plain',
+ )
+ );
+ }
}
}
if (count($errors) != 0)