mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-02 01:05:13 +02:00
add hook
This commit is contained in:
parent
742e0df1f2
commit
e6f8826490
25 changed files with 121 additions and 105 deletions
|
@ -15,6 +15,7 @@ switch ($do) {
|
|||
case 'post':
|
||||
$username = _post('username');
|
||||
$password = _post('password');
|
||||
run_hook('customer_login'); #HOOK
|
||||
if ($username != '' and $password != '') {
|
||||
$d = ORM::for_table('tbl_customers')->where('username', $username)->find_one();
|
||||
if ($d) {
|
||||
|
@ -41,11 +42,8 @@ switch ($do) {
|
|||
|
||||
break;
|
||||
|
||||
case 'login-display':
|
||||
$ui->display('login.tpl');
|
||||
break;
|
||||
|
||||
default:
|
||||
run_hook('customer_view_login'); #HOOK
|
||||
$ui->display('login.tpl');
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue