1
0
Fork 0
Dieser Commit ist enthalten in:
Ortwin Pinke 2019-11-04 17:10:22 +01:00 committet von GitHub
Ursprung b4fc73b332
Commit 05632001a3
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23
6 geänderte Dateien mit 359 neuen und 0 gelöschten Zeilen

Datei anzeigen

@ -0,0 +1,25 @@
<?php
/**
* This file contains the autoloader stuff for this plugin
*
* @package Plugin
* @subpackage SmartyWrapper
* @version $Rev: 128 $
* @since 2.0.2
* @author Ortwin Pinke <o.pinke@conlite.org>
* @copyright (c) 2018, conlite.org
* @license http://www.gnu.de/documents/gpl.en.html GPL v3 (english version)
* @license http://www.gnu.de/documents/gpl.de.html GPL v3 (deutsche Version)
* @link http://www.conlite.org ConLite.org
*
* $Id: config.autoloader.php 128 2019-07-03 11:58:28Z oldperl $
*/
defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
$sAutoloadClassPath = strstr(dirname(dirname(__FILE__)), "conlite/plugins")."/classes/";
return array(
'cSmartyBackend' => $sAutoloadClassPath.'class.smarty.backend.php',
'cSmartyFrontend' => $sAutoloadClassPath.'class.smarty.frontend.php',
'cSmartyWrapper' => $sAutoloadClassPath.'class.smarty.wrapper.php'
);
?>

37
includes/config.plugin.php Normale Datei
Datei anzeigen

@ -0,0 +1,37 @@
<?php
/**
* This file is the config file for this plugin
*
* @package Plugin
* @subpackage SmartyWrapper
* @version $Rev: 128 $
* @since 2.0.2
* @author Ortwin Pinke <o.pinke@conlite.org>
* @copyright (c) 2018, conlite.org
* @license http://www.gnu.de/documents/gpl.en.html GPL v3 (english version)
* @license http://www.gnu.de/documents/gpl.de.html GPL v3 (deutsche Version)
* @link http://www.conlite.org ConLite.org
*
* $Id: config.plugin.php 128 2019-07-03 11:58:28Z oldperl $
*/
defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
rereadClients();
$client = (isset($client)) ? $client : $load_client;
// Load smarty
if (!defined('SMARTY_DIR')) {
define('SMARTY_DIR', cRegistry::getConfigValue('path', 'conlite')
. cRegistry::getConfigValue('path', 'plugins')
. 'smarty/libs/');
}
require_once(SMARTY_DIR . 'Autoloader.php');
Smarty_Autoloader::register();
try {
new cSmartyFrontend(cRegistry::getConfig(), cRegistry::getClientConfig(cRegistry::getClientId()), true);
} catch (Exception $e) {
cWarning($e->getFile(), $e->getLine(), $e->getMessage());
}
?>