0byt3m1n1
Path:
/
data
/
17
/
1
/
18
/
11
/
1670011
/
user
/
1801231
/
htdocs
/
marketting
/
system
/
plugins
/
[
Home
]
File: fckeditor_pi.php
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); /* | ------------------------------------------------------------------------- | COPYRIGHT NOTICE | Copyright 2008 JROX Technologies, Inc. All Rights Reserved. | ------------------------------------------------------------------------- | This script may be only used and modified in accordance to the license | agreement attached (license.txt) except where expressly noted within | commented areas of the code body. This copyright notice and the | comments above and below must remain intact at all times. By using this | code you agree to indemnify JROX Technologies, Inc, its corporate agents | and affiliates from any liability that might arise from its use. | | Selling the code for this program without prior written consent is | expressly forbidden and in violation of Domestic and International | copyright laws. | | ------------------------------------------------------------------------- | FILENAME - fckeditor_pi.php | ------------------------------------------------------------------------- | | This plugin loads the JavaScript HTML editor | */ function _generate_javascript($areas = '', $toolbar = 'Basic', $height = '300', $width = '100%') { $data = '<script language="Javascript" type="text/javascript" src="' . base_url() . 'js/fckeditor/jquery.FCKEditor.js"></script>'; $data .= '<script>$(function(){ $.fck.path = \'' . base_url(). 'js/fckeditor/\';'; foreach ($areas as $v) { $data .= '$(\'#'.$v.'\').fck({toolbar: \''.$toolbar.'\', height: '.$height.' });'; } $data .= '});</script>'; return $data; } function HTML_Editor($instance = 'oEdit1', $type = '1', $toolbar = 'basic', $content = '', $textarea = 'txtContent', $height = '300px', $width = '100%', $dynamic_tags = true) { $data = '<div align="center"><textarea id="' . $textarea . '" name="' . $textarea . '" rows=20 cols=80>' . $content . '</textarea></div>'; return $data; } ?>