Add script 'get-openssl-version.sh'.

This commit is contained in:
2023-06-21 11:09:08 +02:00
parent 0a7a61049a
commit 14056b44dd
5032 changed files with 340126 additions and 0 deletions

View File

@ -0,0 +1,40 @@
<?php
namespace dokuwiki\Subscriptions;
class RegistrationSubscriptionSender extends SubscriptionSender
{
/**
* Send a notify mail on new registration
*
* @param string $login login name of the new user
* @param string $fullname full name of the new user
* @param string $email email address of the new user
*
* @return bool true if a mail was sent
* @author Andreas Gohr <andi@splitbrain.org>
*
*/
public function sendRegister($login, $fullname, $email)
{
global $conf;
if (empty($conf['registernotify'])) {
return false;
}
$trep = [
'NEWUSER' => $login,
'NEWNAME' => $fullname,
'NEWEMAIL' => $email,
];
return $this->send(
$conf['registernotify'],
'new_user',
$login,
'registermail',
$trep
);
}
}