mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-04 18:24:32 +02:00
notif to telegram
This commit is contained in:
parent
dd116ee248
commit
a0dc6c7274
11 changed files with 270 additions and 278 deletions
|
@ -143,6 +143,10 @@ switch ($action) {
|
|||
$t->routers = $v1['routers'];
|
||||
$t->type = "Hotspot";
|
||||
$t->save();
|
||||
// Telegram to Admin
|
||||
sendTelegram( $c['username']." Activate Voucher Hotspot\n".$p['name_plan'].
|
||||
"\nRouter: ".$v1['routers'].
|
||||
"\nPrice: ".$p['price']);
|
||||
} else {
|
||||
try {
|
||||
$iport = explode(":", $mikrotik['ip_address']);
|
||||
|
@ -234,6 +238,10 @@ switch ($action) {
|
|||
$t->routers = $v1['routers'];
|
||||
$t->type = "Hotspot";
|
||||
$t->save();
|
||||
// Telegram to Admin
|
||||
sendTelegram( $c['username']." Activate Voucher Hotspot\n".$p['name_plan'].
|
||||
"\nRouter: ".$v1['routers'].
|
||||
"\nPrice: ".$p['price']);
|
||||
}
|
||||
|
||||
$v1->status = "1";
|
||||
|
@ -291,6 +299,10 @@ switch ($action) {
|
|||
$t->routers = $v1['routers'];
|
||||
$t->type = "PPPOE";
|
||||
$t->save();
|
||||
// Telegram to Admin
|
||||
sendTelegram( $c['username']." Activate Voucher PPPOE\n".$p['name_plan'].
|
||||
"\nRouter: ".$v1['routers'].
|
||||
"\nPrice: ".$p['price']);
|
||||
} else {
|
||||
try {
|
||||
$iport = explode(":", $mikrotik['ip_address']);
|
||||
|
@ -334,6 +346,9 @@ switch ($action) {
|
|||
$t->routers = $v1['routers'];
|
||||
$t->type = "PPPOE";
|
||||
$t->save();
|
||||
sendTelegram( $c['username']." Activate Voucher PPPOE\n".$p['name_plan'].
|
||||
"\nRouter: ".$v1['routers'].
|
||||
"\nPrice: ".$p['price']);
|
||||
}
|
||||
|
||||
$v1->status = "1";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue