Esempio n. 1
0
        $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);
        $editor->set_snippets(array('MYDIR' => "%[MYDIR]%"));
        if ($show_styles) {
            $editor->set_default_stylesheet('../' . $designpath . 'style.css');
        }
        $editor->draw();
    } else {
        print '<textarea wrap="off" rows="29" name="filecontent" cols="105" style="width:1000;font: bold fixedsys, courier, lucida Console, arial; font-size: 12px; background-color: #FFFFEC">' . htmlspecialchars($file_content) . '</textarea>';
    }
    ?>
   </td></tr>  <tr><td valign="top">   <table width=100%><tr><td><input type="submit" value=" <?php 
    echo $_SP[274];
    ?>
 " name="submit" onClick="return confirm('<?php 
    echo $_SP[50];
    ?>
Esempio n. 2
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>';
?>
          &nbsp;</td>
          <td valign="top" align="right" width="100%">

            <p>&nbsp;&nbsp;</td>
          <td valign="top" align="right">&nbsp;</td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td height="24" align=right><b><font color="#C40000">&nbsp;<?php 
echo $_SP[75];