// check for config driver $cfg_file = CAT_Helper_Directory::sanitizePath(CAT_PATH . '/modules/' . WYSIWYG_EDITOR . '/c_editor.php'); if (file_exists($cfg_file)) { require $cfg_file; } elseif (file_exists(CAT_Helper_Directory::sanitizePath(dirname(__FILE__) . "/driver/" . WYSIWYG_EDITOR . "/c_editor.php"))) { require_once dirname(__FILE__) . "/driver/" . WYSIWYG_EDITOR . "/c_editor.php"; } else { $admin->print_error($backend->lang()->translate('No configuration file for editor [{{editor}}]', array('editor' => WYSIWYG_EDITOR)), NULL, false); } // check for language file if (file_exists(CAT_Helper_Directory::sanitizePath(CAT_PATH . '/modules/' . WYSIWYG_EDITOR . '/languages/' . LANGUAGE . '.php'))) { $backend->lang()->addFile(LANGUAGE . '.php', CAT_Helper_Directory::sanitizePath(CAT_PATH . '/modules/' . WYSIWYG_EDITOR . '/languages')); } $config = wysiwyg_admin_config(); // load driver class $c = new c_editor(); $errors = array(); $width_unit = $height_unit = '%'; $width = $c->getWidth($config); $height = $c->getHeight($config); if (preg_match('~(\\d+)(.*)~', $width, $match)) { $width = $match[1]; $width_unit = $match[2]; } if (preg_match('~(\\d+)(.*)~', $height, $match)) { $height = $match[1]; $height_unit = $match[2]; } $skins = $c->getSkins($c->getSkinPath()); $current_skin = $c->getSkin($config); $settings = $c->getAdditionalSettings();
*/ global $parser, $loader; require dirname(__FILE__) . "/register_parser.php"; $look_up = LEPTON_PATH . "/modules/" . WYSIWYG_EDITOR . "/class.editorinfo.php"; if (file_exists($look_up)) { require_once $look_up; if (!isset($editor_ref) || !is_object($editor_ref)) { eval("\$editor_ref = new editorinfo_" . strtoupper(WYSIWYG_EDITOR) . "();"); } } else { echo "<p><h3 style='color:#FF0000;'>WARNING: use of obsolete drivers!</h3></p>"; echo "<p style='color:#FF0000;'>Please add a class.editorinfo.php to the current wysiwyg-editor!</p>"; // Backwards compatible to 0.2.x require_once dirname(__FILE__) . "/driver/" . WYSIWYG_EDITOR . "/c_editor.php"; if (!isset($editor_ref) || !is_object($editor_ref)) { $editor_ref = new c_editor(); } } $table = TABLE_PREFIX . "mod_wysiwyg_admin"; /** * Something to save or delete? * */ if (isset($_POST['job'])) { if ($_POST['job'] == "save") { if (isset($_SESSION['wysiwyg_admin']) && $_POST['salt'] === $_SESSION['wysiwyg_admin']) { $values = array_map('strip_tags', $_POST); /** * Time? * */