>>> mainfile.php aç
bul >> function filter(
hemen üst satırına ekle >>>
function wysiwyg_textarea($name, $value, $config = 'NukeUser', $cols = 50, $rows = 10)
{
global $advanced_editor, $admin;
// Don't waste bandwidth by loading WYSIWYG editor for crawlers
if ($advanced_editor == 0 or !isset($_COOKIE))
{
echo '<textarea>'.$value.'</textarea>';
} else {
@include_once(INCLUDE_PATH.'includes/fckeditor/fckeditor.php');
$rows = $rows + 2; // Add extra space for toolbars
$oFCKeditor = new FCKeditor($name) ;
$oFCKeditor->BasePath = './includes/fckeditor/' ; // 2.6
$oFCKheight = $rows * 20;
$oFCKeditor->Height = $oFCKheight;
$oFCKeditor->ToolbarSet = $config;
if (is_admin($admin))
{
$oFCKeditor->Config['LinkBrowser'] = true;
$oFCKeditor->Config['ImageBrowser'] = true;
$oFCKeditor->Config['FlashBrowser'] = true;
$oFCKeditor->Config['LinkUpload'] = true;
$oFCKeditor->Config['ImageUpload'] = true;
$oFCKeditor->Config['FlashUpload'] = true;
}
$oFCKeditor->Value = $value;
$oFCKeditor->Create();
}
}
function wysiwyg_textarea_html($name, $value, $config = 'NukeUser', $cols = 50, $rows = 10)
{
global $advanced_editor, $admin;
// Don't waste bandwidth by loading WYSIWYG editor for crawlers
if ($advanced_editor == 0 or !isset($_COOKIE))
{
echo '<textarea>'.$value.'</textarea>';
} else {
@include_once(INCLUDE_PATH.'includes/fckeditor/fckeditor.php');
$rows = $rows + 2; // Add extra space for toolbars
$oFCKeditor = new FCKeditor($name);
$oFCKeditor->BasePath = './includes/fckeditor/';
$oFCKheight = $rows * 20;
$oFCKeditor->Height = $oFCKheight;
$oFCKeditor->ToolbarSet = $config;
if (is_admin($admin))
{
$oFCKeditor->Config['LinkBrowser'] = true;
$oFCKeditor->Config['ImageBrowser'] = true;
$oFCKeditor->Config['FlashBrowser'] = true;
$oFCKeditor->Config['LinkUpload'] = true;
$oFCKeditor->Config['ImageUpload'] = true;
$oFCKeditor->Config['FlashUpload'] = true;
}
$oFCKeditor->Value = $value;
$wysiwygHTML = $oFCKeditor->CreateHtml() ;
return $wysiwygHTML;
}
}
function filter_text($Message, $strip="") {
global $EditedMessage;
$EditedMessage = check_words($Message);
$EditedMessage=check_html($EditedMessage, $strip);
return $EditedMessage;
}
aç >>> config.php
bul >>> $AllowableHTML = array("col"=>2,"td"=>2,"tr"=>2,"hr"=>1,"p"=>1,"font"=>2,"embed"=>2,"font color"=>2,"table"=>2,"b"=>1,"i"=>1,"strike"=>1,"div"=>2,"u"=>1,"a"=>2,"em"=>1,"br"=>1,"strong"=>1,"blockquote"=>1,"tt"=>1,"li"=>1,"ol"=>1,"ul"=>1,"img"=>2,"img src="=>2,"center"=>1);
değiştir >>>
$AllowableHTML = array(
'a' => array('href' => 1, 'target' => 1, 'title' => array('minlen' => 4, 'maxlen' => 120)),
'b' => array(),
'blockquote' => array(),
'br' => 1,
'center' => array(),
'div' => array('align' => 1),
'em' => array(),
'font' => array('face' => 1, 'style' => 1, 'color' => 1, 'size' => array('minval' => 1, 'maxval' => 7)),
'h1'=>array(),
'h2'=>array(),
'h3'=>array(),
'h4'=>array(),
'h5'=>array(),
'h6'=>array(),
'hr' => array(),
'i' => array(),
'img' => array('alt' => 1, 'src' => 1, 'hspace' => 1, 'vspace' => 1, 'width' => 1, 'height' => 1, 'border' => 1, 'align' => 1),
'li' => array(),
'ol' => array(),
'p' => array('align' => 1),
'pre' => array('align' => 1),
'span' =>array('class' => 1, 'style' => array('font-family' => 1, 'color' => 1)),
'strong' => array(),
'strike'=>array(),
'sub'=>array(),
'sup'=>array(),
'table' => array('align' => 1, 'border' => 1, 'cell' => 1, 'width' => 1, 'cellspacing' => 1, 'cellpadding' => 1),
'td' => array('align' => 1, 'width' => 1, 'valign' => 1, 'height' => 1, 'rowspan' => 1, 'colspan' => 1 ),
'tr' => array('align' => 1),
'tt'=>array(),
'u' => array(),
'ul' => array(),
);
bul >>> $nuke_editor
altina ekle >>> $advanced_editor = 1;
|