<?php /** * CommonPlugin for phplist. * * This file is a part of CommonPlugin. * * @category phplist * * @author Duncan Cameron * @copyright 2011-2018 Duncan Cameron * @license http://www.gnu.org/licenses/gpl.html GNU General Public License, Version 3 */ /** * Add the plugin directories to the composer autoload * Use PSR-4 for namespaced plugins * Use PSR-0 for non-namespaced plugins. * * Create autoloader for other plugins. * Add classmap for plugins. */ function CommonPlugin_Autoloader_main() { global $systemroot, $plugins; $loader = require dirname(__FILE__) . '/vendor/autoload.php'; $paths = (PLUGIN_ROOTDIRS == '') ? array() : explode(';', PLUGIN_ROOTDIRS); $paths[] = (CommonPlugin_Autoloader_isAbsolutePath(PLUGIN_ROOTDIR)) ? PLUGIN_ROOTDIR : $systemroot . '/' . PLUGIN_ROOTDIR; $loader->addPsr4('phpList\\plugin\\', $paths); $loader->add('', $paths); $loader->add('', [$systemroot . '/PEAR']); foreach ($plugins as $piName => $pi) { if ($piName != 'CommonPlugin' && file_exists($ownAutoloader = $pi->coderoot . 'vendor/autoload.php')) { require $ownAutoloader; } if (file_exists($f = $pi->coderoot . 'class_map.php')) { $base = dirname($pi->coderoot); $piClassMap = include $f; $loader->addClassMap($piClassMap); } } } function CommonPlugin_Autoloader_isAbsolutePath($path) { return preg_match('@^(?:/|\\\\|\w:\\\\|\w:/)@', $path); } CommonPlugin_Autoloader_main();
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
DAO | Folder | 0755 |
|
|
images | Folder | 0755 |
|
|
lan | Folder | 0755 |
|
|
ui | Folder | 0755 |
|
|
vendor | Folder | 0755 |
|
|
Autoloader.php | File | 1.5 KB | 0644 |
|
BaseController.php | File | 503 B | 0644 |
|
Config.php | File | 394 B | 0644 |
|
Controller.php | File | 355 B | 0644 |
|
ControllerFactory.php | File | 488 B | 0644 |
|
ControllerFactoryBase.php | File | 490 B | 0644 |
|
DAO.php | File | 360 B | 0644 |
|
DB.php | File | 412 B | 0644 |
|
DBResultIterator.php | File | 432 B | 0644 |
|
Exception.php | File | 432 B | 0644 |
|
ExportCSV.php | File | 401 B | 0644 |
|
ExportXML.php | File | 401 B | 0644 |
|
HelpManager.php | File | 405 B | 0644 |
|
HtmlToPdf.php | File | 424 B | 0644 |
|
I18N.php | File | 641 B | 0644 |
|
IExportable.php | File | 428 B | 0644 |
|
IPopulator.php | File | 440 B | 0644 |
|
ImageTag.php | File | 456 B | 0644 |
|
Listing.php | File | 410 B | 0644 |
|
Logger.php | File | 513 B | 0644 |
|
Main.php | File | 414 B | 0644 |
|
Model.php | File | 425 B | 0644 |
|
PageLink.php | File | 412 B | 0644 |
|
PageURL.php | File | 433 B | 0644 |
|
Pager.php | File | 391 B | 0644 |
|
Populator.php | File | 443 B | 0644 |
|
StringStream.php | File | 608 B | 0644 |
|
Tabs.php | File | 388 B | 0644 |
|
Toolbar.php | File | 392 B | 0644 |
|
WebblerListing.php | File | 429 B | 0644 |
|
Widget.php | File | 398 B | 0644 |
|
class_map.php | File | 7.58 KB | 0644 |
|
config_file.php | File | 1.14 KB | 0644 |
|
dialog_js.php | File | 267 B | 0644 |
|
functions.php | File | 4.04 KB | 0644 |
|
image.php | File | 496 B | 0644 |
|
licence.txt | File | 1.72 KB | 0644 |
|
phpinfo.php | File | 2.1 KB | 0644 |
|
polyfill.php | File | 206 B | 0644 |
|
session.php | File | 549 B | 0644 |
|
version.txt | File | 15 B | 0644 |
|