mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-26 03:09:58 +03:00
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
This commit is contained in:
parent
34a70eceec
commit
5ea5350deb
7 changed files with 66 additions and 46 deletions
41
install.php
41
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue