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; |