Skip to content

Commit

Permalink
Update bpay.php
Browse files Browse the repository at this point in the history
Remove ROOTDIR file check as it is effecting some users.
  • Loading branch information
beanonymous authored Feb 4, 2019
1 parent 200e209 commit 140bcd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/gateways/bpay.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function gateway_check_version(){

function gate_db_access($action,$key = 0, $display_errors = true){
if(!isset($db_host))
if (file_exists(ROOTDIR.'/configuration.php')) {include(ROOTDIR."/configuration.php");}elseif(file_exists('configuration.php')) {require("configuration.php");}elseif(file_exists('../configuration.php')) {include("../configuration.php");}elseif(file_exists('../../configuration.php')) {include("../../configuration.php");}else{echo "No configuration.php file found."; return;}
if(file_exists('configuration.php')) {require("configuration.php");}elseif(file_exists('../configuration.php')) {include("../configuration.php");}elseif(file_exists('../../configuration.php')) {include("../../configuration.php");}else{echo "No configuration.php file found."; return;}

// Create connection
$connGate = new mysqli($db_host, $db_username, $db_password,$db_name);
Expand Down

0 comments on commit 140bcd2

Please sign in to comment.