/** * Public constructor. Registers the autoloader with PHP. */ public function __construct() { self::$pluginPath = __DIR__; spl_autoload_register(array($this, 'autoload_admintools_system_plugin')); }
$libraries_dir = defined('JPATH_LIBRARIES') ? JPATH_LIBRARIES : JPATH_ROOT . '/libraries'; $mainFile = $libraries_dir . '/f0f/include.php'; @(include_once $mainFile); } // If F0F is not present (e.g. not installed) bail out if (!defined('F0F_INCLUDED') || !class_exists('F0FLess', true)) { return; } // Include and initialise Admin Tools System Plugin autoloader if (!defined('ATSYSTEM_AUTOLOADER')) { @(include_once __DIR__ . '/autoloader.php'); } if (!defined('ATSYSTEM_AUTOLOADER') || !class_exists('AdmintoolsAutoloaderPlugin')) { return; } AdmintoolsAutoloaderPlugin::init(); // fnmatch() doesn't exist in non-POSIX systems :( if (!function_exists('fnmatch')) { function fnmatch($pattern, $string) { return @preg_match('/^' . strtr(addcslashes($pattern, '/\\.+^$(){}=!<>|'), array('*' => '.*', '?' => '.?')) . '$/i', $string); } } // This is used during testing if (defined('JDEBUG') && JDEBUG) { if (file_exists(__DIR__ . '/phonymail.php')) { require_once __DIR__ . '/phonymail.php'; } } // Import main plugin file if (!class_exists('AtsystemAdmintoolsMain', true)) {