elkarte /
Elkarte
| 1 | <?php |
||||
| 2 | |||||
| 3 | /** |
||||
| 4 | * Initialize the ElkArte environment. |
||||
| 5 | * |
||||
| 6 | * @package ElkArte Forum |
||||
| 7 | * @copyright ElkArte Forum contributors |
||||
| 8 | * @license BSD http://opensource.org/licenses/BSD-3-Clause (see accompanying LICENSE.txt file) |
||||
| 9 | * |
||||
| 10 | * This file contains code covered by: |
||||
| 11 | * copyright: 2011 Simple Machines (http://www.simplemachines.org) |
||||
| 12 | * |
||||
| 13 | * @version 2.0 dev |
||||
| 14 | */ |
||||
| 15 | |||||
| 16 | use BBC\ParserWrapper; |
||||
| 17 | use ElkArte\Cache\Cache; |
||||
| 18 | use ElkArte\Controller\Auth; |
||||
| 19 | use ElkArte\Debug; |
||||
| 20 | use ElkArte\Errors\Errors; |
||||
|
0 ignored issues
–
show
|
|||||
| 21 | use ElkArte\EventManager; |
||||
| 22 | use ElkArte\ext\Composer\Autoload\ClassLoader; |
||||
| 23 | use ElkArte\Helper\TokenHash; |
||||
| 24 | use ElkArte\Hooks; |
||||
| 25 | use ElkArte\MembersList; |
||||
| 26 | use ElkArte\Request; |
||||
| 27 | use ElkArte\Server; |
||||
| 28 | use ElkArte\Themes\ThemeLoader; |
||||
| 29 | use ElkArte\User; |
||||
| 30 | |||||
| 31 | /** |
||||
| 32 | * Class Bootstrap |
||||
| 33 | * |
||||
| 34 | * Takes care of the initial loading and feeding of Elkarte from |
||||
| 35 | * either SSI or Index |
||||
| 36 | */ |
||||
| 37 | class Bootstrap |
||||
| 38 | { |
||||
| 39 | /** @var array What is returned by the function getrusage. */ |
||||
| 40 | protected $rusage_start = []; |
||||
| 41 | |||||
| 42 | /** |
||||
| 43 | * Bootstrap constructor. |
||||
| 44 | * |
||||
| 45 | * @param bool $standalone |
||||
| 46 | * - True to boot outside elkarte |
||||
| 47 | * - False to bootstrap the main elkarte site. |
||||
| 48 | */ |
||||
| 49 | public function __construct($standalone = true) |
||||
| 50 | { |
||||
| 51 | // Bootstrap only once. |
||||
| 52 | if (!defined('ELKBOOT')) |
||||
| 53 | { |
||||
| 54 | // We're going to set a few globals |
||||
| 55 | global $time_start, $ssi_error_reporting, $db_show_debug; |
||||
| 56 | |||||
| 57 | // Your on the clock |
||||
| 58 | $time_start = microtime(true); |
||||
| 59 | |||||
| 60 | // Unless settings.php tells us otherwise |
||||
| 61 | $db_show_debug = false; |
||||
| 62 | |||||
| 63 | // Report errors but not depreciated ones |
||||
| 64 | $ssi_error_reporting = error_reporting(E_ALL & ~E_DEPRECATED); |
||||
| 65 | |||||
| 66 | // Get the things needed for ALL modes |
||||
| 67 | $this->bringUpBasics(); |
||||
| 68 | |||||
| 69 | // Going to run from the side entrance and not directly from inside elkarte |
||||
| 70 | if ($standalone) |
||||
| 71 | { |
||||
| 72 | $this->ssi_main(); |
||||
| 73 | } |
||||
| 74 | } |
||||
| 75 | } |
||||
| 76 | |||||
| 77 | /** |
||||
| 78 | * Calls various initialization functions in the necessary order |
||||
| 79 | */ |
||||
| 80 | public function bringUpBasics() |
||||
| 81 | { |
||||
| 82 | $this->setConstants(); |
||||
| 83 | $this->setRusage(); |
||||
| 84 | $this->clearGlobals(); |
||||
| 85 | $this->loadSettingsFile(); |
||||
| 86 | $this->validatePaths(); |
||||
| 87 | $this->loadDependants(); |
||||
| 88 | $this->loadAutoloader(); |
||||
| 89 | $this->checkMaintance(); |
||||
| 90 | $this->setDebug(); |
||||
| 91 | $this->bringUp(); |
||||
| 92 | } |
||||
| 93 | |||||
| 94 | /** |
||||
| 95 | * Set the core constants, you know the ones we often forget to |
||||
| 96 | * update on new releases. |
||||
| 97 | */ |
||||
| 98 | private function setConstants() |
||||
| 99 | { |
||||
| 100 | // First things first, but not necessarily in that order. |
||||
| 101 | if (!defined('ELK')) |
||||
| 102 | { |
||||
| 103 | define('ELK', '1'); |
||||
| 104 | } |
||||
| 105 | |||||
| 106 | define('ELKBOOT', '1'); |
||||
| 107 | |||||
| 108 | // The software version |
||||
| 109 | define('FORUM_VERSION', 'ElkArte 2.0 dev'); |
||||
| 110 | |||||
| 111 | // Shortcut for the browser cache stale |
||||
| 112 | define('CACHE_STALE', '?20dev'); |
||||
| 113 | } |
||||
| 114 | |||||
| 115 | /** |
||||
| 116 | * Get initial resource usage |
||||
| 117 | */ |
||||
| 118 | private function setRusage() |
||||
| 119 | { |
||||
| 120 | $this->rusage_start = getrusage(); |
||||
| 121 | } |
||||
| 122 | |||||
| 123 | /** |
||||
| 124 | * If they glo, they need to be cleaned. |
||||
| 125 | */ |
||||
| 126 | private function clearGlobals() |
||||
| 127 | { |
||||
| 128 | // We don't need no globals. (a bug in "old" versions of PHP) |
||||
| 129 | foreach (['db_character_set', 'cachedir'] as $variable) |
||||
| 130 | { |
||||
| 131 | if (isset($GLOBALS[$variable])) |
||||
| 132 | { |
||||
| 133 | unset($GLOBALS[$variable], $GLOBALS[$variable]); |
||||
| 134 | } |
||||
| 135 | } |
||||
| 136 | } |
||||
| 137 | |||||
| 138 | /** |
||||
| 139 | * Loads the Settings.php values into the global space |
||||
| 140 | */ |
||||
| 141 | private function loadSettingsFile() |
||||
| 142 | { |
||||
| 143 | // All those wonderful things found in settings |
||||
| 144 | global $maintenance, $mtitle, $msubject, $mmessage, $mbname, $language, $boardurl, $webmaster_email; |
||||
| 145 | global $cookiename, $db_type, $db_server, $db_port, $db_name, $db_user, $db_passwd; |
||||
| 146 | global $ssi_db_user, $ssi_db_passwd, $db_prefix, $db_persist, $db_error_send; |
||||
| 147 | global $cache_uid, $cache_password, $cache_enable, $cache_servers, $cache_accelerator; |
||||
| 148 | global $db_show_debug, $url_format, $cachedir, $boarddir, $sourcedir, $extdir, $languagedir; |
||||
| 149 | |||||
| 150 | // Where the Settings.php file is located |
||||
| 151 | $settings_loc = __DIR__ . '/Settings.php'; |
||||
| 152 | |||||
| 153 | // First thing: if the installation dir exists, just send anybody there |
||||
| 154 | // The IGNORE_INSTALL_DIR constant is for developers only. Do not add it on production sites |
||||
| 155 | if (file_exists('install') && (file_exists('install/install.php') || file_exists('install/upgrade.php'))) |
||||
| 156 | { |
||||
| 157 | if (file_exists($settings_loc)) |
||||
| 158 | { |
||||
| 159 | require_once($settings_loc); |
||||
| 160 | } |
||||
| 161 | |||||
| 162 | if (!defined('IGNORE_INSTALL_DIR')) |
||||
| 163 | { |
||||
| 164 | $redirec_file = file_exists($settings_loc) && empty($_SESSION['installing']) ? 'upgrade.php' : 'install.php'; |
||||
| 165 | |||||
| 166 | // To early for constants or autoloader |
||||
| 167 | require_once($boarddir . '/sources/ElkArte/Server.php'); |
||||
| 168 | $server = new Server($_SERVER); |
||||
| 169 | |||||
| 170 | $version_running = str_replace('ElkArte ', '', FORUM_VERSION); |
||||
| 171 | $location = $server->supportsSSL() ? 'https://' : 'http://'; |
||||
| 172 | $location .= $server->getHost(); |
||||
| 173 | $temp = preg_replace('~/' . preg_quote(basename($boardurl . '/index.php'), '~') . '(/.+)?$~', '', str_replace('\\', '/', dirname($_SERVER['PHP_SELF']))); |
||||
| 174 | $location .= ($temp !== '/') ? $temp : ''; |
||||
| 175 | |||||
| 176 | // Too early to use Headers class etc. |
||||
| 177 | header('Location:' . $location . '/install/' . $redirec_file . '?v=' . $version_running); |
||||
| 178 | die(); |
||||
| 179 | } |
||||
| 180 | } |
||||
| 181 | else |
||||
| 182 | { |
||||
| 183 | require_once($settings_loc); |
||||
| 184 | } |
||||
| 185 | } |
||||
| 186 | |||||
| 187 | /** |
||||
| 188 | * Validate the paths set in Settings.php, correct as needed and move them to constants. |
||||
| 189 | */ |
||||
| 190 | private function validatePaths() |
||||
| 191 | { |
||||
| 192 | global $boarddir, $sourcedir, $cachedir, $extdir, $languagedir; |
||||
| 193 | |||||
| 194 | // Make sure the paths are correct... at least try to fix them. |
||||
| 195 | if (!file_exists($boarddir) && file_exists(__DIR__ . '/bootstrap.php')) |
||||
| 196 | { |
||||
| 197 | $boarddir = __DIR__; |
||||
| 198 | } |
||||
| 199 | |||||
| 200 | if (!file_exists($sourcedir . '/SiteDispatcher.class.php') && file_exists($boarddir . '/sources')) |
||||
| 201 | { |
||||
| 202 | $sourcedir = $boarddir . '/sources'; |
||||
| 203 | } |
||||
| 204 | |||||
| 205 | // Check that directories which didn't exist in past releases are initialized. |
||||
| 206 | if ((empty($cachedir) || !file_exists($cachedir)) && file_exists($boarddir . '/cache')) |
||||
| 207 | { |
||||
| 208 | $cachedir = $boarddir . '/cache'; |
||||
| 209 | } |
||||
| 210 | |||||
| 211 | if ((empty($extdir) || !file_exists($extdir)) && file_exists($sourcedir . '/ext')) |
||||
| 212 | { |
||||
| 213 | $extdir = $sourcedir . '/ext'; |
||||
| 214 | } |
||||
| 215 | |||||
| 216 | if ((empty($languagedir) || !file_exists($languagedir)) && file_exists($sourcedir . '/Languages/Index')) |
||||
| 217 | { |
||||
| 218 | $languagedir = $sourcedir . '/ElkArte/Languages'; |
||||
| 219 | } |
||||
| 220 | |||||
| 221 | // Time to forget about variables and go with constants! |
||||
| 222 | define('BOARDDIR', $boarddir); |
||||
| 223 | define('CACHEDIR', $cachedir); |
||||
| 224 | define('EXTDIR', $extdir); |
||||
| 225 | define('LANGUAGEDIR', $languagedir); |
||||
| 226 | define('SOURCEDIR', $sourcedir); |
||||
| 227 | define('ADMINDIR', $sourcedir . '/ElkArte/AdminController'); |
||||
| 228 | define('CONTROLLERDIR', $sourcedir . '/ElkArte/Controller'); |
||||
| 229 | define('SUBSDIR', $sourcedir . '/subs'); |
||||
| 230 | define('ADDONSDIR', $boarddir . '/Addons'); |
||||
| 231 | define('ELKARTEDIR', $sourcedir . '/ElkArte'); |
||||
| 232 | unset($boarddir, $cachedir, $sourcedir, $languagedir, $extdir); |
||||
| 233 | } |
||||
| 234 | |||||
| 235 | /** |
||||
| 236 | * We require access to several important files, so load them upfront |
||||
| 237 | */ |
||||
| 238 | private function loadDependants() |
||||
| 239 | { |
||||
| 240 | // Files we cannot live without. |
||||
| 241 | require_once(SOURCEDIR . '/QueryString.php'); |
||||
| 242 | require_once(SOURCEDIR . '/Session.php'); |
||||
| 243 | require_once(SOURCEDIR . '/Subs.php'); |
||||
| 244 | require_once(SOURCEDIR . '/Logging.php'); |
||||
| 245 | require_once(SOURCEDIR . '/Load.php'); |
||||
| 246 | require_once(SOURCEDIR . '/Security.php'); |
||||
| 247 | require_once(SUBSDIR . '/Cache.subs.php'); |
||||
| 248 | } |
||||
| 249 | |||||
| 250 | /** |
||||
| 251 | * The autoloader will take care of most requests for files |
||||
| 252 | */ |
||||
| 253 | private function loadAutoloader() |
||||
| 254 | { |
||||
| 255 | require_once(EXTDIR . '/ClassLoader.php'); |
||||
| 256 | |||||
| 257 | $loader = new ClassLoader(); |
||||
| 258 | $loader->setPsr4('ElkArte\\', SOURCEDIR . '/ElkArte'); |
||||
|
0 ignored issues
–
show
SOURCEDIR . '/ElkArte' of type string is incompatible with the type ElkArte\ext\Composer\Autoload\list expected by parameter $paths of ElkArte\ext\Composer\Aut...\ClassLoader::setPsr4().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||
| 259 | $loader->setPsr4('BBC\\', SOURCEDIR . '/ElkArte/BBC'); |
||||
| 260 | $loader->setPsr4('Addons\\', BOARDDIR . '/Addons'); |
||||
| 261 | $loader->register(); |
||||
| 262 | } |
||||
| 263 | |||||
| 264 | /** |
||||
| 265 | * Check if we are in maintenance mode, if so end here. |
||||
| 266 | */ |
||||
| 267 | private function checkMaintance() |
||||
| 268 | { |
||||
| 269 | global $maintenance, $ssi_maintenance_off; |
||||
| 270 | |||||
| 271 | // Don't do john didley if the forum's been shut down completely. |
||||
| 272 | if (empty($maintenance)) |
||||
| 273 | { |
||||
| 274 | return; |
||||
| 275 | } |
||||
| 276 | |||||
| 277 | if ((int) $maintenance !== 2) |
||||
| 278 | { |
||||
| 279 | return; |
||||
| 280 | } |
||||
| 281 | |||||
| 282 | if (isset($ssi_maintenance_off) && $ssi_maintenance_off === true) |
||||
| 283 | { |
||||
| 284 | return; |
||||
| 285 | } |
||||
| 286 | |||||
| 287 | Errors::instance()->display_maintenance_message(); |
||||
| 288 | } |
||||
| 289 | |||||
| 290 | /** |
||||
| 291 | * If you like lots of debug information in error messages and below the footer |
||||
| 292 | * then set $db_show_debug to true in settings. Don't do this on a production site. |
||||
| 293 | */ |
||||
| 294 | private function setDebug() |
||||
| 295 | { |
||||
| 296 | global $db_show_debug, $ssi_error_reporting; |
||||
| 297 | |||||
| 298 | // Show lots of debug information below the page, not for production sites |
||||
| 299 | if ($db_show_debug === true) |
||||
| 300 | { |
||||
| 301 | Debug::instance()->rusage('start', $this->rusage_start); |
||||
| 302 | $ssi_error_reporting = error_reporting(E_ALL | E_STRICT & ~8192); |
||||
| 303 | } |
||||
| 304 | } |
||||
| 305 | |||||
| 306 | /** |
||||
| 307 | * Time to see what has been requested, by whom and dispatch it to the proper handler |
||||
| 308 | */ |
||||
| 309 | private function bringUp() |
||||
| 310 | { |
||||
| 311 | global $context; |
||||
| 312 | |||||
| 313 | // Initiate the database connection and define some database functions to use. |
||||
| 314 | loadDatabase(); |
||||
| 315 | |||||
| 316 | // Let's set up our shiny new hooks handler. |
||||
| 317 | Hooks::init(database(), Debug::instance()); |
||||
| 318 | |||||
| 319 | // It's time for settings loaded from the database. |
||||
| 320 | reloadSettings(); |
||||
| 321 | |||||
| 322 | // Clean the request. |
||||
| 323 | cleanRequest(); |
||||
| 324 | |||||
| 325 | // Make sure we have the list of members for populating it |
||||
| 326 | MembersList::init(database(), Cache::instance(), ParserWrapper::instance()); |
||||
| 327 | |||||
| 328 | // Our good ole' contextual array, which will hold everything |
||||
| 329 | if (empty($context)) |
||||
| 330 | { |
||||
| 331 | $context = []; |
||||
| 332 | } |
||||
| 333 | } |
||||
| 334 | |||||
| 335 | /** |
||||
| 336 | * If you are running SSI standalone, you need to call this function after bootstrap is |
||||
| 337 | * initialized. |
||||
| 338 | */ |
||||
| 339 | public function ssi_main() |
||||
| 340 | { |
||||
| 341 | global $ssi_layers, $ssi_theme, $ssi_gzip, $ssi_ban, $ssi_guest_access; |
||||
| 342 | global $modSettings, $context, $board, $topic, $txt; |
||||
| 343 | |||||
| 344 | // Check on any hacking attempts. |
||||
| 345 | $this->_validRequestCheck(); |
||||
| 346 | |||||
| 347 | // Gzip output? (because it must be boolean and true, this can't be hacked.) |
||||
| 348 | if (isset($ssi_gzip) && $ssi_gzip === true && detectServer()->outPutCompressionEnabled()) |
||||
| 349 | { |
||||
| 350 | ob_start('ob_gzhandler'); |
||||
| 351 | } |
||||
| 352 | else |
||||
| 353 | { |
||||
| 354 | $modSettings['enableCompressedOutput'] = '0'; |
||||
| 355 | } |
||||
| 356 | |||||
| 357 | // Primarily, this is to fix the URLs... |
||||
| 358 | ob_start('ob_sessrewrite'); |
||||
| 359 | |||||
| 360 | // Start the session... known to scramble SSI includes in cases... |
||||
| 361 | if (!headers_sent()) |
||||
| 362 | { |
||||
| 363 | loadSession(); |
||||
| 364 | } |
||||
| 365 | else |
||||
| 366 | { |
||||
| 367 | if (isset($_COOKIE[session_name()]) || isset($_REQUEST[session_name()])) |
||||
| 368 | { |
||||
| 369 | // Make a stab at it, but ignore the E_WARNINGs generated because we can't send headers. |
||||
| 370 | $temp = error_reporting(error_reporting() & !E_WARNING); |
||||
| 371 | loadSession(); |
||||
| 372 | error_reporting($temp); |
||||
| 373 | } |
||||
| 374 | |||||
| 375 | if (!isset($_SESSION['session_value'])) |
||||
| 376 | { |
||||
| 377 | $tokenizer = new TokenHash(); |
||||
| 378 | $_SESSION['session_value'] = $tokenizer->generate_hash(32, session_id()); |
||||
| 379 | $_SESSION['session_var'] = substr(preg_replace('~^\d+~', '', $tokenizer->generate_hash(16, session_id())), 0, rand(7, 12)); |
||||
| 380 | } |
||||
| 381 | |||||
| 382 | // This is here only to avoid session errors in PHP7 |
||||
| 383 | // microtime effectively forces the replacing of the session in the db each |
||||
| 384 | // time the page is loaded |
||||
| 385 | $_SESSION['mictrotime'] = microtime(); |
||||
| 386 | } |
||||
| 387 | |||||
| 388 | // Get rid of $board and $topic... do stuff loadBoard would do. |
||||
| 389 | unset($board, $topic); |
||||
| 390 | $context['breadcrumbs'] = []; |
||||
| 391 | |||||
| 392 | // Load the user and their cookie, as well as their settings. |
||||
| 393 | User::load(true); |
||||
| 394 | $context['user']['is_mod'] = User::$info->is_mod ?? false; |
||||
| 395 | |||||
| 396 | // Load the current user's permissions.... |
||||
| 397 | loadPermissions(); |
||||
| 398 | |||||
| 399 | // Load the current or SSI theme. (just use $ssi_theme = id_theme;) |
||||
| 400 | new ThemeLoader(isset($ssi_theme) ? (int) $ssi_theme : 0); |
||||
| 401 | |||||
| 402 | // Load BadBehavior functions, but not when running from CLI |
||||
| 403 | if (!defined('STDIN') && runBadBehavior()) |
||||
| 404 | { |
||||
| 405 | // 403 and gone |
||||
| 406 | Errors::instance()->display_403_error(true); |
||||
| 407 | } |
||||
| 408 | |||||
| 409 | // Take care of any banning that needs to be done. |
||||
| 410 | if (isset($_REQUEST['ssi_ban']) || (isset($ssi_ban) && $ssi_ban === true)) |
||||
| 411 | { |
||||
| 412 | is_not_banned(); |
||||
| 413 | } |
||||
| 414 | |||||
| 415 | // Do we allow guests in here? |
||||
| 416 | if (empty($ssi_guest_access) && empty($modSettings['allow_guestAccess']) && User::$info->is_guest && basename($_SERVER['PHP_SELF']) !== 'SSI.php') |
||||
| 417 | { |
||||
| 418 | $controller = new Auth(new EventManager()); |
||||
| 419 | $controller->setUser(User::$info); |
||||
| 420 | $controller->action_kickguest(); |
||||
| 421 | obExit(null, true); |
||||
| 422 | } |
||||
| 423 | |||||
| 424 | if (!empty($modSettings['front_page']) && class_exists($modSettings['front_page']) |
||||
| 425 | && in_array('frontPageHook', get_class_methods($modSettings['front_page']))) |
||||
| 426 | { |
||||
| 427 | $modSettings['default_forum_action'] = ['action' => 'forum']; |
||||
| 428 | } |
||||
| 429 | else |
||||
| 430 | { |
||||
| 431 | $modSettings['default_forum_action'] = []; |
||||
| 432 | } |
||||
| 433 | |||||
| 434 | // Load the stuff like the menu bar, etc. |
||||
| 435 | if (isset($ssi_layers)) |
||||
| 436 | { |
||||
| 437 | $template_layers = theme()->getLayers(); |
||||
| 438 | $template_layers->removeAll(); |
||||
| 439 | foreach ($ssi_layers as $layer) |
||||
| 440 | { |
||||
| 441 | $template_layers->addBegin($layer); |
||||
| 442 | } |
||||
| 443 | |||||
| 444 | template_header(); |
||||
| 445 | } |
||||
| 446 | else |
||||
| 447 | { |
||||
| 448 | setupThemeContext(); |
||||
| 449 | } |
||||
| 450 | |||||
| 451 | // We need to set up user agent, and make more checks on the request |
||||
| 452 | $req = Request::instance(); |
||||
| 453 | |||||
| 454 | // Make sure they didn't muss around with the settings... but only if it's not cli. |
||||
| 455 | if (isset($_SERVER['REMOTE_ADDR']) && session_id() === '') |
||||
| 456 | { |
||||
| 457 | trigger_error($txt['ssi_session_broken']); |
||||
| 458 | } |
||||
| 459 | |||||
| 460 | // Without visiting the forum this session variable might not be set on submit. |
||||
| 461 | if (isset($_SESSION['USER_AGENT'])) |
||||
| 462 | { |
||||
| 463 | return; |
||||
| 464 | } |
||||
| 465 | |||||
| 466 | if (isset($_GET['ssi_function']) && $_GET['ssi_function'] === 'pollVote') |
||||
| 467 | { |
||||
| 468 | return; |
||||
| 469 | } |
||||
| 470 | |||||
| 471 | $_SESSION['USER_AGENT'] = $req->user_agent(); |
||||
| 472 | } |
||||
| 473 | |||||
| 474 | /** |
||||
| 475 | * Used to ensure SSI requests are valid and not a probing attempt |
||||
| 476 | */ |
||||
| 477 | private function _validRequestCheck() |
||||
| 478 | { |
||||
| 479 | global $ssi_theme, $ssi_layers; |
||||
| 480 | |||||
| 481 | // Check on any hacking attempts. |
||||
| 482 | if ( |
||||
| 483 | isset($_REQUEST['GLOBALS']) || isset($_COOKIE['GLOBALS']) |
||||
| 484 | || isset($_REQUEST['ssi_theme']) && (int) $_REQUEST['ssi_theme'] === (int) $ssi_theme |
||||
| 485 | || isset($_COOKIE['ssi_theme']) && (int) $_COOKIE['ssi_theme'] === (int) $ssi_theme |
||||
| 486 | || isset($_REQUEST['ssi_layers'], $ssi_layers) && $_REQUEST['ssi_layers'] == $ssi_layers |
||||
| 487 | || isset($_REQUEST['context'])) |
||||
| 488 | { |
||||
| 489 | die('No access...'); |
||||
| 490 | } |
||||
| 491 | } |
||||
| 492 | } |
||||
| 493 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths