Build the archlinexp.eu/www baseline from clean sources on a dedicated
site branch, per the web-baseline deploy model: vanilla Joomla 3.9.2 core
plus the developer-sourced own-code plus a vetted module layer, with the
Cadline core delta applied on the 3.9.2 base. The generator is reused
unchanged: build-baseline.sh is site-agnostic, only the content differs.
Layers:
- core/ vanilla Joomla 3.9.2 official package (installer removed)
- cadline/ own-code from the developer source (beiratkozas, maintenance,
mod_al_*, mod_alusers, mod_course_list) plus 11 assets that
the developer source lacks
- deployed/ 95 third-party module slugs taken from live, YARA-vetted
- overrides/ the 5 genuine Cadline core modifications, on the 3.9.2 base
The live core carried 31 stale com_users files: the updater skipped the
customized ones, so the version string said 3.9.2 while the code did not.
Taking vanilla 3.9.2 plus the 2 real deltas fixes that silently. 289
planted paths are excluded through malware-iocs.paths.
Verification: build-baseline.sh -> out/ = 12286 files; YARA (16 rules) on
every source layer and on the built tree = 0 hits; not one IOC path
present; no disguised .json dropper; core verified as 3.9.2.
Assisted-by: claude-code@claude-opus-4-8
50 lines
1.4 KiB
PHP
50 lines
1.4 KiB
PHP
<?php
|
|
/**
|
|
* @package Joomla.Site
|
|
*
|
|
* @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
|
|
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
*/
|
|
|
|
/**
|
|
* Define the application's minimum supported PHP version as a constant so it can be referenced within the application.
|
|
*/
|
|
define('JOOMLA_MINIMUM_PHP', '5.3.10');
|
|
|
|
if (version_compare(PHP_VERSION, JOOMLA_MINIMUM_PHP, '<'))
|
|
{
|
|
die('Your host needs to use PHP ' . JOOMLA_MINIMUM_PHP . ' or higher to run this version of Joomla!');
|
|
}
|
|
|
|
// Saves the start time and memory usage.
|
|
$startTime = microtime(1);
|
|
$startMem = memory_get_usage();
|
|
|
|
/**
|
|
* Constant that is checked in included files to prevent direct access.
|
|
* define() is used in the installation folder rather than "const" to not error for PHP 5.2 and lower
|
|
*/
|
|
define('_JEXEC', 1);
|
|
|
|
if (file_exists(__DIR__ . '/defines.php'))
|
|
{
|
|
include_once __DIR__ . '/defines.php';
|
|
}
|
|
|
|
if (!defined('_JDEFINES'))
|
|
{
|
|
define('JPATH_BASE', __DIR__);
|
|
require_once JPATH_BASE . '/includes/defines.php';
|
|
}
|
|
|
|
require_once JPATH_BASE . '/includes/framework.php';
|
|
|
|
// Set profiler start time and memory usage and mark afterLoad in the profiler.
|
|
JDEBUG ? JProfiler::getInstance('Application')->setStart($startTime, $startMem)->mark('afterLoad') : null;
|
|
|
|
// Instantiate the application.
|
|
$app = JFactory::getApplication('site');
|
|
|
|
// Execute the application.
|
|
$app->execute();
|