Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/updraftp.../vendor/composer
File: ClassLoader.php
<?php
[0] Fix | Delete
[1] Fix | Delete
/*
[2] Fix | Delete
* This file is part of Composer.
[3] Fix | Delete
*
[4] Fix | Delete
* (c) Nils Adermann <naderman@naderman.de>
[5] Fix | Delete
* Jordi Boggiano <j.boggiano@seld.be>
[6] Fix | Delete
*
[7] Fix | Delete
* For the full copyright and license information, please view the LICENSE
[8] Fix | Delete
* file that was distributed with this source code.
[9] Fix | Delete
*/
[10] Fix | Delete
[11] Fix | Delete
namespace Composer\Autoload;
[12] Fix | Delete
[13] Fix | Delete
/**
[14] Fix | Delete
* ClassLoader implements a PSR-0, PSR-4 and classmap class loader.
[15] Fix | Delete
*
[16] Fix | Delete
* $loader = new \Composer\Autoload\ClassLoader();
[17] Fix | Delete
*
[18] Fix | Delete
* // register classes with namespaces
[19] Fix | Delete
* $loader->add('Symfony\Component', __DIR__.'/component');
[20] Fix | Delete
* $loader->add('Symfony', __DIR__.'/framework');
[21] Fix | Delete
*
[22] Fix | Delete
* // activate the autoloader
[23] Fix | Delete
* $loader->register();
[24] Fix | Delete
*
[25] Fix | Delete
* // to enable searching the include path (eg. for PEAR packages)
[26] Fix | Delete
* $loader->setUseIncludePath(true);
[27] Fix | Delete
*
[28] Fix | Delete
* In this example, if you try to use a class in the Symfony\Component
[29] Fix | Delete
* namespace or one of its children (Symfony\Component\Console for instance),
[30] Fix | Delete
* the autoloader will first look for the class under the component/
[31] Fix | Delete
* directory, and it will then fallback to the framework/ directory if not
[32] Fix | Delete
* found before giving up.
[33] Fix | Delete
*
[34] Fix | Delete
* This class is loosely based on the Symfony UniversalClassLoader.
[35] Fix | Delete
*
[36] Fix | Delete
* @author Fabien Potencier <fabien@symfony.com>
[37] Fix | Delete
* @author Jordi Boggiano <j.boggiano@seld.be>
[38] Fix | Delete
* @see https://www.php-fig.org/psr/psr-0/
[39] Fix | Delete
* @see https://www.php-fig.org/psr/psr-4/
[40] Fix | Delete
*/
[41] Fix | Delete
class ClassLoader
[42] Fix | Delete
{
[43] Fix | Delete
private $vendorDir;
[44] Fix | Delete
[45] Fix | Delete
// PSR-4
[46] Fix | Delete
private $prefixLengthsPsr4 = array();
[47] Fix | Delete
private $prefixDirsPsr4 = array();
[48] Fix | Delete
private $fallbackDirsPsr4 = array();
[49] Fix | Delete
[50] Fix | Delete
// PSR-0
[51] Fix | Delete
private $prefixesPsr0 = array();
[52] Fix | Delete
private $fallbackDirsPsr0 = array();
[53] Fix | Delete
[54] Fix | Delete
private $useIncludePath = false;
[55] Fix | Delete
private $classMap = array();
[56] Fix | Delete
private $classMapAuthoritative = false;
[57] Fix | Delete
private $missingClasses = array();
[58] Fix | Delete
private $apcuPrefix;
[59] Fix | Delete
[60] Fix | Delete
private static $registeredLoaders = array();
[61] Fix | Delete
[62] Fix | Delete
public function __construct($vendorDir = null)
[63] Fix | Delete
{
[64] Fix | Delete
$this->vendorDir = $vendorDir;
[65] Fix | Delete
}
[66] Fix | Delete
[67] Fix | Delete
public function getPrefixes()
[68] Fix | Delete
{
[69] Fix | Delete
if (!empty($this->prefixesPsr0)) {
[70] Fix | Delete
return call_user_func_array('array_merge', array_values($this->prefixesPsr0));
[71] Fix | Delete
}
[72] Fix | Delete
[73] Fix | Delete
return array();
[74] Fix | Delete
}
[75] Fix | Delete
[76] Fix | Delete
public function getPrefixesPsr4()
[77] Fix | Delete
{
[78] Fix | Delete
return $this->prefixDirsPsr4;
[79] Fix | Delete
}
[80] Fix | Delete
[81] Fix | Delete
public function getFallbackDirs()
[82] Fix | Delete
{
[83] Fix | Delete
return $this->fallbackDirsPsr0;
[84] Fix | Delete
}
[85] Fix | Delete
[86] Fix | Delete
public function getFallbackDirsPsr4()
[87] Fix | Delete
{
[88] Fix | Delete
return $this->fallbackDirsPsr4;
[89] Fix | Delete
}
[90] Fix | Delete
[91] Fix | Delete
public function getClassMap()
[92] Fix | Delete
{
[93] Fix | Delete
return $this->classMap;
[94] Fix | Delete
}
[95] Fix | Delete
[96] Fix | Delete
/**
[97] Fix | Delete
* @param array $classMap Class to filename map
[98] Fix | Delete
*/
[99] Fix | Delete
public function addClassMap(array $classMap)
[100] Fix | Delete
{
[101] Fix | Delete
if ($this->classMap) {
[102] Fix | Delete
$this->classMap = array_merge($this->classMap, $classMap);
[103] Fix | Delete
} else {
[104] Fix | Delete
$this->classMap = $classMap;
[105] Fix | Delete
}
[106] Fix | Delete
}
[107] Fix | Delete
[108] Fix | Delete
/**
[109] Fix | Delete
* Registers a set of PSR-0 directories for a given prefix, either
[110] Fix | Delete
* appending or prepending to the ones previously set for this prefix.
[111] Fix | Delete
*
[112] Fix | Delete
* @param string $prefix The prefix
[113] Fix | Delete
* @param array|string $paths The PSR-0 root directories
[114] Fix | Delete
* @param bool $prepend Whether to prepend the directories
[115] Fix | Delete
*/
[116] Fix | Delete
public function add($prefix, $paths, $prepend = false)
[117] Fix | Delete
{
[118] Fix | Delete
if (!$prefix) {
[119] Fix | Delete
if ($prepend) {
[120] Fix | Delete
$this->fallbackDirsPsr0 = array_merge(
[121] Fix | Delete
(array) $paths,
[122] Fix | Delete
$this->fallbackDirsPsr0
[123] Fix | Delete
);
[124] Fix | Delete
} else {
[125] Fix | Delete
$this->fallbackDirsPsr0 = array_merge(
[126] Fix | Delete
$this->fallbackDirsPsr0,
[127] Fix | Delete
(array) $paths
[128] Fix | Delete
);
[129] Fix | Delete
}
[130] Fix | Delete
[131] Fix | Delete
return;
[132] Fix | Delete
}
[133] Fix | Delete
[134] Fix | Delete
$first = $prefix[0];
[135] Fix | Delete
if (!isset($this->prefixesPsr0[$first][$prefix])) {
[136] Fix | Delete
$this->prefixesPsr0[$first][$prefix] = (array) $paths;
[137] Fix | Delete
[138] Fix | Delete
return;
[139] Fix | Delete
}
[140] Fix | Delete
if ($prepend) {
[141] Fix | Delete
$this->prefixesPsr0[$first][$prefix] = array_merge(
[142] Fix | Delete
(array) $paths,
[143] Fix | Delete
$this->prefixesPsr0[$first][$prefix]
[144] Fix | Delete
);
[145] Fix | Delete
} else {
[146] Fix | Delete
$this->prefixesPsr0[$first][$prefix] = array_merge(
[147] Fix | Delete
$this->prefixesPsr0[$first][$prefix],
[148] Fix | Delete
(array) $paths
[149] Fix | Delete
);
[150] Fix | Delete
}
[151] Fix | Delete
}
[152] Fix | Delete
[153] Fix | Delete
/**
[154] Fix | Delete
* Registers a set of PSR-4 directories for a given namespace, either
[155] Fix | Delete
* appending or prepending to the ones previously set for this namespace.
[156] Fix | Delete
*
[157] Fix | Delete
* @param string $prefix The prefix/namespace, with trailing '\\'
[158] Fix | Delete
* @param array|string $paths The PSR-4 base directories
[159] Fix | Delete
* @param bool $prepend Whether to prepend the directories
[160] Fix | Delete
*
[161] Fix | Delete
* @throws \InvalidArgumentException
[162] Fix | Delete
*/
[163] Fix | Delete
public function addPsr4($prefix, $paths, $prepend = false)
[164] Fix | Delete
{
[165] Fix | Delete
if (!$prefix) {
[166] Fix | Delete
// Register directories for the root namespace.
[167] Fix | Delete
if ($prepend) {
[168] Fix | Delete
$this->fallbackDirsPsr4 = array_merge(
[169] Fix | Delete
(array) $paths,
[170] Fix | Delete
$this->fallbackDirsPsr4
[171] Fix | Delete
);
[172] Fix | Delete
} else {
[173] Fix | Delete
$this->fallbackDirsPsr4 = array_merge(
[174] Fix | Delete
$this->fallbackDirsPsr4,
[175] Fix | Delete
(array) $paths
[176] Fix | Delete
);
[177] Fix | Delete
}
[178] Fix | Delete
} elseif (!isset($this->prefixDirsPsr4[$prefix])) {
[179] Fix | Delete
// Register directories for a new namespace.
[180] Fix | Delete
$length = strlen($prefix);
[181] Fix | Delete
if ('\\' !== $prefix[$length - 1]) {
[182] Fix | Delete
throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
[183] Fix | Delete
}
[184] Fix | Delete
$this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
[185] Fix | Delete
$this->prefixDirsPsr4[$prefix] = (array) $paths;
[186] Fix | Delete
} elseif ($prepend) {
[187] Fix | Delete
// Prepend directories for an already registered namespace.
[188] Fix | Delete
$this->prefixDirsPsr4[$prefix] = array_merge(
[189] Fix | Delete
(array) $paths,
[190] Fix | Delete
$this->prefixDirsPsr4[$prefix]
[191] Fix | Delete
);
[192] Fix | Delete
} else {
[193] Fix | Delete
// Append directories for an already registered namespace.
[194] Fix | Delete
$this->prefixDirsPsr4[$prefix] = array_merge(
[195] Fix | Delete
$this->prefixDirsPsr4[$prefix],
[196] Fix | Delete
(array) $paths
[197] Fix | Delete
);
[198] Fix | Delete
}
[199] Fix | Delete
}
[200] Fix | Delete
[201] Fix | Delete
/**
[202] Fix | Delete
* Registers a set of PSR-0 directories for a given prefix,
[203] Fix | Delete
* replacing any others previously set for this prefix.
[204] Fix | Delete
*
[205] Fix | Delete
* @param string $prefix The prefix
[206] Fix | Delete
* @param array|string $paths The PSR-0 base directories
[207] Fix | Delete
*/
[208] Fix | Delete
public function set($prefix, $paths)
[209] Fix | Delete
{
[210] Fix | Delete
if (!$prefix) {
[211] Fix | Delete
$this->fallbackDirsPsr0 = (array) $paths;
[212] Fix | Delete
} else {
[213] Fix | Delete
$this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths;
[214] Fix | Delete
}
[215] Fix | Delete
}
[216] Fix | Delete
[217] Fix | Delete
/**
[218] Fix | Delete
* Registers a set of PSR-4 directories for a given namespace,
[219] Fix | Delete
* replacing any others previously set for this namespace.
[220] Fix | Delete
*
[221] Fix | Delete
* @param string $prefix The prefix/namespace, with trailing '\\'
[222] Fix | Delete
* @param array|string $paths The PSR-4 base directories
[223] Fix | Delete
*
[224] Fix | Delete
* @throws \InvalidArgumentException
[225] Fix | Delete
*/
[226] Fix | Delete
public function setPsr4($prefix, $paths)
[227] Fix | Delete
{
[228] Fix | Delete
if (!$prefix) {
[229] Fix | Delete
$this->fallbackDirsPsr4 = (array) $paths;
[230] Fix | Delete
} else {
[231] Fix | Delete
$length = strlen($prefix);
[232] Fix | Delete
if ('\\' !== $prefix[$length - 1]) {
[233] Fix | Delete
throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
[234] Fix | Delete
}
[235] Fix | Delete
$this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
[236] Fix | Delete
$this->prefixDirsPsr4[$prefix] = (array) $paths;
[237] Fix | Delete
}
[238] Fix | Delete
}
[239] Fix | Delete
[240] Fix | Delete
/**
[241] Fix | Delete
* Turns on searching the include path for class files.
[242] Fix | Delete
*
[243] Fix | Delete
* @param bool $useIncludePath
[244] Fix | Delete
*/
[245] Fix | Delete
public function setUseIncludePath($useIncludePath)
[246] Fix | Delete
{
[247] Fix | Delete
$this->useIncludePath = $useIncludePath;
[248] Fix | Delete
}
[249] Fix | Delete
[250] Fix | Delete
/**
[251] Fix | Delete
* Can be used to check if the autoloader uses the include path to check
[252] Fix | Delete
* for classes.
[253] Fix | Delete
*
[254] Fix | Delete
* @return bool
[255] Fix | Delete
*/
[256] Fix | Delete
public function getUseIncludePath()
[257] Fix | Delete
{
[258] Fix | Delete
return $this->useIncludePath;
[259] Fix | Delete
}
[260] Fix | Delete
[261] Fix | Delete
/**
[262] Fix | Delete
* Turns off searching the prefix and fallback directories for classes
[263] Fix | Delete
* that have not been registered with the class map.
[264] Fix | Delete
*
[265] Fix | Delete
* @param bool $classMapAuthoritative
[266] Fix | Delete
*/
[267] Fix | Delete
public function setClassMapAuthoritative($classMapAuthoritative)
[268] Fix | Delete
{
[269] Fix | Delete
$this->classMapAuthoritative = $classMapAuthoritative;
[270] Fix | Delete
}
[271] Fix | Delete
[272] Fix | Delete
/**
[273] Fix | Delete
* Should class lookup fail if not found in the current class map?
[274] Fix | Delete
*
[275] Fix | Delete
* @return bool
[276] Fix | Delete
*/
[277] Fix | Delete
public function isClassMapAuthoritative()
[278] Fix | Delete
{
[279] Fix | Delete
return $this->classMapAuthoritative;
[280] Fix | Delete
}
[281] Fix | Delete
[282] Fix | Delete
/**
[283] Fix | Delete
* APCu prefix to use to cache found/not-found classes, if the extension is enabled.
[284] Fix | Delete
*
[285] Fix | Delete
* @param string|null $apcuPrefix
[286] Fix | Delete
*/
[287] Fix | Delete
public function setApcuPrefix($apcuPrefix)
[288] Fix | Delete
{
[289] Fix | Delete
$this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null;
[290] Fix | Delete
}
[291] Fix | Delete
[292] Fix | Delete
/**
[293] Fix | Delete
* The APCu prefix in use, or null if APCu caching is not enabled.
[294] Fix | Delete
*
[295] Fix | Delete
* @return string|null
[296] Fix | Delete
*/
[297] Fix | Delete
public function getApcuPrefix()
[298] Fix | Delete
{
[299] Fix | Delete
return $this->apcuPrefix;
[300] Fix | Delete
}
[301] Fix | Delete
[302] Fix | Delete
/**
[303] Fix | Delete
* Registers this instance as an autoloader.
[304] Fix | Delete
*
[305] Fix | Delete
* @param bool $prepend Whether to prepend the autoloader or not
[306] Fix | Delete
*/
[307] Fix | Delete
public function register($prepend = false)
[308] Fix | Delete
{
[309] Fix | Delete
spl_autoload_register(array($this, 'loadClass'), true, $prepend);
[310] Fix | Delete
[311] Fix | Delete
if (null === $this->vendorDir) {
[312] Fix | Delete
return;
[313] Fix | Delete
}
[314] Fix | Delete
[315] Fix | Delete
if ($prepend) {
[316] Fix | Delete
self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders;
[317] Fix | Delete
} else {
[318] Fix | Delete
unset(self::$registeredLoaders[$this->vendorDir]);
[319] Fix | Delete
self::$registeredLoaders[$this->vendorDir] = $this;
[320] Fix | Delete
}
[321] Fix | Delete
}
[322] Fix | Delete
[323] Fix | Delete
/**
[324] Fix | Delete
* Unregisters this instance as an autoloader.
[325] Fix | Delete
*/
[326] Fix | Delete
public function unregister()
[327] Fix | Delete
{
[328] Fix | Delete
spl_autoload_unregister(array($this, 'loadClass'));
[329] Fix | Delete
[330] Fix | Delete
if (null !== $this->vendorDir) {
[331] Fix | Delete
unset(self::$registeredLoaders[$this->vendorDir]);
[332] Fix | Delete
}
[333] Fix | Delete
}
[334] Fix | Delete
[335] Fix | Delete
/**
[336] Fix | Delete
* Loads the given class or interface.
[337] Fix | Delete
*
[338] Fix | Delete
* @param string $class The name of the class
[339] Fix | Delete
* @return true|null True if loaded, null otherwise
[340] Fix | Delete
*/
[341] Fix | Delete
public function loadClass($class)
[342] Fix | Delete
{
[343] Fix | Delete
if ($file = $this->findFile($class)) {
[344] Fix | Delete
includeFile($file);
[345] Fix | Delete
[346] Fix | Delete
return true;
[347] Fix | Delete
}
[348] Fix | Delete
[349] Fix | Delete
return null;
[350] Fix | Delete
}
[351] Fix | Delete
[352] Fix | Delete
/**
[353] Fix | Delete
* Finds the path to the file where the class is defined.
[354] Fix | Delete
*
[355] Fix | Delete
* @param string $class The name of the class
[356] Fix | Delete
*
[357] Fix | Delete
* @return string|false The path if found, false otherwise
[358] Fix | Delete
*/
[359] Fix | Delete
public function findFile($class)
[360] Fix | Delete
{
[361] Fix | Delete
// class map lookup
[362] Fix | Delete
if (isset($this->classMap[$class])) {
[363] Fix | Delete
return $this->classMap[$class];
[364] Fix | Delete
}
[365] Fix | Delete
if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) {
[366] Fix | Delete
return false;
[367] Fix | Delete
}
[368] Fix | Delete
if (null !== $this->apcuPrefix) {
[369] Fix | Delete
$file = apcu_fetch($this->apcuPrefix.$class, $hit);
[370] Fix | Delete
if ($hit) {
[371] Fix | Delete
return $file;
[372] Fix | Delete
}
[373] Fix | Delete
}
[374] Fix | Delete
[375] Fix | Delete
$file = $this->findFileWithExtension($class, '.php');
[376] Fix | Delete
[377] Fix | Delete
// Search for Hack files if we are running on HHVM
[378] Fix | Delete
if (false === $file && defined('HHVM_VERSION')) {
[379] Fix | Delete
$file = $this->findFileWithExtension($class, '.hh');
[380] Fix | Delete
}
[381] Fix | Delete
[382] Fix | Delete
if (null !== $this->apcuPrefix) {
[383] Fix | Delete
apcu_add($this->apcuPrefix.$class, $file);
[384] Fix | Delete
}
[385] Fix | Delete
[386] Fix | Delete
if (false === $file) {
[387] Fix | Delete
// Remember that this class does not exist.
[388] Fix | Delete
$this->missingClasses[$class] = true;
[389] Fix | Delete
}
[390] Fix | Delete
[391] Fix | Delete
return $file;
[392] Fix | Delete
}
[393] Fix | Delete
[394] Fix | Delete
/**
[395] Fix | Delete
* Returns the currently registered loaders indexed by their corresponding vendor directories.
[396] Fix | Delete
*
[397] Fix | Delete
* @return self[]
[398] Fix | Delete
*/
[399] Fix | Delete
public static function getRegisteredLoaders()
[400] Fix | Delete
{
[401] Fix | Delete
return self::$registeredLoaders;
[402] Fix | Delete
}
[403] Fix | Delete
[404] Fix | Delete
private function findFileWithExtension($class, $ext)
[405] Fix | Delete
{
[406] Fix | Delete
// PSR-4 lookup
[407] Fix | Delete
$logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext;
[408] Fix | Delete
[409] Fix | Delete
$first = $class[0];
[410] Fix | Delete
if (isset($this->prefixLengthsPsr4[$first])) {
[411] Fix | Delete
$subPath = $class;
[412] Fix | Delete
while (false !== $lastPos = strrpos($subPath, '\\')) {
[413] Fix | Delete
$subPath = substr($subPath, 0, $lastPos);
[414] Fix | Delete
$search = $subPath . '\\';
[415] Fix | Delete
if (isset($this->prefixDirsPsr4[$search])) {
[416] Fix | Delete
$pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1);
[417] Fix | Delete
foreach ($this->prefixDirsPsr4[$search] as $dir) {
[418] Fix | Delete
if (file_exists($file = $dir . $pathEnd)) {
[419] Fix | Delete
return $file;
[420] Fix | Delete
}
[421] Fix | Delete
}
[422] Fix | Delete
}
[423] Fix | Delete
}
[424] Fix | Delete
}
[425] Fix | Delete
[426] Fix | Delete
// PSR-4 fallback dirs
[427] Fix | Delete
foreach ($this->fallbackDirsPsr4 as $dir) {
[428] Fix | Delete
if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) {
[429] Fix | Delete
return $file;
[430] Fix | Delete
}
[431] Fix | Delete
}
[432] Fix | Delete
[433] Fix | Delete
// PSR-0 lookup
[434] Fix | Delete
if (false !== $pos = strrpos($class, '\\')) {
[435] Fix | Delete
// namespaced class name
[436] Fix | Delete
$logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1)
[437] Fix | Delete
. strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR);
[438] Fix | Delete
} else {
[439] Fix | Delete
// PEAR-like class name
[440] Fix | Delete
$logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext;
[441] Fix | Delete
}
[442] Fix | Delete
[443] Fix | Delete
if (isset($this->prefixesPsr0[$first])) {
[444] Fix | Delete
foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) {
[445] Fix | Delete
if (0 === strpos($class, $prefix)) {
[446] Fix | Delete
foreach ($dirs as $dir) {
[447] Fix | Delete
if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
[448] Fix | Delete
return $file;
[449] Fix | Delete
}
[450] Fix | Delete
}
[451] Fix | Delete
}
[452] Fix | Delete
}
[453] Fix | Delete
}
[454] Fix | Delete
[455] Fix | Delete
// PSR-0 fallback dirs
[456] Fix | Delete
foreach ($this->fallbackDirsPsr0 as $dir) {
[457] Fix | Delete
if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
[458] Fix | Delete
return $file;
[459] Fix | Delete
}
[460] Fix | Delete
}
[461] Fix | Delete
[462] Fix | Delete
// PSR-0 include paths.
[463] Fix | Delete
if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) {
[464] Fix | Delete
return $file;
[465] Fix | Delete
}
[466] Fix | Delete
[467] Fix | Delete
return false;
[468] Fix | Delete
}
[469] Fix | Delete
}
[470] Fix | Delete
[471] Fix | Delete
/**
[472] Fix | Delete
* Scope isolated include.
[473] Fix | Delete
*
[474] Fix | Delete
* Prevents access to $this/self from included files.
[475] Fix | Delete
*/
[476] Fix | Delete
function includeFile($file)
[477] Fix | Delete
{
[478] Fix | Delete
include $file;
[479] Fix | Delete
}
[480] Fix | Delete
[481] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function