<?php
-
/**
- * GForge Notepad Facility
+ * Notepad Facility
*
* Copyright 2003 FUJITSU PRIME SOFTWARE TECHNOLOGIES LIMITED
+ * By Hidenari Miwa, FUJITSU PRIME SOFTWARE TECHNOLOGIES LIMITED, 09/2003
* http://www.pst.fujitsu.com/
+ * http://fusionforge.org
*
- * This file is part of GForge.
+ * This file is part of FusionForge. FusionForge is free software;
+ * you can redistribute it and/or modify it under the terms of the
+ * GNU General Public License as published by the Free Software
+ * Foundation; either version 2 of the Licence, or (at your option)
+ * any later version.
*
- * GForge is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * GForge is distributed in the hope that it will be useful,
+ * FusionForge is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with GForge; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-/**
- * GForge Notepad Window
- * By Hidenari Miwa, FUJITSU PRIME SOFTWARE TECHNOLOGIES LIMITED, 09/2003
+ * You should have received a copy of the GNU General Public License along
+ * with FusionForge; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-require_once $gfwww.'include/html.php';
+
+require_once dirname(__FILE__).'/html.php';
/**
* editor_button_raw() - Open an Editor dialog window
*
- * @param str Anchor string
+ * @param str Anchor string
* @param form Form name
* @param int wrap
* @param int rows
function notepad_func() {
$js = "\n" .
-'<script language="JavaScript" type="text/javascript">'.
-"\n<!--\n".
+'<script language="JavaScript" type="text/javascript">/* <![CDATA[ */'.
+"\n".
'function notepad_window_param(form, wrap, rows, cols) {'.
' notepad_php = "'.util_make_url("/notepad.php").'";'.
' notepad_url = notepad_php + "?form="+form + "&wrap=" + wrap +'.
' "&rows=" + rows + "&cols=" + cols;'.
-' notepad_title = \'GForgeNotepad\';'.
+' notepad_title = \'FusionForgeNotepad\';'.
' notepad_height = 700;'.
' notepad_width = 580;'.
' notepad_winopt = "scrollbars=yes,resizable=yes,toolbar=no,height="+'.
' NotepadWin = window.open(notepad_url, notepad_title,'.
' notepad_winopt);'.
'}'.
-"\n-->\n".
-"</script>\n";
+"\n/* ]]> */</script>\n";
return $js;
}
-
-?>