0byt3m1n1
Path:
/
data
/
applications
/
aps
/
mambo
/
4.6.5-1
/
standard
/
htdocs
/
editor
/
[
Home
]
File: editor.wysiwygpro.php
<?php /** * @package Mambo * @author Mambo Foundation Inc see README.php * @copyright Mambo Foundation Inc. * See COPYRIGHT.php for copyright notices and details. * @license GNU/GPL Version 2, see LICENSE.php * Mambo is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; version 2 of the License. */ /** ensure this file is being included by a parent file */ defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); ?> <script type="text/javascript"> <!-- /** Wrapper around the editor specific update function in JavaScript */ function updateEditorContents( editorName, newValue ) { wp_send_to_html( 'editorName' ); } //--> </script> <?php function initEditor() { global $mosConfig_live_site; } function editorArea( $name, $content, $hiddenField, $width, $height, $col, $row ) { global $mosConfig_absolute_path; $content = str_replace("<", "<", $content); $content = str_replace(">", ">", $content); $content = str_replace("&", "&", $content); $content = str_replace(" ", " ", $content); $content = str_replace(""", "\"", $content); // include the config file and editor class: include_once ($mosConfig_absolute_path.'/editor/wysiwygpro/config.php'); include_once ($mosConfig_absolute_path.'/editor/wysiwygpro/editor_class.php'); // create a new instance of the wysiwygPro class: $name = new wysiwygPro(); $name->set_name($hiddenField); if ($hiddenField=='fulltext') { $name->subsequent(true); } $name->usep(true); // insert some HTML $name->set_code($content); // print the editor to the browser: $name->print_editor('100%', intval($height)); } function getEditorContents( $editorArea, $hiddenField ) { ?> submit_form(); <?php } ?>