mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-04 18:24:32 +02:00
New Feature
Add New self registration notification for admin
This commit is contained in:
parent
79d0921ebe
commit
7acab4d50e
2 changed files with 20 additions and 0 deletions
|
@ -116,6 +116,10 @@ switch ($do) {
|
|||
if (file_exists($_FILES['photo']['tmp_name'])) unlink($_FILES['photo']['tmp_name']);
|
||||
User::setFormCustomField($user);
|
||||
run_hook('register_user'); #HOOK
|
||||
$msg .= Lang::T('Registration successful') . '<br>';
|
||||
if ($config['reg_nofify_admin'] == 'yes') {
|
||||
sendTelegram($config['CompanyName'] . ' - ' . Lang::T('New User Registration') . "\n\nFull Name: " . $fullname . "\nUsername: " . $username . "\nEmail: " . $email . "\nPhone Number: " . $phone_number . "\nAddress: " . $address);
|
||||
}
|
||||
r2(U . 'login', 's', Lang::T('Register Success! You can login now'));
|
||||
} else {
|
||||
$ui->assign('username', $username);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue