init without history
Dieser Commit ist enthalten in:
Commit
5ffc456b15
8 geänderte Dateien mit 2082 neuen und 0 gelöschten Zeilen
22
includes/config.plugin.php
Normale Datei
22
includes/config.plugin.php
Normale Datei
|
|
@ -0,0 +1,22 @@
|
|||
<?php
|
||||
defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
|
||||
|
||||
global $cfg;
|
||||
|
||||
$pluginName = basename(dirname(__DIR__, 1));
|
||||
|
||||
$cfg['plugins'][$pluginName] = cRegistry::getBackendPath() . cRegistry::getConfigValue('path', 'plugins') . $pluginName . DIRECTORY_SEPARATOR;
|
||||
|
||||
$customFunctionsFile = cRegistry::getConfigValue('plugins', $pluginName) . 'includes/functions.custom.php';
|
||||
|
||||
if (cFileHandler::exists($customFunctionsFile)) {
|
||||
plugin_include($pluginName, 'includes/functions.custom.php');
|
||||
}
|
||||
|
||||
plugin_include($pluginName, 'vendor/autoload.php');
|
||||
|
||||
$pluginClassesPath = "contenido" . DIRECTORY_SEPARATOR . cRegistry::getConfigValue('path', 'plugins') . $pluginName . DIRECTORY_SEPARATOR . 'classes' . DIRECTORY_SEPARATOR;
|
||||
|
||||
cAutoload::addClassmapConfig([
|
||||
'PHPMailer' => $pluginClassesPath . 'PHPMailer.php'
|
||||
]);
|
||||
Laden …
Tabelle hinzufügen
Einen Link hinzufügen
In neuem Issue referenzieren