| Current Path : /home/wuectly/www/03cbe/ |
| Current File : /home/wuectly/www/03cbe/fof.php.tar |
home/wuectly/www/libraries/fof/autoloader/fof.php 0000604 00000004655 15245551644 0016205 0 ustar 00 <?php
/**
* @package FrameworkOnFramework
* @subpackage autoloader
* @copyright Copyright (C) 2010-2016 Nicholas K. Dionysopoulos / Akeeba Ltd. All rights reserved.
* @license GNU General Public License version 2, or later
*/
defined('FOF_INCLUDED') or die();
/**
* The main class autoloader for FOF itself
*
* @package FrameworkOnFramework
* @subpackage autoloader
* @since 2.1
*/
class FOFAutoloaderFof
{
/**
* An instance of this autoloader
*
* @var FOFAutoloaderFof
*/
public static $autoloader = null;
/**
* The path to the FOF root directory
*
* @var string
*/
public static $fofPath = null;
/**
* Initialise this autoloader
*
* @return FOFAutoloaderFof
*/
public static function init()
{
if (self::$autoloader == null)
{
self::$autoloader = new self;
}
return self::$autoloader;
}
/**
* Public constructor. Registers the autoloader with PHP.
*/
public function __construct()
{
self::$fofPath = realpath(__DIR__ . '/../');
spl_autoload_register(array($this,'autoload_fof_core'));
}
/**
* The actual autoloader
*
* @param string $class_name The name of the class to load
*
* @return void
*/
public function autoload_fof_core($class_name)
{
// Make sure the class has a FOF prefix
if (substr($class_name, 0, 3) != 'FOF')
{
return;
}
// Remove the prefix
$class = substr($class_name, 3);
// Change from camel cased (e.g. ViewHtml) into a lowercase array (e.g. 'view','html')
$class = preg_replace('/(\s)+/', '_', $class);
$class = strtolower(preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $class));
$class = explode('_', $class);
// First try finding in structured directory format (preferred)
$path = self::$fofPath . '/' . implode('/', $class) . '.php';
if (@file_exists($path))
{
include_once $path;
}
// Then try the duplicate last name structured directory format (not recommended)
if (!class_exists($class_name, false))
{
reset($class);
$lastPart = end($class);
$path = self::$fofPath . '/' . implode('/', $class) . '/' . $lastPart . '.php';
if (@file_exists($path))
{
include_once $path;
}
}
// If it still fails, try looking in the legacy folder (used for backwards compatibility)
if (!class_exists($class_name, false))
{
$path = self::$fofPath . '/legacy/' . implode('/', $class) . '.php';
if (@file_exists($path))
{
include_once $path;
}
}
}
}
home/wuectly/www/administrator/components/com_akeeba/View/fof.php 0000604 00000005035 15245721367 0021337 0 ustar 00 <?php
/**
* @package akeebabackup
* @copyright Copyright (c)2006-2021 Nicholas K. Dionysopoulos / Akeeba Ltd
* @license GNU General Public License version 3, or later
*/
// Protect from unauthorized access
defined('_JEXEC') or die();
$tooLongAgo = (int) gmdate('Y') - 2015;
?>
<div style="margin: 1em">
<h1>Akeeba Framework-on-Framework (FOF) version 3 could not be found on this site</h1>
<hr/>
<div class="alert alert-warning">
<h2>
This component requires the Akeeba FOF framework package to be installed on your site. Please go to <a
href="https://www.akeeba.com/download/fof3.html">our download page</a> to download it, then install it on your site.
</h2>
</div>
<hr/>
<h4>Further information</h4>
<p>
FOF is a Joomla component framework. It's the low level code which sits between our Joomla! extensions and
Joomla! itself. It is automatically installed when you install our extensions on your site.
</p>
<p>
FOF can be missing from your site either because Joomla failed to install it or because you, another Super User,
or another extension mistakenly uninstalled it.
</p>
<p>
If it's missing, our components cannot talk to Joomla — or vice versa. Because of that they can not run.
That's why you see this message.
</p>
<p>
You do not have to worry about adding bloat to your site. FOF is very small. It will also be automatically
uninstalled when you uninstall all components which depend on it.
</p>
<p>
FOF is installed in the <code><?php echo JPATH_LIBRARIES . DIRECTORY_SEPARATOR?>/fof30</code> folder on your
server. It appears in Joomla's Extensions, Manage page as <code>FOF30</code>. Please do not remove it from your
site.
</p>
<?php if (version_compare(JVERSION, '3.9999.9999', 'le')): ?>
<h4>Why do I have multiple FOF entries in Joomla?</h4>
<p>
Joomla <?php echo JVERSION ?> includes an <em>old, obsolete</em> version of FOF - version 2.x. It is installed
in the <code><?php echo JPATH_LIBRARIES . DIRECTORY_SEPARATOR ?>fof</code> folder on your server. It appears in
Joomla's Extensions, Manage page as <code>FOF</code>. Please do not remove it from your site; Joomla needs it
to function properly.
</p>
<p>
We discontinued FOF 2.x in 2015 — that's <?php echo $tooLongAgo ?> years ago. Ever since, we replaced it
with FOF 3.x. The two versions are incompatible with each other but both are required; FOF 2.x for Joomla!
itself and FOF 3.x for our extensions. That's why you see both. You must not remove either of them or something
will break!
</p>
<?php endif; ?>
</div>