* extendedWYSIWYG
 *
 * @link https://addons.phpmanufaktur.de/extendedWYSIWYG
 * @copyright 2012 by phpManufaktur
 * @license MIT License (MIT) http://www.opensource.org/licenses/MIT
 */
// use LEPTON 2.x I18n for access to language files
if (!class_exists('LEPTON_Helper_I18n')) {
    require_once WB_PATH . '/modules/manufaktur_config/framework/LEPTON/Helper/I18n.php';
}
global $I18n;
if (!is_object($I18n)) {
    $I18n = new LEPTON_Helper_I18n();
}
if (file_exists(WB_PATH . '/modules/' . basename(dirname(__FILE__)) . '/languages/' . LANGUAGE . '.php')) {
    $I18n->addFile(LANGUAGE . '.php', WB_PATH . '/modules/wysiwyg/languages/');
}
global $database;
$param_order = isset($order) && strtolower($order) == 'asc' ? 'ASC' : 'DESC';
$param_limit = isset($limit) ? (int) $limit : 5;
$param_title = isset($title) && strtolower($title) == 'false' ? false : true;
$param_css = isset($css) && strtolower($css) == 'false' ? false : true;
$param_link = isset($link) && strtolower($link) == 'false' ? false : true;
$param_link_content = isset($link_content) && strtolower($link_content) == 'true' ? true : false;
// exists dropletsExtension?
if (file_exists(WB_PATH . '/modules/droplets_extension/interface.php')) {
    // load dropletsExtension
    require_once WB_PATH . '/modules/droplets_extension/interface.php';
    if ($param_css) {
        // load CSS!
        if (!is_registered_droplet_css('wysiwyg_teaser', PAGE_ID)) {
예제 #2
0
require_once WB_PATH . '/modules/kit/framework/LEPTON/Helper/I18n.php';
// use LEPTON 2.x I18n for access to language files
if (!class_exists('CAT_Helper_I18n') && !class_exists('LEPTON_Helper_I18n')) {
    require_once WB_PATH . '/modules/' . basename(dirname(__FILE__)) . '/framework/LEPTON/Helper/I18n.php';
}
global $I18n;
if (!is_object($I18n)) {
    if (class_exists('CAT_Helper_I18n')) {
        // this is a BlackCat environment
        $I18n = new CAT_Helper_I18n(array('lang' => LANGUAGE));
    } else {
        // all other environments
        $I18n = new LEPTON_Helper_I18n(array('lang' => LANGUAGE));
    }
} else {
    $I18n->addFile('DE.php', WB_PATH . '/modules/' . basename(dirname(__FILE__)) . '/languages/');
}
global $database;
// check if the GUID isset
if (!isset($_GET['guid'])) {
    exit($I18n->translate('[ {{ line }} ] Invalid call, missing GUID!', array('line' => __LINE__)));
}
$guid = trim($_GET['guid']);
// get the record
$SQL = "SELECT * FROM `" . TABLE_PREFIX . "mod_kit_links` WHERE `guid`='{$guid}'";
$query = $database->query($SQL);
if ($database->is_error()) {
    exit(sprintf('[ %s ] %s', __LINE__, $database->get_error()));
}
if ($query->numRows() != 1) {
    exit($I18n->translate('[ {{ line }} ] Invalid GUID, please contact the webmaster.', array('line' => __LINE__)));
// end include class.secure.php
if (!defined('LEPTON_PATH')) {
    require_once WB_PATH . '/modules/' . basename(dirname(__FILE__)) . '/wb2lepton.php';
}
// manufakturConfig
require_once LEPTON_PATH . '/modules/manufaktur_config/class.dialog.php';
// use LEPTON 2.x I18n for access to language files
if (!class_exists('LEPTON_Helper_I18n')) {
    require_once LEPTON_PATH . '/modules/manufaktur_config/framework/LEPTON/Helper/I18n.php';
}
global $I18n;
if (!is_object($I18n)) {
    $I18n = new LEPTON_Helper_I18n();
}
if (file_exists(LEPTON_PATH . '/modules/' . basename(dirname(__FILE__)) . '/languages/' . LANGUAGE . '.php')) {
    $I18n->addFile(LANGUAGE . '.php', LEPTON_PATH . '/modules/' . basename(dirname(__FILE__)) . '/languages/');
}
if (!class_exists('Dwoo')) {
    require_once LEPTON_PATH . '/modules/dwoo/include.php';
}
// initialize the template engine
global $parser;
if (!is_object($parser)) {
    $cache_path = LEPTON_PATH . '/temp/cache';
    if (!file_exists($cache_path)) {
        mkdir($cache_path, 0755, true);
    }
    $compiled_path = LEPTON_PATH . '/temp/compiled';
    if (!file_exists($compiled_path)) {
        mkdir($compiled_path, 0755, true);
    }