Файловый менеджер - Редактировать - /var/www/iplanru/data/old/www/i-plan.ru/administrator/components/com_jumi/plugin_system/jumi/class.jumicoder.php
Назад
<?php /** * @version $Id: class.jumicoder.php 92 2009-02-15 17:08:02Z martin2hajek $ * @package Joomla! 1.5.x, Jumi editors-xtd plugin * @copyright (c) 2009 Martin Hajek * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL * */ class JumiCoder { function encode($source) { return htmlspecialchars(stripslashes($source), ENT_NOQUOTES); } function decode($source,$strip) { //$strip==1 then stripslashes: For Jumicoder only. For code parsing do not do that. if (!function_exists("htmlspecialchars_decode")) { return ($strip == 1) ? strtr(stripslashes($source), array_flip(get_html_translation_table(HTML_SPECIALCHARS, ENT_NOQUOTES))) : strtr($source, array_flip(get_html_translation_table(HTML_SPECIALCHARS, ENT_NOQUOTES))); //for PHP 4 } else { return ($strip == 1) ? htmlspecialchars_decode(stripslashes($source), ENT_NOQUOTES) : htmlspecialchars_decode($source, ENT_NOQUOTES); } } function viewEntities($source) { //just replaces & to & so that &xxx; is seen by a browser as an entity return str_replace('&', '&', $source); } function cleanRubbish($source) { // cleans from the $source (encoded code in an article) possible rubbish brought by wysiwyg $cleaningTab = array( "<br>" => "\n", "<br />" => "\n", "<p>" => "\n", "</p>" => "\n", " " => " ", " " => " ", chr(hexdec('C2')).chr(hexdec('A0')) => ''); foreach ($cleaningTab as $key => $cleaningTab) { $source = str_replace($key, $cleaningTab[$key], $source); } return $source; } } ?>
| ver. 1.4 |
Github
|
.
| PHP 5.4.45-1~dotdeb+6.1 | Генерация страницы: 0.01 |
proxy
|
phpinfo
|
Настройка