20 $_HOMEBANKING_INC_PATH =
"/home/httpd/banking/includes/";
23 $_HOMEBANKING_LIB_PATH =
"/home/httpd/library/";
32 if ($_SERVER[
'SCRIPT_NAME'] != $_SERVER[
'PHP_SELF']) {
34 $remainDir = str_ireplace($_SERVER[
'SCRIPT_NAME'] .
'/',
'', $_SERVER[
'PHP_SELF']);
37 $loadScript = substr($remainDir, 0, (strpos($remainDir,
'/') ? strpos($remainDir,
'/') : strlen($remainDir)));
38 $loadScript = ($loadScript ==
'' ?
'hcuLogin' : $loadScript);
53 switch ($loadScript) {
55 $brokerScript =
'hcuLogin';
59 if ($brokerScript !=
'') {
60 $fileToInclude = $_HOMEBANKING_INC_PATH . $brokerScript;
61 if (is_readable($fileToInclude)) {
62 include($fileToInclude);
64 throw new ErrorException(
'unable to read the file ');
68 }
catch (Throwable $t) {
73 }
catch (Exception $e) {