Path Configuration

This commit is contained in:
Ibnu Maksum
2024-02-26 14:38:04 +07:00
parent 617e628b04
commit d2fa9be8d1
18 changed files with 270 additions and 242 deletions

View File

@ -9,14 +9,14 @@
$action = $routes['1'];
if(file_exists('system/paymentgateway/'.$action.'.php')){
include 'system/paymentgateway/'.$action.'.php';
if(function_exists($action.'_payment_notification')){
if (file_exists($PAYMENTGATEWAY_PATH . DIRECTORY_SEPARATOR . $action . '.php')) {
include $PAYMENTGATEWAY_PATH . DIRECTORY_SEPARATOR . $action . '.php';
if (function_exists($action . '_payment_notification')) {
run_hook('callback_payment_notification'); #HOOK
call_user_func($action.'_payment_notification');
call_user_func($action . '_payment_notification');
die();
}
}
header('HTTP/1.1 404 Not Found');
echo 'Not Found';
echo 'Not Found';