Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Structures de données | |
class | ZIPExtraction |
Espaces de nommage | |
Joomla\Administrator | |
Fonctions | |
if(defined('_JOOMLA_UPDATE_TESTING')) | clearFileInOPCache (string $file) |
timingSafeEquals ($known, $user) | |
setLongTimeout () | |
setHugeMemoryLimit () | |
Variables | |
const | _JOOMLA_UPDATE 1 |
$retArray | |
$configuration = getConfiguration() | |
$enabled = !empty($configuration) | |
if($enabled) | if (! $enabled) |
if (defined( '_JOOMLA_UPDATE_TESTING')) clearFileInOPCache | ( | string | $file | ) |
Invalidate a file in OPcache.
Only applies if the file has a .php extension.
string | $file | The filepath to clear from OPcache |
Références null.
Référencé par ZIPExtraction\processLastExtractedFile(), et ZIPExtraction\processTypeLink().
setHugeMemoryLimit | ( | ) |
Sets the memory limit to 1GiB
setLongTimeout | ( | ) |
timingSafeEquals | ( | $known, | |
$user | |||
) |
A timing safe equals comparison.
Uses the built-in hash_equals() method if it exists. It SHOULD exist, as it's available since PHP 5.6 whereas even Joomla 4.0 requires PHP 7.2 or later. If for any reason the built-in function is not available (for example, a host has disabled it because they do not understand the first thing about security) we will fall back to a safe, userland implementation.
string | $known | The known value to check against |
string | $user | The user submitted value to check |
$configuration = getConfiguration() |
$enabled = !empty($configuration) |
Référencé par JGrid\action(), PlgExtensionJoomla\addUpdateSite(), TasksListCommand\doExecute(), UpdatesitesModel\getListQuery(), PlgSystemUpdatenotification\getSuperUsers(), InstallerHelper\getUpdateSitesInformation(), ModuleHelper\isAdminMultilang(), Multilanguage\isEnabled(), Microdata\isEnabled(), Associations\isEnabled(), CssMenu\load(), Token\onUserAuthenticate(), Pagination\orderDownIcon(), Pagination\orderUpIcon(), Banner\pinned(), OpenSSH\setBinaryOutput(), Cache\setCaching(), JavascriptRenderer\setEnableJqueryNoConflict(), JavascriptRenderer\setIncludeVendors(), PDOCollector\setRenderSqlWithParams(), DebugBar\setStackAlwaysUseSessionStorage(), JavascriptRenderer\setUseRequireJs(), SMTP\setVerp(), Updatesites\state(), Manage\state(), Modules\state(), et UpdateAdapter\toggleUpdateSite().
$retArray |
const _JOOMLA_UPDATE 1 |
Should you want to debug this file, please add a new line ABOVE this comment with the following contents (excluding the space star space at the start of this line):
define('_JOOMLA_UPDATE_DEBUG', 1);
This will do two things:
if ( $enabled) if(! $enabled) |