-
{PHP internal code} — CodeIgniter\Debug\Exceptions->errorHandler ()
-
SYSTEMPATH/Session/Session.php : 286 — ini_set()
-
SYSTEMPATH/Session/Session.php : 224 — CodeIgniter\Session\Session->configure ()
217 218 if (session_status() === PHP_SESSION_ACTIVE) { 219 $this->logger->warning('Session: Sessions is enabled, and one exists.Please don\'t $session->start();'); 220 221 return; 222 } 223 224 $this->configure(); 225 $this->setSaveHandler(); 226 227 // Sanitize the cookie, because apparently PHP doesn't do that for userspace handlers 228 if (isset($_COOKIE[$this->sessionCookieName]) 229 && (! is_string($_COOKIE[$this->sessionCookieName]) || ! preg_match('#\A' . $this->sidRegexp . '\z#', $_COOKIE[$this->sessionCookieName])) 230 ) { 231 unset($_COOKIE[$this->sessionCookieName]);
-
SYSTEMPATH/Config/Services.php : 665 — CodeIgniter\Session\Session->start ()
658 $driver = new $driverName($config, AppServices::request()->getIPAddress()); 659 $driver->setLogger($logger); 660 661 $session = new Session($driver, $config); 662 $session->setLogger($logger); 663 664 if (session_status() === PHP_SESSION_NONE) { 665 $session->start(); 666 } 667 668 return $session; 669 } 670 671 /** 672 * The Throttler class provides a simple method for implementing
-
SYSTEMPATH/Config/BaseService.php : 253 — CodeIgniter\Config\Services::session ()
246 { 247 $service = static::serviceExists($name); 248 249 if ($service === null) { 250 return null; 251 } 252 253 return $service::$name(...$arguments); 254 } 255 256 /** 257 * Check if the requested service is defined and return the declaring 258 * class. Return null if not found. 259 */ 260 public static function serviceExists(string $name): ?string
-
SYSTEMPATH/Config/BaseService.php : 194 — CodeIgniter\Config\BaseService::__callStatic ()
187 return static::$mocks[$key]; 188 } 189 190 if (! isset(static::$instances[$key])) { 191 // Make sure $getShared is false 192 $params[] = false; 193 194 static::$instances[$key] = AppServices::$key(...$params); 195 } 196 197 return static::$instances[$key]; 198 } 199 200 /** 201 * The Autoloader class is the central class that handles our
-
SYSTEMPATH/Config/Services.php : 637 — CodeIgniter\Config\BaseService::getSharedInstance ()
630 * Return the session manager. 631 * 632 * @return Session 633 */ 634 public static function session(?App $config = null, bool $getShared = true) 635 { 636 if ($getShared) { 637 return static::getSharedInstance('session', $config); 638 } 639 640 $config ??= config('App'); 641 $logger = AppServices::logger(); 642 643 $driverName = $config->sessionDriver; 644
-
SYSTEMPATH/Config/BaseService.php : 253 — CodeIgniter\Config\Services::session ()
246 { 247 $service = static::serviceExists($name); 248 249 if ($service === null) { 250 return null; 251 } 252 253 return $service::$name(...$arguments); 254 } 255 256 /** 257 * Check if the requested service is defined and return the declaring 258 * class. Return null if not found. 259 */ 260 public static function serviceExists(string $name): ?string
-
APPPATH/Config/Globals.php : 28 — CodeIgniter\Config\BaseService::__callStatic ()
21 public static $langBaseUrl = ""; 22 public static $authCheck = false; 23 public static $authUser = null; 24 25 public static function setGlobals() 26 { 27 self::$db = \Config\Database::connect(); 28 $session = \Config\Services::session(); 29 //set themes 30 self::$themes = self::$db->table('themes')->get()->getResult(); 31 //set general settings 32 self::$generalSettings = self::$db->table('general_settings')->where('id', 1)->get()->getRow(); 33 //set routes 34 self::$customRoutes = self::$db->table('routes')->get()->getRow(); 35 //set languages
-
APPPATH/Config/Globals.php : 111 — Config\Globals::setGlobals ()
104 105 public static function updateLangBaseURL($shortForm) 106 { 107 self::$langBaseUrl = base_url($shortForm); 108 } 109 } 110 111 Globals::setGlobals(); 112
-
include_once SYSTEMPATH/Autoloader/Autoloader.php — include_once()
-
SYSTEMPATH/Autoloader/Autoloader.php : 259 — CodeIgniter\Autoloader\Autoloader->includeFile ()
252 253 foreach ($this->prefixes as $namespace => $directories) { 254 foreach ($directories as $directory) { 255 $directory = rtrim($directory, '\\/'); 256 257 if (strpos($class, $namespace) === 0) { 258 $filePath = $directory . str_replace('\\', DIRECTORY_SEPARATOR, substr($class, strlen($namespace))) . '.php'; 259 $filename = $this->includeFile($filePath); 260 261 if ($filename) { 262 return $filename; 263 } 264 } 265 } 266 }
-
SYSTEMPATH/Autoloader/Autoloader.php : 237 — CodeIgniter\Autoloader\Autoloader->loadInNamespace ()
230 * on failure. 231 */ 232 public function loadClass(string $class) 233 { 234 $class = trim($class, '\\'); 235 $class = str_ireplace('.php', '', $class); 236 237 return $this->loadInNamespace($class); 238 } 239 240 /** 241 * Loads the class file for a given class name. 242 * 243 * @param string $class The fully-qualified class name 244 *
-
APPPATH/Config/Routes.php : 7 — CodeIgniter\Autoloader\Autoloader->loadClass ()
1 <?php 2 3 namespace Config; 4 5 // Create a new instance of our RouteCollection class. 6 $routes = Services::routes(); 7 $languages = Globals::$languages; 8 $generalSettings = Globals::$generalSettings; 9 $customRoutes = Globals::$customRoutes; 10 11 // Load the system's routing file first, so that the app and ENVIRONMENT 12 // can override as needed. 13 if (file_exists(SYSTEMPATH . 'Config/Routes.php')) { 14 require SYSTEMPATH . 'Config/Routes.php'; 15 }
-
require SYSTEMPATH/CodeIgniter.php — require()
-
SYSTEMPATH/CodeIgniter.php : 430 — CodeIgniter\CodeIgniter->tryToRouteIt ()
423 * 424 * @deprecated $returnResponse is deprecated. 425 */ 426 protected function handleRequest(?RouteCollectionInterface $routes, Cache $cacheConfig, bool $returnResponse = false) 427 { 428 $this->returnResponse = $returnResponse; 429 430 $routeFilter = $this->tryToRouteIt($routes); 431 432 $uri = $this->determinePath(); 433 434 // Start up the filters 435 $filters = Services::filters(); 436 437 // If any filters were specified within the routes file,
-
SYSTEMPATH/CodeIgniter.php : 351 — CodeIgniter\CodeIgniter->handleRequest ()
344 345 // spark command has nothing to do with HTTP redirect and 404 346 if ($this->isSparked()) { 347 return $this->handleRequest($routes, $cacheConfig, $returnResponse); 348 } 349 350 try { 351 return $this->handleRequest($routes, $cacheConfig, $returnResponse); 352 } catch (RedirectException $e) { 353 $logger = Services::logger(); 354 $logger->info('REDIRECTED ROUTE at ' . $e->getMessage()); 355 356 // If the route is a 'redirect' route, it throws 357 // the exception with the $to as the message 358 $this->response->redirect(base_url($e->getMessage()), 'auto', $e->getCode());
-
FCPATH/index.php : 80 — CodeIgniter\CodeIgniter->run ()
73 *--------------------------------------------------------------- 74 * LAUNCH THE APPLICATION 75 *--------------------------------------------------------------- 76 * Now that everything is setup, it's time to actually fire 77 * up the engines and make this app do its thang. 78 */ 79 80 $app->run(); 81