2022-09-10 13:17:38 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
2023-10-12 16:55:42 +08:00
|
|
|
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
|
|
|
|
* by https://t.me/ibnux
|
2022-09-10 13:17:38 +08:00
|
|
|
**/
|
2022-09-17 22:05:24 +08:00
|
|
|
|
2023-10-12 16:55:42 +08:00
|
|
|
|
2022-09-10 13:17:38 +08:00
|
|
|
$action = $routes['1'];
|
|
|
|
|
|
|
|
|
2024-02-26 15:38:04 +08:00
|
|
|
if (file_exists($PAYMENTGATEWAY_PATH . DIRECTORY_SEPARATOR . $action . '.php')) {
|
|
|
|
include $PAYMENTGATEWAY_PATH . DIRECTORY_SEPARATOR . $action . '.php';
|
|
|
|
if (function_exists($action . '_payment_notification')) {
|
2022-09-18 01:00:40 +08:00
|
|
|
run_hook('callback_payment_notification'); #HOOK
|
2024-02-26 15:38:04 +08:00
|
|
|
call_user_func($action . '_payment_notification');
|
2022-09-17 22:05:24 +08:00
|
|
|
die();
|
|
|
|
}
|
|
|
|
}
|
2022-09-10 13:17:38 +08:00
|
|
|
|
2022-09-17 22:05:24 +08:00
|
|
|
header('HTTP/1.1 404 Not Found');
|
2024-02-26 15:38:04 +08:00
|
|
|
echo 'Not Found';
|