} elseif (strpos($_REQUEST['filename'], '.css') && ($carray = @file("../{$designpath}" . $_REQUEST['filename']))) { while (list(, $value) = each($carray)) { $file_content .= $value; $rich_editor = false; } } if (substr($_REQUEST['filename'], 0, 5) == 'mail_') { $rich_editor = false; } } if ($rich_editor) { $editor = new rich($caption, "filecontent", stripslashes($file_content), "1000", "500", "../../mydir/", $DOMAIN . "/mydir/", false, false); $editor->set_lang($admlang); $editor->simple_mode(true); $editor->active_mode(false); $editor->hide_tb("font", false); $editor->hide_tb("link", false); $editor->hide_tb("special_chars", false); $editor->hide_tb("image", false); $editor->hide_tb("source", true); $editor->hide_tb("form", true); $editor->hide_tb("snippets", true); $editor->hide_tb("size", false); $editor->hide_tb("style", false); $editor->hide_tb("absolute_position", false); $editor->hide_tb("hr", false); $editor->hide_tb("table", false); $editor->hide_tb("adv_table", true); $editor->hide_tb("paragraph", false); $editor->set_borders_visibility(true); $editor->set_br_on_enter($set_on);
<tr> <td align="right" valign="top"><b><font color="#C40000"> <?php echo $_SP[74]; ?> : </b></td> <td colspan="2"> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td> <?php $editor = new rich('', "text", $_POST['text'], "500", "200", "../../mydir/", $DOMAIN . "/mydir/"); $editor->set_lang($admlang); $editor->simple_mode(true); $editor->active_mode(false); $editor->hide_tb("help"); $editor->hide_tb("link", false); $editor->hide_tb("source", true); $editor->hide_tb("align", true); $editor->hide_tb("special_chars", false); $editor->hide_tb("image", false); $editor->set_borders_visibility(true); $editor->set_br_on_enter(true); $editor->draw(); #print '<textarea name="text" style="width:500;height:500">'.htmlspecialchars($_POST['text']).'</textarea>'; ?> </td> <td valign="top" align="right" width="100%"> <p> </td> <td valign="top" align="right"> </td>