-
{PHP internal code} — CodeIgniter\Debug\Exceptions->errorHandler ()
-
SYSTEMPATH/Session/Session.php : 294 — ini_set()
-
SYSTEMPATH/Session/Session.php : 240 — CodeIgniter\Session\Session->configure ()
233 234 if (session_status() === PHP_SESSION_ACTIVE) { 235 $this->logger->warning('Session: Sessions is enabled, and one exists. Please don\'t $session->start();'); 236 237 return; 238 } 239 240 $this->configure(); 241 $this->setSaveHandler(); 242 243 // Sanitize the cookie, because apparently PHP doesn't do that for userspace handlers 244 if (isset($_COOKIE[$this->sessionCookieName]) 245 && (! is_string($_COOKIE[$this->sessionCookieName]) || ! preg_match('#\A' . $this->sidRegexp . '\z#', $_COOKIE[$this->sessionCookieName])) 246 ) { 247 unset($_COOKIE[$this->sessionCookieName]);
-
SYSTEMPATH/Config/Services.php : 674 — CodeIgniter\Session\Session->start ()
667 $driver = new $driverName($config, AppServices::request()->getIPAddress()); 668 $driver->setLogger($logger); 669 670 $session = new Session($driver, $config); 671 $session->setLogger($logger); 672 673 if (session_status() === PHP_SESSION_NONE) { 674 $session->start(); 675 } 676 677 return $session; 678 } 679 680 /** 681 * The Throttler class provides a simple method for implementing
-
SYSTEMPATH/Config/BaseService.php : 252 — CodeIgniter\Config\Services::session ()
245 { 246 $service = static::serviceExists($name); 247 248 if ($service === null) { 249 return null; 250 } 251 252 return $service::$name(...$arguments); 253 } 254 255 /** 256 * Check if the requested service is defined and return the declaring 257 * class. Return null if not found. 258 */ 259 public static function serviceExists(string $name): ?string
-
SYSTEMPATH/Config/BaseService.php : 193 — CodeIgniter\Config\BaseService::__callStatic ()
186 return static::$mocks[$key]; 187 } 188 189 if (! isset(static::$instances[$key])) { 190 // Make sure $getShared is false 191 $params[] = false; 192 193 static::$instances[$key] = AppServices::$key(...$params); 194 } 195 196 return static::$instances[$key]; 197 } 198 199 /** 200 * The Autoloader class is the central class that handles our
-
SYSTEMPATH/Config/Services.php : 641 — CodeIgniter\Config\BaseService::getSharedInstance ()
634 * Return the session manager. 635 * 636 * @return Session 637 */ 638 public static function session(?App $config = null, bool $getShared = true) 639 { 640 if ($getShared) { 641 return static::getSharedInstance('session', $config); 642 } 643 644 $config ??= config('App'); 645 assert($config instanceof App); 646 647 $logger = AppServices::logger(); 648
-
SYSTEMPATH/Config/BaseService.php : 252 — CodeIgniter\Config\Services::session ()
245 { 246 $service = static::serviceExists($name); 247 248 if ($service === null) { 249 return null; 250 } 251 252 return $service::$name(...$arguments); 253 } 254 255 /** 256 * Check if the requested service is defined and return the declaring 257 * class. Return null if not found. 258 */ 259 public static function serviceExists(string $name): ?string
-
APPPATH/Config/Globals.php : 29 — CodeIgniter\Config\BaseService::__callStatic ()
22 public static $authCheck = false; 23 public static $authUser = null; 24 public static $darkMode = 0; 25 26 public static function setGlobals() 27 { 28 self::$db = \Config\Database::connect(); 29 $session = \Config\Services::session(); 30 //set themes 31 self::$themes = self::$db->table('themes')->get()->getResult(); 32 //set general settings 33 self::$generalSettings = self::$db->table('general_settings')->where('id', 1)->get()->getRow(); 34 //set routes 35 self::$customRoutes = self::$db->table('routes')->get()->getRow(); 36 //set languages
-
APPPATH/Config/Globals.php : 120 — Config\Globals::setGlobals ()
113 114 public static function updateLangBaseURL($shortForm) 115 { 116 self::$langBaseUrl = base_url($shortForm); 117 } 118 } 119 120 Globals::setGlobals(); 121
-
include_once SYSTEMPATH/Autoloader/Autoloader.php — include_once()
-
SYSTEMPATH/Autoloader/Autoloader.php : 289 — CodeIgniter\Autoloader\Autoloader->includeFile ()
282 283 foreach ($this->prefixes as $namespace => $directories) { 284 foreach ($directories as $directory) { 285 $directory = rtrim($directory, '\\/'); 286 287 if (strpos($class, $namespace) === 0) { 288 $filePath = $directory . str_replace('\\', DIRECTORY_SEPARATOR, substr($class, strlen($namespace))) . '.php'; 289 $filename = $this->includeFile($filePath); 290 291 if ($filename) { 292 return $filename; 293 } 294 } 295 } 296 }
-
SYSTEMPATH/Autoloader/Autoloader.php : 267 — CodeIgniter\Autoloader\Autoloader->loadInNamespace ()
260 * on failure. 261 */ 262 public function loadClass(string $class) 263 { 264 $class = trim($class, '\\'); 265 $class = str_ireplace('.php', '', $class); 266 267 return $this->loadInNamespace($class); 268 } 269 270 /** 271 * Loads the class file for a given class name. 272 * 273 * @param string $class The fully-qualified class name 274 *
-
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 /* 12 * -------------------------------------------------------------------- 13 * Router Setup 14 * -------------------------------------------------------------------- 15 */
-
require SYSTEMPATH/Router/RouteCollection.php — require()
-
SYSTEMPATH/CodeIgniter.php : 800 — CodeIgniter\Router\RouteCollection->loadRoutes ()
793 * @return string|string[]|null Route filters, that is, the filters specified in the routes file 794 * 795 * @throws RedirectException 796 */ 797 protected function tryToRouteIt(?RouteCollectionInterface $routes = null) 798 { 799 if ($routes === null) { 800 $routes = Services::routes()->loadRoutes(); 801 } 802 803 // $routes is defined in Config/Routes.php 804 $this->router = Services::router($routes, $this->request); 805 806 $path = $this->determinePath(); 807
-
SYSTEMPATH/CodeIgniter.php : 447 — CodeIgniter\CodeIgniter->tryToRouteIt ()
440 * 441 * @deprecated $returnResponse is deprecated. 442 */ 443 protected function handleRequest(?RouteCollectionInterface $routes, Cache $cacheConfig, bool $returnResponse = false) 444 { 445 $this->returnResponse = $returnResponse; 446 447 $routeFilter = $this->tryToRouteIt($routes); 448 449 $uri = $this->determinePath(); 450 451 if ($this->enableFilters) { 452 // Start up the filters 453 $filters = Services::filters(); 454
-
SYSTEMPATH/CodeIgniter.php : 366 — CodeIgniter\CodeIgniter->handleRequest ()
359 $this->response->send(); 360 $this->callExit(EXIT_SUCCESS); 361 362 return; 363 } 364 365 try { 366 return $this->handleRequest($routes, $cacheConfig, $returnResponse); 367 } catch (RedirectException $e) { 368 $logger = Services::logger(); 369 $logger->info('REDIRECTED ROUTE at ' . $e->getMessage()); 370 371 // If the route is a 'redirect' route, it throws 372 // the exception with the $to as the message 373 $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 set up, it's time to actually fire 77 * up the engines and make this app do its thang. 78 */ 79 80 $app->run(); 81 //echo password_hash('12345678', PASSWORD_DEFAULT);