You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(120) |
Jun
(74) |
Jul
(97) |
Aug
(35) |
Sep
(35) |
Oct
(34) |
Nov
|
Dec
(6) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(18) |
Feb
(8) |
Mar
(7) |
Apr
(23) |
May
(28) |
Jun
(31) |
Jul
(27) |
Aug
(34) |
Sep
(48) |
Oct
(511) |
Nov
(197) |
Dec
(333) |
2005 |
Jan
(212) |
Feb
(33) |
Mar
(94) |
Apr
(51) |
May
(16) |
Jun
|
Jul
(200) |
Aug
(43) |
Sep
(88) |
Oct
(60) |
Nov
(62) |
Dec
(41) |
2006 |
Jan
(94) |
Feb
(49) |
Mar
(54) |
Apr
|
May
(39) |
Jun
(39) |
Jul
(61) |
Aug
(36) |
Sep
(23) |
Oct
(76) |
Nov
(73) |
Dec
(32) |
2007 |
Jan
|
Feb
(87) |
Mar
|
Apr
(8) |
May
(36) |
Jun
(49) |
Jul
(54) |
Aug
(8) |
Sep
(50) |
Oct
(36) |
Nov
|
Dec
(3) |
2008 |
Jan
(133) |
Feb
(54) |
Mar
(39) |
Apr
(2) |
May
(6) |
Jun
(74) |
Jul
(97) |
Aug
(70) |
Sep
(12) |
Oct
(20) |
Nov
(64) |
Dec
(24) |
2009 |
Jan
(25) |
Feb
(49) |
Mar
(18) |
Apr
|
May
|
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2011 |
Jan
(10) |
Feb
|
Mar
|
Apr
|
May
|
Jun
(7) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Yves K. <yku...@us...> - 2004-10-26 23:25:54
|
Update of /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/_htmlarea/popups In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1253/xwysiwyg/mod/xwysiwyg/_htmlarea/popups Modified Files: select_color.html Log Message: bugfix, color not selectable Index: select_color.html =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/_htmlarea/popups/select_color.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** select_color.html 26 Oct 2004 07:34:54 -0000 1.2 --- select_color.html 26 Oct 2004 23:25:40 -0000 1.3 *************** *** 2,9 **** <html><head><title>Select Color</title> ! <script type="text/javascript"> ! _editor_url = window.opener._editor_url; ! </script> ! <script type="text/javascript" src="' + _editor_url + 'popup.js"></script> <script type="text/javascript"> --- 2,7 ---- <html><head><title>Select Color</title> ! ! <script type="text/javascript" src="popup.js"></script> <script type="text/javascript"> |
From: Yves K. <yku...@us...> - 2004-10-26 21:10:50
|
Update of /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/class In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1666/xwysiwyg/mod/xwysiwyg/class Modified Files: xwysiwyg.php Log Message: some branching Index: xwysiwyg.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/class/xwysiwyg.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** xwysiwyg.php 26 Oct 2004 19:17:44 -0000 1.4 --- xwysiwyg.php 26 Oct 2004 21:09:22 -0000 1.5 *************** *** 115,119 **** $editors .= " var editor$index = new FCKeditor(\"$area\"); ! editor$index.BasePath = \"mod/xwysiwyg/_fck/\" ; editor$index.CheckBrowser = false ; editor$index.Config[\"AutoDetectLanguage\"] = false ; --- 115,119 ---- $editors .= " var editor$index = new FCKeditor(\"$area\"); ! editor$index.BasePath = \"http://".PHPWS_SOURCE_HTTP."mod/xwysiwyg/_fck/\" ; editor$index.CheckBrowser = false ; editor$index.Config[\"AutoDetectLanguage\"] = false ; *************** *** 153,160 **** <script type=\"text/javascript\">\n//<[[CDATA _editor_lang = \"".$lang."\"; ! _editor_url = \"mod/xwysiwyg/_htmlarea/\"; //]]>\n</script> <!-- load the main HTMLArea files --> ! <script type=\"text/javascript\" src=\"mod/xwysiwyg/_htmlarea/htmlarea.js\"></script> <script type=\"text/javascript\">\n//<[[CDATA ".$loadplugs; --- 153,160 ---- <script type=\"text/javascript\">\n//<[[CDATA _editor_lang = \"".$lang."\"; ! _editor_url = \"http://".PHPWS_SOURCE_HTTP."mod/xwysiwyg/_htmlarea/\"; //]]>\n</script> <!-- load the main HTMLArea files --> ! <script type=\"text/javascript\" src=\"http://".PHPWS_SOURCE_HTTP."mod/xwysiwyg/_htmlarea/htmlarea.js\"></script> <script type=\"text/javascript\">\n//<[[CDATA ".$loadplugs; *************** *** 177,181 **** $main = " <!-- load the main FCKeditor files --> ! <script type=\"text/javascript\" src=\"mod/fckeditor/fck/fckeditor.js\"></script> <script type=\"text/javascript\">\n//<[[CDATA ".$loadplugs; --- 177,181 ---- $main = " <!-- load the main FCKeditor files --> ! <script type=\"text/javascript\" src=\"http://".PHPWS_SOURCE_HTTP."mod/fckeditor/fck/fckeditor.js\"></script> <script type=\"text/javascript\">\n//<[[CDATA ".$loadplugs; |
From: Yves K. <yku...@us...> - 2004-10-26 21:10:47
|
Update of /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/conf In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1594/xwysiwyg/mod/xwysiwyg/conf Modified Files: boost.php Log Message: some branching Index: boost.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/conf/boost.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** boost.php 26 Oct 2004 18:40:34 -0000 1.3 --- boost.php 26 Oct 2004 21:09:04 -0000 1.4 *************** *** 19,23 **** $mod_sessions = array("PHPWS_xwysiwyg"); $active = "on"; ! $branch_allow = 0; $install_file = "install.php"; $uninstall_file = "uninstall.php"; --- 19,23 ---- $mod_sessions = array("PHPWS_xwysiwyg"); $active = "on"; ! $branch_allow = 1; $install_file = "install.php"; $uninstall_file = "uninstall.php"; |
From: Yves K. <yku...@us...> - 2004-10-26 19:24:53
|
Update of /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/docs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10507/xwysiwyg/mod/xwysiwyg/docs Modified Files: install_de.txt install_en.txt Log Message: adapted to the new situation without theme.php Index: install_en.txt =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/docs/install_en.txt,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** install_en.txt 26 Oct 2004 07:32:59 -0000 1.2 --- install_en.txt 26 Oct 2004 19:24:27 -0000 1.3 *************** *** 10,29 **** -your database -the file /js/wysiwyg.php - -theme.tpl of all themes you are using - -theme.php of all themes you are using - Installation: 1. Copy the xwysiwyg directory to the /mod directory of your phpWebSite installation 2. Replace /js/wysiwyg.php with the file from the xwysiwyg-module ! 3a. If you don't use theme.php so far replace theme.php in all your themes with the version provided with the xwysiwyg-module ! 3b. If you are using theme.php insert the xwysiwyg-code in theme.php of all your used modules ! 4. Insert the {XWYSIWYG} tag in theme.tpl before the {JAVASCRIPT} tag (needs to be done for every theme you are using) ! 5. Insert the {XWYSIWYG_BODY} tag in theme.tpl inside the body-tag; Eg:"<body{XWYSIWYG_BODY}>" (needs to be done for every theme you are using) ! 6. Install the xwysiwyg-modul as usual with BOOST ! ! Note: the provided theme files are for the default theme. ! If you did a standard install of phpWebSite you can copy these files ! to your /themes/Default directory and replace the original files. Deinstallation: --- 10,18 ---- -your database -the file /js/wysiwyg.php Installation: 1. Copy the xwysiwyg directory to the /mod directory of your phpWebSite installation 2. Replace /js/wysiwyg.php with the file from the xwysiwyg-module ! 3. Install the xwysiwyg-modul as usual with BOOST Deinstallation: *************** *** 44,48 **** After installing the module everything is shown as usual but there is a new XW button in ! the wysiwyg panel. To activate xwysiwyg for a specified region you have to click this button. ATTENTION: all unsaved data will be lost! Or try the Request-Mode and use the xw-button to start the editor on request. --- 33,37 ---- After installing the module everything is shown as usual but there is a new XW button in ! the wysiwyg panel. To activate xwysiwyg for a specified area you have to click this button. ATTENTION: all unsaved data will be lost! Or try the Request-Mode and use the xw-button to start the editor on request. *************** *** 56,59 **** Christan <web...@NO...> for help by testing the module Thomas <tl...@NO...> for the translation to English. ! Version of 2004-10-23 \ No newline at end of file --- 45,49 ---- Christan <web...@NO...> for help by testing the module Thomas <tl...@NO...> for the translation to English. + JYDAllstar for some impressive input. ! Version of 2004-10-26 \ No newline at end of file Index: install_de.txt =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/docs/install_de.txt,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** install_de.txt 26 Oct 2004 07:32:59 -0000 1.2 --- install_de.txt 26 Oct 2004 19:24:25 -0000 1.3 *************** *** 10,33 **** Sichern Sie Ihre Datenbank. Sichern Sie die Datei /js/wysiwyg.php - Sichern Sie die theme.tpl aller Ihrer benutzten Themen - Sichern Sie die theme.php aller Ihrer benutzten Themen - Installation: 1. Kopieren Sie das xwysiwyg-Verzeichnis ins /mod -Verzeichnis Ihrer phpWebSite 2. Ersetzten Sie die /js/wysiwyg.php ! Wenn Sie bisher keine theme.php benutzt haben: ! 3a. Ersetzten Sie die theme.php Datei in allen Ihren Themen (alle welche xwysiwyg nutzen sollen) ! Wenn Sie bereits theme.php benutzen: ! 3b. Fuegen Sie den xwysiwyg-Code in Ihre theme.php ein (ALLE welche xwysiwyg nutzen sollen) ! 4. Fuegen Sie das {XWYSIWYG}-Tag in Ihre theme.tpl vor dem {JAVASCRIPT}-Tag ein (alle welche htmlarea nutzen sollen) ! 5. Fuegen Sie das {XWYSIWYG_BODY}-Tag in Ihre theme.tpl in den <body>-Tag ein; Bsp:"<body{XWYSIWYG_BODY}>" (alle welche xwysiwyg nutzen sollen) ! 6. Installieren Sie das xwysiwyg-Modul wie gewohnt mit BOOST ! ! Hinweis: die beigepackten Theme-Dateien entsprechen dem Default-Thema. ! Sollten Sie eine Standard-Installation erstellt haben, koennen Sie die beiden Dateien ! im beiliegenden Default-Verzeichnis in Ihr /themes/Default/ Verzeichnis kopieren und ! die dortigen Dateien ueberschreiben. ! Deinstallation: --- 10,18 ---- Sichern Sie Ihre Datenbank. Sichern Sie die Datei /js/wysiwyg.php Installation: 1. Kopieren Sie das xwysiwyg-Verzeichnis ins /mod -Verzeichnis Ihrer phpWebSite 2. Ersetzten Sie die /js/wysiwyg.php ! 3. Installieren Sie das xwysiwyg-Modul wie gewohnt mit BOOST Deinstallation: *************** *** 63,66 **** Christan <web...@NO...> fuer die Mithilfe bei den Tests. Thomas <tl...@NO...> for the translation to English. ! Version vom 23.10.2004 \ No newline at end of file --- 48,52 ---- Christan <web...@NO...> fuer die Mithilfe bei den Tests. Thomas <tl...@NO...> for the translation to English. + JYDAllstar fuer einige sehr gute ideen. ! Version vom 26.10.2004 \ No newline at end of file |
From: Yves K. <yku...@us...> - 2004-10-26 19:19:08
|
Update of /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/class In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9089/xwysiwyg/mod/xwysiwyg/class Modified Files: xwysiwyg.php Log Message: some optical 'tuning' Index: xwysiwyg.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/class/xwysiwyg.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** xwysiwyg.php 26 Oct 2004 18:45:19 -0000 1.3 --- xwysiwyg.php 26 Oct 2004 19:17:44 -0000 1.4 *************** *** 4,8 **** * Class file for xwysiwyg module * ! * @version $0.1 2004/08/29 yk$ * @author Yves Kuendig <ph...@NO...> * @module xwysiwyg --- 4,8 ---- * Class file for xwysiwyg module * ! * @version $0.1 2004/10/26 yk$ * @author Yves Kuendig <ph...@NO...> * @module xwysiwyg *************** *** 21,46 **** if($result) return TRUE; else return FALSE; - - /* - require_once(PHPWS_SOURCE_DIR.'mod/xwysiwyg/class/phpSniff.class.php');//include the browser checking code - //First thing, check browser version - //Since I haven't tested, you'll have to add a better list of supported browsers - $client =& new phpSniff($GET_VARS['UA']); - //Now we want an inclusion list of browsers - //These browsers are supposed to work, Galleon or aol versions - $supported = FALSE; - $browsers = array("fb.6+", "NS7+","ie5.5+","mz1.3+","op7+","kq3+","ga","aol","ca"); - foreach($browsers as $search) { - if($client->browser_is($search)) $supported = TRUE; - } - if($supported){ - $answer['wysiwyg'] = TRUE; - if($settings['request_mode']) { - $answer['request'] = TRUE; - } - if($_SESSION["OBJ_user"]->allow_access("xwysiwyg","settings")) $answer['button'] = TRUE;// $xw_button = TRUE; - } - */ - } --- 21,24 ---- *************** *** 170,178 **** setcookie("pws_source_http", PHPWS_SOURCE_HTTP); // end cookie-code from chris ! /* nur hier als erinnerung ! <script type=\"text/javascript\" src=\"mod/xwysiwyg/_htmlarea/dialog.js\"></script> ! <script type=\"text/javascript\" src=\"mod/xwysiwyg/_htmlarea/popupwin.js\"></script> ! */ ! if($settings['request_mode']) { // HtmlArea-Main in Request-Mode $main = " <script type=\"text/javascript\">\n//<[[CDATA --- 148,153 ---- setcookie("pws_source_http", PHPWS_SOURCE_HTTP); // end cookie-code from chris ! ! // HtmlArea-Main for all Modes $main = " <script type=\"text/javascript\">\n//<[[CDATA *************** *** 183,201 **** <script type=\"text/javascript\" src=\"mod/xwysiwyg/_htmlarea/htmlarea.js\"></script> <script type=\"text/javascript\">\n//<[[CDATA ! ".$loadplugs." ! $editors //]]>\n</script> "; ! } else { // HtmlArea-Main in Normal-Mode ! $main = " ! <script type=\"text/javascript\">\n//<[[CDATA ! _editor_lang = \"".$lang."\"; ! _editor_url = \"mod/xwysiwyg/_htmlarea/\"; ! //]]>\n</script> ! <!-- load the main HTMLArea files --> ! <script type=\"text/javascript\" src=\"mod/xwysiwyg/_htmlarea/htmlarea.js\"></script> ! <script type=\"text/javascript\">\n//<[[CDATA ! ".$loadplugs." ! window.onload = function initEditor() { // create the editor(s) for the related textbox(es) $editors return false; --- 158,169 ---- <script type=\"text/javascript\" src=\"mod/xwysiwyg/_htmlarea/htmlarea.js\"></script> <script type=\"text/javascript\">\n//<[[CDATA ! ".$loadplugs; ! ! if($settings['request_mode']) { // HtmlArea-Main in Request-Mode ! $main .= " $editors //]]>\n</script> "; ! } else { // HtmlArea-Main in Normal-Mode ! $main .= " window.onload = function initEditor() { // create the editor(s) for the related textbox(es) $editors return false; *************** *** 204,224 **** "; } } else if($settings['editor']=="fck") { ! if($settings['request_mode']) { // FCK-Main in Request-Mode $main = " <!-- load the main FCKeditor files --> <script type=\"text/javascript\" src=\"mod/fckeditor/fck/fckeditor.js\"></script> <script type=\"text/javascript\">\n//<[[CDATA ! ".$loadplugs." ! $editors //]]>\n</script> "; ! } else { // FCK-Main in Normal-Mode ! $main = " ! <!-- load the main FCKeditor files --> ! <script type=\"text/javascript\" src=\"mod/fckeditor/fck/fckeditor.js\"></script> ! <script type=\"text/javascript\">\n//<[[CDATA ! ".$loadplugs." ! window.onload = function initEditor() { // create the editor(s) for the related textbox(es) $editors return false; --- 172,190 ---- "; } + } else if($settings['editor']=="fck") { ! // FCK-Main for all Modes $main = " <!-- load the main FCKeditor files --> <script type=\"text/javascript\" src=\"mod/fckeditor/fck/fckeditor.js\"></script> <script type=\"text/javascript\">\n//<[[CDATA ! ".$loadplugs; ! ! if($settings['request_mode']) { // FCK-Main in Request-Mode ! $main .= " $editors //]]>\n</script> "; ! } else { // FCK-Main in Normal-Mode ! $main .= " window.onload = function initEditor() { // create the editor(s) for the related textbox(es) $editors return false; *************** *** 227,230 **** --- 193,197 ---- "; } + } return $main; |
From: Yves K. <yku...@us...> - 2004-10-26 18:59:22
|
Update of /cvsroot/phpwebsite-comm/modules/xwysiwyg/js In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4828/xwysiwyg/js Modified Files: wysiwyg.php Log Message: small movements Index: wysiwyg.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/js/wysiwyg.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** wysiwyg.php 26 Oct 2004 18:38:01 -0000 1.3 --- wysiwyg.php 26 Oct 2004 18:57:58 -0000 1.4 *************** *** 1,3 **** --- 1,4 ---- <?php + // start xwysiwyg code $xwysiwyg = FALSE; $xw_button = FALSE; *************** *** 17,24 **** } if($supported){ - /*We'll want to keep the phpws wysiwyg functions for form fields, - *then add an exclusion list of items we want to use xwysiwyg with. - *Then filter those out. - *I've included a list of ones I knew about, if you have others, please add them */ if(!isset($GLOBALS['xwysiwyg_settings'])) $settings = PHPWS_xwysiwyg::readConfig(); else $settings = $GLOBALS['xwysiwyg_settings']; --- 18,21 ---- *************** *** 31,36 **** } - - // xwysiwyg-code if ($xwysiwyg) { $GLOBALS['xwysiwyg_areas'][] = $section_name; //write an array for the theme.php --- 28,31 ---- *************** *** 38,41 **** --- 33,37 ---- $GLOBALS['xwysiwyg']++; } + // end xwysiwyg-code *************** *** 52,56 **** if(!$xwysiwyg|$onRequest) { if($GLOBALS['wysiwyg'] == 1) { ! $GLOBALS['core']->js_func[] = " --- 48,53 ---- if(!$xwysiwyg|$onRequest) { if($GLOBALS['wysiwyg'] == 1) { ! // ykuendig added the two functions addXwysiwyg(form, section) ! // and actXwysiwyg(form, section, editor) below $GLOBALS['core']->js_func[] = " |
From: Yves K. <yku...@us...> - 2004-10-26 18:45:29
|
Update of /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/class In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1881/xwysiwyg/mod/xwysiwyg/class Modified Files: xwysiwyg.php Log Message: a few modifications Index: xwysiwyg.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/class/xwysiwyg.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** xwysiwyg.php 26 Oct 2004 07:31:54 -0000 1.2 --- xwysiwyg.php 26 Oct 2004 18:45:19 -0000 1.3 *************** *** 21,24 **** --- 21,46 ---- if($result) return TRUE; else return FALSE; + + /* + require_once(PHPWS_SOURCE_DIR.'mod/xwysiwyg/class/phpSniff.class.php');//include the browser checking code + //First thing, check browser version + //Since I haven't tested, you'll have to add a better list of supported browsers + $client =& new phpSniff($GET_VARS['UA']); + //Now we want an inclusion list of browsers + //These browsers are supposed to work, Galleon or aol versions + $supported = FALSE; + $browsers = array("fb.6+", "NS7+","ie5.5+","mz1.3+","op7+","kq3+","ga","aol","ca"); + foreach($browsers as $search) { + if($client->browser_is($search)) $supported = TRUE; + } + if($supported){ + $answer['wysiwyg'] = TRUE; + if($settings['request_mode']) { + $answer['request'] = TRUE; + } + if($_SESSION["OBJ_user"]->allow_access("xwysiwyg","settings")) $answer['button'] = TRUE;// $xw_button = TRUE; + } + */ + } *************** *** 154,177 **** if($settings['request_mode']) { // HtmlArea-Main in Request-Mode $main = " ! <script type=\"text/javascript\"> _editor_lang = \"".$lang."\"; _editor_url = \"mod/xwysiwyg/_htmlarea/\"; ! </script> <!-- load the main HTMLArea files --> <script type=\"text/javascript\" src=\"mod/xwysiwyg/_htmlarea/htmlarea.js\"></script> ! <script type=\"text/javascript\"> ".$loadplugs." $editors ! </script> "; } else { // HtmlArea-Main in Normal-Mode $main = " ! <script type=\"text/javascript\"> _editor_lang = \"".$lang."\"; _editor_url = \"mod/xwysiwyg/_htmlarea/\"; ! </script> <!-- load the main HTMLArea files --> <script type=\"text/javascript\" src=\"mod/xwysiwyg/_htmlarea/htmlarea.js\"></script> ! <script type=\"text/javascript\"> ".$loadplugs." window.onload = function initEditor() { // create the editor(s) for the related textbox(es) --- 176,199 ---- if($settings['request_mode']) { // HtmlArea-Main in Request-Mode $main = " ! <script type=\"text/javascript\">\n//<[[CDATA _editor_lang = \"".$lang."\"; _editor_url = \"mod/xwysiwyg/_htmlarea/\"; ! //]]>\n</script> <!-- load the main HTMLArea files --> <script type=\"text/javascript\" src=\"mod/xwysiwyg/_htmlarea/htmlarea.js\"></script> ! <script type=\"text/javascript\">\n//<[[CDATA ".$loadplugs." $editors ! //]]>\n</script> "; } else { // HtmlArea-Main in Normal-Mode $main = " ! <script type=\"text/javascript\">\n//<[[CDATA _editor_lang = \"".$lang."\"; _editor_url = \"mod/xwysiwyg/_htmlarea/\"; ! //]]>\n</script> <!-- load the main HTMLArea files --> <script type=\"text/javascript\" src=\"mod/xwysiwyg/_htmlarea/htmlarea.js\"></script> ! <script type=\"text/javascript\">\n//<[[CDATA ".$loadplugs." window.onload = function initEditor() { // create the editor(s) for the related textbox(es) *************** *** 179,183 **** return false; } ! </script> "; } --- 201,205 ---- return false; } ! //]]>\n</script> "; } *************** *** 187,194 **** <!-- load the main FCKeditor files --> <script type=\"text/javascript\" src=\"mod/fckeditor/fck/fckeditor.js\"></script> ! <script type=\"text/javascript\"> ".$loadplugs." $editors ! </script> "; } else { // FCK-Main in Normal-Mode --- 209,216 ---- <!-- load the main FCKeditor files --> <script type=\"text/javascript\" src=\"mod/fckeditor/fck/fckeditor.js\"></script> ! <script type=\"text/javascript\">\n//<[[CDATA ".$loadplugs." $editors ! //]]>\n</script> "; } else { // FCK-Main in Normal-Mode *************** *** 196,200 **** <!-- load the main FCKeditor files --> <script type=\"text/javascript\" src=\"mod/fckeditor/fck/fckeditor.js\"></script> ! <script type=\"text/javascript\"> ".$loadplugs." window.onload = function initEditor() { // create the editor(s) for the related textbox(es) --- 218,222 ---- <!-- load the main FCKeditor files --> <script type=\"text/javascript\" src=\"mod/fckeditor/fck/fckeditor.js\"></script> ! <script type=\"text/javascript\">\n//<[[CDATA ".$loadplugs." window.onload = function initEditor() { // create the editor(s) for the related textbox(es) *************** *** 202,206 **** return false; } ! </script> "; } --- 224,228 ---- return false; } ! //]]>\n</script> "; } *************** *** 226,229 **** --- 248,252 ---- $main = PHPWS_xwysiwyg::makeMain($settings,$editors,$loadplugs,$lang); } + $main = "//]]>\n</script>".$main."<script type=\"text/javascript\">\n//<[[CDATA"; //ugly hack to work with $GLOBALS['core']->js_func[] return $main; } |
From: Yves K. <yku...@us...> - 2004-10-26 18:44:56
|
Update of /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/inc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1747/xwysiwyg/mod/xwysiwyg/inc Added Files: runtime.php Log Message: initial revision --- NEW FILE: runtime.php --- <?php // begin xwysiwyg-code require_once(PHPWS_SOURCE_DIR.'mod/xwysiwyg/class/xwysiwyg.php');//include the xwysiwyg code $GLOBALS['core']->js_func[] = PHPWS_xwysiwyg::makeJS(); //build main-js // end xwysiwyg-code ?> |
From: Yves K. <yku...@us...> - 2004-10-26 18:40:43
|
Update of /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/conf In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv740/xwysiwyg/mod/xwysiwyg/conf Modified Files: boost.php Log Message: a few modifications Index: boost.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/conf/boost.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** boost.php 26 Oct 2004 07:32:42 -0000 1.2 --- boost.php 26 Oct 2004 18:40:34 -0000 1.3 *************** *** 11,15 **** $mod_directory = "xwysiwyg"; $mod_filename = "index.php"; ! $priority = 50; $allow_view = "all"; $user_mod = 0; --- 11,15 ---- $mod_directory = "xwysiwyg"; $mod_filename = "index.php"; ! $priority = 98; $allow_view = "all"; $user_mod = 0; |
From: Yves K. <yku...@us...> - 2004-10-26 18:40:18
|
Update of /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/inc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv608/inc Log Message: Directory /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/inc added to the repository |
From: Yves K. <yku...@us...> - 2004-10-26 18:39:01
|
Update of /cvsroot/phpwebsite-comm/modules/xwysiwyg/js In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32573/xwysiwyg/js Modified Files: wysiwyg.php Log Message: a few modifications Index: wysiwyg.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/js/wysiwyg.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** wysiwyg.php 26 Oct 2004 07:25:50 -0000 1.2 --- wysiwyg.php 26 Oct 2004 18:38:01 -0000 1.3 *************** *** 31,34 **** --- 31,44 ---- } + + // xwysiwyg-code + if ($xwysiwyg) { + $GLOBALS['xwysiwyg_areas'][] = $section_name; //write an array for the theme.php + //$js = ""; + $GLOBALS['xwysiwyg']++; + } + + + require_once(PHPWS_SOURCE_DIR.'core/Text.php'); include(PHPWS_SOURCE_DIR.'conf/javascriptSettings.php'); *************** *** 138,142 **** } ! $eid = $GLOBALS['xwysiwyg']; $js = "<div id=\"xw$eid\" class=\"xw$eid\"><a name=\"wysiwyg{$GLOBALS['wysiwyg']}\" />\n"; $js .= "<a href=\"#wysiwyg{$GLOBALS['wysiwyg']}\" tabindex=\"".$GLOBALS['wysiwyg_tab_index']++."\" onclick=\"addBold('{$form_name}', '{$section_name}');\" onmouseover=\"window.status='Add bold'; return true;\" onmouseout=\"window.status='';\">" . phpws_text::imageTag("./images/javascript/wysiwyg/bold.gif", "Bold", 21, 20) . "</a>\n"; --- 148,152 ---- } ! $eid = $GLOBALS['xwysiwyg']; // ykuendig added a div here to hide the buttons in request-mode $js = "<div id=\"xw$eid\" class=\"xw$eid\"><a name=\"wysiwyg{$GLOBALS['wysiwyg']}\" />\n"; $js .= "<a href=\"#wysiwyg{$GLOBALS['wysiwyg']}\" tabindex=\"".$GLOBALS['wysiwyg_tab_index']++."\" onclick=\"addBold('{$form_name}', '{$section_name}');\" onmouseover=\"window.status='Add bold'; return true;\" onmouseout=\"window.status='';\">" . phpws_text::imageTag("./images/javascript/wysiwyg/bold.gif", "Bold", 21, 20) . "</a>\n"; *************** *** 188,202 **** } ! $js .= "<br /></div>\n"; $GLOBALS['wysiwyg']++; } - // xwysiwyg-code - if ($xwysiwyg) { - $GLOBALS['xwysiwyg_areas'][] = $section_name; //write an array for the theme.php - //$js = ""; - $GLOBALS['xwysiwyg']++; - } - ?> \ No newline at end of file --- 198,205 ---- } ! $js .= "<br /></div>\n"; //ykuendig closes the div for request-mode $GLOBALS['wysiwyg']++; } ?> \ No newline at end of file |
From: Yves K. <yku...@us...> - 2004-10-26 07:36:54
|
Update of /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/_htmlarea/lang In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31691/xwysiwyg/mod/xwysiwyg/_htmlarea/lang Modified Files: de.js Log Message: saved in unix-format Index: de.js =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/_htmlarea/lang/de.js,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** de.js 25 Oct 2004 18:13:14 -0000 1.1.1.1 --- de.js 26 Oct 2004 07:36:44 -0000 1.2 *************** *** 1,88 **** ! // I18N constants ! ! // LANG: "de", ENCODING: UTF-8 | ISO-8859-1 ! // Author: Mihai Bazon, http://dynarch.com/mishoo ! ! // FOR TRANSLATORS: ! // ! // german version for htmlArea v3.0 - Alpha Release ! // - translated by AtK<at...@ch...> ! // term´s and licenses are equal to htmlarea! ! // translation improved by broxx<br...@br...> ! // ! // ! ! HTMLArea.I18N = { ! ! // the following should be the filename without .js extension ! // it will be used for automatically load plugin language. ! lang: "de", ! ! tooltips: { ! bold: "Fett", ! italic: "Kursiv", ! underline: "Unterstrichen", ! strikethrough: "Durchgestrichen", ! subscript: "Tiefgestellt", ! superscript: "Hochgestellt", ! justifyleft: "Links ausrichten", ! justifycenter: "Zentrieren", ! justifyright: "Rechts ausrichten", ! justifyfull: "Blocksatz", ! insertorderedlist: "Nummerierung", ! insertunorderedlist: "Aufzaehlungszeichen", ! outdent: "Einzug verkleinern", ! indent: "Einzug vergroessern", ! forecolor: "Text Farbe", ! hilitecolor: "Hintergrund Farbe", ! inserthorizontalrule: "Horizontale Linie", ! createlink: "Hyperlink einfuegen", ! insertimage: "Bild einfuegen", ! inserttable: "Tabelle einfuegen", ! htmlmode: "HTML Modus", ! popupeditor: "Editor im Popup oeffnen", ! about: "Ueber HtmlArea", ! showhelp: "Hilfe", ! textindicator: "derzeitiger Stil", ! undo: "Rueckgaengig", ! redo: "Wiederholen", ! cut: "Ausschneiden", ! copy: "Kopieren", ! paste: "Einfuegen", ! lefttoright: "Von Links nach Rechts", ! righttoleft: "Von Rechts nach Links" ! }, ! ! buttons: { ! "ok": "OK", ! "cancel": "Abbrechen" ! }, ! ! msg: { ! "Path": "Pfad", ! "TEXT_MODE": "Du befindest dich im HTML Modus. Benuetze die [<>] Schaltflaeche um in den WYSIWIG-Modus zu wechseln.", ! ! "IE-sucks-full-screen" : ! // translate here ! "The full screen mode is known to cause problems with Internet Explorer, " + ! "due to browser bugs that we weren't able to workaround. You might experience garbage " + ! "display, lack of editor functions and/or random browser crashes. If your system is Windows 9x " + ! "it's very likely that you'll get a 'General Protection Fault' and need to reboot.\n\n" + ! "You have been warned. Please press OK if you still want to try the full screen editor." ! }, ! ! dialogs: { ! "Cancel" : "Abbrechen", ! "Insert/Modify Link" : "Link einfuegen/aendern", ! "New window (_blank)" : "Neues Fenster (_blank)", ! "None (use implicit)" : "None (use implicit)", ! "OK" : "OK", ! "Other" : "Anderes", ! "Same frame (_self)" : "Gleicher Frame (_self)", ! "Target:" : "Ziel:", ! "Title (tooltip):" : "Titel (tooltip):", ! "Top frame (_top)" : "Top Frame (_top)", ! "URL:" : "URL:", ! "You must enter the URL where this link points to" : "Sie muessen eine URL fuer diesen Link angeben" ! } ! }; --- 1,88 ---- ! // I18N constants ! ! // LANG: "de", ENCODING: UTF-8 | ISO-8859-1 ! // Author: Mihai Bazon, http://dynarch.com/mishoo ! ! // FOR TRANSLATORS: ! // ! // german version for htmlArea v3.0 - Alpha Release ! // - translated by AtK<at...@ch...> ! // term´s and licenses are equal to htmlarea! ! // translation improved by broxx<br...@br...> ! // ! // ! ! HTMLArea.I18N = { ! ! // the following should be the filename without .js extension ! // it will be used for automatically load plugin language. ! lang: "de", ! ! tooltips: { ! bold: "Fett", ! italic: "Kursiv", ! underline: "Unterstrichen", ! strikethrough: "Durchgestrichen", ! subscript: "Tiefgestellt", ! superscript: "Hochgestellt", ! justifyleft: "Links ausrichten", ! justifycenter: "Zentrieren", ! justifyright: "Rechts ausrichten", ! justifyfull: "Blocksatz", ! insertorderedlist: "Nummerierung", ! insertunorderedlist: "Aufzaehlungszeichen", ! outdent: "Einzug verkleinern", ! indent: "Einzug vergroessern", ! forecolor: "Text Farbe", ! hilitecolor: "Hintergrund Farbe", ! inserthorizontalrule: "Horizontale Linie", ! createlink: "Hyperlink einfuegen", ! insertimage: "Bild einfuegen", ! inserttable: "Tabelle einfuegen", ! htmlmode: "HTML Modus", ! popupeditor: "Editor im Popup oeffnen", ! about: "Ueber HtmlArea", ! showhelp: "Hilfe", ! textindicator: "derzeitiger Stil", ! undo: "Rueckgaengig", ! redo: "Wiederholen", ! cut: "Ausschneiden", ! copy: "Kopieren", ! paste: "Einfuegen", ! lefttoright: "Von Links nach Rechts", ! righttoleft: "Von Rechts nach Links" ! }, ! ! buttons: { ! "ok": "OK", ! "cancel": "Abbrechen" ! }, ! ! msg: { ! "Path": "Pfad", ! "TEXT_MODE": "Du befindest dich im HTML Modus. Benuetze die [<>] Schaltflaeche um in den WYSIWIG-Modus zu wechseln.", ! ! "IE-sucks-full-screen" : ! // translate here ! "The full screen mode is known to cause problems with Internet Explorer, " + ! "due to browser bugs that we weren't able to workaround. You might experience garbage " + ! "display, lack of editor functions and/or random browser crashes. If your system is Windows 9x " + ! "it's very likely that you'll get a 'General Protection Fault' and need to reboot.\n\n" + ! "You have been warned. Please press OK if you still want to try the full screen editor." ! }, ! ! dialogs: { ! "Cancel" : "Abbrechen", ! "Insert/Modify Link" : "Link einfuegen/aendern", ! "New window (_blank)" : "Neues Fenster (_blank)", ! "None (use implicit)" : "None (use implicit)", ! "OK" : "OK", ! "Other" : "Anderes", ! "Same frame (_self)" : "Gleicher Frame (_self)", ! "Target:" : "Ziel:", ! "Title (tooltip):" : "Titel (tooltip):", ! "Top frame (_top)" : "Top Frame (_top)", ! "URL:" : "URL:", ! "You must enter the URL where this link points to" : "Sie muessen eine URL fuer diesen Link angeben" ! } ! }; |
From: Yves K. <yku...@us...> - 2004-10-26 07:36:07
|
Update of /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/_htmlarea In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31449/xwysiwyg/mod/xwysiwyg/_htmlarea Modified Files: ChangeLog.txt htmlarea.js index.html Log Message: saved in unix-format Index: ChangeLog.txt =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/_htmlarea/ChangeLog.txt,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** ChangeLog.txt 25 Oct 2004 18:13:14 -0000 1.1.1.1 --- ChangeLog.txt 26 Oct 2004 07:35:55 -0000 1.2 *************** *** 1,1195 **** ! own changes ! 2004-10-22 ykuendig ! * multiple changes to fit in phpws and to show the 'enlarged'-box ! * new plugins added ! 2004-08-29 ykuendig ! * lang/en.js updated tooltips insertordered, insertunordered, inserthorzontalrule ! * lang/de.js updated tooltips insertordered, insertunordered, inserthorzontalrule ! * applied a small hack for phpws @line 693 added +100 for hight ! ! official change-log [...2361 lines suppressed...] ! * dialog.js, images/.xvpics/ed_align_justify.gif, images/ed_about.gif, images/ed_align_center.gif, images/ed_align_justify.gif, images/ed_align_left.gif, images/ed_align_right.gif, images/ed_blank.gif, images/ed_charmap.gif, images/ed_color_bg.gif, images/ed_color_fg.gif, images/ed_copy.gif, images/ed_custom.gif, images/ed_cut.gif, images/ed_delete.gif, images/ed_format_bold.gif, images/ed_format_italic.gif, images/ed_format_strike.gif, images/ed_format_sub.gif, images/ed_format_sup.gif, images/ed_format_underline.gif, images/ed_help.gif, images/ed_hr.gif, images/ed_html.gif, images/ed_image.gif, images/ed_indent_less.gif, images/ed_indent_more.gif, images/ed_link.gif, images/ed_list_bullet.gif, images/ed_list_num.gif, images/ed_redo.gif, images/ed_undo.gif, images/fullscreen_maximize.gif, images/fullscreen_minimize.gif, images/insert_table.gif, popups/about.html, popups/blank.html, popups/custom2.html, popups/editor_help.html, popups/fullscreen.html, popups/insert_image.html, popups/insert_table.html, popups/old-fullscreen.html, popups/old_insert_image.html, popups/popup.js, popups/select_color.html: ! New file. ! ! * dialog.js, images/.xvpics/ed_align_justify.gif, images/ed_about.gif, images/ed_align_center.gif, images/ed_align_justify.gif, images/ed_align_left.gif, images/ed_align_right.gif, images/ed_blank.gif, images/ed_charmap.gif, images/ed_color_bg.gif, images/ed_color_fg.gif, images/ed_copy.gif, images/ed_custom.gif, images/ed_cut.gif, images/ed_delete.gif, images/ed_format_bold.gif, images/ed_format_italic.gif, images/ed_format_strike.gif, images/ed_format_sub.gif, images/ed_format_sup.gif, images/ed_format_underline.gif, images/ed_help.gif, images/ed_hr.gif, images/ed_html.gif, images/ed_image.gif, images/ed_indent_less.gif, images/ed_indent_more.gif, images/ed_link.gif, images/ed_list_bullet.gif, images/ed_list_num.gif, images/ed_redo.gif, images/ed_undo.gif, images/fullscreen_maximize.gif, images/fullscreen_minimize.gif, images/insert_table.gif, popups/about.html, popups/blank.html, popups/custom2.html, popups/editor_help.html, popups/fullscreen.html, popups/insert_image.html, popups/insert_table.html, popups/old-fullscreen.html, popups/old_insert_image.html, popups/popup.js, popups/select_color.html: ! first moved to CVS (close to release 3.0-beta) ! ! * htmlarea.js, test.cgi: New file. ! ! * htmlarea.js, test.cgi: first moved to CVS (close to release 3.0-beta) ! ! * htmlarea-lang-en.js, readme.html: New file. ! ! * htmlarea-lang-en.js, readme.html: ! first moved to CVS (close to release 3.0-beta) ! ! * example.html, htmlarea.css, license.txt: New file. ! ! * example.html, htmlarea.css, license.txt: ! first moved to CVS (close to release 3.0-beta) ! Index: index.html =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/_htmlarea/index.html,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** index.html 25 Oct 2004 18:12:07 -0000 1.1.1.1 --- index.html 26 Oct 2004 07:35:55 -0000 1.2 *************** *** 1,210 **** ! <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.2//EN"> ! <html> ! <head> ! <title>HTMLArea -- the free, customizable online editor</title> ! ! <style type="text/css"> ! html, body { font-family: georgia,"times new roman",serif; background-color: #fff; color: #000; } ! .label { text-align: right; padding-right: 0.3em; } ! .bline { border-bottom: 1px solid #aaa; } ! </style> ! </head> ! ! <body> ! <div style="float: right; border: 1px solid #aaa; background-color: #eee; padding: 3px; margin-left: 10px; margin-bottom: 10px;"> ! <table cellspacing="0" cellpadding="0" border="0"> ! <tr> ! <td class="label">Version:</td><td><% $version %></td> ! </tr> ! <tr> ! <td class="label">Release:</td><td><% $release %> (<a href="release-notes.html">release notes</a>)</td> ! </tr> ! <tr> ! <td class="label bline">Compiled at:</td><td class="bline"><% $time %></td> ! </tr> ! <tr> ! <td class="label">SourceForge page:</td><td><a href="http://sf.net/projects/itools-htmlarea/">http://sf.net/projects/itools-htmlarea/</a></td> ! </table> ! </div> ! <h1>HTMLArea -- the free<br/>customizable online editor</h1> ! ! <p> ! HTMLArea is a free, customizable online editor. It works inside your ! browser. It uses a non-standard feature implemented in Internet ! Explorer 5.5 or better for Windows and Mozilla 1.3 or better (any ! platform), therefore it will only work in one of these browsers. ! </p> ! ! <p> ! HTMLArea is copyright <a ! href="http://interactivetools.com">InteractiveTools.com</a> and <a ! href="http://dynarch.com">Dynarch.com</a> and it is ! released under a BSD-style license. HTMLArea is created and developed ! upto version 2.03 by InteractiveTools.com. Version 3.0 developed by ! <a href="http://dynarch.com/mishoo/">Mihai Bazon</a> for ! InteractiveTools. It contains code sponsored by third-party companies as well. ! Please see our About Box for details about who sponsored what plugins. ! </p> ! ! <h2>Online demos</h2> ! ! <ul> ! ! <li><a href="examples/core.html">HTMLArea standard</a> -- contains the core ! editor.</li> ! ! <li><a href="examples/table-operations.html">HTMLArea + tables</a> -- ! loads the <tt>TableOperations</tt> plugin which provides some extra ! editing features for tables.</li> ! ! <li><a href="examples/spell-checker.html">HTMLArea + spell checher</a> ! -- loads the <tt>SpellChecker</tt> plugin which provides what its ! name says: a spell checker. This one requires additional support on ! the server-side.</li> ! ! <li><a href="examples/full-page.html">HTMLArea Full HTML Editor</a> -- ! loads the <tt>FullPage</tt> plugin which allows you to edit a full ! HTML page, including <title>, <!DOCTYPE...> and some ! other options.</li> ! ! <li><a href="examples/context-menu.html">HTMLArea with Context ! Menu</a> -- this plugin provides a nice and useful context menu.</li> ! ! <li><a href="examples/fully-loaded.html">HTMLArea fully loaded</a> -- ! all of the above. ;-)</li> ! ! </ul> ! ! <h2>Installation</h2> ! ! <p> ! Installation is (or should be) easy. You need to unpack the ZIP file ! in a directory accessible through your webserver. Supposing you ! unpack in your <tt>DocumentRoot</tt> and your <tt>DocumentRoot</tt> is ! <tt>/var/www/html</tt> as in a standard RedHat installation, you need ! to acomplish the following steps: (the example is for a Unix-like ! operating system) ! </p> ! ! <pre style="margin-left: 2em" ! > ! cd /var/www/html ! unzip /path/to/archive/<% $basename %>.zip ! mv <% $basename %> htmlarea ! find htmlarea/ -type f -exec chmod 644 {} \; ! find htmlarea/ -type d -exec chmod 755 {} \; ! find htmlarea/ -name "*.cgi" -exec chmod 755 {} \;</pre> ! ! <p> ! <strong>Notes.</strong> You may chose to symlink "htmlarea" to "<% ! $basename %>", in which case your server needs to be configured to ! "<tt>FollowSymLinks</tt>". You need to make sure that *.cgi files are ! interpreted as CGI scripts. If you want to use the SpellChecker ! plugin you need to have a recent version of Perl installed (I ! recommend 5.8.0) on the server, and the module Text::Aspell, available ! from CPAN. More info in "<a ! href="plugins/SpellChecker/readme-tech.html">plugins/SpellChecker/readme-tech.html</a>". ! </p> ! ! <p>About how to setup your pages to use the editor, please read the ! [outdated yet generally valid] <a ! href="reference.html">documentation</a>.</p> ! ! <h2>Status and links</h2> ! ! <p>HTMLArea has reached version 3.0. As of this version, it ! supports:</p> ! ! <ul> ! ! <li>Customizable toolbar</li> ! ! <li>Easy internationalization</li> ! ! <li>Plugin-based infrastructure</li> ! ! <li>Delivers W3-compliant HTML (with few exceptions)</li> ! ! <li>Has a subset of Microsoft Word's keyboard shortcuts</li> ! ! <li>Full-screen editor</li> ! ! <li>Advanced table operations (by external plugin ! "TableOperations")</li> ! ! <li>Spell checker (by external plugin "SpellChecker")</li> ! ! <li>probably more... ;-)</li> ! ! </ul> ! ! <p>We have a <a ! href="http://sourceforge.net/projects/itools-htmlarea/">project page</a> ! at <a href="http://sourceforge.net">SourceForge.net</a>. There you can ! also find out <a href="http://sourceforge.net/cvs/?group_id=69750">how ! to retrieve the code from CVS</a>, or you can <a ! href="http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/itools-htmlarea">browse ! the CVS online</a>. We also have a <a ! href="http://sourceforge.net/tracker/?atid=525656&group_id=69750&func=browse">bug ! system</a>, a <a ! href="http://sourceforge.net/tracker/?atid=525658&group_id=69750&func=browse">patch ! tracking system</a> and a <a ! href="http://sourceforge.net/tracker/?atid=525659&group_id=69750&func=browse">feature ! request page</a>.</p> ! ! <p>We invite you to say everything you want about HTMLArea <a ! href="http://www.interactivetools.com/forum/gforum.cgi?forum=14;">on the ! forums</a> at InteractiveTools.com. There you should also find the ! latest news.</p> ! ! <p>Sometimes I post news about the latest developments on <a ! href="http://dynarch.com/mishoo/">my personal homepage</a>.</p> ! ! <h2>"It doesn't work, what's wrong?"</h2> ! ! <p>If it doesn't work, you have several options:</p> ! ! <ul> ! ! <li>Post a message to the forum. Describe your problem in as much ! detail as possible. Include errors you might find in the JavaScript ! console (if you are a Mozilla user), or errors displayed by IE (though ! they're most of the times useless).</li> ! ! <li>If you're positive that you discovered a bug in HTMLArea then feel ! free to fill a bug report in our bug system. If you have the time you ! should check to see if a similar bug was reported or not; it might be ! fixed already in the CVS ;-) If you're positive that a similar bug was ! not yet reported, do fill a bug report and please include as much ! detail as possible, such as your browser, OS, errors from JavaScript ! console, etc.</li> ! ! <li>If you want a new feature to be implemented, post it on the ! features request and someone will hopefully take care of it.</li> ! ! </ul> ! ! <p>You can <a href="mailto:mih...@ya...">contact me directly</a> ! <em>only</em> if you want to pay me for implementing custom features to ! HTMLArea. If you want to sponsor these features (that is, allow them to ! get back into the public HTMLArea distribution) I'll be cheaper. ;-)</p> ! ! <hr /> ! <address><a href="http://dynarch.com/mishoo/">Mihai Bazon</a></address> ! <!-- Created: Sun Aug 3 14:11:26 EEST 2003 --> ! <!-- hhmts start --> Last modified: Wed Jan 28 11:54:47 EET 2004 <!-- hhmts end --> ! <!-- doc-lang: English --> ! </body> ! </html> ! ! <%ARGS> ! $project => 'HTMLArea' ! $version => '3.0' ! $release => 'rc1' ! $basename => 'HTMLArea-3.0-rc1' ! </%ARGS> ! ! <%INIT>; ! use POSIX qw(strftime); ! my $time = strftime '%b %e, %Y [%H:%M] GMT', gmtime; ! </%INIT> --- 1,210 ---- ! <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.2//EN"> ! <html> ! <head> ! <title>HTMLArea -- the free, customizable online editor</title> ! ! <style type="text/css"> ! html, body { font-family: georgia,"times new roman",serif; background-color: #fff; color: #000; } ! .label { text-align: right; padding-right: 0.3em; } ! .bline { border-bottom: 1px solid #aaa; } ! </style> ! </head> ! ! <body> ! <div style="float: right; border: 1px solid #aaa; background-color: #eee; padding: 3px; margin-left: 10px; margin-bottom: 10px;"> ! <table cellspacing="0" cellpadding="0" border="0"> ! <tr> ! <td class="label">Version:</td><td><% $version %></td> ! </tr> ! <tr> ! <td class="label">Release:</td><td><% $release %> (<a href="release-notes.html">release notes</a>)</td> ! </tr> ! <tr> ! <td class="label bline">Compiled at:</td><td class="bline"><% $time %></td> ! </tr> ! <tr> ! <td class="label">SourceForge page:</td><td><a href="http://sf.net/projects/itools-htmlarea/">http://sf.net/projects/itools-htmlarea/</a></td> ! </table> ! </div> ! <h1>HTMLArea -- the free<br/>customizable online editor</h1> ! ! <p> ! HTMLArea is a free, customizable online editor. It works inside your ! browser. It uses a non-standard feature implemented in Internet ! Explorer 5.5 or better for Windows and Mozilla 1.3 or better (any ! platform), therefore it will only work in one of these browsers. ! </p> ! ! <p> ! HTMLArea is copyright <a ! href="http://interactivetools.com">InteractiveTools.com</a> and <a ! href="http://dynarch.com">Dynarch.com</a> and it is ! released under a BSD-style license. HTMLArea is created and developed ! upto version 2.03 by InteractiveTools.com. Version 3.0 developed by ! <a href="http://dynarch.com/mishoo/">Mihai Bazon</a> for ! InteractiveTools. It contains code sponsored by third-party companies as well. ! Please see our About Box for details about who sponsored what plugins. ! </p> ! ! <h2>Online demos</h2> ! ! <ul> ! ! <li><a href="examples/core.html">HTMLArea standard</a> -- contains the core ! editor.</li> ! ! <li><a href="examples/table-operations.html">HTMLArea + tables</a> -- ! loads the <tt>TableOperations</tt> plugin which provides some extra ! editing features for tables.</li> ! ! <li><a href="examples/spell-checker.html">HTMLArea + spell checher</a> ! -- loads the <tt>SpellChecker</tt> plugin which provides what its ! name says: a spell checker. This one requires additional support on ! the server-side.</li> ! ! <li><a href="examples/full-page.html">HTMLArea Full HTML Editor</a> -- ! loads the <tt>FullPage</tt> plugin which allows you to edit a full ! HTML page, including <title>, <!DOCTYPE...> and some ! other options.</li> ! ! <li><a href="examples/context-menu.html">HTMLArea with Context ! Menu</a> -- this plugin provides a nice and useful context menu.</li> ! ! <li><a href="examples/fully-loaded.html">HTMLArea fully loaded</a> -- ! all of the above. ;-)</li> ! ! </ul> ! ! <h2>Installation</h2> ! ! <p> ! Installation is (or should be) easy. You need to unpack the ZIP file ! in a directory accessible through your webserver. Supposing you ! unpack in your <tt>DocumentRoot</tt> and your <tt>DocumentRoot</tt> is ! <tt>/var/www/html</tt> as in a standard RedHat installation, you need ! to acomplish the following steps: (the example is for a Unix-like ! operating system) ! </p> ! ! <pre style="margin-left: 2em" ! > ! cd /var/www/html ! unzip /path/to/archive/<% $basename %>.zip ! mv <% $basename %> htmlarea ! find htmlarea/ -type f -exec chmod 644 {} \; ! find htmlarea/ -type d -exec chmod 755 {} \; ! find htmlarea/ -name "*.cgi" -exec chmod 755 {} \;</pre> ! ! <p> ! <strong>Notes.</strong> You may chose to symlink "htmlarea" to "<% ! $basename %>", in which case your server needs to be configured to ! "<tt>FollowSymLinks</tt>". You need to make sure that *.cgi files are ! interpreted as CGI scripts. If you want to use the SpellChecker ! plugin you need to have a recent version of Perl installed (I ! recommend 5.8.0) on the server, and the module Text::Aspell, available ! from CPAN. More info in "<a ! href="plugins/SpellChecker/readme-tech.html">plugins/SpellChecker/readme-tech.html</a>". ! </p> ! ! <p>About how to setup your pages to use the editor, please read the ! [outdated yet generally valid] <a ! href="reference.html">documentation</a>.</p> ! ! <h2>Status and links</h2> ! ! <p>HTMLArea has reached version 3.0. As of this version, it ! supports:</p> ! ! <ul> ! ! <li>Customizable toolbar</li> ! ! <li>Easy internationalization</li> ! ! <li>Plugin-based infrastructure</li> ! ! <li>Delivers W3-compliant HTML (with few exceptions)</li> ! ! <li>Has a subset of Microsoft Word's keyboard shortcuts</li> ! ! <li>Full-screen editor</li> ! ! <li>Advanced table operations (by external plugin ! "TableOperations")</li> ! ! <li>Spell checker (by external plugin "SpellChecker")</li> ! ! <li>probably more... ;-)</li> ! ! </ul> ! ! <p>We have a <a ! href="http://sourceforge.net/projects/itools-htmlarea/">project page</a> ! at <a href="http://sourceforge.net">SourceForge.net</a>. There you can ! also find out <a href="http://sourceforge.net/cvs/?group_id=69750">how ! to retrieve the code from CVS</a>, or you can <a ! href="http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/itools-htmlarea">browse ! the CVS online</a>. We also have a <a ! href="http://sourceforge.net/tracker/?atid=525656&group_id=69750&func=browse">bug ! system</a>, a <a ! href="http://sourceforge.net/tracker/?atid=525658&group_id=69750&func=browse">patch ! tracking system</a> and a <a ! href="http://sourceforge.net/tracker/?atid=525659&group_id=69750&func=browse">feature ! request page</a>.</p> ! ! <p>We invite you to say everything you want about HTMLArea <a ! href="http://www.interactivetools.com/forum/gforum.cgi?forum=14;">on the ! forums</a> at InteractiveTools.com. There you should also find the ! latest news.</p> ! ! <p>Sometimes I post news about the latest developments on <a ! href="http://dynarch.com/mishoo/">my personal homepage</a>.</p> ! ! <h2>"It doesn't work, what's wrong?"</h2> ! ! <p>If it doesn't work, you have several options:</p> ! ! <ul> ! ! <li>Post a message to the forum. Describe your problem in as much ! detail as possible. Include errors you might find in the JavaScript ! console (if you are a Mozilla user), or errors displayed by IE (though ! they're most of the times useless).</li> ! ! <li>If you're positive that you discovered a bug in HTMLArea then feel ! free to fill a bug report in our bug system. If you have the time you ! should check to see if a similar bug was reported or not; it might be ! fixed already in the CVS ;-) If you're positive that a similar bug was ! not yet reported, do fill a bug report and please include as much ! detail as possible, such as your browser, OS, errors from JavaScript ! console, etc.</li> ! ! <li>If you want a new feature to be implemented, post it on the ! features request and someone will hopefully take care of it.</li> ! ! </ul> ! ! <p>You can <a href="mailto:mih...@ya...">contact me directly</a> ! <em>only</em> if you want to pay me for implementing custom features to ! HTMLArea. If you want to sponsor these features (that is, allow them to ! get back into the public HTMLArea distribution) I'll be cheaper. ;-)</p> ! ! <hr /> ! <address><a href="http://dynarch.com/mishoo/">Mihai Bazon</a></address> ! <!-- Created: Sun Aug 3 14:11:26 EEST 2003 --> ! <!-- hhmts start --> Last modified: Wed Jan 28 11:54:47 EET 2004 <!-- hhmts end --> ! <!-- doc-lang: English --> ! </body> ! </html> ! ! <%ARGS> ! $project => 'HTMLArea' ! $version => '3.0' ! $release => 'rc1' ! $basename => 'HTMLArea-3.0-rc1' ! </%ARGS> ! ! <%INIT>; ! use POSIX qw(strftime); ! my $time = strftime '%b %e, %Y [%H:%M] GMT', gmtime; ! </%INIT> Index: htmlarea.js =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/_htmlarea/htmlarea.js,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** htmlarea.js 25 Oct 2004 18:12:48 -0000 1.1.1.1 --- htmlarea.js 26 Oct 2004 07:35:55 -0000 1.2 *************** *** 1,2312 **** ! // htmlArea v3.0 - Copyright (c) 2002-2004 interactivetools.com, inc. ! // This copyright notice MUST stay intact for use (see license.txt). ! // ! // Portions (c) dynarch.com, 2003-2004 ! // ! // A free WYSIWYG editor replacement for <textarea> fields. ! // For full source code and docs, visit http://www.interactivetools.com/ ! // ! // Version 3.0 developed by Mihai Bazon. ! // http://dynarch.com/mishoo [...4595 lines suppressed...] ! * FIX: Internet Explorer returns an item having the _name_ equal to the given ! * id, even if it's not having any id. This way it can return a different form ! * field even if it's not a textarea. This workarounds the problem by ! * specifically looking to search only elements having a certain tag name. ! */ ! HTMLArea.getElementById = function(tag, id) { ! var el, i, objs = document.getElementsByTagName(tag); ! for (i = objs.length; --i >= 0 && (el = objs[i]);) ! if (el.id == id) ! return el; ! return null; ! }; ! ! ! ! // EOF ! // Local variables: // ! // c-basic-offset:8 // ! // indent-tabs-mode:t // ! // End: // |
From: Yves K. <yku...@us...> - 2004-10-26 07:35:05
|
Update of /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/_htmlarea/popups In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31223/xwysiwyg/mod/xwysiwyg/_htmlarea/popups Modified Files: blank.html custom2.html editor_help.html fullscreen.html insert_image.html insert_table.html link.html old-fullscreen.html old_insert_image.html popup.js select_color.html Log Message: saved in unix-format Index: old-fullscreen.html =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/_htmlarea/popups/old-fullscreen.html,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** old-fullscreen.html 25 Oct 2004 18:13:58 -0000 1.1.1.1 --- old-fullscreen.html 26 Oct 2004 07:34:54 -0000 1.2 *************** *** 1,131 **** ! <html> ! <head><title>Fullscreen Editor</title> ! <style type="text/css"> body { margin: 0px; border: 0px; background-color: buttonface; } </style> ! ! <script> ! ! // if we pass the "window" object as a argument and then set opener to ! // equal that we can refer to dialogWindows and popupWindows the same way ! if (window.dialogArguments) { opener = window.dialogArguments; } ! ! var _editor_url = "../"; ! document.write('<scr'+'ipt src="' +_editor_url+ 'editor.js" language="Javascript1.2"></scr'+'ipt>'); ! ! var parent_objname = location.search.substring(1,location.search.length); // parent editor objname ! var parent_config = opener.document.all[parent_objname].config; ! ! var config = cloneObject( parent_config ); ! var objname = 'editor'; // name of this editor ! ! // DOMViewerObj = config; ! // DOMViewerName = 'config'; ! // window.open('/innerHTML/domviewer.htm'); ! ! /* ---------------------------------------------------------------------- *\ ! Function : ! Description : ! \* ---------------------------------------------------------------------- */ ! ! function _CloseOnEsc() { ! if (event.keyCode == 27) { ! update_parent(); ! window.close(); ! return; ! } ! } ! ! /* ---------------------------------------------------------------------- *\ ! Function : cloneObject ! Description : copy an object by value instead of by reference ! Usage : var newObj = cloneObject(oldObj); ! \* ---------------------------------------------------------------------- */ ! ! function cloneObject(obj) { ! var newObj = new Object; ! ! // check for array objects ! if (obj.constructor.toString().indexOf('function Array(') == 1) { ! newObj = obj.constructor(); ! } ! ! for (var n in obj) { ! var node = obj[n]; ! if (typeof node == 'object') { newObj[n] = cloneObject(node); } ! else { newObj[n] = node; } ! } ! ! return newObj; ! } ! ! /* ---------------------------------------------------------------------- *\ ! Function : resize_editor ! Description : resize the editor when the user resizes the popup ! \* ---------------------------------------------------------------------- */ ! ! function resize_editor() { // resize editor to fix window ! var editor = document.all['_editor_editor']; ! ! newWidth = document.body.offsetWidth; ! newHeight = document.body.offsetHeight - editor.offsetTop; ! ! if (newWidth < 0) { newWidth = 0; } ! if (newHeight < 0) { newHeight = 0; } ! ! editor.style.width = newWidth; ! editor.style.height = newHeight; ! } ! ! /* ---------------------------------------------------------------------- *\ ! Function : init ! Description : run this code on page load ! \* ---------------------------------------------------------------------- */ ! ! function init() { ! // change maximize button to minimize button ! config.btnList["popupeditor"] = ['popupeditor', 'Minimize Editor', 'update_parent(); window.close();', 'fullscreen_minimize.gif']; ! ! // set htmlmode button to refer to THIS editor ! config.btnList["htmlmode"] = ['HtmlMode', 'View HTML Source', 'editor_setmode(\'editor\')', 'ed_html.gif']; ! ! // change image url to be relative to current path ! config.imgURL = "../images/"; ! ! // generate editor and resize it ! editor_generate('editor', config); ! resize_editor(); ! ! // switch mode if needed ! if (parent_config.mode == 'textedit') { editor_setmode(objname, 'textedit'); } ! ! // set child window contents ! var parentHTML = opener.editor_getHTML(parent_objname); ! editor_setHTML(objname, parentHTML); ! ! // continuously update parent editor window ! window.setInterval(update_parent, 333); ! ! // setup event handlers ! document.body.onkeypress = _CloseOnEsc; ! window.onresize = resize_editor; ! } ! ! /* ---------------------------------------------------------------------- *\ ! Function : update_parent ! Description : update parent window editor field with contents from child window ! \* ---------------------------------------------------------------------- */ ! ! function update_parent() { ! var childHTML = editor_getHTML(objname); ! opener.editor_setHTML(parent_objname, childHTML); ! } ! ! ! </script> ! </head> ! <body scroll="no" onload="init()" onunload="update_parent()"> ! ! <div style="margin: 0 0 0 0; border-width: 1; border-style: solid; border-color: threedshadow threedhighlight threedhighlight threedshadow; "></div> ! ! <textarea name="editor" style="width:100%; height:300px"></textarea><br> ! </body></html> \ No newline at end of file --- 1,131 ---- ! <html> ! <head><title>Fullscreen Editor</title> ! <style type="text/css"> body { margin: 0px; border: 0px; background-color: buttonface; } </style> ! ! <script> ! ! // if we pass the "window" object as a argument and then set opener to ! // equal that we can refer to dialogWindows and popupWindows the same way ! if (window.dialogArguments) { opener = window.dialogArguments; } ! ! var _editor_url = "../"; ! document.write('<scr'+'ipt src="' +_editor_url+ 'editor.js" language="Javascript1.2"></scr'+'ipt>'); ! ! var parent_objname = location.search.substring(1,location.search.length); // parent editor objname ! var parent_config = opener.document.all[parent_objname].config; ! ! var config = cloneObject( parent_config ); ! var objname = 'editor'; // name of this editor ! ! // DOMViewerObj = config; ! // DOMViewerName = 'config'; ! // window.open('/innerHTML/domviewer.htm'); ! ! /* ---------------------------------------------------------------------- *\ ! Function : ! Description : ! \* ---------------------------------------------------------------------- */ ! ! function _CloseOnEsc() { ! if (event.keyCode == 27) { ! update_parent(); ! window.close(); ! return; ! } ! } ! ! /* ---------------------------------------------------------------------- *\ ! Function : cloneObject ! Description : copy an object by value instead of by reference ! Usage : var newObj = cloneObject(oldObj); ! \* ---------------------------------------------------------------------- */ ! ! function cloneObject(obj) { ! var newObj = new Object; ! ! // check for array objects ! if (obj.constructor.toString().indexOf('function Array(') == 1) { ! newObj = obj.constructor(); ! } ! ! for (var n in obj) { ! var node = obj[n]; ! if (typeof node == 'object') { newObj[n] = cloneObject(node); } ! else { newObj[n] = node; } ! } ! ! return newObj; ! } ! ! /* ---------------------------------------------------------------------- *\ ! Function : resize_editor ! Description : resize the editor when the user resizes the popup ! \* ---------------------------------------------------------------------- */ ! ! function resize_editor() { // resize editor to fix window ! var editor = document.all['_editor_editor']; ! ! newWidth = document.body.offsetWidth; ! newHeight = document.body.offsetHeight - editor.offsetTop; ! ! if (newWidth < 0) { newWidth = 0; } ! if (newHeight < 0) { newHeight = 0; } ! ! editor.style.width = newWidth; ! editor.style.height = newHeight; ! } ! ! /* ---------------------------------------------------------------------- *\ ! Function : init ! Description : run this code on page load ! \* ---------------------------------------------------------------------- */ ! ! function init() { ! // change maximize button to minimize button ! config.btnList["popupeditor"] = ['popupeditor', 'Minimize Editor', 'update_parent(); window.close();', 'fullscreen_minimize.gif']; ! ! // set htmlmode button to refer to THIS editor ! config.btnList["htmlmode"] = ['HtmlMode', 'View HTML Source', 'editor_setmode(\'editor\')', 'ed_html.gif']; ! ! // change image url to be relative to current path ! config.imgURL = "../images/"; ! ! // generate editor and resize it ! editor_generate('editor', config); ! resize_editor(); ! ! // switch mode if needed ! if (parent_config.mode == 'textedit') { editor_setmode(objname, 'textedit'); } ! ! // set child window contents ! var parentHTML = opener.editor_getHTML(parent_objname); ! editor_setHTML(objname, parentHTML); ! ! // continuously update parent editor window ! window.setInterval(update_parent, 333); ! ! // setup event handlers ! document.body.onkeypress = _CloseOnEsc; ! window.onresize = resize_editor; ! } ! ! /* ---------------------------------------------------------------------- *\ ! Function : update_parent ! Description : update parent window editor field with contents from child window ! \* ---------------------------------------------------------------------- */ ! ! function update_parent() { ! var childHTML = editor_getHTML(objname); ! opener.editor_setHTML(parent_objname, childHTML); ! } ! ! ! </script> ! </head> ! <body scroll="no" onload="init()" onunload="update_parent()"> ! ! <div style="margin: 0 0 0 0; border-width: 1; border-style: solid; border-color: threedshadow threedhighlight threedhighlight threedshadow; "></div> ! ! <textarea name="editor" style="width:100%; height:300px"></textarea><br> ! </body></html> \ No newline at end of file Index: link.html =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/_htmlarea/popups/link.html,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** link.html 25 Oct 2004 18:13:55 -0000 1.1.1.1 --- link.html 26 Oct 2004 07:34:54 -0000 1.2 *************** *** 1,155 **** ! <html> ! ! <head> ! <title>Insert/Modify Link</title> ! <script type="text/javascript" src="popup.js"></script> ! <script type="text/javascript"> ! window.resizeTo(400, 200); ! ! I18N = window.opener.HTMLArea.I18N.dialogs; ! ! function i18n(str) { ! return (I18N[str] || str); ! }; ! ! function onTargetChanged() { ! var f = document.getElementById("f_other_target"); ! if (this.value == "_other") { ! f.style.visibility = "visible"; ! f.select(); ! f.focus(); ! } else f.style.visibility = "hidden"; ! }; ! ! function Init() { ! __dlg_translate(I18N); ! __dlg_init(); ! var param = window.dialogArguments; ! var target_select = document.getElementById("f_target"); ! var use_target = true; ! if (param) { ! if ( typeof param["f_usetarget"] != "undefined" ) { ! use_target = param["f_usetarget"]; ! } ! if ( typeof param["f_href"] != "undefined" ) { ! document.getElementById("f_href").value = param["f_href"]; ! document.getElementById("f_title").value = param["f_title"]; ! comboSelectValue(target_select, param["f_target"]); ! if (target_select.value != param.f_target) { ! var opt = document.createElement("option"); ! opt.value = param.f_target; ! opt.innerHTML = opt.value; ! target_select.appendChild(opt); ! opt.selected = true; ! } ! } ! } ! if (! use_target) { ! document.getElementById("f_target_label").style.visibility = "hidden"; ! document.getElementById("f_target").style.visibility = "hidden"; ! document.getElementById("f_target_other").style.visibility = "hidden"; ! } ! var opt = document.createElement("option"); ! opt.value = "_other"; ! opt.innerHTML = i18n("Other"); ! target_select.appendChild(opt); ! target_select.onchange = onTargetChanged; ! document.getElementById("f_href").focus(); ! document.getElementById("f_href").select(); ! }; ! ! function onOK() { ! var required = { ! // f_href shouldn't be required or otherwise removing the link by entering an empty ! // url isn't possible anymore. ! // "f_href": i18n("You must enter the URL where this link points to") ! }; ! for (var i in required) { ! var el = document.getElementById(i); ! if (!el.value) { ! alert(required[i]); ! el.focus(); ! return false; ! } ! } ! // pass data back to the calling window ! var fields = ["f_href", "f_title", "f_target" ]; ! var param = new Object(); ! for (var i in fields) { ! var id = fields[i]; ! var el = document.getElementById(id); ! param[id] = el.value; ! } ! if (param.f_target == "_other") ! param.f_target = document.getElementById("f_other_target").value; ! __dlg_close(param); ! return false; ! }; ! ! function onCancel() { ! __dlg_close(null); ! return false; ! }; ! ! </script> ! ! <style type="text/css"> ! html, body { ! background: ButtonFace; ! color: ButtonText; ! font: 11px Tahoma,Verdana,sans-serif; ! margin: 0px; ! padding: 0px; ! } ! body { padding: 5px; } ! table { ! font: 11px Tahoma,Verdana,sans-serif; ! } ! select, input, button { font: 11px Tahoma,Verdana,sans-serif; } ! button { width: 70px; } ! table .label { text-align: right; width: 8em; } ! ! .title { background: #ddf; color: #000; font-weight: bold; font-size: 120%; padding: 3px 10px; margin-bottom: 10px; ! border-bottom: 1px solid black; letter-spacing: 2px; ! } ! ! #buttons { ! margin-top: 1em; border-top: 1px solid #999; ! padding: 2px; text-align: right; ! } ! </style> ! ! </head> ! ! <body onload="Init()"> ! <div class="title">Insert/Modify Link</div> ! <form> ! <table border="0" style="width: 100%;"> ! <tr> ! <td class="label">URL:</td> ! <td><input type="text" id="f_href" style="width: 100%" /></td> ! </tr> ! <tr> ! <td class="label">Title (tooltip):</td> ! <td><input type="text" id="f_title" style="width: 100%" /></td> ! </tr> ! <tr> ! <td class="label"><span id="f_target_label">Target:</span></td> ! <td><select id="f_target"> ! <option value="">None (use implicit)</option> ! <option value="_blank">New window (_blank)</option> ! <option value="_self">Same frame (_self)</option> ! <option value="_top">Top frame (_top)</option> ! </select> ! <input type="text" name="f_other_target" id="f_other_target" size="10" style="visibility: hidden" /> ! </td> ! </tr> ! </table> ! ! <div id="buttons"> ! <button type="submit" name="ok" onclick="return onOK();">OK</button> ! <button type="button" name="cancel" onclick="return onCancel();">Cancel</button> ! </div> ! </form> ! </body> ! </html> --- 1,155 ---- ! <html> ! ! <head> ! <title>Insert/Modify Link</title> ! <script type="text/javascript" src="popup.js"></script> ! <script type="text/javascript"> ! window.resizeTo(400, 200); ! ! I18N = window.opener.HTMLArea.I18N.dialogs; ! ! function i18n(str) { ! return (I18N[str] || str); ! }; ! ! function onTargetChanged() { ! var f = document.getElementById("f_other_target"); ! if (this.value == "_other") { ! f.style.visibility = "visible"; ! f.select(); ! f.focus(); ! } else f.style.visibility = "hidden"; ! }; ! ! function Init() { ! __dlg_translate(I18N); ! __dlg_init(); ! var param = window.dialogArguments; ! var target_select = document.getElementById("f_target"); ! var use_target = true; ! if (param) { ! if ( typeof param["f_usetarget"] != "undefined" ) { ! use_target = param["f_usetarget"]; ! } ! if ( typeof param["f_href"] != "undefined" ) { ! document.getElementById("f_href").value = param["f_href"]; ! document.getElementById("f_title").value = param["f_title"]; ! comboSelectValue(target_select, param["f_target"]); ! if (target_select.value != param.f_target) { ! var opt = document.createElement("option"); ! opt.value = param.f_target; ! opt.innerHTML = opt.value; ! target_select.appendChild(opt); ! opt.selected = true; ! } ! } ! } ! if (! use_target) { ! document.getElementById("f_target_label").style.visibility = "hidden"; ! document.getElementById("f_target").style.visibility = "hidden"; ! document.getElementById("f_target_other").style.visibility = "hidden"; ! } ! var opt = document.createElement("option"); ! opt.value = "_other"; ! opt.innerHTML = i18n("Other"); ! target_select.appendChild(opt); ! target_select.onchange = onTargetChanged; ! document.getElementById("f_href").focus(); ! document.getElementById("f_href").select(); ! }; ! ! function onOK() { ! var required = { ! // f_href shouldn't be required or otherwise removing the link by entering an empty ! // url isn't possible anymore. ! // "f_href": i18n("You must enter the URL where this link points to") ! }; ! for (var i in required) { ! var el = document.getElementById(i); ! if (!el.value) { ! alert(required[i]); ! el.focus(); ! return false; ! } ! } ! // pass data back to the calling window ! var fields = ["f_href", "f_title", "f_target" ]; ! var param = new Object(); ! for (var i in fields) { ! var id = fields[i]; ! var el = document.getElementById(id); ! param[id] = el.value; ! } ! if (param.f_target == "_other") ! param.f_target = document.getElementById("f_other_target").value; ! __dlg_close(param); ! return false; ! }; ! ! function onCancel() { ! __dlg_close(null); ! return false; ! }; ! ! </script> ! ! <style type="text/css"> ! html, body { ! background: ButtonFace; ! color: ButtonText; ! font: 11px Tahoma,Verdana,sans-serif; ! margin: 0px; ! padding: 0px; ! } ! body { padding: 5px; } ! table { ! font: 11px Tahoma,Verdana,sans-serif; ! } ! select, input, button { font: 11px Tahoma,Verdana,sans-serif; } ! button { width: 70px; } ! table .label { text-align: right; width: 8em; } ! ! .title { background: #ddf; color: #000; font-weight: bold; font-size: 120%; padding: 3px 10px; margin-bottom: 10px; ! border-bottom: 1px solid black; letter-spacing: 2px; ! } ! ! #buttons { ! margin-top: 1em; border-top: 1px solid #999; ! padding: 2px; text-align: right; ! } ! </style> ! ! </head> ! ! <body onload="Init()"> ! <div class="title">Insert/Modify Link</div> ! <form> ! <table border="0" style="width: 100%;"> ! <tr> ! <td class="label">URL:</td> ! <td><input type="text" id="f_href" style="width: 100%" /></td> ! </tr> ! <tr> ! <td class="label">Title (tooltip):</td> ! <td><input type="text" id="f_title" style="width: 100%" /></td> ! </tr> ! <tr> ! <td class="label"><span id="f_target_label">Target:</span></td> ! <td><select id="f_target"> ! <option value="">None (use implicit)</option> ! <option value="_blank">New window (_blank)</option> ! <option value="_self">Same frame (_self)</option> ! <option value="_top">Top frame (_top)</option> ! </select> ! <input type="text" name="f_other_target" id="f_other_target" size="10" style="visibility: hidden" /> ! </td> ! </tr> ! </table> ! ! <div id="buttons"> ! <button type="submit" name="ok" onclick="return onOK();">OK</button> ! <button type="button" name="cancel" onclick="return onCancel();">Cancel</button> ! </div> ! </form> ! </body> ! </html> Index: old_insert_image.html =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/_htmlarea/popups/old_insert_image.html,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** old_insert_image.html 25 Oct 2004 18:13:54 -0000 1.1.1.1 --- old_insert_image.html 26 Oct 2004 07:34:54 -0000 1.2 *************** *** 1,206 **** ! <!-- based on insimage.dlg --> ! ! <!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML 3.2//EN"> ! <HTML id=dlgImage STYLE="width: 432px; height: 194px; "> ! <HEAD> ! <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> ! <meta http-equiv="MSThemeCompatible" content="Yes"> ! <TITLE>Insert Image</TITLE> ! <style> ! html, body, button, div, input, select, fieldset { font-family: MS Shell Dlg; font-size: 8pt; position: absolute; }; ! </style> ! <SCRIPT defer> ! ! function _CloseOnEsc() { ! if (event.keyCode == 27) { window.close(); return; } ! } ! ! function _getTextRange(elm) { ! var r = elm.parentTextEdit.createTextRange(); ! r.moveToElementText(elm); ! return r; ! } ! ! window.onerror = HandleError ! ! function HandleError(message, url, line) { ! var str = "An error has occurred in this dialog." + "\n\n" ! + "Error: " + line + "\n" + message; ! alert(str); ! window.close(); ! return true; ! } ! ! function Init() { ! var elmSelectedImage; ! var htmlSelectionControl = "Control"; ! var globalDoc = window.dialogArguments; ! var grngMaster = globalDoc.selection.createRange(); ! ! // event handlers ! document.body.onkeypress = _CloseOnEsc; ! btnOK.onclick = new Function("btnOKClick()"); ! ! txtFileName.fImageLoaded = false; ! txtFileName.intImageWidth = 0; ! txtFileName.intImageHeight = 0; ! ! if (globalDoc.selection.type == htmlSelectionControl) { ! if (grngMaster.length == 1) { ! elmSelectedImage = grngMaster.item(0); ! if (elmSelectedImage.tagName == "IMG") { ! txtFileName.fImageLoaded = true; ! if (elmSelectedImage.src) { ! txtFileName.value = elmSelectedImage.src.replace(/^[^*]*(\*\*\*)/, "$1"); // fix placeholder src values that editor converted to abs paths ! txtFileName.intImageHeight = elmSelectedImage.height; ! txtFileName.intImageWidth = elmSelectedImage.width; ! txtVertical.value = elmSelectedImage.vspace; ! txtHorizontal.value = elmSelectedImage.hspace; ! txtBorder.value = elmSelectedImage.border; ! txtAltText.value = elmSelectedImage.alt; ! selAlignment.value = elmSelectedImage.align; ! } ! } ! } ! } ! txtFileName.value = txtFileName.value || "http://"; ! txtFileName.focus(); ! } ! ! function _isValidNumber(txtBox) { ! var val = parseInt(txtBox); ! if (isNaN(val) || val < 0 || val > 999) { return false; } ! return true; ! } ! ! function btnOKClick() { ! var elmImage; ! var intAlignment; ! var htmlSelectionControl = "Control"; ! var globalDoc = window.dialogArguments; ! var grngMaster = globalDoc.selection.createRange(); ! ! // error checking ! ! if (!txtFileName.value || txtFileName.value == "http://") { ! alert("Image URL must be specified."); ! txtFileName.focus(); ! return; ! } ! if (txtHorizontal.value && !_isValidNumber(txtHorizontal.value)) { ! alert("Horizontal spacing must be a number between 0 and 999."); ! txtHorizontal.focus(); ! return; ! } ! if (txtBorder.value && !_isValidNumber(txtBorder.value)) { ! alert("Border thickness must be a number between 0 and 999."); ! txtBorder.focus(); ! return; ! } ! if (txtVertical.value && !_isValidNumber(txtVertical.value)) { ! alert("Vertical spacing must be a number between 0 and 999."); ! txtVertical.focus(); ! return; ! } ! ! // delete selected content and replace with image ! if (globalDoc.selection.type == htmlSelectionControl && !txtFileName.fImageLoaded) { ! grngMaster.execCommand('Delete'); ! grngMaster = globalDoc.selection.createRange(); ! } ! ! idstr = "\" id=\"556e697175657e537472696e67"; // new image creation ID ! if (!txtFileName.fImageLoaded) { ! grngMaster.execCommand("InsertImage", false, idstr); ! elmImage = globalDoc.all['556e697175657e537472696e67']; ! elmImage.removeAttribute("id"); ! elmImage.removeAttribute("src"); ! grngMaster.moveStart("character", -1); ! } else { ! elmImage = grngMaster.item(0); ! if (elmImage.src != txtFileName.value) { ! grngMaster.execCommand('Delete'); ! grngMaster = globalDoc.selection.createRange(); ! grngMaster.execCommand("InsertImage", false, idstr); ! elmImage = globalDoc.all['556e697175657e537472696e67']; ! elmImage.removeAttribute("id"); ! elmImage.removeAttribute("src"); ! grngMaster.moveStart("character", -1); ! txtFileName.fImageLoaded = false; ! } ! grngMaster = _getTextRange(elmImage); ! } ! ! if (txtFileName.fImageLoaded) { ! elmImage.style.width = txtFileName.intImageWidth; ! elmImage.style.height = txtFileName.intImageHeight; ! } ! ! if (txtFileName.value.length > 2040) { ! txtFileName.value = txtFileName.value.substring(0,2040); ! } ! ! elmImage.src = txtFileName.value; ! ! if (txtHorizontal.value != "") { elmImage.hspace = parseInt(txtHorizontal.value); } ! else { elmImage.hspace = 0; } ! ! if (txtVertical.value != "") { elmImage.vspace = parseInt(txtVertical.value); } ! else { elmImage.vspace = 0; } ! ! elmImage.alt = txtAltText.value; ! ! if (txtBorder.value != "") { elmImage.border = parseInt(txtBorder.value); } ! else { elmImage.border = 0; } ! ! elmImage.align = selAlignment.value; ! grngMaster.collapse(false); ! grngMaster.select(); ! window.close(); ! } ! </SCRIPT> ! </HEAD> ! <BODY id=bdy onload="Init()" style="background: threedface; color: windowtext;" scroll=no> ! ! <DIV id=divFileName style="left: 0.98em; top: 1.2168em; width: 7em; height: 1.2168em; ">Image URL:</DIV> ! <INPUT ID=txtFileName type=text style="left: 8.54em; top: 1.0647em; width: 21.5em;height: 2.1294em; " tabIndex=10 onfocus="select()"> ! ! <DIV id=divAltText style="left: 0.98em; top: 4.1067em; width: 6.58em; height: 1.2168em; ">Alternate Text:</DIV> ! <INPUT type=text ID=txtAltText tabIndex=15 style="left: 8.54em; top: 3.8025em; width: 21.5em; height: 2.1294em; " onfocus="select()"> ! ! <FIELDSET id=fldLayout style="left: .9em; top: 7.1em; width: 17.08em; height: 7.6em;"> ! <LEGEND id=lgdLayout>Layout</LEGEND> ! </FIELDSET> ! ! <FIELDSET id=fldSpacing style="left: 18.9em; top: 7.1em; width: 11em; height: 7.6em;"> ! <LEGEND id=lgdSpacing>Spacing</LEGEND> ! </FIELDSET> ! ! <DIV id=divAlign style="left: 1.82em; top: 9.126em; width: 4.76em; height: 1.2168em; ">Alignment:</DIV> ! <SELECT size=1 ID=selAlignment tabIndex=20 style="left: 10.36em; top: 8.8218em; width: 6.72em; height: 1.2168em; "> ! <OPTION id=optNotSet value=""> Not set </OPTION> ! <OPTION id=optLeft value=left> Left </OPTION> ! <OPTION id=optRight value=right> Right </OPTION> ! <OPTION id=optTexttop value=textTop> Texttop </OPTION> ! <OPTION id=optAbsMiddle value=absMiddle> Absmiddle </OPTION> ! <OPTION id=optBaseline value=baseline SELECTED> Baseline </OPTION> ! <OPTION id=optAbsBottom value=absBottom> Absbottom </OPTION> ! <OPTION id=optBottom value=bottom> Bottom </OPTION> ! <OPTION id=optMiddle value=middle> Middle </OPTION> ! <OPTION id=optTop value=top> Top </OPTION> ! </SELECT> ! ! <DIV id=divHoriz style="left: 19.88em; top: 9.126em; width: 4.76em; height: 1.2168em; ">Horizontal:</DIV> ! <INPUT ID=txtHorizontal style="left: 24.92em; top: 8.8218em; width: 4.2em; height: 2.1294em; ime-mode: disabled;" type=text size=3 maxlength=3 value="" tabIndex=25 onfocus="select()"> ! ! <DIV id=divBorder style="left: 1.82em; top: 12.0159em; width: 8.12em; height: 1.2168em; ">Border Thickness:</DIV> ! <INPUT ID=txtBorder style="left: 10.36em; top: 11.5596em; width: 6.72em; height: 2.1294em; ime-mode: disabled;" type=text size=3 maxlength=3 value="" tabIndex=21 onfocus="select()"> ! ! <DIV id=divVert style="left: 19.88em; top: 12.0159em; width: 3.64em; height: 1.2168em; ">Vertical:</DIV> ! <INPUT ID=txtVertical style="left: 24.92em; top: 11.5596em; width: 4.2em; height: 2.1294em; ime-mode: disabled;" type=text size=3 maxlength=3 value="" tabIndex=30 onfocus="select()"> ! ! <BUTTON ID=btnOK style="left: 31.36em; top: 1.0647em; width: 7em; height: 2.2em; " type=submit tabIndex=40>OK</BUTTON> ! <BUTTON ID=btnCancel style="left: 31.36em; top: 3.6504em; width: 7em; height: 2.2em; " type=reset tabIndex=45 onClick="window.close();">Cancel</BUTTON> ! ! </BODY> </HTML> \ No newline at end of file --- 1,206 ---- ! <!-- based on insimage.dlg --> ! ! <!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML 3.2//EN"> ! <HTML id=dlgImage STYLE="width: 432px; height: 194px; "> ! <HEAD> ! <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> ! <meta http-equiv="MSThemeCompatible" content="Yes"> ! <TITLE>Insert Image</TITLE> ! <style> ! html, body, button, div, input, select, fieldset { font-family: MS Shell Dlg; font-size: 8pt; position: absolute; }; ! </style> ! <SCRIPT defer> ! ! function _CloseOnEsc() { ! if (event.keyCode == 27) { window.close(); return; } ! } ! ! function _getTextRange(elm) { ! var r = elm.parentTextEdit.createTextRange(); ! r.moveToElementText(elm); ! return r; ! } ! ! window.onerror = HandleError ! ! function HandleError(message, url, line) { ! var str = "An error has occurred in this dialog." + "\n\n" ! + "Error: " + line + "\n" + message; ! alert(str); ! window.close(); ! return true; ! } ! ! function Init() { ! var elmSelectedImage; ! var htmlSelectionControl = "Control"; ! var globalDoc = window.dialogArguments; ! var grngMaster = globalDoc.selection.createRange(); ! ! // event handlers ! document.body.onkeypress = _CloseOnEsc; ! btnOK.onclick = new Function("btnOKClick()"); ! ! txtFileName.fImageLoaded = false; ! txtFileName.intImageWidth = 0; ! txtFileName.intImageHeight = 0; ! ! if (globalDoc.selection.type == htmlSelectionControl) { ! if (grngMaster.length == 1) { ! elmSelectedImage = grngMaster.item(0); ! if (elmSelectedImage.tagName == "IMG") { ! txtFileName.fImageLoaded = true; ! if (elmSelectedImage.src) { ! txtFileName.value = elmSelectedImage.src.replace(/^[^*]*(\*\*\*)/, "$1"); // fix placeholder src values that editor converted to abs paths ! txtFileName.intImageHeight = elmSelectedImage.height; ! txtFileName.intImageWidth = elmSelectedImage.width; ! txtVertical.value = elmSelectedImage.vspace; ! txtHorizontal.value = elmSelectedImage.hspace; ! txtBorder.value = elmSelectedImage.border; ! txtAltText.value = elmSelectedImage.alt; ! selAlignment.value = elmSelectedImage.align; ! } ! } ! } ! } ! txtFileName.value = txtFileName.value || "http://"; ! txtFileName.focus(); ! } ! ! function _isValidNumber(txtBox) { ! var val = parseInt(txtBox); ! if (isNaN(val) || val < 0 || val > 999) { return false; } ! return true; ! } ! ! function btnOKClick() { ! var elmImage; ! var intAlignment; ! var htmlSelectionControl = "Control"; ! var globalDoc = window.dialogArguments; ! var grngMaster = globalDoc.selection.createRange(); ! ! // error checking ! ! if (!txtFileName.value || txtFileName.value == "http://") { ! alert("Image URL must be specified."); ! txtFileName.focus(); ! return; ! } ! if (txtHorizontal.value && !_isValidNumber(txtHorizontal.value)) { ! alert("Horizontal spacing must be a number between 0 and 999."); ! txtHorizontal.focus(); ! return; ! } ! if (txtBorder.value && !_isValidNumber(txtBorder.value)) { ! alert("Border thickness must be a number between 0 and 999."); ! txtBorder.focus(); ! return; ! } ! if (txtVertical.value && !_isValidNumber(txtVertical.value)) { ! alert("Vertical spacing must be a number between 0 and 999."); ! txtVertical.focus(); ! return; ! } ! ! // delete selected content and replace with image ! if (globalDoc.selection.type == htmlSelectionControl && !txtFileName.fImageLoaded) { ! grngMaster.execCommand('Delete'); ! grngMaster = globalDoc.selection.createRange(); ! } ! ! idstr = "\" id=\"556e697175657e537472696e67"; // new image creation ID ! if (!txtFileName.fImageLoaded) { ! grngMaster.execCommand("InsertImage", false, idstr); ! elmImage = globalDoc.all['556e697175657e537472696e67']; ! elmImage.removeAttribute("id"); ! elmImage.removeAttribute("src"); ! grngMaster.moveStart("character", -1); ! } else { ! elmImage = grngMaster.item(0); ! if (elmImage.src != txtFileName.value) { ! grngMaster.execCommand('Delete'); ! grngMaster = globalDoc.selection.createRange(); ! grngMaster.execCommand("InsertImage", false, idstr); ! elmImage = globalDoc.all['556e697175657e537472696e67']; ! elmImage.removeAttribute("id"); ! elmImage.removeAttribute("src"); ! grngMaster.moveStart("character", -1); ! txtFileName.fImageLoaded = false; ! } ! grngMaster = _getTextRange(elmImage); ! } ! ! if (txtFileName.fImageLoaded) { ! elmImage.style.width = txtFileName.intImageWidth; ! elmImage.style.height = txtFileName.intImageHeight; ! } ! ! if (txtFileName.value.length > 2040) { ! txtFileName.value = txtFileName.value.substring(0,2040); ! } ! ! elmImage.src = txtFileName.value; ! ! if (txtHorizontal.value != "") { elmImage.hspace = parseInt(txtHorizontal.value); } ! else { elmImage.hspace = 0; } ! ! if (txtVertical.value != "") { elmImage.vspace = parseInt(txtVertical.value); } ! else { elmImage.vspace = 0; } ! ! elmImage.alt = txtAltText.value; ! ! if (txtBorder.value != "") { elmImage.border = parseInt(txtBorder.value); } ! else { elmImage.border = 0; } ! ! elmImage.align = selAlignment.value; ! grngMaster.collapse(false); ! grngMaster.select(); ! window.close(); ! } ! </SCRIPT> ! </HEAD> ! <BODY id=bdy onload="Init()" style="background: threedface; color: windowtext;" scroll=no> ! ! <DIV id=divFileName style="left: 0.98em; top: 1.2168em; width: 7em; height: 1.2168em; ">Image URL:</DIV> ! <INPUT ID=txtFileName type=text style="left: 8.54em; top: 1.0647em; width: 21.5em;height: 2.1294em; " tabIndex=10 onfocus="select()"> ! ! <DIV id=divAltText style="left: 0.98em; top: 4.1067em; width: 6.58em; height: 1.2168em; ">Alternate Text:</DIV> ! <INPUT type=text ID=txtAltText tabIndex=15 style="left: 8.54em; top: 3.8025em; width: 21.5em; height: 2.1294em; " onfocus="select()"> ! ! <FIELDSET id=fldLayout style="left: .9em; top: 7.1em; width: 17.08em; height: 7.6em;"> ! <LEGEND id=lgdLayout>Layout</LEGEND> ! </FIELDSET> ! ! <FIELDSET id=fldSpacing style="left: 18.9em; top: 7.1em; width: 11em; height: 7.6em;"> ! <LEGEND id=lgdSpacing>Spacing</LEGEND> ! </FIELDSET> ! ! <DIV id=divAlign style="left: 1.82em; top: 9.126em; width: 4.76em; height: 1.2168em; ">Alignment:</DIV> ! <SELECT size=1 ID=selAlignment tabIndex=20 style="left: 10.36em; top: 8.8218em; width: 6.72em; height: 1.2168em; "> ! <OPTION id=optNotSet value=""> Not set </OPTION> ! <OPTION id=optLeft value=left> Left </OPTION> ! <OPTION id=optRight value=right> Right </OPTION> ! <OPTION id=optTexttop value=textTop> Texttop </OPTION> ! <OPTION id=optAbsMiddle value=absMiddle> Absmiddle </OPTION> ! <OPTION id=optBaseline value=baseline SELECTED> Baseline </OPTION> ! <OPTION id=optAbsBottom value=absBottom> Absbottom </OPTION> ! <OPTION id=optBottom value=bottom> Bottom </OPTION> ! <OPTION id=optMiddle value=middle> Middle </OPTION> ! <OPTION id=optTop value=top> Top </OPTION> ! </SELECT> ! ! <DIV id=divHoriz style="left: 19.88em; top: 9.126em; width: 4.76em; height: 1.2168em; ">Horizontal:</DIV> ! <INPUT ID=txtHorizontal style="left: 24.92em; top: 8.8218em; width: 4.2em; height: 2.1294em; ime-mode: disabled;" type=text size=3 maxlength=3 value="" tabIndex=25 onfocus="select()"> ! ! <DIV id=divBorder style="left: 1.82em; top: 12.0159em; width: 8.12em; height: 1.2168em; ">Border Thickness:</DIV> ! <INPUT ID=txtBorder style="left: 10.36em; top: 11.5596em; width: 6.72em; height: 2.1294em; ime-mode: disabled;" type=text size=3 maxlength=3 value="" tabIndex=21 onfocus="select()"> ! ! <DIV id=divVert style="left: 19.88em; top: 12.0159em; width: 3.64em; height: 1.2168em; ">Vertical:</DIV> ! <INPUT ID=txtVertical style="left: 24.92em; top: 11.5596em; width: 4.2em; height: 2.1294em; ime-mode: disabled;" type=text size=3 maxlength=3 value="" tabIndex=30 onfocus="select()"> ! ! <BUTTON ID=btnOK style="left: 31.36em; top: 1.0647em; width: 7em; height: 2.2em; " type=submit tabIndex=40>OK</BUTTON> ! <BUTTON ID=btnCancel style="left: 31.36em; top: 3.6504em; width: 7em; height: 2.2em; " type=reset tabIndex=45 onClick="window.close();">Cancel</BUTTON> ! ! </BODY> </HTML> \ No newline at end of file Index: insert_table.html =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/_htmlarea/popups/insert_table.html,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** insert_table.html 25 Oct 2004 18:13:51 -0000 1.1.1.1 --- insert_table.html 26 Oct 2004 07:34:54 -0000 1.2 *************** *** 1,175 **** ! <html> ! ! <head> ! <title>Insert Table</title> ! ! <script type="text/javascript" src="popup.js"></script> ! ! <script type="text/javascript"> ! ! window.resizeTo(400, 100); ! ! function Init() { ! i18n = window.opener.HTMLArea.I18N.dialogs; // load the HTMLArea plugin and lang file ! __dlg_translate(i18n); ! __dlg_init(); ! document.getElementById("f_rows").focus(); ! }; ! ! function onOK() { ! var required = { ! "f_rows": "You must enter a number of rows", ! "f_cols": "You must enter a number of columns" ! }; ! for (var i in required) { ! var el = document.getElementById(i); ! if (!el.value) { ! alert(required[i]); ! el.focus(); ! return false; ! } ! } ! var fields = ["f_rows", "f_cols", "f_width", "f_unit", "f_fixed", ! "f_align", "f_border", "f_spacing", "f_padding"]; ! var param = new Object(); ! for (var i in fields) { ! var id = fields[i]; ! var el = document.getElementById(id); ! param[id] = (el.type == "checkbox") ? el.checked : el.value; ! } ! __dlg_close(param); ! return false; ! }; ! ! function onCancel() { ! __dlg_close(null); ! return false; ! }; ! ! </script> ! ! <style type="text/css"> ! html, body { ! background: ButtonFace; ! color: ButtonText; ! font: 11px Tahoma,Verdana,sans-serif; ! margin: 0px; ! padding: 0px; ! } ! body { padding: 5px; } ! table { ! font: 11px Tahoma,Verdana,sans-serif; ! } ! form p { ! margin-top: 5px; ! margin-bottom: 5px; ! } ! .fl { width: 9em; float: left; padding: 2px 5px; text-align: right; } ! .fr { width: 7em; float: left; padding: 2px 5px; text-align: right; } ! fieldset { padding: 0px 10px 5px 5px; } ! select, input, button { font: 11px Tahoma,Verdana,sans-serif; } ! button { width: 70px; } ! .space { padding: 2px; } ! ! .title { background: #ddf; color: #000; font-weight: bold; font-size: 120%; padding: 3px 10px; margin-bottom: 10px; ! border-bottom: 1px solid black; letter-spacing: 2px; ! } ! form { padding: 0px; margin: 0px; } ! </style> ! ! </head> ! ! <body onload="Init()"> ! ! <div class="title">Insert Table</div> ! ! <form action="" method="get"> ! <table border="0" style="padding: 0px; margin: 0px"> ! <tbody> ! ! <tr> ! <td style="width: 4em; text-align: right">Rows:</td> ! <td><input type="text" name="rows" id="f_rows" size="5" title="Number of rows" value="2" /></td> ! <td style="width: 4em; text-align: right">Width:</td> ! <td><input type="text" name="width" id="f_width" size="5" title="Width of the table" value="100" /></td> ! <td><select size="1" name="unit" id="f_unit" title="Width unit"> ! <option value="%" selected="1" >Percent</option> ! <option value="px" >Pixels</option> ! <option value="em" >Em</option> ! </select></td> ! </tr> ! <tr> ! <td style="width: 4em; text-align: right">Cols:</td> ! <td><input type="text" name="cols" id="f_cols" size="5" title="Number of columns" value="4" /></td> ! <td style="text-align: right"><input type="checkbox" checked="checked" name="fixed" id="f_fixed" /></td> ! <td colspan="2"><label for="f_fixed" ! >Fixed width columns</label></td> ! </tr> ! </tbody> ! </table> ! ! <p /> ! ! <fieldset style="float: left; margin-left: 5px;"> ! <legend>Layout</legend> ! ! <div class="space"></div> ! ! <div class="fl">Alignment:</div> ! <select size="1" name="align" id="f_align" ! title="Positioning of this table"> ! <option value="" selected="1" >Not set</option> ! <option value="left" >Left</option> ! <option value="right" >Right</option> ! <option value="texttop" >Texttop</option> ! <option value="absmiddle" >Absmiddle</option> ! <option value="baseline" >Baseline</option> ! <option value="absbottom" >Absbottom</option> ! <option value="bottom" >Bottom</option> ! <option value="middle" >Middle</option> ! <option value="top" >Top</option> ! </select> ! ! <p /> ! ! <div class="fl">Border thickness:</div> ! <input type="text" name="border" id="f_border" size="5" value="1" ! title="Leave empty for no border" /> ! <!-- ! <p /> ! ! <div class="fl">Collapse borders:</div> ! <input type="checkbox" name="collapse" id="f_collapse" /> ! --> ! <div class="space"></div> ! ! </fieldset> ! ! <fieldset style="float:right; margin-right: 5px;"> ! <legend>Spacing</legend> ! ! <div class="space"></div> ! ! <div class="fr">Cell spacing:</div> ! <input type="text" name="spacing" id="f_spacing" size="5" value="1" ! title="Space between adjacent cells" /> ! ! <p /> ! ! <div class="fr">Cell padding:</div> ! <input type="text" name="padding" id="f_padding" size="5" value="1" ! title="Space between content and border in cell" /> ! ! <div class="space"></div> ! ! </fieldset> ! ! <div style="margin-top: 85px; border-top: 1px solid #999; padding: 2px; text-align: right;"> ! <button type="button" name="ok" onclick="return onOK();">OK</button> ! <button type="button" name="cancel" onclick="return onCancel();">Cancel</button> ! </div> ! ! </form> ! ! </body> </html> \ No newline at end of file --- 1,175 ---- ! <html> ! ! <head> ! <title>Insert Table</title> ! ! <script type="text/javascript" src="popup.js"></script> ! ! <script type="text/javascript"> ! ! window.resizeTo(400, 100); ! ! function Init() { ! i18n = window.opener.HTMLArea.I18N.dialogs; // load the HTMLArea plugin and lang file ! __dlg_translate(i18n); ! __dlg_init(); ! document.getElementById("f_rows").focus(); ! }; ! ! function onOK() { ! var required = { ! "f_rows": "You must enter a number of rows", ! "f_cols": "You must enter a number of columns" ! }; ! for (var i in required) { ! var el = document.getElementById(i); ! if (!el.value) { ! alert(required[i]); ! el.focus(); ! return false; ! } ! } ! var fields = ["f_rows", "f_cols", "f_width", "f_unit", "f_fixed", ! "f_align", "f_border", "f_spacing", "f_padding"]; ! var param = new Object(); ! for (var i in fields) { ! var id = fields[i]; ! var el = document.getElementById(id); ! param[id] = (el.type == "checkbox") ? el.checked : el.value; ! } ! __dlg_close(param); ! return false; ! }; ! ! function onCancel() { ! __dlg_close(null); ! return false; ! }; ! ! </script> ! ! <style type="text/css"> ! html, body { ! background: ButtonFace; ! color: ButtonText; ! font: 11px Tahoma,Verdana,sans-serif; ! margin: 0px; ! padding: 0px; ! } ! body { padding: 5px; } ! table { ! font: 11px Tahoma,Verdana,sans-serif; ! } ! form p { ! margin-top: 5px; ! margin-bottom: 5px; ! } ! .fl { width: 9em; float: left; padding: 2px 5px; text-align: right; } ! .fr { width: 7em; float: left; padding: 2px 5px; text-align: right; } ! fieldset { padding: 0px 10px 5px 5px; } ! select, input, button { font: 11px Tahoma,Verdana,sans-serif; } ! button { width: 70px; } ! .space { padding: 2px; } ! ! .title { background: #ddf; color: #000; font-weight: bold; font-size: 120%; padding: 3px 10px; margin-bottom: 10px; ! border-bottom: 1px solid black; letter-spacing: 2px; ! } ! form { padding: 0px; margin: 0px; } ! </style> ! ! </head> ! ! <body onload="Init()"> ! ! <div class="title">Insert Table</div> ! ! <form action="" method="get"> ! <table border="0" style="padding: 0px; margin: 0px"> ! <tbody> ! ! <tr> ! <td style="width: 4em; text-align: right">Rows:</td> ! <td><input type="text" name="rows" id="f_rows" size="5" title="Number of rows" value="2" /></td> ! <td style="width: 4em; text-align: right">Width:</td> ! <td><input type="text" name="width" id="f_width" size="5" title="Width of the table" value="100" /></td> ! <td><select size="1" name="unit" id="f_unit" title="Width unit"> ! <option value="%" selected="1" >Percent</option> ! <option value="px" >Pixels</option> ! <option value="em" >Em</option> ! </select></td> ! </tr> ! <tr> ! <td style="width: 4em; text-align: right">Cols:</td> ! <td><input type="text" name="cols" id="f_cols" size="5" title="Number of columns" value="4" /></td> ! <td style="text-align: right"><input type="checkbox" checked="checked" name="fixed" id="f_fixed" /></td> ! <td colspan="2"><label for="f_fixed" ! >Fixed width columns</label></td> ! </tr> ! </tbody> ! </table> ! ! <p /> ! ! <fieldset style="float: left; margin-left: 5px;"> ! <legend>Layout</legend> ! ! <div class="space"></div> ! ! <div class="fl">Alignment:</div> ! <select size="1" name="align" id="f_align" ! title="Positioning of this table"> ! <option value="" selected="1" >Not set</option> ! <option value="left" >Left</option> ! <option value="right" >Right</option> ! <option value="texttop" >Texttop</option> ! <option value="absmiddle" >Absmiddle</option> ! <option value="baseline" >Baseline</option> ! <option value="absbottom" >Absbottom</option> ! <option value="bottom" >Bottom</option> ! <option value="middle" >Middle</option> ! <option value="top" >Top</option> ! </select> ! ! <p /> ! ! <div class="fl">Border thickness:</div> ! <input type="text" name="border" id="f_border" size="5" value="1" ! title="Leave empty for no border" /> ! <!-- ! <p /> ! ! <div class="fl">Collapse borders:</div> ! <input type="checkbox" name="collapse" id="f_collapse" /> ! --> ! <div class="space"></div> ! ! </fieldset> ! ! <fieldset style="float:right; margin-right: 5px;"> ! <legend>Spacing</legend> ! ! <div class="space"></div> ! ! <div class="fr">Cell spacing:</div> ! <input type="text" name="spacing" id="f_spacing" size="5" value="1" ! title="Space between adjacent cells" /> ! ! <p /> ! ! <div class="fr">Cell padding:</div> ! <input type="text" name="padding" id="f_padding" size="5" value="1" ! title="Space between content and border in cell" /> ! ! <div class="space"></div> ! ! </fieldset> ! ! <div style="margin-top: 85px; border-top: 1px solid #999; padding: 2px; text-align: right;"> ! <button type="button" name="ok" onclick="return onOK();">OK</button> ! <button type="button" name="cancel" onclick="return onCancel();">Cancel</button> ! </div> ! ! </form> ! ! </body> </html> \ No newline at end of file Index: insert_image.html =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/_htmlarea/popups/insert_image.html,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** insert_image.html 25 Oct 2004 18:13:33 -0000 1.1.1.1 --- insert_image.html 26 Oct 2004 07:34:54 -0000 1.2 *************** *** 1,191 **** ! <html> ! ! <head> ! <title>Insert Image</title> ! ! <script type="text/javascript" src="popup.js"></script> ! ! <script type="text/javascript"> ! ! window.resizeTo(400, 100); ! ! function Init() { ! __dlg_init(); ! var param = window.dialogArguments; ! if (param) { ! document.getElementById("f_url").value = param["f_url"]; ! document.getElementById("f_alt").value = param["f_alt"]; ! document.getElementById("f_border").value = param["f_border"]; ! document.getElementById("f_align").value = param["f_align"]; ! document.getElementById("f_vert").value = param["f_vert"]; ! document.getElementById("f_horiz").value = param["f_horiz"]; ! window.ipreview.location.replace(param.f_url); ! } ! document.getElementById("f_url").focus(); ! }; ! ! function onOK() { ! var required = { ! "f_url": "You must enter the URL" ! }; ! for (var i in required) { ! var el = document.getElementById(i); ! if (!el.value) { ! alert(required[i]); ! el.focus(); ! return false; ! } ! } ! // pass data back to the calling window ! var fields = ["f_url", "f_alt", "f_align", "f_border", ! "f_horiz", "f_vert"]; ! var param = new Object(); ! for (var i in fields) { ! var id = fields[i]; ! var el = document.getElementById(id); ! param[id] = el.value; ! } ! __dlg_close(param); ! return false; ! }; ! ! function onCancel() { ! __dlg_close(null); ! return false; ! }; ! ! function onPreview() { ! var f_url = document.getElementById("f_url"); ! var url = f_url.value; ! if (!url) { ! alert("You have to enter an URL first"); ! f_url.focus(); ! return false; ! } ! window.ipreview.location.replace(url); ! return false; ! }; ! </script> ! ! <style type="text/css"> ! html, body { ! background: ButtonFace; ! color: ButtonText; ! font: 11px Tahoma,Verdana,sans-serif; ! margin: 0px; ! padding: 0px; ! } ! body { padding: 5px; } ! table { ! font: 11px Tahoma,Verdana,sans-serif; ! } ! form p { ! margin-top: 5px; ! margin-bottom: 5px; ! } ! .fl { width: 9em; float: left; padding: 2px 5px; text-align: right; } ! .fr { width: 6em; float: left; padding: 2px 5px; text-align: right; } ! fieldset { padding: 0px 10px 5px 5px; } ! select, input, button { font: 11px Tahoma,Verdana,sans-serif; } ! button { width: 70px; } ! .space { padding: 2px; } ! ! .title { background: #ddf; color: #000; font-weight: bold; font-size: 120%; padding: 3px 10px; margin-bottom: 10px; ! border-bottom: 1px solid black; letter-spacing: 2px; ! } ! form { padding: 0px; margin: 0px; } ! </style> ! ! </head> ! ! <body onload="Init()"> ! ! <div class="title">Insert Image</div> ! <!--- new stuff ---> ! <form action="" method="get"> ! <table border="0" width="100%" style="padding: 0px; margin: 0px"> ! <tbody> ! ! <tr> ! <td style="width: 7em; text-align: right">Image URL:</td> ! <td><input type="text" name="url" id="f_url" style="width:75%" ! title="Enter the image URL here" /> ! <button name="preview" onclick="return onPreview();" ! title="Preview the image in a new window">Preview</button> ! </td> ! </tr> ! <tr> ! <td style="width: 7em; text-align: right">Alternate text:</td> ! <td><input type="text" name="alt" id="f_alt" style="width:100%" ! title="For browsers that don't support images" /></td> ! </tr> ! ! </tbody> ! </table> ! ! <p /> ! ! <fieldset style="float: left; margin-left: 5px;"> ! <legend>Layout</legend> ! ! <div class="space"></div> ! ! <div class="fl">Alignment:</div> ! <select size="1" name="align" id="f_align" ! title="Positioning of this image"> ! <option value="" >Not set</option> ! <option value="left" >Left</option> ! <option value="right" >Right</option> ! <option value="texttop" >Texttop</option> ! <option value="absmiddle" >Absmiddle</option> ! <option value="baseline" selected="1" >Baseline</option> ! <option value="absbottom" >Absbottom</option> ! <option value="bottom" >Bottom</option> ! <option value="middle" >Middle</option> ! <option value="top" >Top</option> ! </select> ! ! <p /> ! ! <div class="fl">Border thickness:</div> ! <input type="text" name="border" id="f_border" size="5" ! title="Leave empty for no border" /> ! ! <div class="space"></div> ! ! </fieldset> ! ! <fieldset style="float:right; margin-right: 5px;"> ! <legend>Spacing</legend> ! ! <div class="space"></div> ! ! <div class="fr">Horizontal:</div> ! <input type="text" name="horiz" id="f_horiz" size="5" ! title="Horizontal padding" /> ! ! <p /> ! ! <div class="fr">Vertical:</div> ! <input type="text" name="vert" id="f_vert" size="5" ! title="Vertical padding" /> ! ! <div class="space"></div> ! ! </fieldset> ! <br clear="all" /> ! <table width="100%" style="margin-bottom: 0.2em"> ! <tr> ! <td valign="bottom"> ! Image Preview:<br /> ! <iframe name="ipreview" id="ipreview" frameborder="0" style="border : 1px solid gray;" height="200" width="300" src=""></iframe> ! </td> ! <td valign="bottom" style="text-align: right"> ! <button type="button" name="ok" onclick="return onOK();">OK</button><br> ! <button type="button" name="cancel" onclick="return onCancel();">Cancel</button> ! </td> ! </tr> ! </table> ! </form> ! </body> ! </html> --- 1,191 ---- ! <html> ! ! <head> ! <title>Insert Image</title> ! ! <script type="text/javascript" src="popup.js"></script> ! ! <script type="text/javascript"> ! ! window.resizeTo(400, 100); ! ! function Init() { ! __dlg_init(); ! var param = window.dialogArguments; ! if (param) { ! document.getElementById("f_url").value = param["f_url"]; ! document.getElementById("f_alt").value = param["f_alt"]; ! document.getElementById("f_border").value = param["f_border"]; ! document.getElementById("f_align").value = param["f_align"]; ! document.getElementById("f_vert").value = param["f_vert"]; ! document.getElementById("f_horiz").value = param["f_horiz"]; ! window.ipreview.location.replace(param.f_url); ! } ! document.getElementById("f_url").focus(); ! }; ! ! function onOK() { ! var required = { ! "f_url": "You must enter the URL" ! }; ! for (var i in required) { ! var el = document.getElementById(i); ! if (!el.value) { ! alert(required[i]); ! el.focus(); ! return false; ! } ! } ! // pass data back to the calling window ! var fields = ["f_url", "f_alt", "f_align", "f_border", ! "f_horiz", "f_vert"]; ! var param = new Object(); ! for (var i in fields) { ! var id = fields[i]; ! var el = document.getElementById(id); ! param[id] = el.value; ! } ! __dlg_close(param); ! return false; ! }; ! ! function onCancel() { ! __dlg_close(null); ! return false; ! }; ! ! function onPreview() { ! var f_url = document.getElementById("f_url"); ! var url = f_url.value; ! if (!url) { ! alert("You have to enter an URL first"); ! f_url.focus(); ! return false; ! } ! window.ipreview.location.replace(url); ! return false; ! }; ! </script> ! ! <style type="text/css"> ! html, body { ! background: ButtonFace; ! color: ButtonText; ! font: 11px Tahoma,Verdana,sans-serif; ! margin: 0px; ! padding: 0px; ! } ! body { padding: 5px; } ! table { ! font: 11px Tahoma,Verdana,sans-serif; ! } ! form p { ! margin-top: 5px; ! margin-bottom: 5px; ! } ! .fl { width: 9em; float: left; padding: 2px 5px; text-align: right; } ! .fr { width: 6em; float: left; padding: 2px 5px; text-align: right; } ! fieldset { padding: 0px 10px 5px 5px; } ! select, input, button { font: 11px Tahoma,Verdana,sans-serif; } ! button { width: 70px; } ! .space { padding: 2px; } ! ! .title { background: #ddf; color: #000; font-weight: bold; font-size: 120%; padding: 3px 10px; margin-bottom: 10px; ! border-bottom: 1px solid black; letter-spacing: 2px; ! } ! form { padding: 0px; margin: 0px; } ! </style> ! ! </head> ! ! <body onload="Init()"> ! ! <div class="title">Insert Image</div> ! <!--- new stuff ---> ! <form action="" method="get"> ! <table border="0" width="100%" style="padding: 0px; margin: 0px"> ! <tbody> ! ! <tr> ! <td style="width: 7em; text-align: right">Image URL:</td> ! <td><input type="text" name="url" id="f_url" style="width:75%" ! title="Enter the image URL here" /> ! <button name="preview" onclick="return onPreview();" ! title="Preview the image in a new window">Preview</button> ! </td> ! </tr> ! <tr> ! <td style="width: 7em; text-align: right">Alternate text:</td> ! <td><input type="text" name="alt" id="f_alt" style="width:100%" ! title="For browsers that don't support images" /></td> ! </tr> ! ! </tbody> ! </table> ! ! <p /> ! ! <fieldset style="float: left; margin-left: 5px;"> ! <legend>Layout</legend> ! ! <div class="space"></div> ! ! <div class="fl">Alignment:</div> ! <select size="1" name="align" id="f_align" ! title="Positioning of this image"> ! <option value="" >Not set</option> ! <option value="left" >Left</option> ! <option value="right" >Right</option> ! <option value="texttop" >Texttop</option> ! <option value="absmiddle" >Absmiddle</option> ! <option value="baseline" selected="1" >Baseline</option> ! <option value="absbottom" >Absbottom</option> ! <option value="bottom" >Bottom</option> ! <option value="middle" >Middle</option> ! <option value="top" >Top</option> ! </select> ! ! <p /> ! ! <div class="fl">Border thickness:</div> ! <input type="text" name="border" id="f_border" size="5" ! title="Leave empty for no border" /> ! ! <div class="space"></div> ! ! </fieldset> ! ! <fieldset style="float:right; margin-right: 5px;"> ! <legend>Spacing</legend> ! ! <div class="space"></div> ! ! <div class="fr">Horizontal:</div> ! <input type="text" name="horiz" id="f_horiz" size="5" ! title="Horizontal padding" /> ! ! <p /> ! ! <div class="fr">Vertical:</div> ! <input type="text" name="vert" id="f_vert" size="5" ! title="Vertical padding" /> ! ! <div class="space"></div> ! ! </fieldset> ! <br clear="all" /> ! <table width="100%" style="margin-bottom: 0.2em"> ! <tr> ! <td valign="bottom"> ! Image Preview:<br /> ! <iframe name="ipreview" id="ipreview" frameborder="0" style="border : 1px solid gray;" height="200" width="300" src=""></iframe> ! </td> ! <td valign="bottom" style="text-align: right"> ! <button type="button" name="ok" onclick="return onOK();">OK</button><br> ! <button type="button" name="cancel" onclick="return onCancel();">Cancel</button> ! </td> ! </tr> ! </table> ! </form> ! </body> ! </html> Index: blank.html =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/_htmlarea/popups/blank.html,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** blank.html 25 Oct 2004 18:13:55 -0000 1.1.1.1 --- blank.html 26 Oct 2004 07:34:54 -0000 1.2 *************** *** 1,2 **** ! <html> </html> \ No newline at end of file --- 1,2 ---- ! <html> </html> \ No newline at end of file Index: fullscreen.html =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/_htmlarea/popups/fullscreen.html,v ret... [truncated message content] |
From: Yves K. <yku...@us...> - 2004-10-26 07:34:13
|
Update of /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31067/xwysiwyg/mod/xwysiwyg/templates Modified Files: fck_options.tpl ha_options.tpl Log Message: saved in unix-format Index: ha_options.tpl =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/templates/ha_options.tpl,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** ha_options.tpl 25 Oct 2004 18:17:33 -0000 1.1.1.1 --- ha_options.tpl 26 Oct 2004 07:34:02 -0000 1.2 *************** *** 1,17 **** ! <strong>{TITLE}</strong><br /><hr /> ! {MESSAGE}<hr /> ! {EDITOR}  {TOGGLE}<hr /> ! {START_FORM} ! {LANG_ACTIV}:  {LANG_ACTIV_TEXT}<br /> ! {VIEW_ANON}:  {VIEW_ANON_TEXT}<br /> ! {VIEW_USER}:  {VIEW_USER_TEXT}<br /> ! {REQUEST_MODE}:  {REQUEST_MODE_TEXT}<br /> ! {PLUG_TABLE}:  {PLUG_TABLE_TEXT}<br /> ! {PLUG_CONTEXT}:  {PLUG_CONTEXT_TEXT}<br /> ! <!-- BEGIN CHARA -->{PLUG_CHARA}:  {PLUG_CHARA_TEXT}<br /><!-- END CHARA --> ! <!-- BEGIN PARA -->{PLUG_PARA}:  {PLUG_PARA_TEXT}<br /><!-- END PARA --> ! <!-- BEGIN LIST -->{PLUG_LIST}:  {PLUG_LIST_TEXT}<br /><!-- END LIST --> ! <!-- BEGIN SPELL -->{PLUG_SPELL}:  {PLUG_SPELL_TEXT}<br /><!-- END SPELL --> ! {PLUG_FILE}:  {PLUG_FILE_TEXT}<br /> ! {PLUG_IMAGE}:  {PLUG_IMAGE_TEXT}<br /> <br />{SUBMIT}{END_FORM} \ No newline at end of file --- 1,17 ---- ! <strong>{TITLE}</strong><br /><hr /> ! {MESSAGE}<hr /> ! {EDITOR}  {TOGGLE}<hr /> ! {START_FORM} ! {LANG_ACTIV}:  {LANG_ACTIV_TEXT}<br /> ! {VIEW_ANON}:  {VIEW_ANON_TEXT}<br /> ! {VIEW_USER}:  {VIEW_USER_TEXT}<br /> ! {REQUEST_MODE}:  {REQUEST_MODE_TEXT}<br /> ! {PLUG_TABLE}:  {PLUG_TABLE_TEXT}<br /> ! {PLUG_CONTEXT}:  {PLUG_CONTEXT_TEXT}<br /> ! <!-- BEGIN CHARA -->{PLUG_CHARA}:  {PLUG_CHARA_TEXT}<br /><!-- END CHARA --> ! <!-- BEGIN PARA -->{PLUG_PARA}:  {PLUG_PARA_TEXT}<br /><!-- END PARA --> ! <!-- BEGIN LIST -->{PLUG_LIST}:  {PLUG_LIST_TEXT}<br /><!-- END LIST --> ! <!-- BEGIN SPELL -->{PLUG_SPELL}:  {PLUG_SPELL_TEXT}<br /><!-- END SPELL --> ! {PLUG_FILE}:  {PLUG_FILE_TEXT}<br /> ! {PLUG_IMAGE}:  {PLUG_IMAGE_TEXT}<br /> <br />{SUBMIT}{END_FORM} \ No newline at end of file Index: fck_options.tpl =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/templates/fck_options.tpl,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** fck_options.tpl 25 Oct 2004 18:17:32 -0000 1.1.1.1 --- fck_options.tpl 26 Oct 2004 07:34:02 -0000 1.2 *************** *** 1,10 **** ! <strong>{TITLE}</strong><br /><hr /> ! {MESSAGE}<hr /> ! {EDITOR}  {TOGGLE}<hr /> ! {START_FORM} ! {LANG_ACTIV}:  {LANG_ACTIV_TEXT}<br /> ! {VIEW_ANON}:  {VIEW_ANON_TEXT}<br /> ! {VIEW_USER}:  {VIEW_USER_TEXT}<br /> ! {REQUEST_MODE}:  {REQUEST_MODE_TEXT}<br /> ! {FCK_SKIN}:  {FCK_SKIN_TEXT}<br /> <br />{SUBMIT}{END_FORM} \ No newline at end of file --- 1,10 ---- ! <strong>{TITLE}</strong><br /><hr /> ! {MESSAGE}<hr /> ! {EDITOR}  {TOGGLE}<hr /> ! {START_FORM} ! {LANG_ACTIV}:  {LANG_ACTIV_TEXT}<br /> ! {VIEW_ANON}:  {VIEW_ANON_TEXT}<br /> ! {VIEW_USER}:  {VIEW_USER_TEXT}<br /> ! {REQUEST_MODE}:  {REQUEST_MODE_TEXT}<br /> ! {FCK_SKIN}:  {FCK_SKIN_TEXT}<br /> <br />{SUBMIT}{END_FORM} \ No newline at end of file |
From: Yves K. <yku...@us...> - 2004-10-26 07:33:39
|
Update of /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/lang In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30947/xwysiwyg/mod/xwysiwyg/lang Modified Files: xwysiwyg.de.lng xwysiwyg.en.lng Log Message: saved in unix-format Index: xwysiwyg.de.lng =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/lang/xwysiwyg.de.lng,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** xwysiwyg.de.lng 25 Oct 2004 18:11:40 -0000 1.1.1.1 --- xwysiwyg.de.lng 26 Oct 2004 07:33:29 -0000 1.2 *************** *** 1,40 **** ! de:|:xwysiwyg ! a:|:Access was denied due to lack of proper permissions.:|:Zugriff mangels Berechtigung verweigert. ! a:|:Action:|:Aktion ! a:|:Add a new value:|:Neuen Wert hinzufügen ! a:|:Allow anonymous to use [var1]:|:Anonyme Besuchern dürfen [var1] nutzen ! a:|:Allow users to use [var1]:|:Angemeldete Benutzer dürfen [var1] nutzen ! a:|:Area-Name:|:Area-Name ! a:|:Back:|:Zurück ! a:|:Delete:|:Löschen ! a:|:Edit your entry:|:Eintrag bearbeiten ! a:|:Edit:|:Ändern ! a:|:Enable CharacterMap-Plugin:|:CharacterMap-Plugin einschalten ! a:|:Enable ContextMenu-Plugin:|:ContextMenu-Plugin einschalten ! a:|:Enable EnterParagraphs-Plugin:|:EnterParagraphs-Plugin einschalten ! a:|:Enable SpellChecker-Plugin:|:SpellChecker-Plugin einschalten ! a:|:Enable TableOperations-Plugin:|:TableOperations-Plugin einschalten ! a:|:Enable translation of [var1]:|:Erlaube die Übersetzung von [var1] ! a:|:Entry was successfully deleted from the database:|:Eintrag wurde erfolgreich aus der Datenbank gelöscht ! a:|:Home:|:Home ! a:|:ID:|:ID ! a:|:Make your selections:|:Treffen Sie eine Auswahl ! a:|:New:|:Neu ! a:|:Save:|:Speichern ! a:|:Saving was successfull:|:Speichern war erfolgreich ! a:|:Settings saved successfully:|:Einstellungen erfolgreich gespeichert ! a:|:Settings:|:Einstellungen ! a:|:Textarea:|:Textarea ! a:|:There was a problem deleting the entry:|:Es gab ein Problem beim löschen dieses Eintrags ! a:|:There was a problem saving to the database:|:Es gab Probleme beim speichern in die Datenbank ! a:|:There was a problem updating the database:|:Es gab Probleme beim aktualisieren der Datenbank ! a:|:Update was successfull:|:Aktualisieren war erfolgreich ! a:|:no action given...:|:es wurde keine keine Aktion angegeben... ! a:|:You use [var1] now:|:Sie benutzen jetzt [var1] ! a:|:Error: No editor selected:|:Fehler: Kein Editor ausgewählt ! a:|:Change:|:Wechseln ! a:|:Select your Skin:|:Wählen Sie die Oberfläche ! a:|:Enable InsertFile-Plugin:|:InsertFile-Plugin einschalten ! a:|:Enable ImageManager-Plugin:|:ImageManager-Plugin einschalten ! a:|:Enable ListType-Plugin:|:ListType-Plugin einschalten ! a:|:Enable Request-Mode:|:Request-Mode aktivieren --- 1,40 ---- ! de:|:xwysiwyg ! a:|:Access was denied due to lack of proper permissions.:|:Zugriff mangels Berechtigung verweigert. ! a:|:Action:|:Aktion ! a:|:Add a new value:|:Neuen Wert hinzufügen ! a:|:Allow anonymous to use [var1]:|:Anonyme Besuchern dürfen [var1] nutzen ! a:|:Allow users to use [var1]:|:Angemeldete Benutzer dürfen [var1] nutzen ! a:|:Area-Name:|:Area-Name ! a:|:Back:|:Zurück ! a:|:Delete:|:Löschen ! a:|:Edit your entry:|:Eintrag bearbeiten ! a:|:Edit:|:Ändern ! a:|:Enable CharacterMap-Plugin:|:CharacterMap-Plugin einschalten ! a:|:Enable ContextMenu-Plugin:|:ContextMenu-Plugin einschalten ! a:|:Enable EnterParagraphs-Plugin:|:EnterParagraphs-Plugin einschalten ! a:|:Enable SpellChecker-Plugin:|:SpellChecker-Plugin einschalten ! a:|:Enable TableOperations-Plugin:|:TableOperations-Plugin einschalten ! a:|:Enable translation of [var1]:|:Erlaube die Übersetzung von [var1] ! a:|:Entry was successfully deleted from the database:|:Eintrag wurde erfolgreich aus der Datenbank gelöscht ! a:|:Home:|:Home ! a:|:ID:|:ID ! a:|:Make your selections:|:Treffen Sie eine Auswahl ! a:|:New:|:Neu ! a:|:Save:|:Speichern ! a:|:Saving was successfull:|:Speichern war erfolgreich ! a:|:Settings saved successfully:|:Einstellungen erfolgreich gespeichert ! a:|:Settings:|:Einstellungen ! a:|:Textarea:|:Textarea ! a:|:There was a problem deleting the entry:|:Es gab ein Problem beim löschen dieses Eintrags ! a:|:There was a problem saving to the database:|:Es gab Probleme beim speichern in die Datenbank ! a:|:There was a problem updating the database:|:Es gab Probleme beim aktualisieren der Datenbank ! a:|:Update was successfull:|:Aktualisieren war erfolgreich ! a:|:no action given...:|:es wurde keine keine Aktion angegeben... ! a:|:You use [var1] now:|:Sie benutzen jetzt [var1] ! a:|:Error: No editor selected:|:Fehler: Kein Editor ausgewählt ! a:|:Change:|:Wechseln ! a:|:Select your Skin:|:Wählen Sie die Oberfläche ! a:|:Enable InsertFile-Plugin:|:InsertFile-Plugin einschalten ! a:|:Enable ImageManager-Plugin:|:ImageManager-Plugin einschalten ! a:|:Enable ListType-Plugin:|:ListType-Plugin einschalten ! a:|:Enable Request-Mode:|:Request-Mode aktivieren Index: xwysiwyg.en.lng =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/lang/xwysiwyg.en.lng,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** xwysiwyg.en.lng 25 Oct 2004 18:11:40 -0000 1.1.1.1 --- xwysiwyg.en.lng 26 Oct 2004 07:33:29 -0000 1.2 *************** *** 1,40 **** ! en:|:xwysiwyg ! a:|:Access was denied due to lack of proper permissions.:|:Access was denied due to lack of proper permissions. ! a:|:Action:|:Action ! a:|:Add a new value:|:Add a new value ! a:|:Allow anonymous to use [var1]:|:Allow anonymous to use [var1] ! a:|:Allow users to use [var1]:|:Allow users to use [var1] ! a:|:Area-Name:|:Area-Name ! a:|:Back:|:Back ! a:|:Delete:|:Delete ! a:|:Edit your entry:|:Edit your entry ! a:|:Edit:|:Edit ! a:|:Enable CharacterMap-Plugin:|:Enable CharacterMap-Plugin ! a:|:Enable ContextMenu-Plugin:|:Enable ContextMenu-Plugin ! a:|:Enable EnterParagraphs-Plugin:|:Enable EnterParagraphs-Plugin ! a:|:Enable SpellChecker-Plugin:|:Enable SpellChecker-Plugin ! a:|:Enable TableOperations-Plugin:|:Enable TableOperations-Plugin ! a:|:Enable translation of [var1]:|:Enable translation of [var1] ! a:|:Entry was successfully deleted from the database:|:Entry was successfully deleted from the database ! a:|:Home:|:Home ! a:|:ID:|:ID ! a:|:Make your selections:|:Make your selections ! a:|:New:|:New ! a:|:Save:|:Save ! a:|:Saving was successfull:|:Saving was successfull ! a:|:Settings saved successfully:|:Settings saved successfully ! a:|:Settings:|:Settings ! a:|:Textarea:|:Textarea ! a:|:There was a problem deleting the entry:|:There was a problem deleting the entry ! a:|:There was a problem saving to the database:|:There was a problem saving to the database ! a:|:There was a problem updating the database:|:There was a problem updating the database ! a:|:Update was successfull:|:Update was successfull ! a:|:no action given...:|:no action given... ! a:|:You use [var1] now:|:You use [var1] now ! a:|:Error: No editor selected:|:Error: No editor selected ! a:|:Change:|:Change ! a:|:Select your Skin:|:Select your Skin ! a:|:Enable InsertFile-Plugin:|:Enable InsertFile-Plugin ! a:|:Enable ImageManager-Plugin:|:Enable ImageManager-Plugin ! a:|:Enable ListType-Plugin:|:Enable ListType-Plugin ! a:|:Enable Request-Mode:|:Enable Request-Mode --- 1,40 ---- ! en:|:xwysiwyg ! a:|:Access was denied due to lack of proper permissions.:|:Access was denied due to lack of proper permissions. ! a:|:Action:|:Action ! a:|:Add a new value:|:Add a new value ! a:|:Allow anonymous to use [var1]:|:Allow anonymous to use [var1] ! a:|:Allow users to use [var1]:|:Allow users to use [var1] ! a:|:Area-Name:|:Area-Name ! a:|:Back:|:Back ! a:|:Delete:|:Delete ! a:|:Edit your entry:|:Edit your entry ! a:|:Edit:|:Edit ! a:|:Enable CharacterMap-Plugin:|:Enable CharacterMap-Plugin ! a:|:Enable ContextMenu-Plugin:|:Enable ContextMenu-Plugin ! a:|:Enable EnterParagraphs-Plugin:|:Enable EnterParagraphs-Plugin ! a:|:Enable SpellChecker-Plugin:|:Enable SpellChecker-Plugin ! a:|:Enable TableOperations-Plugin:|:Enable TableOperations-Plugin ! a:|:Enable translation of [var1]:|:Enable translation of [var1] ! a:|:Entry was successfully deleted from the database:|:Entry was successfully deleted from the database ! a:|:Home:|:Home ! a:|:ID:|:ID ! a:|:Make your selections:|:Make your selections ! a:|:New:|:New ! a:|:Save:|:Save ! a:|:Saving was successfull:|:Saving was successfull ! a:|:Settings saved successfully:|:Settings saved successfully ! a:|:Settings:|:Settings ! a:|:Textarea:|:Textarea ! a:|:There was a problem deleting the entry:|:There was a problem deleting the entry ! a:|:There was a problem saving to the database:|:There was a problem saving to the database ! a:|:There was a problem updating the database:|:There was a problem updating the database ! a:|:Update was successfull:|:Update was successfull ! a:|:no action given...:|:no action given... ! a:|:You use [var1] now:|:You use [var1] now ! a:|:Error: No editor selected:|:Error: No editor selected ! a:|:Change:|:Change ! a:|:Select your Skin:|:Select your Skin ! a:|:Enable InsertFile-Plugin:|:Enable InsertFile-Plugin ! a:|:Enable ImageManager-Plugin:|:Enable ImageManager-Plugin ! a:|:Enable ListType-Plugin:|:Enable ListType-Plugin ! a:|:Enable Request-Mode:|:Enable Request-Mode |
From: Yves K. <yku...@us...> - 2004-10-26 07:33:09
|
Update of /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/docs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30828/xwysiwyg/mod/xwysiwyg/docs Modified Files: install_de.txt install_en.txt Log Message: saved in unix-format Index: install_en.txt =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/docs/install_en.txt,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** install_en.txt 25 Oct 2004 18:11:38 -0000 1.1.1.1 --- install_en.txt 26 Oct 2004 07:32:59 -0000 1.2 *************** *** 1,59 **** ! Preface: ! The xwysiwyg-module requires severe changes in the 'Core' files of phpWebSite. ! You should only install this module if you are experienced with PHP and phpWebSite. ! If you upgrade phpWebSite after installing the xwysiwyg-module it could be that the ! module does not function properly. In contrast to other htmlArea hacks that were ! published previously you don't need to change other installed modules. ! ! Preparation: ! Backup ! -your database ! -the file /js/wysiwyg.php ! -theme.tpl of all themes you are using ! -theme.php of all themes you are using ! ! ! Installation: ! 1. Copy the xwysiwyg directory to the /mod directory of your phpWebSite installation ! 2. Replace /js/wysiwyg.php with the file from the xwysiwyg-module ! 3a. If you don't use theme.php so far replace theme.php in all your themes with the version provided with the xwysiwyg-module ! 3b. If you are using theme.php insert the xwysiwyg-code in theme.php of all your used modules ! 4. Insert the {XWYSIWYG} tag in theme.tpl before the {JAVASCRIPT} tag (needs to be done for every theme you are using) ! 5. Insert the {XWYSIWYG_BODY} tag in theme.tpl inside the body-tag; Eg:"<body{XWYSIWYG_BODY}>" (needs to be done for every theme you are using) ! 6. Install the xwysiwyg-modul as usual with BOOST ! ! Note: the provided theme files are for the default theme. ! If you did a standard install of phpWebSite you can copy these files ! to your /themes/Default directory and replace the original files. ! ! Deinstallation: ! 1. Deinstall the module with BOOST ! The modified files should not interfere with the normal operation of phpWebSite ! but if you want to be on the safe side you should copy your backed up files to ! their directories (you did make a backup, eh?). ! ! Usage: ! Be sure that all HTML tags you want to use with htmlArea are allowed in /conf/textSettings.php. ! ! You can change some settings of the xwysiwyg-module using the controlpanel of phpWebSite. ! There You can select if you prefer working with HtmlArea or FCKeditor. ! You can specify if the tool is only available for registered users or if you want to ! allow anonymous users to use it, too. Additionally you can specify if the tableoperations or ! contextmenu plugin for HtmlArea should be activated. Other plugins don't work with this module so ! far but may be available in a future release. Or select a Skin for FCKeditor. ! ! After installing the module everything is shown as usual but there is a new XW button in ! the wysiwyg panel. To activate xwysiwyg for a specified region you have to click this button. ! ATTENTION: all unsaved data will be lost! ! Or try the Request-Mode and use the xw-button to start the editor on request. ! ! Hope you have fun using this module ! ! ykuendig <ph...@NO...> ! ! Special thanks to: ! Wendall Cada and Shaun Murry for the basic idea of the wysiwyg hack ! Christan <web...@NO...> for help by testing the module ! Thomas <tl...@NO...> for the translation to English. ! Version of 2004-10-23 \ No newline at end of file --- 1,59 ---- ! Preface: ! The xwysiwyg-module requires severe changes in the 'Core' files of phpWebSite. ! You should only install this module if you are experienced with PHP and phpWebSite. ! If you upgrade phpWebSite after installing the xwysiwyg-module it could be that the ! module does not function properly. In contrast to other htmlArea hacks that were ! published previously you don't need to change other installed modules. ! ! Preparation: ! Backup ! -your database ! -the file /js/wysiwyg.php ! -theme.tpl of all themes you are using ! -theme.php of all themes you are using ! ! ! Installation: ! 1. Copy the xwysiwyg directory to the /mod directory of your phpWebSite installation ! 2. Replace /js/wysiwyg.php with the file from the xwysiwyg-module ! 3a. If you don't use theme.php so far replace theme.php in all your themes with the version provided with the xwysiwyg-module ! 3b. If you are using theme.php insert the xwysiwyg-code in theme.php of all your used modules ! 4. Insert the {XWYSIWYG} tag in theme.tpl before the {JAVASCRIPT} tag (needs to be done for every theme you are using) ! 5. Insert the {XWYSIWYG_BODY} tag in theme.tpl inside the body-tag; Eg:"<body{XWYSIWYG_BODY}>" (needs to be done for every theme you are using) ! 6. Install the xwysiwyg-modul as usual with BOOST ! ! Note: the provided theme files are for the default theme. ! If you did a standard install of phpWebSite you can copy these files ! to your /themes/Default directory and replace the original files. ! ! Deinstallation: ! 1. Deinstall the module with BOOST ! The modified files should not interfere with the normal operation of phpWebSite ! but if you want to be on the safe side you should copy your backed up files to ! their directories (you did make a backup, eh?). ! ! Usage: ! Be sure that all HTML tags you want to use with htmlArea are allowed in /conf/textSettings.php. ! ! You can change some settings of the xwysiwyg-module using the controlpanel of phpWebSite. ! There You can select if you prefer working with HtmlArea or FCKeditor. ! You can specify if the tool is only available for registered users or if you want to ! allow anonymous users to use it, too. Additionally you can specify if the tableoperations or ! contextmenu plugin for HtmlArea should be activated. Other plugins don't work with this module so ! far but may be available in a future release. Or select a Skin for FCKeditor. ! ! After installing the module everything is shown as usual but there is a new XW button in ! the wysiwyg panel. To activate xwysiwyg for a specified region you have to click this button. ! ATTENTION: all unsaved data will be lost! ! Or try the Request-Mode and use the xw-button to start the editor on request. ! ! Hope you have fun using this module ! ! ykuendig <ph...@NO...> ! ! Special thanks to: ! Wendall Cada and Shaun Murry for the basic idea of the wysiwyg hack ! Christan <web...@NO...> for help by testing the module ! Thomas <tl...@NO...> for the translation to English. ! Version of 2004-10-23 \ No newline at end of file Index: install_de.txt =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/docs/install_de.txt,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** install_de.txt 25 Oct 2004 18:11:38 -0000 1.1.1.1 --- install_de.txt 26 Oct 2004 07:32:59 -0000 1.2 *************** *** 1,66 **** ! Vorwort: ! Das xwysiwyg-Modul beinhaltet einen Eingriff in die 'Core'-Dateien des phpWebSite-Projekts. ! Installieren Sie dieses Modul nur, wenn Sie einige Erfahrung im Umgang mit PHP und phpWebSite haben. ! Sollte Sie nach der Installation dieses Moduls die phpWebSite upgraden, kann es sein, ! das das Modul nicht mehr ordnungsgemaess funktioniert. Entgegen den bisher veroeffentlichten ! htmlArea-Hacks, sind bei diesem Modul keine Eingriffe in die anderen installierten Module notwendig. ! ! ! Vorbereitung: ! Sichern Sie Ihre Datenbank. ! Sichern Sie die Datei /js/wysiwyg.php ! Sichern Sie die theme.tpl aller Ihrer benutzten Themen ! Sichern Sie die theme.php aller Ihrer benutzten Themen ! ! ! Installation: ! 1. Kopieren Sie das xwysiwyg-Verzeichnis ins /mod -Verzeichnis Ihrer phpWebSite ! 2. Ersetzten Sie die /js/wysiwyg.php ! Wenn Sie bisher keine theme.php benutzt haben: ! 3a. Ersetzten Sie die theme.php Datei in allen Ihren Themen (alle welche xwysiwyg nutzen sollen) ! Wenn Sie bereits theme.php benutzen: ! 3b. Fuegen Sie den xwysiwyg-Code in Ihre theme.php ein (ALLE welche xwysiwyg nutzen sollen) ! 4. Fuegen Sie das {XWYSIWYG}-Tag in Ihre theme.tpl vor dem {JAVASCRIPT}-Tag ein (alle welche htmlarea nutzen sollen) ! 5. Fuegen Sie das {XWYSIWYG_BODY}-Tag in Ihre theme.tpl in den <body>-Tag ein; Bsp:"<body{XWYSIWYG_BODY}>" (alle welche xwysiwyg nutzen sollen) ! 6. Installieren Sie das xwysiwyg-Modul wie gewohnt mit BOOST ! ! Hinweis: die beigepackten Theme-Dateien entsprechen dem Default-Thema. ! Sollten Sie eine Standard-Installation erstellt haben, koennen Sie die beiden Dateien ! im beiliegenden Default-Verzeichnis in Ihr /themes/Default/ Verzeichnis kopieren und ! die dortigen Dateien ueberschreiben. ! ! ! Deinstallation: ! 1. Deinstallieren Sie das Modul mit BOOST ! Die anderen (angepassten) Dateien sollten den Betrieb der phpWebSite nicht weiter stoeren, ! wenn Sie jedoch ganz sicher gehen moechten kopieren Sie die gesicherten Dateien zurueck. ! (Sie habe ja ein Backup gemacht. ODER?) ! ! Verwendung: ! Achten Sie darauf, dass alle HTML-Tags, die Sie mit xwysiwyg verwenden moechten, auch ! in der /conf/textSettings.php als erlaubte HTML-Tags eingetragen sind. ! So ist z.B. noetig, das <FONT>-Tag einzutragen, wenn Sie mit Farben arbeiten wollen. ! ! Im Administrations-Bereich Ihrer phpWebSite koenne Sie einige Einstellungen am xwysiwyg-Modul ! vornehmen. Waehlen Sie dort den gewuenschten Editor aus (HtmlArea oder FCKeditor). Legen Sie ! dort fest, ob das Tool nur fuer angemeldete Benutzer oder auch anonymen Besuchern zur Verfuegung ! steht. Dort koennen Sie auch einstellen, ob das Tabellen- oder das Kontext-Menue-Plugin fuer ! HtmlArea aktiviert werden soll. Die weiteren Pugins funktionieren z.Z. nicht mit diesem Modul ! und werden ev. in einem spaeteren Release freigeschaltet. Fuer den FCKeditor koennen Sie die ! Oberflaeche auswaehlen. ! ! Nachdem das Modul installiert ist, wird alles wie bisher angezeigt. Einzig ein neuer XW-Button ! in der wysiwyg-Symbolleiste ist zu sehen. Um nun xwysiwyg fuer einen bestimmten Bereich zu ! aktivieren, klicken Sie auf den Button. Achtung: Alle ungespeichert Daten gehen verloren! ! Oder versuchen Sie den Request-Mode. Damit koennen Sie den Editor bei Bedarf starten. ! ! ! Nun viel Spass mit diesem Modul ! ykuendig <ph...@NO...> ! ! Spezieller Dank geht an: ! Wendall Cada und Shaun Murry fuer die Basis-Idee des Wysiwyg-Hacks. ! Christan <web...@NO...> fuer die Mithilfe bei den Tests. ! Thomas <tl...@NO...> for the translation to English. ! Version vom 23.10.2004 \ No newline at end of file --- 1,66 ---- ! Vorwort: ! Das xwysiwyg-Modul beinhaltet einen Eingriff in die 'Core'-Dateien des phpWebSite-Projekts. ! Installieren Sie dieses Modul nur, wenn Sie einige Erfahrung im Umgang mit PHP und phpWebSite haben. ! Sollte Sie nach der Installation dieses Moduls die phpWebSite upgraden, kann es sein, ! das das Modul nicht mehr ordnungsgemaess funktioniert. Entgegen den bisher veroeffentlichten ! htmlArea-Hacks, sind bei diesem Modul keine Eingriffe in die anderen installierten Module notwendig. ! ! ! Vorbereitung: ! Sichern Sie Ihre Datenbank. ! Sichern Sie die Datei /js/wysiwyg.php ! Sichern Sie die theme.tpl aller Ihrer benutzten Themen ! Sichern Sie die theme.php aller Ihrer benutzten Themen ! ! ! Installation: ! 1. Kopieren Sie das xwysiwyg-Verzeichnis ins /mod -Verzeichnis Ihrer phpWebSite ! 2. Ersetzten Sie die /js/wysiwyg.php ! Wenn Sie bisher keine theme.php benutzt haben: ! 3a. Ersetzten Sie die theme.php Datei in allen Ihren Themen (alle welche xwysiwyg nutzen sollen) ! Wenn Sie bereits theme.php benutzen: ! 3b. Fuegen Sie den xwysiwyg-Code in Ihre theme.php ein (ALLE welche xwysiwyg nutzen sollen) ! 4. Fuegen Sie das {XWYSIWYG}-Tag in Ihre theme.tpl vor dem {JAVASCRIPT}-Tag ein (alle welche htmlarea nutzen sollen) ! 5. Fuegen Sie das {XWYSIWYG_BODY}-Tag in Ihre theme.tpl in den <body>-Tag ein; Bsp:"<body{XWYSIWYG_BODY}>" (alle welche xwysiwyg nutzen sollen) ! 6. Installieren Sie das xwysiwyg-Modul wie gewohnt mit BOOST ! ! Hinweis: die beigepackten Theme-Dateien entsprechen dem Default-Thema. ! Sollten Sie eine Standard-Installation erstellt haben, koennen Sie die beiden Dateien ! im beiliegenden Default-Verzeichnis in Ihr /themes/Default/ Verzeichnis kopieren und ! die dortigen Dateien ueberschreiben. ! ! ! Deinstallation: ! 1. Deinstallieren Sie das Modul mit BOOST ! Die anderen (angepassten) Dateien sollten den Betrieb der phpWebSite nicht weiter stoeren, ! wenn Sie jedoch ganz sicher gehen moechten kopieren Sie die gesicherten Dateien zurueck. ! (Sie habe ja ein Backup gemacht. ODER?) ! ! Verwendung: ! Achten Sie darauf, dass alle HTML-Tags, die Sie mit xwysiwyg verwenden moechten, auch ! in der /conf/textSettings.php als erlaubte HTML-Tags eingetragen sind. ! So ist z.B. noetig, das <FONT>-Tag einzutragen, wenn Sie mit Farben arbeiten wollen. ! ! Im Administrations-Bereich Ihrer phpWebSite koenne Sie einige Einstellungen am xwysiwyg-Modul ! vornehmen. Waehlen Sie dort den gewuenschten Editor aus (HtmlArea oder FCKeditor). Legen Sie ! dort fest, ob das Tool nur fuer angemeldete Benutzer oder auch anonymen Besuchern zur Verfuegung ! steht. Dort koennen Sie auch einstellen, ob das Tabellen- oder das Kontext-Menue-Plugin fuer ! HtmlArea aktiviert werden soll. Die weiteren Pugins funktionieren z.Z. nicht mit diesem Modul ! und werden ev. in einem spaeteren Release freigeschaltet. Fuer den FCKeditor koennen Sie die ! Oberflaeche auswaehlen. ! ! Nachdem das Modul installiert ist, wird alles wie bisher angezeigt. Einzig ein neuer XW-Button ! in der wysiwyg-Symbolleiste ist zu sehen. Um nun xwysiwyg fuer einen bestimmten Bereich zu ! aktivieren, klicken Sie auf den Button. Achtung: Alle ungespeichert Daten gehen verloren! ! Oder versuchen Sie den Request-Mode. Damit koennen Sie den Editor bei Bedarf starten. ! ! ! Nun viel Spass mit diesem Modul ! ykuendig <ph...@NO...> ! ! Spezieller Dank geht an: ! Wendall Cada und Shaun Murry fuer die Basis-Idee des Wysiwyg-Hacks. ! Christan <web...@NO...> fuer die Mithilfe bei den Tests. ! Thomas <tl...@NO...> for the translation to English. ! Version vom 23.10.2004 \ No newline at end of file |
From: Yves K. <yku...@us...> - 2004-10-26 07:32:52
|
Update of /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/conf In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30755/xwysiwyg/mod/xwysiwyg/conf Modified Files: boost.php controlpanel.php layout.php users.php Log Message: saved in unix-format Index: controlpanel.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/conf/controlpanel.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** controlpanel.php 25 Oct 2004 18:11:36 -0000 1.1.1.1 --- controlpanel.php 26 Oct 2004 07:32:42 -0000 1.2 *************** *** 1,20 **** ! <?php ! /** ! * This is a xwysiwyg control panel configuration file. ! * ! * $Id$ ! */ ! ! $image["name"] = "xwysiwyg.gif"; ! $image["alt"] = "xwysiwyg-Manager"; ! ! /* Create a link to your module */ ! $link[] = array ("label"=>"xwysiwyg-Manager", ! "module"=>"xwysiwyg", ! "url"=>"index.php?module=xwysiwyg&action=admin", ! "image"=>$image, ! "admin"=>TRUE, ! "description"=>"Control the use of xwysiwyg in Your phpWebSite", ! "tab"=>"administration"); ! ?> \ No newline at end of file --- 1,20 ---- ! <?php ! /** ! * This is a xwysiwyg control panel configuration file. ! * ! * $Id$ ! */ ! ! $image["name"] = "xwysiwyg.gif"; ! $image["alt"] = "xwysiwyg-Manager"; ! ! /* Create a link to your module */ ! $link[] = array ("label"=>"xwysiwyg-Manager", ! "module"=>"xwysiwyg", ! "url"=>"index.php?module=xwysiwyg&action=admin", ! "image"=>$image, ! "admin"=>TRUE, ! "description"=>"Control the use of xwysiwyg in Your phpWebSite", ! "tab"=>"administration"); ! ?> \ No newline at end of file Index: layout.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/conf/layout.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** layout.php 25 Oct 2004 18:11:36 -0000 1.1.1.1 --- layout.php 26 Oct 2004 07:32:42 -0000 1.2 *************** *** 1,12 **** ! <?php ! /** ! * This is a xwysiwyg layout configuration file. ! * ! * $Id$ ! */ ! ! /* Adding a content variable for display in the body */ ! $layout_info[] = array ("content_var"=>"CNT_xwysiwyg", ! "transfer_var"=>"body"); ! ?> \ No newline at end of file --- 1,12 ---- ! <?php ! /** ! * This is a xwysiwyg layout configuration file. ! * ! * $Id$ ! */ ! ! /* Adding a content variable for display in the body */ ! $layout_info[] = array ("content_var"=>"CNT_xwysiwyg", ! "transfer_var"=>"body"); ! ?> \ No newline at end of file Index: users.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/conf/users.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** users.php 25 Oct 2004 18:11:37 -0000 1.1.1.1 --- users.php 26 Oct 2004 07:32:42 -0000 1.2 *************** *** 1,10 **** ! <?php ! /** ! * This is a xwysiwyg user configuration file. ! * ! * $Id$ ! */ ! ! $default_admin_menu = "core"; ! ?> \ No newline at end of file --- 1,10 ---- ! <?php ! /** ! * This is a xwysiwyg user configuration file. ! * ! * $Id$ ! */ ! ! $default_admin_menu = "core"; ! ?> \ No newline at end of file Index: boost.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/conf/boost.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** boost.php 25 Oct 2004 18:11:37 -0000 1.1.1.1 --- boost.php 26 Oct 2004 07:32:42 -0000 1.2 *************** *** 1,25 **** ! <?php ! /** ! * This is a xwysiwyg boost.php configuration file. ! * ! * $Id$ ! */ ! ! $version = "0.1.0"; ! $mod_title = "xwysiwyg"; ! $mod_pname = "xwysiwyg-Manager"; ! $mod_directory = "xwysiwyg"; ! $mod_filename = "index.php"; ! $priority = 50; ! $allow_view = "all"; ! $user_mod = 0; ! $admin_mod = 1; ! $deity_mod = 0; ! $mod_class_files = array("xwysiwyg.php"); ! $mod_sessions = array("PHPWS_xwysiwyg"); ! $active = "on"; ! $branch_allow = 0; ! $install_file = "install.php"; ! $uninstall_file = "uninstall.php"; ! ?> \ No newline at end of file --- 1,25 ---- ! <?php ! /** ! * This is a xwysiwyg boost.php configuration file. ! * ! * $Id$ ! */ ! ! $version = "0.1.0"; ! $mod_title = "xwysiwyg"; ! $mod_pname = "xwysiwyg-Manager"; ! $mod_directory = "xwysiwyg"; ! $mod_filename = "index.php"; ! $priority = 50; ! $allow_view = "all"; ! $user_mod = 0; ! $admin_mod = 1; ! $deity_mod = 0; ! $mod_class_files = array("xwysiwyg.php"); ! $mod_sessions = array("PHPWS_xwysiwyg"); ! $active = "on"; ! $branch_allow = 0; ! $install_file = "install.php"; ! $uninstall_file = "uninstall.php"; ! ?> \ No newline at end of file |
From: Yves K. <yku...@us...> - 2004-10-26 07:32:08
|
Update of /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/class In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30606/xwysiwyg/mod/xwysiwyg/class Modified Files: phpSniff.class.php phpSniff.core.php xwysiwyg.php Log Message: saved in unix-format Index: phpSniff.core.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/class/phpSniff.core.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** phpSniff.core.php 25 Oct 2004 18:11:51 -0000 1.1.1.1 --- phpSniff.core.php 26 Oct 2004 07:31:54 -0000 1.2 *************** *** 1,547 **** ! <?php ! /******************************************************************************* ! $Id$ ! ! phpSniff: HTTP_USER_AGENT Client Sniffer for PHP ! Copyright (C) 2001 Roger Raymond ~ eps...@us... ! ! This library is free software; you can redistribute it and/or ! modify it under the terms of the GNU Lesser General Public ! License as published by the Free Software Foundation; either [...1067 lines suppressed...] ! // this is probably a netscape browser or compatible ! $this->_set_browser('long_name','netscape'); ! $this->_set_browser('browser',$this->_get_short_name('netscape')); ! } ! } ! ! function _set_browser ($k,$v) ! { $this->_browser_info[strtolower($k)] = strtolower($v); ! } ! ! function _set_feature ($k) ! { $this->_feature_set[strtolower($k)] = !$this->_feature_set[strtolower($k)]; ! } ! ! function _set_quirk ($k) ! { $this->_quirks[strtolower($k)] = true; ! } ! } ?> \ No newline at end of file Index: xwysiwyg.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/class/xwysiwyg.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** xwysiwyg.php 25 Oct 2004 18:12:02 -0000 1.1.1.1 --- xwysiwyg.php 26 Oct 2004 07:31:54 -0000 1.2 *************** *** 1,479 **** ! <?php ! require_once(PHPWS_SOURCE_DIR . "core/Text.php"); //this we use to parse input and for ezTable ! /** ! * Class file for xwysiwyg module ! * ! * @version $0.1 2004/08/29 yk$ ! * @author Yves Kuendig <ph...@NO...> ! * @module xwysiwyg ! * @moduletype mixed module / hack ! * @package phpwebsite = 0.9.3-4 ! */ ! ! class PHPWS_xwysiwyg { ! ! function isBox($area){ ! $settings = PHPWS_xwysiwyg::readConfig(); ! if((!$settings['view_anon'])AND(!$_SESSION["OBJ_user"]->isUser())) return FALSE; ! if((!$settings['view_user'])AND(!$_SESSION["OBJ_user"]->isDeity())) return FALSE; ! $query = "SELECT id FROM ".PHPWS_TBL_PREFIX."mod_xwysiwyg_areas WHERE area = '$area'"; ! $result = $GLOBALS['core']->quickFetch($query); ! if($result) return TRUE; ! else return FALSE; ! } ! ! ! function loadPlugins($settings) { ! $loadplugs = ""; ! if($settings['editor']=="htmlarea") { ! if($settings['plug_table']) $loadplugs .= " HTMLArea.loadPlugin(\"TableOperations\");\n"; ! if($settings['plug_context']) $loadplugs .= " HTMLArea.loadPlugin(\"ContextMenu\");\n"; ! if($settings['plug_chara']) $loadplugs .= " HTMLArea.loadPlugin(\"CharacterMap\");\n"; ! if($settings['plug_para']) $loadplugs .= " HTMLArea.loadPlugin(\"EnterParagraphs\");\n"; ! if($settings['plug_list']) $loadplugs .= " HTMLArea.loadPlugin(\"ListType\");\n"; ! if($settings['plug_file']) $loadplugs .= " HTMLArea.loadPlugin(\"InsertFile\");\n"; ! if($settings['plug_image']) $loadplugs .= " HTMLArea.loadPlugin(\"ImageManager\");\n"; ! if($settings['plug_spell']) $loadplugs .= " HTMLArea.loadPlugin(\"SpellChecker\");\n"; ! } else if($settings['editor']=="fck") { ! } ! return $loadplugs; ! } ! ! function registerPlugins($settings,$index) { ! $regplugs = ""; ! if($settings['editor']=="htmlarea") { ! if($settings['plug_table']) $regplugs .= " editor$index.registerPlugin(TableOperations);\n"; ! if($settings['plug_context']) $regplugs .= " editor$index.registerPlugin(ContextMenu);\n"; ! if($settings['plug_chara']) $regplugs .= " editor$index.registerPlugin(CharacterMap);\n"; ! if($settings['plug_para']) $regplugs .= " editor$index.registerPlugin(EnterParagraphs);\n"; ! if($settings['plug_list']) $regplugs .= " editor$index.registerPlugin(ListType);\n"; ! if($settings['plug_file']) $regplugs .= " editor$index.registerPlugin(InsertFile);\n"; ! if($settings['plug_image']) $regplugs .= " editor$index.registerPlugin(ImageManager);\n"; ! if($settings['plug_spell']) $regplugs .= " editor$index.registerPlugin(SpellChecker);\n"; ! } else if($settings['editor']=="fck") { ! } ! return $regplugs; ! } ! ! function setLanguage($settings){ ! if($settings['lang_activ']) $lang = $_SESSION['translate']->current_language; ! else $lang = "en"; ! return $lang; ! } ! ! function makeEditors($settings,$index,$regplugs,$area,$lang) { // HtmlArea - Editor - Section ! if($settings['editor']=="htmlarea") { ! if($index==1){ ! if($settings['request_mode']) { // 1. HtmlArea Editor in Request-Mode ! $editors .= " ! function initEditor$index() { ! var editor$index = new HTMLArea(\"$area\"); ! ".$regplugs." ! editor$index.config.height = \"300px\"; ! editor$index.generate(); ! return false; ! } ! "; ! } else { // 1. HtmlArea Editor in Normal-Mode ! $editors .= " ! var editor$index = new HTMLArea(\"$area\"); ! ".$regplugs." ! editor$index.config.height = \"300px\"; ! editor$index.generate(); ! "; ! } ! } else { ! if($settings['request_mode']) { // 2. HtmlArea Editor in Request-Mode ! $editors .= " ! function initEditor$index() { ! var editor$index = new HTMLArea(\"$area\"); ! ".$regplugs." ! editor$index.config.height = \"300px\"; ! editor$index.generate(); ! return false; ! } ! "; ! } else { // 2. HtmlArea Editor in Normal-Mode ! $editors .= " ! var editor$index = new HTMLArea(\"$area\"); ! ".$regplugs." ! editor$index.config.height = \"300px\"; ! setTimeout(function() { ! editor$index.generate(); ! }, 900); ! "; ! } ! } ! } else if($settings['editor']=="fck") { // FCKeditor - Editor - Section ! $skin = $settings['fck_skin']; ! ! if($settings['request_mode']) { // FCK Editor in Request-Mode ! $editors .= "\n function initEditor$index() {\n"; } ! ! $editors .= " ! var editor$index = new FCKeditor(\"$area\"); ! editor$index.BasePath = \"mod/xwysiwyg/_fck/\" ; ! editor$index.CheckBrowser = false ; ! editor$index.Config[\"AutoDetectLanguage\"] = false ; ! editor$index.Config[\"DefaultLanguage\"] = \"$lang\" ; ! editor$index.Config[\"SkinPath\"] = \"skins/$skin/\" ; ! ".$regplugs; ! if($index==1){ // Ending for 1. Editor ! $editors .= " ! editor$index.ReplaceTextarea();"; ! } else { // Ending for further Editors ! $editors .= " ! setTimeout(function() { ! editor$index.ReplaceTextarea(); ! }, 400);"; ! } ! if($settings['request_mode']) { // Close FCK Editor in Request-Mode ! $editors .= "\n return false;\n }\n"; } ! } ! return $editors; ! } ! ! function makeMain($settings,$editors,$loadplugs,$lang) { ! if($settings['editor']=="htmlarea") { ! // start cookie-code from chris ! setcookie("htmlarea_insfile_cookie_create", $_SESSION['OBJ_user']->allow_access("documents", "edit_settings")); ! setcookie("htmlarea_insfile_cookie_upload", $_SESSION['OBJ_user']->allow_access("documents", "add_document")); ! setcookie("htmlarea_insfile_cookie_rename", $_SESSION['OBJ_user']->allow_access("documents", "edit_document")); ! setcookie("htmlarea_insfile_cookie_delete", $_SESSION['OBJ_user']->allow_access("documents", "delete_document")); ! setcookie("htmlarea_insfile_cookie_move", $_SESSION['OBJ_user']->allow_access("documents", "move_document")); ! setcookie("pws_lang", $lang); ! setcookie("pws_source_dir", PHPWS_SOURCE_DIR); ! setcookie("pws_source_http", PHPWS_SOURCE_HTTP); ! // end cookie-code from chris ! /* nur hier als erinnerung ! <script type=\"text/javascript\" src=\"mod/xwysiwyg/_htmlarea/dialog.js\"></script> ! <script type=\"text/javascript\" src=\"mod/xwysiwyg/_htmlarea/popupwin.js\"></script> ! */ ! if($settings['request_mode']) { // HtmlArea-Main in Request-Mode ! $main = " ! <script type=\"text/javascript\"> ! _editor_lang = \"".$lang."\"; ! _editor_url = \"mod/xwysiwyg/_htmlarea/\"; ! </script> ! <!-- load the main HTMLArea files --> ! <script type=\"text/javascript\" src=\"mod/xwysiwyg/_htmlarea/htmlarea.js\"></script> ! <script type=\"text/javascript\"> ! ".$loadplugs." ! $editors ! </script> ! "; ! } else { // HtmlArea-Main in Normal-Mode ! $main = " ! <script type=\"text/javascript\"> ! _editor_lang = \"".$lang."\"; ! _editor_url = \"mod/xwysiwyg/_htmlarea/\"; ! </script> ! <!-- load the main HTMLArea files --> ! <script type=\"text/javascript\" src=\"mod/xwysiwyg/_htmlarea/htmlarea.js\"></script> ! <script type=\"text/javascript\"> ! ".$loadplugs." ! function initEditor() { // create the editor(s) for the related textbox(es) ! $editors ! return false; ! } ! </script> ! "; ! } ! } else if($settings['editor']=="fck") { ! if($settings['request_mode']) { // FCK-Main in Request-Mode ! $main = " ! <!-- load the main FCKeditor files --> ! <script type=\"text/javascript\" src=\"mod/fckeditor/fck/fckeditor.js\"></script> ! <script type=\"text/javascript\"> ! ".$loadplugs." ! $editors ! </script> ! "; ! } else { // FCK-Main in Normal-Mode ! $main = " ! <!-- load the main FCKeditor files --> ! <script type=\"text/javascript\" src=\"mod/fckeditor/fck/fckeditor.js\"></script> ! <script type=\"text/javascript\"> ! ".$loadplugs." ! function initEditor() { // create the editor(s) for the related textbox(es) ! $editors ! return false; ! } ! </script> ! "; ! } ! } ! return $main; ! } ! ! ! ! function readConfig() { ! $sql = "SELECT * FROM ".PHPWS_TBL_PREFIX."mod_xwysiwyg_conf"; ! $settings = $GLOBALS['core']->quickFetch($sql); ! //$GLOBALS['xwysiwyg_settings'] = $settings; ! return $settings; ! }// END FUNC _read_config ! ! ! function showHAoptions($settings) { ! if ($_SESSION["OBJ_user"]->allow_access("xwysiwyg", "settings")) { ! if($_REQUEST['func'] == "update") { ! if(isset($_REQUEST['lang_activ'])) { $settings['lang_activ'] = 1; } ! else { $settings['lang_activ'] = 0; } ! if(isset($_REQUEST['view_anon'])) { $settings['view_anon'] = 1; } ! else { $settings['view_anon'] = 0; } ! if(isset($_REQUEST['view_user'])) { $settings['view_user'] = 1; } ! else { $settings['view_user'] = 0; } ! if(isset($_REQUEST['request_mode'])) { $settings['request_mode'] = 1; } ! else { $settings['request_mode'] = 0; } ! if(isset($_REQUEST['plug_table'])) { $settings['plug_table'] = 1; } ! else { $settings['plug_table'] = 0; } ! if(isset($_REQUEST['plug_context'])) { $settings['plug_context'] = 1; } ! else { $settings['plug_context'] = 0; } ! if(isset($_REQUEST['plug_chara'])) { $settings['plug_chara'] = 1; } ! else { $settings['plug_chara'] = 0; } ! if(isset($_REQUEST['plug_para'])) { $settings['plug_para'] = 1; } ! else { $settings['plug_para'] = 0; } ! if(isset($_REQUEST['plug_list'])) { $settings['plug_list'] = 1; } ! else { $settings['plug_list'] = 0; } ! if(isset($_REQUEST['plug_file'])) { $settings['plug_file'] = 1; } ! else { $settings['plug_file'] = 0; } ! if(isset($_REQUEST['plug_image'])) { $settings['plug_image'] = 1; } ! else { $settings['plug_image'] = 0; } ! if(isset($_REQUEST['plug_spell'])) { $settings['plug_spell'] = 1; } ! else { $settings['plug_spell'] = 0; } ! } ! ! $form = new EZform("options"); ! $form->add("module", "hidden", "xwysiwyg"); ! $form->add("action", "hidden", "admin"); ! $form->add("func", "hidden", "update"); ! ! $form->add("lang_activ", "checkbox"); ! $form->setMatch("lang_activ", $settings['lang_activ']); ! $form->add("view_anon", "checkbox"); ! $form->setMatch("view_anon", $settings['view_anon']); ! $form->add("view_user", "checkbox"); ! $form->setMatch("view_user", $settings['view_user']); ! $form->add("request_mode", "checkbox"); ! $form->setMatch("request_mode", $settings['request_mode']); ! $form->add("plug_table", "checkbox"); ! $form->setMatch("plug_table", $settings['plug_table']); ! $form->add("plug_context", "checkbox"); ! $form->setMatch("plug_context", $settings['plug_context']); ! $form->add("plug_chara", "checkbox"); ! $form->setMatch("plug_chara", $settings['plug_chara']); ! $form->add("plug_para", "checkbox"); ! $form->setMatch("plug_para", $settings['plug_para']); ! $form->add("plug_list", "checkbox"); ! $form->setMatch("plug_list", $settings['plug_list']); ! $form->add("plug_file", "checkbox"); ! $form->setMatch("plug_file", $settings['plug_file']); ! $form->add("plug_image", "checkbox"); ! $form->setMatch("plug_image", $settings['plug_image']); ! // $form->add("plug_spell", "checkbox"); ! // $form->setMatch("plug_spell", $settings['plug_spell']); ! $form->add("SUBMIT", "submit", $_SESSION['translate']->it("Save")); ! ! $formTags = $form->getTemplate(); ! $formTags['TITLE'] = $_SESSION['translate']->it("Settings"); //Version??? ! $formTags['LANG_ACTIV_TEXT'] = $_SESSION['translate']->it("Enable translation of [var1]", $settings['editor']); ! $formTags['VIEW_ANON_TEXT'] = $_SESSION['translate']->it("Allow anonymous to use [var1]", $settings['editor']); ! $formTags['VIEW_USER_TEXT'] = $_SESSION['translate']->it("Allow users to use [var1]", $settings['editor']); ! $formTags['REQUEST_MODE_TEXT'] = $_SESSION['translate']->it("Enable Request-Mode"); ! $formTags['PLUG_TABLE_TEXT'] = $_SESSION['translate']->it("Enable TableOperations-Plugin"); ! $formTags['PLUG_CONTEXT_TEXT'] = $_SESSION['translate']->it("Enable ContextMenu-Plugin"); ! $formTags['PLUG_CHARA_TEXT'] = $_SESSION['translate']->it("Enable CharacterMap-Plugin"); ! $formTags['PLUG_PARA_TEXT'] = $_SESSION['translate']->it("Enable EnterParagraphs-Plugin"); ! $formTags['PLUG_LIST_TEXT'] = $_SESSION['translate']->it("Enable ListType-Plugin"); ! $formTags['PLUG_FILE_TEXT'] = $_SESSION['translate']->it("Enable InsertFile-Plugin"); ! $formTags['PLUG_IMAGE_TEXT'] = $_SESSION['translate']->it("Enable ImageManager-Plugin"); ! // $formTags['PLUG_SPELL_TEXT'] = "n.a. yet ".$_SESSION['translate']->it("Enable SpellChecker-Plugin"); ! if($_REQUEST['func'] == "update") { ! if($GLOBALS['core']->sqlUpdate($settings, "mod_xwysiwyg_conf")) { ! $formTags['MESSAGE'] = "<span style=\"color:green;font-weight:bold\">".$_SESSION['translate']->it("Settings saved successfully")."</span><br />"; } ! else { $formTags['MESSAGE'] = "<span class=\"errortext\">".$_SESSION['translate']->it("There was a problem saving to the database")."</span><br />"; } ! } else { $formTags['MESSAGE'] = "<span style=\"color:blue;font-weight:bold\">".$_SESSION['translate']->it("Make your selections")."</span><br />"; } ! $formTags['EDITOR'] = $_SESSION['translate']->it("You use [var1] now", "<b>".$settings['editor']."</b>"); ! $formTags['TOGGLE'] = $this->toggleButton($settings['editor']); ! $this->content .= PHPWS_Template::processTemplate($formTags, "xwysiwyg", "ha_options.tpl"); ! $this->content .= $this->showArea(); ! } else { ! $this->content .= $_SESSION['translate']->it("Access was denied due to lack of proper permissions."); ! } // End of ADMINISTRATOR condition ! }// END FUNC showHAoptions ! ! ! function showFCKoptions($settings) { ! if ($_SESSION["OBJ_user"]->allow_access("xwysiwyg", "settings")) { ! if($_REQUEST['func'] == "update") { ! if(isset($_REQUEST['lang_activ'])) { $settings['lang_activ'] = 1; } ! else { $settings['lang_activ'] = 0; } ! if(isset($_REQUEST['view_anon'])) { $settings['view_anon'] = 1; } ! else { $settings['view_anon'] = 0; } ! if(isset($_REQUEST['view_user'])) { $settings['view_user'] = 1; } ! else { $settings['view_user'] = 0; } ! if(isset($_REQUEST['request_mode'])) { $settings['request_mode'] = 1; } ! else { $settings['request_mode'] = 0; } ! if(isset($_REQUEST['fck_skin'])) { $settings['fck_skin'] = PHPWS_Text::parseInput($_REQUEST["fck_skin"]); } ! else { $settings['fck_skin'] = "default"; } ! } ! ! $form = new EZform("options"); ! $form->add("module", "hidden", "xwysiwyg"); ! $form->add("action", "hidden", "admin"); ! $form->add("func", "hidden", "update"); ! ! $form->add("lang_activ", "checkbox"); ! $form->setMatch("lang_activ", $settings['lang_activ']); ! $form->add("view_anon", "checkbox"); ! $form->setMatch("view_anon", $settings['view_anon']); ! $form->add("view_user", "checkbox"); ! $form->setMatch("view_user", $settings['view_user']); ! $form->add("request_mode", "checkbox"); ! $form->setMatch("request_mode", $settings['request_mode']); ! $form->add("fck_skin", "dropbox", array("default"=>"default","office2003"=>"office2003","silver"=>"silver")); ! $form->setMatch("fck_skin", $settings['fck_skin']); ! $form->add("SUBMIT", "submit", $_SESSION['translate']->it("Save")); ! ! $formTags = $form->getTemplate(); ! $formTags['TITLE'] = $_SESSION['translate']->it("Settings"); //Version??? ! $formTags['LANG_ACTIV_TEXT'] = $_SESSION['translate']->it("Enable translation of [var1]", $settings['editor']); ! $formTags['VIEW_ANON_TEXT'] = $_SESSION['translate']->it("Allow anonymous to use [var1]", $settings['editor']); ! $formTags['VIEW_USER_TEXT'] = $_SESSION['translate']->it("Allow users to use [var1]", $settings['editor']); ! $formTags['REQUEST_MODE_TEXT'] = $_SESSION['translate']->it("Enable Request-Mode"); ! $formTags['FCK_SKIN_TEXT'] = $_SESSION['translate']->it("Select your Skin"); ! if($_REQUEST['func'] == "update") { ! if($GLOBALS['core']->sqlUpdate($settings, "mod_xwysiwyg_conf")) { ! $formTags['MESSAGE'] = "<span style=\"color:green;font-weight:bold\">".$_SESSION['translate']->it("Settings saved successfully")."</span><br />"; } ! else { $formTags['MESSAGE'] = "<span class=\"errortext\">".$_SESSION['translate']->it("There was a problem saving to the database")."</span><br />"; } ! } else { $formTags['MESSAGE'] = "<span style=\"color:blue;font-weight:bold\">".$_SESSION['translate']->it("Make your selections")."</span><br />"; } ! $formTags['EDITOR'] = $_SESSION['translate']->it("You use [var1] now", "<b>".$settings['editor']."</b>"); ! $formTags['TOGGLE'] = $this->toggleButton($settings['editor']); ! $this->content .= PHPWS_Template::processTemplate($formTags, "xwysiwyg", "fck_options.tpl"); ! $this->content .= $this->showArea(); ! } else { ! $this->content .= $_SESSION['translate']->it("Access was denied due to lack of proper permissions."); ! } // End of ADMINISTRATOR condition ! }// END FUNC showFCKoptions ! ! ! function showArea() { ! $query = "SELECT id, area FROM ".PHPWS_TBL_PREFIX."mod_xwysiwyg_areas ORDER BY 1"; ! $result = $GLOBALS['core']->query($query, FALSE, TRUE); ! $table[] = array("<b>ID</b>","<b>".$_SESSION['translate']->it("Area-Name")."</b>","<b>".$_SESSION['translate']->it("Action")."</b>"); ! if($result) { ! while($row = $result->fetchRow(DB_FETCHMODE_ASSOC)) { ! $id = $row['id']; ! $area = $row['area']; ! $delelink = $this->linkRef."&action=deleData&id=$id"; ! $deletext = $_SESSION['translate']->it("Delete"); ! $table[] = array($id,$area,"<a href=\"$delelink\">$deletext</a>"); ! } ! } ! $content .= "<hr /><div style=\"float:right\"> ! <form action=\"index.php\" method=\"post\" TITLE=\"new\"> ! <input type=\"Hidden\" name=\"module\" value=\"xwysiwyg\"> ! <input type=\"Hidden\" name=\"action\" value=\"addArea\"> ! <input type=\"Text\" name=\"area\" size=\"20\"> ! <input type=\"Submit\" value=\"".$_SESSION['translate']->it("New")."\"> ! </form></div>"; ! $content .= PHPWS_Text::ezTable($table,2,2,1,"",NULL,1,"top"); ! return $content; ! } ! ! function toggleButton($editor) { ! $content .= "<form action=\"index.php\" method=\"POST\" title=\"toggle\"> ! <input type=\"Hidden\" name=\"module\" value=\"xwysiwyg\"> ! <input type=\"Hidden\" name=\"action\" value=\"toggle\">"; ! if($editor=="htmlarea") ! $content .= "<input type=\"Hidden\" name=\"editor\" value=\"fck\">"; ! else ! $content .= "<input type=\"Hidden\" name=\"editor\" value=\"htmlarea\">"; ! $content .="<input type=\"Submit\" value=\"".$_SESSION['translate']->it("Change")."\"> ! </form>"; ! return $content; ! } ! ! function toggleEditor($editor) { ! $data['editor'] = $editor; ! return $GLOBALS['core']->sqlUpdate($data, "mod_xwysiwyg_conf"); ! } ! ! ! function addArea() { ! if ($_SESSION["OBJ_user"]->allow_access("xwysiwyg","settings")) {//Administrativ condition ! if($_REQUEST['area']) {$data['area'] = PHPWS_Text::parseInput($_REQUEST['area']); } ! else {return FALSE;} ! if($GLOBALS['core']->sqlInsert($data, "mod_xwysiwyg_areas", TRUE, FALSE)) { ! $this->content .= "<span style=\"color:green;font-weight:bold\">".$_SESSION['translate']->it("Saving was successfull")."</span><br />"; } ! else { $this->content .= "<span class=\"errortext\">".$_SESSION['translate']->it("There was a problem saving to the database")."</span><br />"; } ! $this->content .= "<br /><a href=\"./index.php\">".$_SESSION['translate']->it("Home")."</a>"; ! $this->content .= "<br /><a href=\"javascript:history.back()\">".$_SESSION['translate']->it("Back")."</a>"; ! ! } else { ! $this->content .= $_SESSION['translate']->it("Access was denied due to lack of proper permissions."); ! } // End of ADMINISTRATOR condition ! } ! ! ! function delArea($id) { ! if ($_SESSION["OBJ_user"]->allow_access("xwysiwyg","settings")) {//Administrativ condition ! if($GLOBALS['core']->sqlDelete("mod_xwysiwyg_areas","id",$id)) { ! $this->content .= "<span style=\"color:green;font-weight:bold\">".$_SESSION['translate']->it("Entry was successfully deleted from the database")."</span><br />"; } ! else { $this->content .= "<span class=\"errortext\">".$_SESSION['translate']->it("There was a problem deleting the entry")."</span><br />"; } ! $this->content .= "<br /><a href=\"".$this->linkRef."&action=admin\">".$_SESSION['translate']->it("Back")."</a>"; ! ! } else { ! $this->content .= $_SESSION['translate']->it("Access was denied due to lack of proper permissions."); ! } // End of ADMINISTRATOR condition ! } ! ! ! ! function action(){ //here we switch the actions ! $this->content = ""; ! $action = PHPWS_Text::parseInput($_REQUEST["action"]); //now we use core/Text.php to check the input ! $this->linkRef = "./index.php?module=xwysiwyg"; //i use this above, to shorten links... ! ! switch($action) { ! ! case "toggle": //this for action=admin ! $this->toggleEditor(PHPWS_Text::parseInput($_REQUEST["editor"])); ! ! case "admin": //this for action=admin ! $settings = PHPWS_xwysiwyg::readConfig(); ! if($settings['editor']=="htmlarea") ! $this->showHAoptions($settings); ! else if($settings['editor']=="fck") ! $this->showFCKoptions($settings); ! else ! $this->content .= $_SESSION['translate']->it("Error: No editor selected"); ! break; ! ! case "addArea": //this for action=data ! $this->addArea(); ! break; ! ! case "editData": //this for action=data ! $this->editData(PHPWS_Text::parseInput($_REQUEST["id"])); ! break; ! ! case "deleData": //this for action=data ! $this->delArea(PHPWS_Text::parseInput($_REQUEST["id"])); ! break; ! ! default: ! $this->content .= $_SESSION['translate']->it("no action given..."); ! break; ! } ! ! // send content to layout-module and forget the rest... ! $GLOBALS["CNT_xwysiwyg"]["title"] = $_SESSION['translate']->it("xwysiwyg - Manager"); ! $GLOBALS["CNT_xwysiwyg"]["content"] = $this->content; ! }//END action ! ! ! }//END class ?> \ No newline at end of file --- 1,502 ---- ! <?php ! require_once(PHPWS_SOURCE_DIR . "core/Text.php"); //this we use to parse input and for ezTable ! /** ! * Class file for xwysiwyg module ! * ! * @version $0.1 2004/08/29 yk$ ! * @author Yves Kuendig <ph...@NO...> ! * @module xwysiwyg ! * @moduletype mixed module / hack ! * @package phpwebsite = 0.9.3-4 ! */ ! ! class PHPWS_xwysiwyg { ! ! function isBox($area){ ! $settings = PHPWS_xwysiwyg::readConfig(); ! if((!$settings['view_anon'])AND(!$_SESSION["OBJ_user"]->isUser())) return FALSE; ! if((!$settings['view_user'])AND(!$_SESSION["OBJ_user"]->isDeity())) return FALSE; ! $query = "SELECT id FROM ".PHPWS_TBL_PREFIX."mod_xwysiwyg_areas WHERE area = '$area'"; ! $result = $GLOBALS['core']->quickFetch($query); ! if($result) return TRUE; ! else return FALSE; ! } ! ! ! function loadPlugins($settings) { ! $loadplugs = ""; ! if($settings['editor']=="htmlarea") { ! if($settings['plug_table']) $loadplugs .= " HTMLArea.loadPlugin(\"TableOperations\");\n"; ! if($settings['plug_context']) $loadplugs .= " HTMLArea.loadPlugin(\"ContextMenu\");\n"; ! if($settings['plug_chara']) $loadplugs .= " HTMLArea.loadPlugin(\"CharacterMap\");\n"; ! if($settings['plug_para']) $loadplugs .= " HTMLArea.loadPlugin(\"EnterParagraphs\");\n"; ! if($settings['plug_list']) $loadplugs .= " HTMLArea.loadPlugin(\"ListType\");\n"; ! if($settings['plug_file']) $loadplugs .= " HTMLArea.loadPlugin(\"InsertFile\");\n"; ! if($settings['plug_image']) $loadplugs .= " HTMLArea.loadPlugin(\"ImageManager\");\n"; ! if($settings['plug_spell']) $loadplugs .= " HTMLArea.loadPlugin(\"SpellChecker\");\n"; ! } else if($settings['editor']=="fck") { ! // no plugins yet ! } ! return $loadplugs; ! } ! ! function registerPlugins($settings,$index) { ! $regplugs = ""; ! if($settings['editor']=="htmlarea") { ! if($settings['plug_table']) $regplugs .= " editor$index.registerPlugin(TableOperations);\n"; ! if($settings['plug_context']) $regplugs .= " editor$index.registerPlugin(ContextMenu);\n"; ! if($settings['plug_chara']) $regplugs .= " editor$index.registerPlugin(CharacterMap);\n"; ! if($settings['plug_para']) $regplugs .= " editor$index.registerPlugin(EnterParagraphs);\n"; ! if($settings['plug_list']) $regplugs .= " editor$index.registerPlugin(ListType);\n"; ! if($settings['plug_file']) $regplugs .= " editor$index.registerPlugin(InsertFile);\n"; ! if($settings['plug_image']) $regplugs .= " editor$index.registerPlugin(ImageManager);\n"; ! if($settings['plug_spell']) $regplugs .= " editor$index.registerPlugin(SpellChecker);\n"; ! } else if($settings['editor']=="fck") { ! // no plugins yet ! } ! return $regplugs; ! } ! ! function setLanguage($settings){ ! if($settings['lang_activ']) $lang = $_SESSION['translate']->current_language; ! else $lang = "en"; ! return $lang; ! } ! ! function makeEditors($settings,$index,$regplugs,$area,$lang) { // HtmlArea - Editor - Section ! if($settings['editor']=="htmlarea") { ! if($index==1){ ! if($settings['request_mode']) { // 1. HtmlArea Editor in Request-Mode ! $editors .= " ! function initEditor$index() { ! var editor$index = new HTMLArea(\"$area\"); ! ".$regplugs." ! editor$index.config.height = \"300px\"; ! editor$index.generate(); ! return false; ! } ! "; ! } else { // 1. HtmlArea Editor in Normal-Mode ! $editors .= " ! var editor$index = new HTMLArea(\"$area\"); ! ".$regplugs." ! editor$index.config.height = \"300px\"; ! editor$index.generate(); ! "; ! } ! } else { ! if($settings['request_mode']) { // 2. HtmlArea Editor in Request-Mode ! $editors .= " ! function initEditor$index() { ! var editor$index = new HTMLArea(\"$area\"); ! ".$regplugs." ! editor$index.config.height = \"300px\"; ! editor$index.generate(); ! return false; ! } ! "; ! } else { // 2. HtmlArea Editor in Normal-Mode ! $editors .= " ! var editor$index = new HTMLArea(\"$area\"); ! ".$regplugs." ! editor$index.config.height = \"300px\"; ! setTimeout(function() { ! editor$index.generate(); ! }, 900); ! "; ! } ! } ! } else if($settings['editor']=="fck") { // FCKeditor - Editor - Section ! $skin = $settings['fck_skin']; ! ! if($settings['request_mode']) { // FCK Editor in Request-Mode ! $editors .= "\n function initEditor$index() {\n"; } ! ! $editors .= " ! var editor$index = new FCKeditor(\"$area\"); ! editor$index.BasePath = \"mod/xwysiwyg/_fck/\" ; ! editor$index.CheckBrowser = false ; ! editor$index.Config[\"AutoDetectLanguage\"] = false ; ! editor$index.Config[\"DefaultLanguage\"] = \"$lang\" ; ! editor$index.Config[\"SkinPath\"] = \"skins/$skin/\" ; ! ".$regplugs; ! if($index==1){ // Ending for 1. Editor ! $editors .= " ! editor$index.ReplaceTextarea();"; ! } else { // Ending for further Editors ! $editors .= " ! setTimeout(function() { ! editor$index.ReplaceTextarea(); ! }, 400);"; ! } ! if($settings['request_mode']) { // Close FCK Editor in Request-Mode ! $editors .= "\n return false;\n }\n"; } ! } ! return $editors; ! } ! ! function makeMain($settings,$editors,$loadplugs,$lang) { ! if($settings['editor']=="htmlarea") { ! // start cookie-code from chris ! setcookie("htmlarea_insfile_cookie_create", $_SESSION['OBJ_user']->allow_access("documents", "edit_settings")); ! setcookie("htmlarea_insfile_cookie_upload", $_SESSION['OBJ_user']->allow_access("documents", "add_document")); ! setcookie("htmlarea_insfile_cookie_rename", $_SESSION['OBJ_user']->allow_access("documents", "edit_document")); ! setcookie("htmlarea_insfile_cookie_delete", $_SESSION['OBJ_user']->allow_access("documents", "delete_document")); ! setcookie("htmlarea_insfile_cookie_move", $_SESSION['OBJ_user']->allow_access("documents", "move_document")); ! setcookie("pws_lang", $lang); ! setcookie("pws_source_dir", PHPWS_SOURCE_DIR); ! setcookie("pws_source_http", PHPWS_SOURCE_HTTP); ! // end cookie-code from chris ! /* nur hier als erinnerung ! <script type=\"text/javascript\" src=\"mod/xwysiwyg/_htmlarea/dialog.js\"></script> ! <script type=\"text/javascript\" src=\"mod/xwysiwyg/_htmlarea/popupwin.js\"></script> ! */ ! if($settings['request_mode']) { // HtmlArea-Main in Request-Mode ! $main = " ! <script type=\"text/javascript\"> ! _editor_lang = \"".$lang."\"; ! _editor_url = \"mod/xwysiwyg/_htmlarea/\"; ! </script> ! <!-- load the main HTMLArea files --> ! <script type=\"text/javascript\" src=\"mod/xwysiwyg/_htmlarea/htmlarea.js\"></script> ! <script type=\"text/javascript\"> ! ".$loadplugs." ! $editors ! </script> ! "; ! } else { // HtmlArea-Main in Normal-Mode ! $main = " ! <script type=\"text/javascript\"> ! _editor_lang = \"".$lang."\"; ! _editor_url = \"mod/xwysiwyg/_htmlarea/\"; ! </script> ! <!-- load the main HTMLArea files --> ! <script type=\"text/javascript\" src=\"mod/xwysiwyg/_htmlarea/htmlarea.js\"></script> ! <script type=\"text/javascript\"> ! ".$loadplugs." ! window.onload = function initEditor() { // create the editor(s) for the related textbox(es) ! $editors ! return false; ! } ! </script> ! "; ! } ! } else if($settings['editor']=="fck") { ! if($settings['request_mode']) { // FCK-Main in Request-Mode ! $main = " ! <!-- load the main FCKeditor files --> ! <script type=\"text/javascript\" src=\"mod/fckeditor/fck/fckeditor.js\"></script> ! <script type=\"text/javascript\"> ! ".$loadplugs." ! $editors ! </script> ! "; ! } else { // FCK-Main in Normal-Mode ! $main = " ! <!-- load the main FCKeditor files --> ! <script type=\"text/javascript\" src=\"mod/fckeditor/fck/fckeditor.js\"></script> ! <script type=\"text/javascript\"> ! ".$loadplugs." ! window.onload = function initEditor() { // create the editor(s) for the related textbox(es) ! $editors ! return false; ! } ! </script> ! "; ! } ! } ! return $main; ! } ! ! ! ! function makeJS() { ! if ($GLOBALS['xwysiwyg'] >= 1) { ! $areas = $GLOBALS['xwysiwyg_areas']; ! $settings = PHPWS_xwysiwyg::readConfig(); ! $loadplugs = PHPWS_xwysiwyg::loadPlugins($settings); //get Plugins to load ! $lang = PHPWS_xwysiwyg::setLanguage($settings); //get Language ! $editors = ""; ! $index = 1; ! foreach($areas as $area) { ! $regplugs = PHPWS_xwysiwyg::registerPlugins($settings,$index); //get Plugins to register ! $editors .= PHPWS_xwysiwyg::makeEditors($settings,$index,$regplugs,$area,$lang); //make Editors-js ! $index++; ! } ! $main = PHPWS_xwysiwyg::makeMain($settings,$editors,$loadplugs,$lang); ! } ! return $main; ! } ! ! ! ! ! function readConfig() { ! $sql = "SELECT * FROM ".PHPWS_TBL_PREFIX."mod_xwysiwyg_conf"; ! $settings = $GLOBALS['core']->quickFetch($sql); ! //$GLOBALS['xwysiwyg_settings'] = $settings; ! return $settings; ! }// END FUNC _read_config ! ! ! function showHAoptions($settings) { ! if ($_SESSION["OBJ_user"]->allow_access("xwysiwyg", "settings")) { ! if($_REQUEST['func'] == "update") { ! if(isset($_REQUEST['lang_activ'])) { $settings['lang_activ'] = 1; } ! else { $settings['lang_activ'] = 0; } ! if(isset($_REQUEST['view_anon'])) { $settings['view_anon'] = 1; } ! else { $settings['view_anon'] = 0; } ! if(isset($_REQUEST['view_user'])) { $settings['view_user'] = 1; } ! else { $settings['view_user'] = 0; } ! if(isset($_REQUEST['request_mode'])) { $settings['request_mode'] = 1; } ! else { $settings['request_mode'] = 0; } ! if(isset($_REQUEST['plug_table'])) { $settings['plug_table'] = 1; } ! else { $settings['plug_table'] = 0; } ! if(isset($_REQUEST['plug_context'])) { $settings['plug_context'] = 1; } ! else { $settings['plug_context'] = 0; } ! if(isset($_REQUEST['plug_chara'])) { $settings['plug_chara'] = 1; } ! else { $settings['plug_chara'] = 0; } ! if(isset($_REQUEST['plug_para'])) { $settings['plug_para'] = 1; } ! else { $settings['plug_para'] = 0; } ! if(isset($_REQUEST['plug_list'])) { $settings['plug_list'] = 1; } ! else { $settings['plug_list'] = 0; } ! if(isset($_REQUEST['plug_file'])) { $settings['plug_file'] = 1; } ! else { $settings['plug_file'] = 0; } ! if(isset($_REQUEST['plug_image'])) { $settings['plug_image'] = 1; } ! else { $settings['plug_image'] = 0; } ! if(isset($_REQUEST['plug_spell'])) { $settings['plug_spell'] = 1; } ! else { $settings['plug_spell'] = 0; } ! } ! ! $form = new EZform("options"); ! $form->add("module", "hidden", "xwysiwyg"); ! $form->add("action", "hidden", "admin"); ! $form->add("func", "hidden", "update"); ! ! $form->add("lang_activ", "checkbox"); ! $form->setMatch("lang_activ", $settings['lang_activ']); ! $form->add("view_anon", "checkbox"); ! $form->setMatch("view_anon", $settings['view_anon']); ! $form->add("view_user", "checkbox"); ! $form->setMatch("view_user", $settings['view_user']); ! $form->add("request_mode", "checkbox"); ! $form->setMatch("request_mode", $settings['request_mode']); ! $form->add("plug_table", "checkbox"); ! $form->setMatch("plug_table", $settings['plug_table']); ! $form->add("plug_context", "checkbox"); ! $form->setMatch("plug_context", $settings['plug_context']); ! $form->add("plug_chara", "checkbox"); ! $form->setMatch("plug_chara", $settings['plug_chara']); ! $form->add("plug_para", "checkbox"); ! $form->setMatch("plug_para", $settings['plug_para']); ! $form->add("plug_list", "checkbox"); ! $form->setMatch("plug_list", $settings['plug_list']); ! $form->add("plug_file", "checkbox"); ! $form->setMatch("plug_file", $settings['plug_file']); ! $form->add("plug_image", "checkbox"); ! $form->setMatch("plug_image", $settings['plug_image']); ! // $form->add("plug_spell", "checkbox"); ! // $form->setMatch("plug_spell", $settings['plug_spell']); ! $form->add("SUBMIT", "submit", $_SESSION['translate']->it("Save")); ! ! $formTags = $form->getTemplate(); ! $formTags['TITLE'] = $_SESSION['translate']->it("Settings"); //Version??? ! $formTags['LANG_ACTIV_TEXT'] = $_SESSION['translate']->it("Enable translation of [var1]", $settings['editor']); ! $formTags['VIEW_ANON_TEXT'] = $_SESSION['translate']->it("Allow anonymous to use [var1]", $settings['editor']); ! $formTags['VIEW_USER_TEXT'] = $_SESSION['translate']->it("Allow users to use [var1]", $settings['editor']); ! $formTags['REQUEST_MODE_TEXT'] = $_SESSION['translate']->it("Enable Request-Mode"); ! $formTags['PLUG_TABLE_TEXT'] = $_SESSION['translate']->it("Enable TableOperations-Plugin"); ! $formTags['PLUG_CONTEXT_TEXT'] = $_SESSION['translate']->it("Enable ContextMenu-Plugin"); ! $formTags['PLUG_CHARA_TEXT'] = $_SESSION['translate']->it("Enable CharacterMap-Plugin"); ! $formTags['PLUG_PARA_TEXT'] = $_SESSION['translate']->it("Enable EnterParagraphs-Plugin"); ! $formTags['PLUG_LIST_TEXT'] = $_SESSION['translate']->it("Enable ListType-Plugin"); ! $formTags['PLUG_FILE_TEXT'] = $_SESSION['translate']->it("Enable InsertFile-Plugin"); ! $formTags['PLUG_IMAGE_TEXT'] = $_SESSION['translate']->it("Enable ImageManager-Plugin"); ! // $formTags['PLUG_SPELL_TEXT'] = "n.a. yet ".$_SESSION['translate']->it("Enable SpellChecker-Plugin"); ! if($_REQUEST['func'] == "update") { ! if($GLOBALS['core']->sqlUpdate($settings, "mod_xwysiwyg_conf")) { ! $formTags['MESSAGE'] = "<span style=\"color:green;font-weight:bold\">".$_SESSION['translate']->it("Settings saved successfully")."</span><br />"; } ! else { $formTags['MESSAGE'] = "<span class=\"errortext\">".$_SESSION['translate']->it("There was a problem saving to the database")."</span><br />"; } ! } else { $formTags['MESSAGE'] = "<span style=\"color:blue;font-weight:bold\">".$_SESSION['translate']->it("Make your selections")."</span><br />"; } ! $formTags['EDITOR'] = $_SESSION['translate']->it("You use [var1] now", "<b>".$settings['editor']."</b>"); ! $formTags['TOGGLE'] = $this->toggleButton($settings['editor']); ! $this->content .= PHPWS_Template::processTemplate($formTags, "xwysiwyg", "ha_options.tpl"); ! $this->content .= $this->showArea(); ! } else { ! $this->content .= $_SESSION['translate']->it("Access was denied due to lack of proper permissions."); ! } // End of ADMINISTRATOR condition ! }// END FUNC showHAoptions ! ! ! function showFCKoptions($settings) { ! if ($_SESSION["OBJ_user"]->allow_access("xwysiwyg", "settings")) { ! if($_REQUEST['func'] == "update") { ! if(isset($_REQUEST['lang_activ'])) { $settings['lang_activ'] = 1; } ! else { $settings['lang_activ'] = 0; } ! if(isset($_REQUEST['view_anon'])) { $settings['view_anon'] = 1; } ! else { $settings['view_anon'] = 0; } ! if(isset($_REQUEST['view_user'])) { $settings['view_user'] = 1; } ! else { $settings['view_user'] = 0; } ! if(isset($_REQUEST['request_mode'])) { $settings['request_mode'] = 1; } ! else { $settings['request_mode'] = 0; } ! if(isset($_REQUEST['fck_skin'])) { $settings['fck_skin'] = PHPWS_Text::parseInput($_REQUEST["fck_skin"]); } ! else { $settings['fck_skin'] = "default"; } ! } ! ! $form = new EZform("options"); ! $form->add("module", "hidden", "xwysiwyg"); ! $form->add("action", "hidden", "admin"); ! $form->add("func", "hidden", "update"); ! ! $form->add("lang_activ", "checkbox"); ! $form->setMatch("lang_activ", $settings['lang_activ']); ! $form->add("view_anon", "checkbox"); ! $form->setMatch("view_anon", $settings['view_anon']); ! $form->add("view_user", "checkbox"); ! $form->setMatch("view_user", $settings['view_user']); ! $form->add("request_mode", "checkbox"); ! $form->setMatch("request_mode", $settings['request_mode']); ! $form->add("fck_skin", "dropbox", array("default"=>"default","office2003"=>"office2003","silver"=>"silver")); ! $form->setMatch("fck_skin", $settings['fck_skin']); ! $form->add("SUBMIT", "submit", $_SESSION['translate']->it("Save")); ! ! $formTags = $form->getTemplate(); ! $formTags['TITLE'] = $_SESSION['translate']->it("Settings"); //Version??? ! $formTags['LANG_ACTIV_TEXT'] = $_SESSION['translate']->it("Enable translation of [var1]", $settings['editor']); ! $formTags['VIEW_ANON_TEXT'] = $_SESSION['translate']->it("Allow anonymous to use [var1]", $settings['editor']); ! $formTags['VIEW_USER_TEXT'] = $_SESSION['translate']->it("Allow users to use [var1]", $settings['editor']); ! $formTags['REQUEST_MODE_TEXT'] = $_SESSION['translate']->it("Enable Request-Mode"); ! $formTags['FCK_SKIN_TEXT'] = $_SESSION['translate']->it("Select your Skin"); ! if($_REQUEST['func'] == "update") { ! if($GLOBALS['core']->sqlUpdate($settings, "mod_xwysiwyg_conf")) { ! $formTags['MESSAGE'] = "<span style=\"color:green;font-weight:bold\">".$_SESSION['translate']->it("Settings saved successfully")."</span><br />"; } ! else { $formTags['MESSAGE'] = "<span class=\"errortext\">".$_SESSION['translate']->it("There was a problem saving to the database")."</span><br />"; } ! } else { $formTags['MESSAGE'] = "<span style=\"color:blue;font-weight:bold\">".$_SESSION['translate']->it("Make your selections")."</span><br />"; } ! $formTags['EDITOR'] = $_SESSION['translate']->it("You use [var1] now", "<b>".$settings['editor']."</b>"); ! $formTags['TOGGLE'] = $this->toggleButton($settings['editor']); ! $this->content .= PHPWS_Template::processTemplate($formTags, "xwysiwyg", "fck_options.tpl"); ! $this->content .= $this->showArea(); ! } else { ! $this->content .= $_SESSION['translate']->it("Access was denied due to lack of proper permissions."); ! } // End of ADMINISTRATOR condition ! }// END FUNC showFCKoptions ! ! ! function showArea() { ! $query = "SELECT id, area FROM ".PHPWS_TBL_PREFIX."mod_xwysiwyg_areas ORDER BY 1"; ! $result = $GLOBALS['core']->query($query, FALSE, TRUE); ! $table[] = array("<b>ID</b>","<b>".$_SESSION['translate']->it("Area-Name")."</b>","<b>".$_SESSION['translate']->it("Action")."</b>"); ! if($result) { ! while($row = $result->fetchRow(DB_FETCHMODE_ASSOC)) { ! $id = $row['id']; ! $area = $row['area']; ! $delelink = $this->linkRef."&action=deleData&id=$id"; ! $deletext = $_SESSION['translate']->it("Delete"); ! $table[] = array($id,$area,"<a href=\"$delelink\">$deletext</a>"); ! } ! } ! $content .= "<hr /><div style=\"float:right\"> ! <form action=\"index.php\" method=\"post\" TITLE=\"new\"> ! <input type=\"Hidden\" name=\"module\" value=\"xwysiwyg\"> ! <input type=\"Hidden\" name=\"action\" value=\"addArea\"> ! <input type=\"Text\" name=\"area\" size=\"20\"> ! <input type=\"Submit\" value=\"".$_SESSION['translate']->it("New")."\"> ! </form></div>"; ! $content .= PHPWS_Text::ezTable($table,2,2,1,"",NULL,1,"top"); ! return $content; ! } ! ! function toggleButton($editor) { ! $content .= "<form action=\"index.php\" method=\"POST\" title=\"toggle\"> ! <input type=\"Hidden\" name=\"module\" value=\"xwysiwyg\"> ! <input type=\"Hidden\" name=\"action\" value=\"toggle\">"; ! if($editor=="htmlarea") ! $content .= "<input type=\"Hidden\" name=\"editor\" value=\"fck\">"; ! else ! $content .= "<input type=\"Hidden\" name=\"editor\" value=\"htmlarea\">"; ! $content .="<input type=\"Submit\" value=\"".$_SESSION['translate']->it("Change")."\"> ! </form>"; ! return $content; ! } ! ! function toggleEditor($editor) { ! $data['editor'] = $editor; ! return $GLOBALS['core']->sqlUpdate($data, "mod_xwysiwyg_conf"); ! } ! ! ! function addArea() { ! if ($_SESSION["OBJ_user"]->allow_access("xwysiwyg","settings")) {//Administrativ condition ! if($_REQUEST['area']) {$data['area'] = PHPWS_Text::parseInput($_REQUEST['area']); } ! else {return FALSE;} ! if($GLOBALS['core']->sqlInsert($data, "mod_xwysiwyg_areas", TRUE, FALSE)) { ! $this->content .= "<span style=\"color:green;font-weight:bold\">".$_SESSION['translate']->it("Saving was successfull")."</span><br />"; } ! else { $this->content .= "<span class=\"errortext\">".$_SESSION['translate']->it("There was a problem saving to the database")."</span><br />"; } ! $this->content .= "<br /><a href=\"./index.php\">".$_SESSION['translate']->it("Home")."</a>"; ! $this->content .= "<br /><a href=\"javascript:history.back()\">".$_SESSION['translate']->it("Back")."</a>"; ! ! } else { ! $this->content .= $_SESSION['translate']->it("Access was denied due to lack of proper permissions."); ! } // End of ADMINISTRATOR condition ! } ! ! ! function delArea($id) { ! if ($_SESSION["OBJ_user"]->allow_access("xwysiwyg","settings")) {//Administrativ condition ! if($GLOBALS['core']->sqlDelete("mod_xwysiwyg_areas","id",$id)) { ! $this->content .= "<span style=\"color:green;font-weight:bold\">".$_SESSION['translate']->it("Entry was successfully deleted from the database")."</span><br />"; } ! else { $this->content .= "<span class=\"errortext\">".$_SESSION['translate']->it("There was a problem deleting the entry")."</span><br />"; } ! $this->content .= "<br /><a href=\"".$this->linkRef."&action=admin\">".$_SESSION['translate']->it("Back")."</a>"; ! ! } else { ! $this->content .= $_SESSION['translate']->it("Access was denied due to lack of proper permissions."); ! } // End of ADMINISTRATOR condition ! } ! ! ! ! function action(){ //here we switch the actions ! $this->content = ""; ! $action = PHPWS_Text::parseInput($_REQUEST["action"]); //now we use core/Text.php to check the input ! $this->linkRef = "./index.php?module=xwysiwyg"; //i use this above, to shorten links... ! ! switch($action) { ! ! case "toggle": //this for action=admin ! $this->toggleEditor(PHPWS_Text::parseInput($_REQUEST["editor"])); ! ! case "admin": //this for action=admin ! $settings = PHPWS_xwysiwyg::readConfig(); ! if($settings['editor']=="htmlarea") ! $this->showHAoptions($settings); ! else if($settings['editor']=="fck") ! $this->showFCKoptions($settings); ! else ! $this->content .= $_SESSION['translate']->it("Error: No editor selected"); ! break; ! ! case "addArea": //this for action=data ! $this->addArea(); ! break; ! ! case "editData": //this for action=data ! $this->editData(PHPWS_Text::parseInput($_REQUEST["id"])); ! break; ! ! case "deleData": //this for action=data ! $this->delArea(PHPWS_Text::parseInput($_REQUEST["id"])); ! break; ! ! default: ! $this->content .= $_SESSION['translate']->it("no action given..."); ! break; ! } ! ! // send content to layout-module and forget the rest... ! $GLOBALS["CNT_xwysiwyg"]["title"] = $_SESSION['translate']->it("xwysiwyg - Manager"); ! $GLOBALS["CNT_xwysiwyg"]["content"] = $this->content; ! }//END action ! ! ! }//END class ?> \ No newline at end of file Index: phpSniff.class.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/class/phpSniff.class.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** phpSniff.class.php 25 Oct 2004 18:11:44 -0000 1.1.1.1 --- phpSniff.class.php 26 Oct 2004 07:31:52 -0000 1.2 *************** *** 1,197 **** ! <?php ! /******************************************************************************* ! $Id$ ! ! phpSniff: HTTP_USER_AGENT Client Sniffer for PHP ! Copyright (C) 2001 Roger Raymond ~ eps...@us... ! ! This library is free software; you can redistribute it and/or ! modify it under the terms of the GNU Lesser General Public ! License as published by the Free Software Foundation; either ! version 2.1 of the License, or (at your option) any later version. ! ! This library 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 ! Lesser General Public License for more details. ! ! You should have received a copy of the GNU Lesser General Public ! License along with this library; if not, write to the Free Software ! Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ! *******************************************************************************/ ! require_once('phpSniff.core.php'); ! ! //=============================================================== ! // the following defines are used to create the short ! // browser name used throughout the script. ! // change these to suit your needs ! //=============================================================== ! ! class phpSniff extends phpSniff_core ! { var $_version = '2.1.3'; ! /** ! * Configuration ! * ! * $_temp_file_path ! * default : /tmp/ ! * desc : directory writable by the server to store cookie check files. ! * : trailing slash is needed. only used if you use the check cookie routine ! * ! * $_check_cookies ! * default : null ! * desc : Allow for the script to redirect the browser in order ! * : to check for cookies. In order for this to work, this ! * : class must be instantiated before any headers are sent. ! * ! * $_default_language ! * default : en-us ! * desc : language to report as if no languages are found ! * ! * $_allow_masquerading ! * default : null ! * desc : Allow for browser to Masquerade as another. ! * : (ie: Opera identifies as MSIE 5.0) ! * ! * $_browsers ! * desc : 2D Array of browsers we wish to search for ! * : in key => value pairs. ! * : key = browser to search for [as in HTTP_USER_AGENT] ! * : value = value to return as 'browser' property ! * ! * $_javascript_versions ! * desc : 2D Array of javascript version supported by which browser ! * : in key => value pairs. ! * : key = javascript version ! * : value = search parameter for browsers that support the ! * : javascript version listed in the key (comma delimited) ! * : note: the search parameters rely on the values ! * : set in the $_browsers array ! * ! * $_browser_features ! * desc : 2D Array of browser features supported by which browser ! * : in key => value pairs. ! * : key = feature ! * : value = search parameter for browsers that support the ! * : feature listed in the key (comma delimited) ! * : note: the search parameters rely on the values ! * : set in the $_browsers array ! * ! * $_browser_quirks ! * desc : 2D Array of browser quirks present in which browser ! * : in key => value pairs. ! * : key = quirk ! * : value = search parameter for browsers that feature the ! * : quirk listed in the key (comma delimited) ! * : note: the search parameters rely on the values ! * : set in the $_browsers array ! **/ ! ! var $_temp_file_path = '/tmp/'; // with trailing slash ! var $_check_cookies = NULL; ! var $_default_language = 'en-us'; ! var $_allow_masquerading = NULL; ! var $_php_version = ''; ! ! var $_browsers = array( ! 'microsoft internet explorer' => 'IE', ! 'msie' => 'IE', ! 'netscape6' => 'NS', ! 'netscape' => 'NS', ! 'galeon' => 'GA', ! 'phoenix' => 'PX', ! 'mozilla firebird' => 'FB', ! 'firebird' => 'FB', ! 'chimera' => 'CH', ! 'camino' => 'CA', ! 'safari' => 'SF', ! 'k-meleon' => 'KM', ! 'mozilla' => 'MZ', ! 'opera' => 'OP', ! 'konqueror' => 'KQ', ! 'icab' => 'IC', ! 'lynx' => 'LX', ! 'links' => 'LI', ! 'ncsa mosaic' => 'MO', ! 'amaya' => 'AM', ! 'omniweb' => 'OW', ! 'hotjava' => 'HJ', ! 'browsex' => 'BX', ! 'amigavoyager' => 'AV', ! 'amiga-aweb' => 'AW', ! 'ibrowse' => 'IB' ! ); ! ! var $_javascript_versions = array( ! '1.5' => 'NS5+,MZ,PX,FB,GA,CH,CA,SF,KQ3+,KM', // browsers that support JavaScript 1.5 ! '1.4' => '', ! '1.3' => 'NS4.05+,OP5+,IE5+', ! '1.2' => 'NS4+,IE4+', ! '1.1' => 'NS3+,OP,KQ', ! '1.0' => 'NS2+,IE3+', ! '0' => 'LI,LX,HJ' ! ); ! ! var $_browser_features = array( ! /** ! * the following are true by default ! * (see phpSniff.core.php $_feature_set array) ! * browsers listed here will be set to false ! **/ ! 'html' => '', ! 'images' => 'LI,LX', ! 'frames' => 'LI,LX', ! 'tables' => '', ! 'java' => 'OP3,LI,LX,NS1,MO,IE1,IE2', ! 'plugins' => 'IE1,IE2,LI,LX', ! /** ! * the following are false by default ! * (see phpSniff.core.php $_feature_set array) ! * browsers listed here will be set to true ! **/ ! 'css2' => 'NS5+,IE5+,MZ,PX,FB,CH,CA,SF,GA,KQ3+,OP7+,KM', ! 'css1' => 'NS4+,IE4+,MZ,PX,FB,CH,CA,SF,GA,KQ,OP7+,KM', ! 'iframes' => 'IE3+,NS5+,MZ,PX,FB,CH,CA,SF,GA,KQ,OP7+,KM', ! 'xml' => 'IE5+,NS5+,MZ,PX,FB,CH,CA,SF,GA,KQ,OP7+,KM', ! 'dom' => 'IE5+,NS5+,MZ,PX,FB,CH,CA,SF,GA,KQ,OP7+,KM', ! 'hdml' => '', ! 'wml' => '' ! ); ! ! var $_browser_quirks = array( ! 'must_cache_forms' => 'NS,MZ,FB,PX', ! 'avoid_popup_windows' => 'IE3,LI,LX', ! 'cache_ssl_downloads' => 'IE', ! 'break_disposition_header' => 'IE5.5', ! 'empty_file_input_value' => 'KQ', ! 'scrollbar_in_way' => 'IE6' ! ); ! ! function phpSniff($UA='',$settings = true) ! { // populate the HTTP_USER_AGENT string ! // 20020425 :: rraymond ! // routine for easier configuration of the client at runtime ! if(is_array($settings)) { ! $run = true; ! extract($settings); ! $this->_check_cookies = $check_cookies; ! $this->_default_language = $default_language; ! $this->_allow_masquerading = $allow_masquerading; ! } else { ! // for backwards compatibility with 2.0.x series ! $run = $settings; ! } ! ! // 20020425 :: besfred ! if(empty($UA)) $UA = getenv('HTTP_USER_AGENT'); ! if(empty($UA)) { ! $pv = explode(".", PHP_VERSION); ! $UA = ( $pv[0] > 3 && $pv[1] > 0 ) ? $_SERVER['HTTP_USER_AGENT'] : $HTTP_SERVER_VARS['HTTP_USER_AGENT']; ! } ! // 20020910 :: rraymond ! if(empty($UA)) return false; ! ! $this->_set_browser('ua',$UA); ! if($run) $this->init(); ! } ! } ?> \ No newline at end of file --- 1,197 ---- ! <?php ! /******************************************************************************* ! $Id$ ! ! phpSniff: HTTP_USER_AGENT Client Sniffer for PHP ! Copyright (C) 2001 Roger Raymond ~ eps...@us... ! ! This library is free software; you can redistribute it and/or ! modify it under the terms of the GNU Lesser General Public ! License as published by the Free Software Foundation; either ! version 2.1 of the License, or (at your option) any later version. ! ! This library 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 ! Lesser General Public License for more details. ! ! You should have received a copy of the GNU Lesser General Public ! License along with this library; if not, write to the Free Software ! Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ! *******************************************************************************/ ! require_once('phpSniff.core.php'); ! ! //=============================================================== ! // the following defines are used to create the short ! // browser name used throughout the script. ! // change these to suit your needs ! //=============================================================== ! ! class phpSniff extends phpSniff_core ! { var $_version = '2.1.3'; ! /** ! * Configuration ! * ! * $_temp_file_path ! * default : /tmp/ ! * desc : directory writable by the server to store cookie check files. ! * : trailing slash is needed. only used if you use the check cookie routine ! * ! * $_check_cookies ! * default : null ! * desc : Allow for the script to redirect the browser in order ! * : to check for cookies. In order for this to work, this ! * : class must be instantiated before any headers are sent. ! * ! * $_default_language ! * default : en-us ! * desc : language to report as if no languages are found ! * ! * $_allow_masquerading ! * default : null ! * desc : Allow for browser to Masquerade as another. ! * : (ie: Opera identifies as MSIE 5.0) ! * ! * $_browsers ! * desc : 2D Array of browsers we wish to search for ! * : in key => value pairs. ! * : key = browser to search for [as in HTTP_USER_AGENT] ! * : value = value to return as 'browser' property ! * ! * $_javascript_versions ! * desc : 2D Array of javascript version supported by which browser ! * : in key => value pairs. ! * : key = javascript version ! * : value = search parameter for browsers that support the ! * : javascript version listed in the key (comma delimited) ! * : note: the search parameters rely on the values ! * : set in the $_browsers array ! * ! * $_browser_features ! * desc : 2D Array of browser features supported by which browser ! * : in key => value pairs. ! * : key = feature ! * : value = search parameter for browsers that support the ! * : feature listed in the key (comma delimited) ! * : note: the search parameters rely on the values ! * : set in the $_browsers array ! * ! * $_browser_quirks ! * desc : 2D Array of browser quirks present in which browser ! * : in key => value pairs. ! * : key = quirk ! * : value = search parameter for browsers that feature the ! * : quirk listed in the key (comma delimited) ! * : note: the search parameters rely on the values ! * : set in the $_browsers array ! **/ ! ! var $_temp_file_path = '/tmp/'; // with trailing slash ! var $_check_cookies = NULL; ! var $_default_language = 'en-us'; ! var $_allow_masquerading = NULL; ! var $_php_version = ''; ! ! var $_browsers = array( ! 'microsoft internet explorer' => 'IE', ! 'msie' => 'IE', ! 'netscape6' => 'NS', ! 'netscape' => 'NS', ! 'galeon' => 'GA', ! 'phoenix' => 'PX', ! 'mozilla firebird' => 'FB', ! 'firebird' => 'FB', ! 'chimera' => 'CH', ! 'camino' => 'CA', ! 'safari' =... [truncated message content] |
From: Yves K. <yku...@us...> - 2004-10-26 07:31:11
|
Update of /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/boost In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30423/xwysiwyg/mod/xwysiwyg/boost Modified Files: install.php install.sql uninstall.php uninstall.sql Log Message: saved in unix-format Index: install.sql =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/boost/install.sql,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** install.sql 25 Oct 2004 18:11:41 -0000 1.1.1.1 --- install.sql 26 Oct 2004 07:31:00 -0000 1.2 *************** *** 1,23 **** ! CREATE TABLE mod_xwysiwyg_conf ( ! editor varchar(10) NOT NULL default 'htmlarea', ! lang_activ smallint(1) NOT NULL default '1', ! view_anon smallint(1) NOT NULL default '1', ! view_user smallint(1) NOT NULL default '1', ! request_mode smallint(1) NOT NULL default '0', ! plug_table smallint(1) NOT NULL default '0', ! plug_context smallint(1) NOT NULL default '0', ! plug_chara smallint(1) NOT NULL default '0', ! plug_para smallint(1) NOT NULL default '0', ! plug_list smallint(1) NOT NULL default '0', ! plug_file smallint(1) NOT NULL default '0', ! plug_image smallint(1) NOT NULL default '0', ! plug_spell smallint(1) NOT NULL default '0', ! fck_skin varchar(20) NOT NULL default 'default' ! ); ! ! CREATE TABLE mod_xwysiwyg_areas ( ! id int PRIMARY KEY, ! area varchar(50) NOT NULL default '' ! ); ! ! INSERT INTO mod_xwysiwyg_conf VALUES ('htmlarea','1','1','1', '0', '0','0','0','0','0','0','0','0','default'); --- 1,23 ---- ! CREATE TABLE mod_xwysiwyg_conf ( ! editor varchar(10) NOT NULL default 'htmlarea', ! lang_activ smallint(1) NOT NULL default '1', ! view_anon smallint(1) NOT NULL default '1', ! view_user smallint(1) NOT NULL default '1', ! request_mode smallint(1) NOT NULL default '0', ! plug_table smallint(1) NOT NULL default '0', ! plug_context smallint(1) NOT NULL default '0', ! plug_chara smallint(1) NOT NULL default '0', ! plug_para smallint(1) NOT NULL default '0', ! plug_list smallint(1) NOT NULL default '0', ! plug_file smallint(1) NOT NULL default '0', ! plug_image smallint(1) NOT NULL default '0', ! plug_spell smallint(1) NOT NULL default '0', ! fck_skin varchar(20) NOT NULL default 'default' ! ); ! ! CREATE TABLE mod_xwysiwyg_areas ( ! id int PRIMARY KEY, ! area varchar(50) NOT NULL default '' ! ); ! ! INSERT INTO mod_xwysiwyg_conf VALUES ('htmlarea','1','1','1', '0', '0','0','0','0','0','0','0','0','default'); Index: uninstall.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/boost/uninstall.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** uninstall.php 25 Oct 2004 18:11:41 -0000 1.1.1.1 --- uninstall.php 26 Oct 2004 07:31:00 -0000 1.2 *************** *** 1,24 **** ! <?php ! /** ! * This is the xwysiwyg-version of an uninstall file for boost. Edit it to ! * be used with your module. ! * ! * $Id$ ! */ ! ! /* Make sure the user is a deity before running this script */ ! if(!$_SESSION["OBJ_user"]->isDeity()){ ! header("location:index.php"); ! exit(); ! } ! ! /* Import the uninstall database file and dump the result into the status variable */ ! ! if($status = $GLOBALS["core"]->sqlImport(PHPWS_SOURCE_DIR . "mod/xwysiwyg/boost/uninstall.sql", 1, 1)) { ! $content .= "All xwysiwyg tables successfully removed!<br /><br />"; ! } else { ! $content .= "There was a problem accessing the database.<br /><br />"; ! } ! ! $status = 1; // instead ?> \ No newline at end of file --- 1,24 ---- ! <?php ! /** ! * This is the xwysiwyg-version of an uninstall file for boost. Edit it to ! * be used with your module. ! * ! * $Id$ ! */ ! ! /* Make sure the user is a deity before running this script */ ! if(!$_SESSION["OBJ_user"]->isDeity()){ ! header("location:index.php"); ! exit(); ! } ! ! /* Import the uninstall database file and dump the result into the status variable */ ! ! if($status = $GLOBALS["core"]->sqlImport(PHPWS_SOURCE_DIR . "mod/xwysiwyg/boost/uninstall.sql", 1, 1)) { ! $content .= "All xwysiwyg tables successfully removed!<br /><br />"; ! } else { ! $content .= "There was a problem accessing the database.<br /><br />"; ! } ! ! $status = 1; // instead ?> \ No newline at end of file Index: install.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/boost/install.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** install.php 25 Oct 2004 18:11:41 -0000 1.1.1.1 --- install.php 26 Oct 2004 07:31:00 -0000 1.2 *************** *** 1,45 **** ! <?php ! /** ! * This is a xwysiwyg of an installation file for boost. Edit it to be ! * used with your module. ! * ! * $Id$ ! */ ! ! /* Make sure the user is a deity before running this script */ ! if (!$_SESSION["OBJ_user"]->isDeity()){ ! header("location:index.php"); ! exit(); ! } ! ! $status = 0; ! if($GLOBALS["core"]->version < "0.9.3-4") { ! $content .= "This module requires a phpWebSite core version of 0.9.3-4 or greater to install.<br />"; ! $content .= "<br />You are currently using phpWebSite core version " . $GLOBALS["core"]->version . ".<br />"; ! return; ! } ! ! /* Import installation database and dump result into status variable */ ! if($status = $GLOBALS["core"]->sqlImport(PHPWS_SOURCE_DIR . "mod/xwysiwyg/boost/install.sql", TRUE)) { ! $content .= "All xwysiwyg tables successfully written.<br /><br />"; ! $status = 1; ! } else { ! $content .= "There was a problem writing to the database!<br /><br />"; ! return; ! } ! ! /* Create images directory */ ! if(!is_dir("{$GLOBALS['core']->home_dir}images/javascript/wysiwyg/")) ! PHPWS_File::makeDir($GLOBALS['core']->home_dir . "images/javascript/wysiwyg/"); ! ! if(is_dir("{$GLOBALS['core']->home_dir}images/javascript/wysiwyg/")) { ! PHPWS_File::fileCopy(PHPWS_SOURCE_DIR . "mod/xwysiwyg/img/xw.gif", $GLOBALS['core']->home_dir . "images/javascript/wysiwyg/", "xw.gif", false, false); ! $status = 1; ! } else { ! $content .= "There was a problem copying the icons!<br /><br />"; ! return; ! } ! ! $status = 1; //instead ! ! ?> --- 1,45 ---- ! <?php ! /** ! * This is a xwysiwyg of an installation file for boost. Edit it to be ! * used with your module. ! * ! * $Id$ ! */ ! ! /* Make sure the user is a deity before running this script */ ! if (!$_SESSION["OBJ_user"]->isDeity()){ ! header("location:index.php"); ! exit(); ! } ! ! $status = 0; ! if($GLOBALS["core"]->version < "0.9.3-4") { ! $content .= "This module requires a phpWebSite core version of 0.9.3-4 or greater to install.<br />"; ! $content .= "<br />You are currently using phpWebSite core version " . $GLOBALS["core"]->version . ".<br />"; ! return; ! } ! ! /* Import installation database and dump result into status variable */ ! if($status = $GLOBALS["core"]->sqlImport(PHPWS_SOURCE_DIR . "mod/xwysiwyg/boost/install.sql", TRUE)) { ! $content .= "All xwysiwyg tables successfully written.<br /><br />"; ! $status = 1; ! } else { ! $content .= "There was a problem writing to the database!<br /><br />"; ! return; ! } ! ! /* Create images directory */ ! if(!is_dir("{$GLOBALS['core']->home_dir}images/javascript/wysiwyg/")) ! PHPWS_File::makeDir($GLOBALS['core']->home_dir . "images/javascript/wysiwyg/"); ! ! if(is_dir("{$GLOBALS['core']->home_dir}images/javascript/wysiwyg/")) { ! PHPWS_File::fileCopy(PHPWS_SOURCE_DIR . "mod/xwysiwyg/img/xw.gif", $GLOBALS['core']->home_dir . "images/javascript/wysiwyg/", "xw.gif", false, false); ! $status = 1; ! } else { ! $content .= "There was a problem copying the icons!<br /><br />"; ! return; ! } ! ! $status = 1; //instead ! ! ?> Index: uninstall.sql =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/boost/uninstall.sql,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** uninstall.sql 25 Oct 2004 18:11:41 -0000 1.1.1.1 --- uninstall.sql 26 Oct 2004 07:31:00 -0000 1.2 *************** *** 1,2 **** ! DROP TABLE mod_xwysiwyg_conf; ! DROP TABLE mod_xwysiwyg_areas; --- 1,2 ---- ! DROP TABLE mod_xwysiwyg_conf; ! DROP TABLE mod_xwysiwyg_areas; |
From: Yves K. <yku...@us...> - 2004-10-26 07:29:44
|
Update of /cvsroot/phpwebsite-comm/modules/xwysiwyg/themes/Default In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30073/xwysiwyg/themes/Default Modified Files: theme.php theme.tpl Log Message: saved in unix-format; some changes to have less code in these files Index: theme.tpl =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/themes/Default/theme.tpl,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** theme.tpl 25 Oct 2004 18:17:33 -0000 1.1.1.1 --- theme.tpl 26 Oct 2004 07:29:35 -0000 1.2 *************** *** 1,47 **** ! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ! <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> ! <head> ! <title>{TITLE}</title> ! {METATAGS} ! {XWYSIWYG} ! {JAVASCRIPT} ! {STYLE} ! </head> ! <body{XWYSIWYG_BODY}> ! ! <a href="."> ! <img src="{THEME_DIRECTORY}images/poweredby.jpg" alt="Fallout" border="0" /> ! </a> ! ! <table border="0" cellpadding="5" cellspacing="0" width="100%" summary="Layout table"> ! <tr> ! <!-- BEGIN LEFTSIDE --> ! <td width="15%" valign="top" align="center"> ! {LEFT_COL_TOP} ! {LEFT_COL_MID} ! {LEFT_COL_BOTTOM} ! </td> ! <!-- END LEFTSIDE --> ! <td valign="top" width="70%"> ! {TOP} ! {BODY} ! {BOTTOM} ! </td> ! <!-- BEGIN RIGHTSIDE --> ! <td width="15%" valign="top" align="center"> ! {RIGHT_COL_TOP} ! {RIGHT_COL_MID} ! {RIGHT_COL_BOTTOM} ! </td> ! <!-- END RIGHTSIDE --> ! </tr> ! </table> ! ! <div class="smalltext" style="text-align : center"> ! Copyright © Appalachian State University 2002 - 2004<br /> ! This Site is powered by phpWebSite © The Web Technology Group, Appalachian State University<br /> ! phpWebSite is licensed under the <a href="http://www.gnu.org/copyleft/lesser.html">GNU LGPL</a> ! </div><br /> ! {EXAMPLE} ! </body> ! </html> --- 1,47 ---- ! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ! <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> ! <head> ! <title>{TITLE}</title> ! {METATAGS} ! {XWYSIWYG} ! {JAVASCRIPT} ! {STYLE} ! </head> ! <body> ! ! <a href="."> ! <img src="{THEME_DIRECTORY}images/poweredby.jpg" alt="Fallout" border="0" /> ! </a> ! ! <table border="0" cellpadding="5" cellspacing="0" width="100%" summary="Layout table"> ! <tr> ! <!-- BEGIN LEFTSIDE --> ! <td width="15%" valign="top" align="center"> ! {LEFT_COL_TOP} ! {LEFT_COL_MID} ! {LEFT_COL_BOTTOM} ! </td> ! <!-- END LEFTSIDE --> ! <td valign="top" width="70%"> ! {TOP} ! {BODY} ! {BOTTOM} ! </td> ! <!-- BEGIN RIGHTSIDE --> ! <td width="15%" valign="top" align="center"> ! {RIGHT_COL_TOP} ! {RIGHT_COL_MID} ! {RIGHT_COL_BOTTOM} ! </td> ! <!-- END RIGHTSIDE --> ! </tr> ! </table> ! ! <div class="smalltext" style="text-align : center"> ! Copyright © Appalachian State University 2002 - 2004<br /> ! This Site is powered by phpWebSite © The Web Technology Group, Appalachian State University<br /> ! phpWebSite is licensed under the <a href="http://www.gnu.org/copyleft/lesser.html">GNU LGPL</a> ! </div><br /> ! {EXAMPLE} ! </body> ! </html> Index: theme.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/themes/Default/theme.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** theme.php 25 Oct 2004 18:17:33 -0000 1.1.1.1 --- theme.php 26 Oct 2004 07:29:35 -0000 1.2 *************** *** 1,35 **** ! <?php ! ! // This is a sample theme include file. Just insert the functions you want to appear ! // in your theme and place them into the $THEME['LABEL_NAME'] array. Then just create ! // a {EXAMPLE} tag in your theme.tpl file. ! // This file will NOT be included if layout's config.php file prohibits it. ! ! // $THEME["EXAMPLE"] = "This is a sample of including php code into your theme. <br /> ! // Uncomment this line then look at the bottom of your Default theme page."; ! ! ! ! ! ! // begin xwysiwyg-code in theme.php ! if ($GLOBALS['xwysiwyg'] >= 1) { ! $settings = PHPWS_xwysiwyg::readConfig(); ! $areas = $GLOBALS['xwysiwyg_areas']; ! $loadplugs = PHPWS_xwysiwyg::loadPlugins($settings); //get Plugins to load ! $lang = PHPWS_xwysiwyg::setLanguage($settings); //get Language ! $editors = ""; ! $index = 1; ! foreach($areas as $area) { ! $regplugs = PHPWS_xwysiwyg::registerPlugins($settings,$index); //get Plugins to register ! $editors .= PHPWS_xwysiwyg::makeEditors($settings,$index,$regplugs,$area,$lang); //make Editors-js ! $index++; ! } ! if(!$settings['request_mode']) ! $THEME["XWYSIWYG_BODY"] = " onload=\"setTimeout(function() {initEditor()}, 900);\""; ! ! $THEME["XWYSIWYG"] = PHPWS_xwysiwyg::makeMain($settings,$editors,$loadplugs,$lang); //build main-js ! } ! // end xwysiwyg-code in theme.php ! ?> \ No newline at end of file --- 1,20 ---- ! <?php ! ! // This is a sample theme include file. Just insert the functions you want to appear ! // in your theme and place them into the $THEME['LABEL_NAME'] array. Then just create ! // a {EXAMPLE} tag in your theme.tpl file. ! // This file will NOT be included if layout's config.php file prohibits it. ! ! // $THEME["EXAMPLE"] = "This is a sample of including php code into your theme. <br /> ! // Uncomment this line then look at the bottom of your Default theme page."; ! ! ! ! ! ! // begin xwysiwyg-code in theme.php ! require_once(PHPWS_SOURCE_DIR.'mod/xwysiwyg/class/xwysiwyg.php');//include the xwysiwyg code ! $THEME["XWYSIWYG"] = PHPWS_xwysiwyg::makeJS(); //build main-js ! // end xwysiwyg-code in theme.php ! ?> \ No newline at end of file |
From: Yves K. <yku...@us...> - 2004-10-26 07:26:21
|
Update of /cvsroot/phpwebsite-comm/modules/xwysiwyg/js In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29266/xwysiwyg/js Modified Files: wysiwyg.php Log Message: saved in unix-format Index: wysiwyg.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/js/wysiwyg.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** wysiwyg.php 25 Oct 2004 18:08:04 -0000 1.1.1.1 --- wysiwyg.php 26 Oct 2004 07:25:50 -0000 1.2 *************** *** 1,202 **** ! <?php ! $xwysiwyg = FALSE; ! $xw_button = FALSE; ! $mods = $GLOBALS["core"]->listModules(TRUE); ! if (in_array ("xwysiwyg", $mods)) { ! require_once(PHPWS_SOURCE_DIR.'mod/xwysiwyg/class/phpSniff.class.php');//include the browser checking code ! require_once(PHPWS_SOURCE_DIR.'mod/xwysiwyg/class/xwysiwyg.php');//include the xwysiwyg code ! //First thing, check browser version ! //Since I haven't tested, you'll have to add a better list of supported browsers ! $client =& new phpSniff($GET_VARS['UA']); ! //Now we want an inclusion list of browsers ! //These browsers are supposed to work, Galleon or aol versions ! $supported = FALSE; ! $browsers = array("fb.6+", "NS7+","ie5.5+","mz1.3+","op7+","kq3+","ga","aol","ca"); ! foreach($browsers as $search) { ! if($client->browser_is($search)) $supported = TRUE; ! } ! if($supported){ ! /*We'll want to keep the phpws wysiwyg functions for form fields, ! *then add an exclusion list of items we want to use xwysiwyg with. ! *Then filter those out. ! *I've included a list of ones I knew about, if you have others, please add them */ ! if(!isset($GLOBALS['xwysiwyg_settings'])) $settings = PHPWS_xwysiwyg::readConfig(); ! else $settings = $GLOBALS['xwysiwyg_settings']; ! if($settings['request_mode']) { ! $onRequest = TRUE; ! $xwysiwyg = TRUE; ! } else $xwysiwyg = PHPWS_xwysiwyg::isBox($section_name); ! if($_SESSION["OBJ_user"]->allow_access("xwysiwyg","settings")) $xw_button = TRUE; ! } ! } ! ! require_once(PHPWS_SOURCE_DIR.'core/Text.php'); ! include(PHPWS_SOURCE_DIR.'conf/javascriptSettings.php'); ! ! if(!isset($GLOBALS['wysiwyg_tab_index'])) ! $GLOBALS['wysiwyg_tab_index'] = 30; // set this number higher if you need to use forms with many elements ! ! if(!isset($GLOBALS['wysiwyg'])) $GLOBALS['wysiwyg'] = 1; ! if(!isset($GLOBALS['xwysiwyg'])AND($xwysiwyg)) $GLOBALS['xwysiwyg'] = 1; ! ! if(!$xwysiwyg|$onRequest) { ! if($GLOBALS['wysiwyg'] == 1) { ! ! $GLOBALS['core']->js_func[] = " ! ! var body=0; ! var opcode=''; ! ! function addBold(form, section){ ! form = document.getElementsByName(form)[0]; ! eval('form.'+section+'.value=form.'+section+'.value + \"<b>Bold Text</b>\"'); ! } ! ! function addBreak(form, section){ ! form = document.getElementsByName(form)[0]; ! eval('form.'+section+'.value=form.'+section+'.value + \"<br />\\\n\"'); ! } ! ! function addItal(form, section){ ! form = document.getElementsByName(form)[0]; ! eval('form.'+section+'.value=form.'+section+'.value + \"<i>Italicized Text</i>\"'); ! } ! ! function addUnder(form, section){ ! form = document.getElementsByName(form)[0]; ! eval('form.'+section+'.value=form.'+section+'.value + \"<u>Underlined Text</u>\"'); ! } ! ! function addAleft(form, section){ ! form = document.getElementsByName(form)[0]; ! div = '<div align=\\\"left\\\">Left Justified Text</div>'; ! eval('form.'+section+'.value=form.'+section+'.value + div'); ! } ! ! function addAcenter(form, section){ ! form = document.getElementsByName(form)[0]; ! div = '<div align=\\\"center\\\">Centered Text</div>'; ! eval('form.'+section+'.value=form.'+section+'.value + div'); ! } ! ! function addAright(form, section){ ! form = document.getElementsByName(form)[0]; ! div = '<div align=\\\"right\\\">Right Justified Text</div>'; ! eval('form.'+section+'.value=form.'+section+'.value + div'); ! } ! ! function addUlist(form, section){ ! form = document.getElementsByName(form)[0]; ! ul = '<ul type=\\\"disc\\\">\\r\\n <li>Item 1</li>\\r\\n <li>Item 2</li>\\r\\n <li>Item 3</li>\\r\\n</ul>\\\r\\n'; ! eval('form.'+section+'.value=form.'+section+'.value + ul'); ! } ! ! function addOlist(form, section){ ! form = document.getElementsByName(form)[0]; ! ol = '<ol type=\\\"1\\\">\\r\\n <li>Item 1</li>\\r\\n <li>Item 2</li>\\r\\n <li>Item 3</li>\\r\\n</ol>\\r\\n'; ! eval('form.'+section+'.value=form.'+section+'.value + ol'); ! } ! ! function addBlock(form, section){ ! form = document.getElementsByName(form)[0]; ! block = '<blockquote>\\r\\n <p>Your indented text here...</p>\\r\\n</blockquote>\\r\\n'; ! eval('form.'+section+'.value=form.'+section+'.value + block'); ! } ! ! function addEmail(form, section){ ! form = document.getElementsByName(form)[0]; ! email = '<a href=\\\"mailto:email@address.here\\\">Click Text Here</a>'; ! eval('form.'+section+'.value=form.'+section+'.value + email'); ! } ! ! function addLink(form, section){ ! form = document.getElementsByName(form)[0]; ! link = '<a href=\\\"http://www.web_address.here\\\">Click Text Here</a>'; ! eval('form.'+section+'.value=form.'+section+'.value + link'); ! } ! ! function addXwysiwyg(form, section){ ! form = document.getElementsByName(form)[0]; ! var check = eval('form.'+section+'.type'); ! if(check == 'textarea'){ ! var input_box=confirm(\"This will add that area to xwysiwyg\\nAll unsaved data will be lost\\nClick OK or Cancel to Continue\"); ! if (input_box==true) ! location='index.php?module=xwysiwyg&action=addArea&area='+section; ! } else ! alert('This is not a Textarea'); ! } ! ! function actXwysiwyg(form, section, editor){ ! form = document.getElementsByName(form)[0]; ! var check = eval('form.'+section+'.type'); ! if(check == 'textarea'){ ! eval('this.initEditor'+editor+'()'); ! eval('document.getElementById(\"xw'+editor+'\").style.visibility = \"hidden\"'); ! } else ! alert('This is not a Textarea'); ! ! }\n"; ! ! } ! $eid = $GLOBALS['xwysiwyg']; ! $js = "<div id=\"xw$eid\" class=\"xw$eid\"><a name=\"wysiwyg{$GLOBALS['wysiwyg']}\" />\n"; ! $js .= "<a href=\"#wysiwyg{$GLOBALS['wysiwyg']}\" tabindex=\"".$GLOBALS['wysiwyg_tab_index']++."\" onclick=\"addBold('{$form_name}', '{$section_name}');\" onmouseover=\"window.status='Add bold'; return true;\" onmouseout=\"window.status='';\">" . phpws_text::imageTag("./images/javascript/wysiwyg/bold.gif", "Bold", 21, 20) . "</a>\n"; ! $js .= "<a href=\"#wysiwyg{$GLOBALS['wysiwyg']}\" tabindex=\"".$GLOBALS['wysiwyg_tab_index']++."\" onclick=\"addItal('{$form_name}', '{$section_name}');\" onmouseover=\"window.status='Add italic'; return true;\" onmouseout=\"window.status='';\">" . phpws_text::imageTag("./images/javascript/wysiwyg/italic.gif", "Italic", 21, 20) . "</a>\n"; ! $js .= "<a href=\"#wysiwyg{$GLOBALS['wysiwyg']}\" tabindex=\"".$GLOBALS['wysiwyg_tab_index']++."\" onclick=\"addUnder('{$form_name}', '{$section_name}');\" onmouseover=\"window.status='Add underline'; return true;\" onmouseout=\"window.status='';\">" . phpws_text::imageTag("./images/javascript/wysiwyg/underline.gif", "Underlined", 21, 20) . "</a>\n"; ! $js .= "<a href=\"#wysiwyg{$GLOBALS['wysiwyg']}\" tabindex=\"".$GLOBALS['wysiwyg_tab_index']++."\" onclick=\"addAleft('{$form_name}', '{$section_name}');\" onmouseover=\"window.status='Add left justified'; return true;\" onmouseout=\"window.status='';\">" . phpws_text::imageTag("./images/javascript/wysiwyg/aleft.gif", "Left Justified", 21, 20) . "</a>\n"; ! $js .= "<a href=\"#wysiwyg{$GLOBALS['wysiwyg']}\" tabindex=\"".$GLOBALS['wysiwyg_tab_index']++."\" onclick=\"addAcenter('{$form_name}', '{$section_name}');\" onmouseover=\"window.status='Add centered'; return true;\" onmouseout=\"window.status='';\">" . phpws_text::imageTag("./images/javascript/wysiwyg/acenter.gif", "Center Text", 21, 20) . "</a>\n"; ! $js .= "<a href=\"#wysiwyg{$GLOBALS['wysiwyg']}\" tabindex=\"".$GLOBALS['wysiwyg_tab_index']++."\" onclick=\"addAright('{$form_name}', '{$section_name}');\" onmouseover=\"window.status='Add right justified'; return true;\" onmouseout=\"window.status='';\">" . phpws_text::imageTag("./images/javascript/wysiwyg/aright.gif", "Right Justified", 21, 20) . "</a>\n"; ! $js .= "<a href=\"#wysiwyg{$GLOBALS['wysiwyg']}\" tabindex=\"".$GLOBALS['wysiwyg_tab_index']++."\" onclick=\"addUlist('{$form_name}', '{$section_name}');\" onmouseover=\"window.status='Add unordered list'; return true;\" onmouseout=\"window.status='';\">" . phpws_text::imageTag("./images/javascript/wysiwyg/bullet.gif", "Bulleted List", 21, 20) . "</a>\n"; ! $js .= "<a href=\"#wysiwyg{$GLOBALS['wysiwyg']}\" tabindex=\"".$GLOBALS['wysiwyg_tab_index']++."\" onclick=\"addOlist('{$form_name}', '{$section_name}');\" onmouseover=\"window.status='Add ordered list'; return true;\" onmouseout=\"window.status='';\">" . phpws_text::imageTag("./images/javascript/wysiwyg/numbered.gif", "Numbered List", 21, 20) . "</a>\n"; ! $js .= "<a href=\"#wysiwyg{$GLOBALS['wysiwyg']}\" tabindex=\"".$GLOBALS['wysiwyg_tab_index']++."\" onclick=\"addBlock('{$form_name}', '{$section_name}');\" onmouseover=\"window.status='Add block quote'; return true;\" onmouseout=\"window.status='';\">" . phpws_text::imageTag("./images/javascript/wysiwyg/increase.gif", "Increase", 21, 20) . "</a>\n"; ! $js .= "<a href=\"#wysiwyg{$GLOBALS['wysiwyg']}\" tabindex=\"".$GLOBALS['wysiwyg_tab_index']++."\" onclick=\"addEmail('{$form_name}', '{$section_name}');\" onmouseover=\"window.status='Add email'; return true;\" onmouseout=\"window.status='';\">" . phpws_text::imageTag("./images/javascript/wysiwyg/email.gif", "Email", 21, 20) . "</a>\n"; ! $js .= "<a href=\"#wysiwyg{$GLOBALS['wysiwyg']}\" tabindex=\"".$GLOBALS['wysiwyg_tab_index']++."\" onclick=\"addLink('{$form_name}', '{$section_name}');\" onmouseover=\"window.status='Add link'; return true;\" onmouseout=\"window.status='';\">" . phpws_text::imageTag("./images/javascript/wysiwyg/link.gif", "Link", 21, 20) . "</a>\n"; ! $js .= "<a href=\"#wysiwyg{$GLOBALS['wysiwyg']}\" tabindex=\"".$GLOBALS['wysiwyg_tab_index']++."\" onclick=\"addBreak('{$form_name}', '{$section_name}');\" onmouseover=\"window.status='Add break'; return true;\" onmouseout=\"window.status='';\">" . phpws_text::imageTag("./images/javascript/wysiwyg/break.gif", "Break", 20, 20) . "</a>\n"; ! if($xw_button){ ! if($onRequest) { ! $js .= "<a href=\"#wysiwyg{$GLOBALS['wysiwyg']}\" tabindex=\"".$GLOBALS['wysiwyg_tab_index']++."\" onclick=\"actXwysiwyg('{$form_name}', '{$section_name}', '".$eid."');\" onmouseover=\"window.status='Activate xwysiwyg'; return true;\" onmouseout=\"window.status='';\">" . phpws_text::imageTag("./images/javascript/wysiwyg/xw.gif", "xwysiwyg", 20, 20) . "</a>\n"; ! } else { ! $js .= "<a href=\"#wysiwyg{$GLOBALS['wysiwyg']}\" tabindex=\"".$GLOBALS['wysiwyg_tab_index']++."\" onclick=\"addXwysiwyg('{$form_name}', '{$section_name}');\" onmouseover=\"window.status='Add xwysiwyg'; return true;\" onmouseout=\"window.status='';\">" . phpws_text::imageTag("./images/javascript/wysiwyg/xw.gif", "xwysiwyg", 20, 20) . "</a>\n"; ! } ! } ! if($_SESSION['OBJ_user']->js_on && extension_loaded('pspell') && $ssc_on) { ! ! if(!isset($GLOBALS['ssc'])) { ! $GLOBALS['ssc'] = true; ! ! if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") { ! $prefix = "https://"; ! } else { ! $prefix = "http://"; ! } ! ! $GLOBALS['core']->js_func[] = " ! function sscCheckText(section) { ! element = document.getElementById(section); ! ! if(element.value == \"\") { ! alert('There is no text to be checked for spelling errors.'); ! } else { ! loc = '{$prefix}' + '{$GLOBALS['core']->source_http}' + 'js/ssc/speller.php?ssc_lang={$ssc_lang}&ssc_speed={$ssc_speed}§ion=' + section + '&style=' + 'http://{$GLOBALS['core']->home_http}{$_SESSION['OBJ_layout']->theme_address}' + 'style.css'; ! window.open(loc, '_BLANK', 'width=800,height=600,toolbar=no,scrollbars=yes,status=yes,top=50,left=50,screenX=50,screenY=50'); ! } ! } ! "; ! ! } ! ! $js .= "<a href=\"#wysiwyg{$GLOBALS['wysiwyg']}\" tabindex=\"".$GLOBALS['wysiwyg_tab_index']++."\" onclick=\"sscCheckText('{$section_name}');\" onmouseover=\"window.status='Spell Checker'; return true;\" onmouseout=\"window.status='';\">" . phpws_text::imageTag("./images/javascript/wysiwyg/spell.gif", "Spell Checker", 20, 20) . "</a>\n"; ! } ! ! $js .= "<br /></div>\n"; ! ! $GLOBALS['wysiwyg']++; ! } ! // xwysiwyg-code ! if ($xwysiwyg) { ! $GLOBALS['xwysiwyg_areas'][] = $section_name; //write an array for the theme.php ! //$js = ""; ! $GLOBALS['xwysiwyg']++; ! } ! ?> \ No newline at end of file --- 1,202 ---- ! <?php ! $xwysiwyg = FALSE; ! $xw_button = FALSE; ! $mods = $GLOBALS["core"]->listModules(TRUE); ! if (in_array ("xwysiwyg", $mods)) { ! require_once(PHPWS_SOURCE_DIR.'mod/xwysiwyg/class/phpSniff.class.php');//include the browser checking code ! require_once(PHPWS_SOURCE_DIR.'mod/xwysiwyg/class/xwysiwyg.php');//include the xwysiwyg code ! //First thing, check browser version ! //Since I haven't tested, you'll have to add a better list of supported browsers ! $client =& new phpSniff($GET_VARS['UA']); ! //Now we want an inclusion list of browsers ! //These browsers are supposed to work, Galleon or aol versions ! $supported = FALSE; ! $browsers = array("fb.6+", "NS7+","ie5.5+","mz1.3+","op7+","kq3+","ga","aol","ca"); ! foreach($browsers as $search) { ! if($client->browser_is($search)) $supported = TRUE; ! } ! if($supported){ ! /*We'll want to keep the phpws wysiwyg functions for form fields, ! *then add an exclusion list of items we want to use xwysiwyg with. ! *Then filter those out. ! *I've included a list of ones I knew about, if you have others, please add them */ ! if(!isset($GLOBALS['xwysiwyg_settings'])) $settings = PHPWS_xwysiwyg::readConfig(); ! else $settings = $GLOBALS['xwysiwyg_settings']; ! if($settings['request_mode']) { ! $onRequest = TRUE; ! $xwysiwyg = TRUE; ! } else $xwysiwyg = PHPWS_xwysiwyg::isBox($section_name); ! if($_SESSION["OBJ_user"]->allow_access("xwysiwyg","settings")) $xw_button = TRUE; ! } ! } ! ! require_once(PHPWS_SOURCE_DIR.'core/Text.php'); ! include(PHPWS_SOURCE_DIR.'conf/javascriptSettings.php'); ! ! if(!isset($GLOBALS['wysiwyg_tab_index'])) ! $GLOBALS['wysiwyg_tab_index'] = 30; // set this number higher if you need to use forms with many elements ! ! if(!isset($GLOBALS['wysiwyg'])) $GLOBALS['wysiwyg'] = 1; ! if(!isset($GLOBALS['xwysiwyg'])AND($xwysiwyg)) $GLOBALS['xwysiwyg'] = 1; ! ! if(!$xwysiwyg|$onRequest) { ! if($GLOBALS['wysiwyg'] == 1) { ! ! $GLOBALS['core']->js_func[] = " ! ! var body=0; ! var opcode=''; ! ! function addBold(form, section){ ! form = document.getElementsByName(form)[0]; ! eval('form.'+section+'.value=form.'+section+'.value + \"<b>Bold Text</b>\"'); ! } ! ! function addBreak(form, section){ ! form = document.getElementsByName(form)[0]; ! eval('form.'+section+'.value=form.'+section+'.value + \"<br />\\\n\"'); ! } ! ! function addItal(form, section){ ! form = document.getElementsByName(form)[0]; ! eval('form.'+section+'.value=form.'+section+'.value + \"<i>Italicized Text</i>\"'); ! } ! ! function addUnder(form, section){ ! form = document.getElementsByName(form)[0]; ! eval('form.'+section+'.value=form.'+section+'.value + \"<u>Underlined Text</u>\"'); ! } ! ! function addAleft(form, section){ ! form = document.getElementsByName(form)[0]; ! div = '<div align=\\\"left\\\">Left Justified Text</div>'; ! eval('form.'+section+'.value=form.'+section+'.value + div'); ! } ! ! function addAcenter(form, section){ ! form = document.getElementsByName(form)[0]; ! div = '<div align=\\\"center\\\">Centered Text</div>'; ! eval('form.'+section+'.value=form.'+section+'.value + div'); ! } ! ! function addAright(form, section){ ! form = document.getElementsByName(form)[0]; ! div = '<div align=\\\"right\\\">Right Justified Text</div>'; ! eval('form.'+section+'.value=form.'+section+'.value + div'); ! } ! ! function addUlist(form, section){ ! form = document.getElementsByName(form)[0]; ! ul = '<ul type=\\\"disc\\\">\\r\\n <li>Item 1</li>\\r\\n <li>Item 2</li>\\r\\n <li>Item 3</li>\\r\\n</ul>\\\r\\n'; ! eval('form.'+section+'.value=form.'+section+'.value + ul'); ! } ! ! function addOlist(form, section){ ! form = document.getElementsByName(form)[0]; ! ol = '<ol type=\\\"1\\\">\\r\\n <li>Item 1</li>\\r\\n <li>Item 2</li>\\r\\n <li>Item 3</li>\\r\\n</ol>\\r\\n'; ! eval('form.'+section+'.value=form.'+section+'.value + ol'); ! } ! ! function addBlock(form, section){ ! form = document.getElementsByName(form)[0]; ! block = '<blockquote>\\r\\n <p>Your indented text here...</p>\\r\\n</blockquote>\\r\\n'; ! eval('form.'+section+'.value=form.'+section+'.value + block'); ! } ! ! function addEmail(form, section){ ! form = document.getElementsByName(form)[0]; ! email = '<a href=\\\"mailto:email@address.here\\\">Click Text Here</a>'; ! eval('form.'+section+'.value=form.'+section+'.value + email'); ! } ! ! function addLink(form, section){ ! form = document.getElementsByName(form)[0]; ! link = '<a href=\\\"http://www.web_address.here\\\">Click Text Here</a>'; ! eval('form.'+section+'.value=form.'+section+'.value + link'); ! } ! ! function addXwysiwyg(form, section){ ! form = document.getElementsByName(form)[0]; ! var check = eval('form.'+section+'.type'); ! if(check == 'textarea'){ ! var input_box=confirm(\"This will add that area to xwysiwyg\\nAll unsaved data will be lost\\nClick OK or Cancel to Continue\"); ! if (input_box==true) ! location='index.php?module=xwysiwyg&action=addArea&area='+section; ! } else ! alert('This is not a Textarea'); ! } ! ! function actXwysiwyg(form, section, editor){ ! form = document.getElementsByName(form)[0]; ! var check = eval('form.'+section+'.type'); ! if(check == 'textarea'){ ! eval('this.initEditor'+editor+'()'); ! eval('document.getElementById(\"xw'+editor+'\").style.visibility = \"hidden\"'); ! } else ! alert('This is not a Textarea'); ! }\n"; ! ! } ! $eid = $GLOBALS['xwysiwyg']; ! $js = "<div id=\"xw$eid\" class=\"xw$eid\"><a name=\"wysiwyg{$GLOBALS['wysiwyg']}\" />\n"; ! $js .= "<a href=\"#wysiwyg{$GLOBALS['wysiwyg']}\" tabindex=\"".$GLOBALS['wysiwyg_tab_index']++."\" onclick=\"addBold('{$form_name}', '{$section_name}');\" onmouseover=\"window.status='Add bold'; return true;\" onmouseout=\"window.status='';\">" . phpws_text::imageTag("./images/javascript/wysiwyg/bold.gif", "Bold", 21, 20) . "</a>\n"; ! $js .= "<a href=\"#wysiwyg{$GLOBALS['wysiwyg']}\" tabindex=\"".$GLOBALS['wysiwyg_tab_index']++."\" onclick=\"addItal('{$form_name}', '{$section_name}');\" onmouseover=\"window.status='Add italic'; return true;\" onmouseout=\"window.status='';\">" . phpws_text::imageTag("./images/javascript/wysiwyg/italic.gif", "Italic", 21, 20) . "</a>\n"; ! $js .= "<a href=\"#wysiwyg{$GLOBALS['wysiwyg']}\" tabindex=\"".$GLOBALS['wysiwyg_tab_index']++."\" onclick=\"addUnder('{$form_name}', '{$section_name}');\" onmouseover=\"window.status='Add underline'; return true;\" onmouseout=\"window.status='';\">" . phpws_text::imageTag("./images/javascript/wysiwyg/underline.gif", "Underlined", 21, 20) . "</a>\n"; ! $js .= "<a href=\"#wysiwyg{$GLOBALS['wysiwyg']}\" tabindex=\"".$GLOBALS['wysiwyg_tab_index']++."\" onclick=\"addAleft('{$form_name}', '{$section_name}');\" onmouseover=\"window.status='Add left justified'; return true;\" onmouseout=\"window.status='';\">" . phpws_text::imageTag("./images/javascript/wysiwyg/aleft.gif", "Left Justified", 21, 20) . "</a>\n"; ! $js .= "<a href=\"#wysiwyg{$GLOBALS['wysiwyg']}\" tabindex=\"".$GLOBALS['wysiwyg_tab_index']++."\" onclick=\"addAcenter('{$form_name}', '{$section_name}');\" onmouseover=\"window.status='Add centered'; return true;\" onmouseout=\"window.status='';\">" . phpws_text::imageTag("./images/javascript/wysiwyg/acenter.gif", "Center Text", 21, 20) . "</a>\n"; ! $js .= "<a href=\"#wysiwyg{$GLOBALS['wysiwyg']}\" tabindex=\"".$GLOBALS['wysiwyg_tab_index']++."\" onclick=\"addAright('{$form_name}', '{$section_name}');\" onmouseover=\"window.status='Add right justified'; return true;\" onmouseout=\"window.status='';\">" . phpws_text::imageTag("./images/javascript/wysiwyg/aright.gif", "Right Justified", 21, 20) . "</a>\n"; ! $js .= "<a href=\"#wysiwyg{$GLOBALS['wysiwyg']}\" tabindex=\"".$GLOBALS['wysiwyg_tab_index']++."\" onclick=\"addUlist('{$form_name}', '{$section_name}');\" onmouseover=\"window.status='Add unordered list'; return true;\" onmouseout=\"window.status='';\">" . phpws_text::imageTag("./images/javascript/wysiwyg/bullet.gif", "Bulleted List", 21, 20) . "</a>\n"; ! $js .= "<a href=\"#wysiwyg{$GLOBALS['wysiwyg']}\" tabindex=\"".$GLOBALS['wysiwyg_tab_index']++."\" onclick=\"addOlist('{$form_name}', '{$section_name}');\" onmouseover=\"window.status='Add ordered list'; return true;\" onmouseout=\"window.status='';\">" . phpws_text::imageTag("./images/javascript/wysiwyg/numbered.gif", "Numbered List", 21, 20) . "</a>\n"; ! $js .= "<a href=\"#wysiwyg{$GLOBALS['wysiwyg']}\" tabindex=\"".$GLOBALS['wysiwyg_tab_index']++."\" onclick=\"addBlock('{$form_name}', '{$section_name}');\" onmouseover=\"window.status='Add block quote'; return true;\" onmouseout=\"window.status='';\">" . phpws_text::imageTag("./images/javascript/wysiwyg/increase.gif", "Increase", 21, 20) . "</a>\n"; ! $js .= "<a href=\"#wysiwyg{$GLOBALS['wysiwyg']}\" tabindex=\"".$GLOBALS['wysiwyg_tab_index']++."\" onclick=\"addEmail('{$form_name}', '{$section_name}');\" onmouseover=\"window.status='Add email'; return true;\" onmouseout=\"window.status='';\">" . phpws_text::imageTag("./images/javascript/wysiwyg/email.gif", "Email", 21, 20) . "</a>\n"; ! $js .= "<a href=\"#wysiwyg{$GLOBALS['wysiwyg']}\" tabindex=\"".$GLOBALS['wysiwyg_tab_index']++."\" onclick=\"addLink('{$form_name}', '{$section_name}');\" onmouseover=\"window.status='Add link'; return true;\" onmouseout=\"window.status='';\">" . phpws_text::imageTag("./images/javascript/wysiwyg/link.gif", "Link", 21, 20) . "</a>\n"; ! $js .= "<a href=\"#wysiwyg{$GLOBALS['wysiwyg']}\" tabindex=\"".$GLOBALS['wysiwyg_tab_index']++."\" onclick=\"addBreak('{$form_name}', '{$section_name}');\" onmouseover=\"window.status='Add break'; return true;\" onmouseout=\"window.status='';\">" . phpws_text::imageTag("./images/javascript/wysiwyg/break.gif", "Break", 20, 20) . "</a>\n"; ! if($xw_button){ ! if($onRequest) { ! $js .= "<a href=\"#wysiwyg{$GLOBALS['wysiwyg']}\" tabindex=\"".$GLOBALS['wysiwyg_tab_index']++."\" onclick=\"actXwysiwyg('{$form_name}', '{$section_name}', '".$eid."');\" onmouseover=\"window.status='Activate xwysiwyg'; return true;\" onmouseout=\"window.status='';\">" . phpws_text::imageTag("./images/javascript/wysiwyg/xw.gif", "xwysiwyg", 20, 20) . "</a>\n"; ! } else { ! $js .= "<a href=\"#wysiwyg{$GLOBALS['wysiwyg']}\" tabindex=\"".$GLOBALS['wysiwyg_tab_index']++."\" onclick=\"addXwysiwyg('{$form_name}', '{$section_name}');\" onmouseover=\"window.status='Add xwysiwyg'; return true;\" onmouseout=\"window.status='';\">" . phpws_text::imageTag("./images/javascript/wysiwyg/xw.gif", "xwysiwyg", 20, 20) . "</a>\n"; ! } ! } ! if($_SESSION['OBJ_user']->js_on && extension_loaded('pspell') && $ssc_on) { ! ! if(!isset($GLOBALS['ssc'])) { ! $GLOBALS['ssc'] = true; ! ! if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") { ! $prefix = "https://"; ! } else { ! $prefix = "http://"; ! } ! ! $GLOBALS['core']->js_func[] = " ! function sscCheckText(section) { ! element = document.getElementById(section); ! ! if(element.value == \"\") { ! alert('There is no text to be checked for spelling errors.'); ! } else { ! loc = '{$prefix}' + '{$GLOBALS['core']->source_http}' + 'js/ssc/speller.php?ssc_lang={$ssc_lang}&ssc_speed={$ssc_speed}§ion=' + section + '&style=' + 'http://{$GLOBALS['core']->home_http}{$_SESSION['OBJ_layout']->theme_address}' + 'style.css'; ! window.open(loc, '_BLANK', 'width=800,height=600,toolbar=no,scrollbars=yes,status=yes,top=50,left=50,screenX=50,screenY=50'); ! } ! } ! "; ! ! } ! ! $js .= "<a href=\"#wysiwyg{$GLOBALS['wysiwyg']}\" tabindex=\"".$GLOBALS['wysiwyg_tab_index']++."\" onclick=\"sscCheckText('{$section_name}');\" onmouseover=\"window.status='Spell Checker'; return true;\" onmouseout=\"window.status='';\">" . phpws_text::imageTag("./images/javascript/wysiwyg/spell.gif", "Spell Checker", 20, 20) . "</a>\n"; ! } ! ! $js .= "<br /></div>\n"; ! ! $GLOBALS['wysiwyg']++; ! } ! ! // xwysiwyg-code ! if ($xwysiwyg) { ! $GLOBALS['xwysiwyg_areas'][] = $section_name; //write an array for the theme.php ! //$js = ""; ! $GLOBALS['xwysiwyg']++; ! } ! ?> \ No newline at end of file |
From: Mike N. <mh...@us...> - 2004-10-26 00:09:03
|
Update of /cvsroot/phpwebsite-comm/CVSROOT In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4093 Modified Files: cvswrappers Log Message: added binary wrapper for gif Index: cvswrappers =================================================================== RCS file: /cvsroot/phpwebsite-comm/CVSROOT/cvswrappers,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** cvswrappers 5 Jun 2003 15:51:37 -0000 1.2 --- cvswrappers 26 Oct 2004 00:07:56 -0000 1.3 *************** *** 21,25 **** # and value is a single-quote delimited value. # For example: ! #*.gif -k 'b' *.jpg -k 'b' *.jpeg -k 'b' --- 21,25 ---- # and value is a single-quote delimited value. # For example: ! *.gif -k 'b' *.jpg -k 'b' *.jpeg -k 'b' |
From: Yves K. <yku...@us...> - 2004-10-25 01:12:21
|
Update of /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/img In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22402/modules/xwysiwyg/mod/xwysiwyg/img Added Files: xw.gif1 xwysiwyg.gif1 Log Message: Initial Revision --- NEW FILE: xwysiwyg.gif1 --- (This appears to be a binary file; contents omitted.) --- NEW FILE: xw.gif1 --- (This appears to be a binary file; contents omitted.) |
From: Yves K. <yku...@us...> - 2004-10-25 00:43:29
|
Update of /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14488/modules/xwysiwyg/mod/xwysiwyg Added Files: index.php Log Message: Initial Revision --- NEW FILE: index.php --- <?php /** * Main switch for the xwysiwyg-module, all operations * pass though this switch. * * @version $Id: index.php,v 1.1 2004/10/25 00:43:19 ykuendig Exp $ */ if (!isset($GLOBALS['core'])){ header("location:../../"); exit(); } /* Check to see if xwysiwyg sessions is set and set it if it's not. */ if(!isset($_SESSION["PHPWS_xwysiwyg"])) { $_SESSION["PHPWS_xwysiwyg"] = new PHPWS_xwysiwyg; } $GLOBALS["CNT_xwysiwyg"] = array("title"=>NULL,"content"=>NULL); if(isset($_REQUEST['action']) && isset($_SESSION['PHPWS_xwysiwyg'])) { $_SESSION['PHPWS_xwysiwyg']->action(); } ?> |