phpnuxbill/system/controllers/callback.php

22 lines
501 B
PHP
Raw Normal View History

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'];
2022-09-17 22:05:24 +08:00
if(file_exists('system/paymentgateway/'.$action.'.php')){
include 'system/paymentgateway/'.$action.'.php';
if(function_exists($action.'_payment_notification')){
2022-09-18 01:00:40 +08:00
run_hook('callback_payment_notification'); #HOOK
2022-09-17 22:05:24 +08:00
call_user_func($action.'_payment_notification');
die();
}
}
2022-09-10 13:17:38 +08:00
2022-09-17 22:05:24 +08:00
header('HTTP/1.1 404 Not Found');
echo 'Not Found';