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-11-10 00:25:27
|
Update of /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/class In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19265/modules/xwysiwyg/mod/xwysiwyg/class Modified Files: xwysiwyg.php Log Message: toggle form templated now browser check in options-template Index: xwysiwyg.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/class/xwysiwyg.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** xwysiwyg.php 7 Nov 2004 00:29:41 -0000 1.11 --- xwysiwyg.php 10 Nov 2004 00:24:52 -0000 1.12 *************** *** 28,32 **** if (!isset($browser_css) && file_exists($_SESSION['OBJ_layout']->theme_dir."style.css")) $css = "/".$_SESSION['OBJ_layout']->theme_address . "style.css"; ! return $css; } --- 28,32 ---- if (!isset($browser_css) && file_exists($_SESSION['OBJ_layout']->theme_dir."style.css")) $css = "/".$_SESSION['OBJ_layout']->theme_address . "style.css"; ! return "http://".PHPWS_SOURCE_HTTP.$css; } *************** *** 42,47 **** ! function isSupported($section_name){ ! $answer = array(); $supported = FALSE; require_once(PHPWS_SOURCE_DIR.'mod/xwysiwyg/class/phpSniff.class.php');//include the browser checking code --- 42,46 ---- ! function sniffer($text=NULL){ $supported = FALSE; require_once(PHPWS_SOURCE_DIR.'mod/xwysiwyg/class/phpSniff.class.php');//include the browser checking code *************** *** 53,58 **** if($client->browser_is($search)) $supported = TRUE; } ! $settings = PHPWS_xwysiwyg::readConfig(); ! $allowed = FALSE; if($_SESSION["OBJ_user"]->isDeity()) $allowed = TRUE; elseif((!$_SESSION["OBJ_user"]->isUser())AND(!$_SESSION["OBJ_user"]->isDeity())AND($settings['view_anon'])) $allowed = TRUE; --- 52,67 ---- if($client->browser_is($search)) $supported = TRUE; } ! if($text){ ! if($supported) $supported = "<span style=\"color:green;\">".$_SESSION['translate']->it("Your Browser IS supported")."</span>"; ! else $supported = "<span style=\"color:red;\">".$_SESSION['translate']->it("Your Browser is NOT supported")."</span>"; ! } ! return $supported; ! } ! ! function isSupported($section_name){ ! $supported = PHPWS_xwysiwyg::sniffer(); ! $settings = PHPWS_xwysiwyg::readConfig(); ! $allowed = FALSE; ! $answer = array(); if($_SESSION["OBJ_user"]->isDeity()) $allowed = TRUE; elseif((!$_SESSION["OBJ_user"]->isUser())AND(!$_SESSION["OBJ_user"]->isDeity())AND($settings['view_anon'])) $allowed = TRUE; *************** *** 249,253 **** } ! $form = new EZform("options"); $form->add("module", "hidden", "xwysiwyg"); $form->add("action", "hidden", "admin"); --- 258,262 ---- } ! $form = new EZform("xw_options"); $form->add("module", "hidden", "xwysiwyg"); $form->add("action", "hidden", "admin"); *************** *** 294,300 **** $formTags['PLUG_IMAGE_TEXT'] = $_SESSION['translate']->it("Enable ImageManager-Plugin"); // $formTags['PLUG_SPELL_TEXT'] = "n.a. yet ".$_SESSION['translate']->it("Enable SpellChecker-Plugin"); ! $formTags['MESSAGE'] = $this->updateOptions($settings); ! $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(); --- 303,310 ---- $formTags['PLUG_IMAGE_TEXT'] = $_SESSION['translate']->it("Enable ImageManager-Plugin"); // $formTags['PLUG_SPELL_TEXT'] = "n.a. yet ".$_SESSION['translate']->it("Enable SpellChecker-Plugin"); ! $formTags['MESSAGE'] = PHPWS_xwysiwyg::updateOptions($settings); ! $formTags['TOGGLE'] = PHPWS_xwysiwyg::toggleButton($settings['editor']); ! $formTags['BROWSER'] = PHPWS_xwysiwyg::sniffer("text"); ! $formTags['EDITOR'] = $_SESSION['translate']->it("You use [var1] now", "<strong>".$settings['editor']."</strong>"); $this->content .= PHPWS_Template::processTemplate($formTags, "xwysiwyg", "ha_options.tpl"); $this->content .= $this->showArea(); *************** *** 320,324 **** } ! $form = new EZform("options"); $form->add("module", "hidden", "xwysiwyg"); $form->add("action", "hidden", "admin"); --- 330,334 ---- } ! $form = new EZform("xw_options"); $form->add("module", "hidden", "xwysiwyg"); $form->add("action", "hidden", "admin"); *************** *** 344,350 **** $formTags['REQUEST_MODE_TEXT'] = $_SESSION['translate']->it("Enable Request-Mode"); $formTags['FCK_SKIN_TEXT'] = $_SESSION['translate']->it("Select your Skin"); ! $formTags['MESSAGE'] = $this->updateOptions($settings); ! $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(); --- 354,361 ---- $formTags['REQUEST_MODE_TEXT'] = $_SESSION['translate']->it("Enable Request-Mode"); $formTags['FCK_SKIN_TEXT'] = $_SESSION['translate']->it("Select your Skin"); ! $formTags['MESSAGE'] = PHPWS_xwysiwyg::updateOptions($settings); ! $formTags['TOGGLE'] = PHPWS_xwysiwyg::toggleButton($settings['editor']); ! $formTags['BROWSER'] = PHPWS_xwysiwyg::sniffer("text"); ! $formTags['EDITOR'] = $_SESSION['translate']->it("You use [var1] now", "<strong>".$settings['editor']."</strong>"); $this->content .= PHPWS_Template::processTemplate($formTags, "xwysiwyg", "fck_options.tpl"); $this->content .= $this->showArea(); *************** *** 358,364 **** if(isset($_REQUEST['func'])AND($_REQUEST['func'] == "update")) { if($GLOBALS['core']->sqlUpdate($settings, "mod_xwysiwyg_conf")) { ! $message = "<span style=\"color:green;font-weight:bold\">".$_SESSION['translate']->it("Settings saved successfully")."</span><br />"; } else { $message = "<span class=\"errortext\">".$_SESSION['translate']->it("There was a problem saving to the database")."</span><br />"; } ! } else { $message = "<span style=\"color:blue;font-weight:bold\">".$_SESSION['translate']->it("Make your selections")."</span><br />"; } return $message; } --- 369,375 ---- if(isset($_REQUEST['func'])AND($_REQUEST['func'] == "update")) { if($GLOBALS['core']->sqlUpdate($settings, "mod_xwysiwyg_conf")) { ! $message = "<span style=\"color:green;\">".$_SESSION['translate']->it("Settings saved successfully")."</span><br />"; } else { $message = "<span class=\"errortext\">".$_SESSION['translate']->it("There was a problem saving to the database")."</span><br />"; } ! } else { $message = "<span style=\"color:blue;\">".$_SESSION['translate']->it("Make your selections")."</span><br />"; } return $message; } *************** *** 389,402 **** function toggleButton($editor) { //need xhtml compatibility ! $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; } --- 400,414 ---- function toggleButton($editor) { //need xhtml compatibility ! $form = new EZform("xw_toggle"); ! $form->add("module", "hidden", "xwysiwyg"); ! $form->add("action", "hidden", "toggle"); if($editor=="htmlarea") ! $form->add("editor", "hidden", "fck"); else ! $form->add("editor", "hidden", "htmlarea"); ! $form->add("SUBMIT", "submit", $_SESSION['translate']->it("Change")); ! $formTags = $form->getTemplate(); ! $toggle = PHPWS_Template::processTemplate($formTags, "xwysiwyg", "toggle.tpl"); ! return $toggle; } |
From: Yves K. <yku...@us...> - 2004-11-10 00:18:10
|
Update of /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/lang In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17656/modules/xwysiwyg/mod/xwysiwyg/lang Modified Files: xwysiwyg.de.lng xwysiwyg.en.lng Log Message: added 2 phrases Index: xwysiwyg.de.lng =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/lang/xwysiwyg.de.lng,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** xwysiwyg.de.lng 6 Nov 2004 19:20:55 -0000 1.3 --- xwysiwyg.de.lng 10 Nov 2004 00:18:00 -0000 1.4 *************** *** 38,41 **** --- 38,43 ---- a:|:Update was successfull:|:Aktualisieren war erfolgreich a:|:You use [var1] now:|:Sie benutzen jetzt [var1] + a:|:Your Browser IS supported:|:Ihr Browser IST unterstützt + a:|:Your Browser is NOT supported:|:Ihr Browser ist NICHT unterstützt a:|:no action given...:|:es wurde keine keine Aktion angegeben... a:|:xwysiwyg - Manager:|:xwysiwyg - Manager Index: xwysiwyg.en.lng =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/lang/xwysiwyg.en.lng,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** xwysiwyg.en.lng 6 Nov 2004 19:20:55 -0000 1.3 --- xwysiwyg.en.lng 10 Nov 2004 00:18:00 -0000 1.4 *************** *** 38,41 **** --- 38,43 ---- a:|:Update was successfull:|:Update was successfull a:|:You use [var1] now:|:You use [var1] now + a:|:Your Browser IS supported:|:Your Browser IS supported + a:|:Your Browser is NOT supported:|:Your Browser is NOT supported a:|:no action given...:|:no action given... a:|:xwysiwyg - Manager:|:xwysiwyg - Manager |
From: Yves K. <yku...@us...> - 2004-11-10 00:16:48
|
Update of /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17271/modules/xwysiwyg/mod/xwysiwyg/templates Modified Files: fck_options.tpl ha_options.tpl Log Message: optical tuning of the options-templates Index: ha_options.tpl =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/templates/ha_options.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ha_options.tpl 26 Oct 2004 07:34:02 -0000 1.2 --- ha_options.tpl 10 Nov 2004 00:16:39 -0000 1.3 *************** *** 1,5 **** ! <strong>{TITLE}</strong><br /><hr /> ! {MESSAGE}<hr /> ! {EDITOR}  {TOGGLE}<hr /> {START_FORM} {LANG_ACTIV}:  {LANG_ACTIV_TEXT}<br /> --- 1,14 ---- ! <div style="width:100%;font-weight: bold;"> ! <div style="float:left;text-align:left;position:relative;left:4px;">{TITLE}</div> ! <div style="float:right;text-align:right;position:relative;left:-4px;">{MESSAGE}</div> ! </div> ! <div style="width:100%;height:20px"><hr /></div> ! <div style="width:100%;"> ! <div style="float:left;position:relative;left:4px;">{TOGGLE}</div> ! <div style="float:left;position:relative;top:2px;"> {EDITOR}</div> ! <div style="float:right;text-align:right;position:relative;left:-4px;top:2px;">{BROWSER}</div> ! <div style="width:100%;position:relative;top:-10px;"><hr /></div> ! </div> ! <div style="width:100%;float:left;position:relative;left:4px;"> {START_FORM} {LANG_ACTIV}:  {LANG_ACTIV_TEXT}<br /> *************** *** 15,17 **** {PLUG_FILE}:  {PLUG_FILE_TEXT}<br /> {PLUG_IMAGE}:  {PLUG_IMAGE_TEXT}<br /> ! <br />{SUBMIT}{END_FORM} \ No newline at end of file --- 24,27 ---- {PLUG_FILE}:  {PLUG_FILE_TEXT}<br /> {PLUG_IMAGE}:  {PLUG_IMAGE_TEXT}<br /> ! <br />{SUBMIT}{END_FORM} ! </div> \ 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.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** fck_options.tpl 26 Oct 2004 07:34:02 -0000 1.2 --- fck_options.tpl 10 Nov 2004 00:16:39 -0000 1.3 *************** *** 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,20 ---- ! <div style="width:100%;font-weight: bold;"> ! <div style="float:left;text-align:left;position:relative;left:4px;">{TITLE}</div> ! <div style="float:right;text-align:right;position:relative;left:-4px;">{MESSAGE}</div> ! </div> ! <div style="width:100%;height:20px"><hr /></div> ! <div style="width:100%;"> ! <div style="float:left;position:relative;left:4px;">{TOGGLE}</div> ! <div style="float:left;position:relative;top:2px;"> {EDITOR}</div> ! <div style="float:right;text-align:right;position:relative;left:-4px;top:2px;">{BROWSER}</div> ! <div style="width:100%;position:relative;top:-10px;"><hr /></div> ! </div> ! <div style="width:100%;float:left;position:relative;left:4px;"> {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 /><br /> {FCK_SKIN}:  {FCK_SKIN_TEXT}<br /> ! <br />{SUBMIT}{END_FORM} ! </div> \ No newline at end of file |
From: Yves K. <yku...@us...> - 2004-11-10 00:15:24
|
Update of /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16783/modules/xwysiwyg/mod/xwysiwyg/templates Added Files: toggle.tpl Log Message: template added --- NEW FILE: toggle.tpl --- {START_FORM}{SUBMIT}{END_FORM} |
From: Yves K. <yku...@us...> - 2004-11-09 19:27:12
|
Update of /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/_htmlarea/plugins/ImageManager In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11248/modules/xwysiwyg/mod/xwysiwyg/_htmlarea/plugins/ImageManager Modified Files: README.txt editor.php editorFrame.php images.php manager.php newFolder.html thumbs.php Log Message: unix saving Index: README.txt =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/_htmlarea/plugins/ImageManager/README.txt,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** README.txt 25 Oct 2004 18:16:08 -0000 1.1.1.1 --- README.txt 9 Nov 2004 19:26:15 -0000 1.2 *************** *** 1,12 **** ! This is a plug-in for HTMLArea 3.0 ! ! The PHP ImageManager + Editor provides an interface to ! browser for image files on your web server. The Editor ! allows some basic image manipulations such as, cropping, ! rotation, flip, and scaling. ! ! Further and up-to-date documentation can be found at ! http://www.zhuo.org/htmlarea/docs/index.html ! ! Cheer, Wei \ No newline at end of file --- 1,12 ---- ! This is a plug-in for HTMLArea 3.0 ! ! The PHP ImageManager + Editor provides an interface to ! browser for image files on your web server. The Editor ! allows some basic image manipulations such as, cropping, ! rotation, flip, and scaling. ! ! Further and up-to-date documentation can be found at ! http://www.zhuo.org/htmlarea/docs/index.html ! ! Cheer, Wei \ No newline at end of file Index: manager.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/_htmlarea/plugins/ImageManager/manager.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** manager.php 25 Oct 2004 18:16:07 -0000 1.1.1.1 --- manager.php 9 Nov 2004 19:26:16 -0000 1.2 *************** *** 1,129 **** ! <? ! /** ! * The main GUI for the ImageManager. ! * @author $Author$ ! * @version $Id$ ! * @package ImageManager ! */ ! ! require_once('config.inc.php'); ! require_once('Classes/ImageManager.php'); ! ! $manager = new ImageManager($IMConfig); ! $dirs = $manager->getDirs(); ! ! ?> ! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ! ! <html> ! <head> ! <title>Insert Image</title> ! <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> ! <link href="assets/manager.css" rel="stylesheet" type="text/css" /> ! <script type="text/javascript" src="assets/popup.js"></script> ! <script type="text/javascript" src="assets/dialog.js"></script> ! <script type="text/javascript"> ! /*<![CDATA[*/ ! window.resizeTo(600, 460); ! ! if(window.opener) ! I18N = window.opener.ImageManager.I18N; ! ! var thumbdir = "<? echo $IMConfig['thumbnail_dir']; ?>"; ! var base_url = "<? echo $manager->getBaseURL(); ?>"; ! /*]]>*/ ! </script> ! <script type="text/javascript" src="assets/manager.js"></script> ! </head> ! <body> ! <div class="title">Insert Image</div> ! <form action="images.php" id="uploadForm" method="post" enctype="multipart/form-data"> ! <fieldset><legend>Image Manager</legend> ! <div class="dirs"> ! <label for="dirPath">Directory</label> ! <select name="dir" class="dirWidth" id="dirPath" onchange="updateDir(this)"> ! <option value="/">/</option> ! <? foreach($dirs as $relative=>$fullpath) { ?> ! <option value="<? echo rawurlencode($relative); ?>"><? echo $relative; ?></option> ! <? } ?> ! </select> ! <a href="#" onclick="javascript: goUpDir();" title="Directory Up"><img src="img/btnFolderUp.gif" height="15" width="15" alt="Directory Up" /></a> ! <? if($IMConfig['safe_mode'] == false && $IMConfig['allow_new_dir']) { ?> ! <a href="#" onclick="newFolder();" title="New Folder"><img src="img/btnFolderNew.gif" height="15" width="15" alt="New Folder" /></a> ! <? } ?> ! <div id="messages" style="display: none;"><span id="message"></span><img SRC="img/dots.gif" width="22" height="12" alt="..." /></div> ! <iframe src="images.php" name="imgManager" id="imgManager" class="imageFrame" scrolling="auto" title="Image Selection" frameborder="0"></iframe> ! </div> ! </fieldset> ! <!-- image properties --> ! <table class="inputTable"> ! <tr> ! <td align="right"><label for="f_url">Image File</label></td> ! <td><input type="text" id="f_url" class="largelWidth" value="" /></td> ! <td rowspan="3" align="right"> </td> ! <td align="right"><label for="f_width">Width</label></td> ! <td><input type="text" id="f_width" class="smallWidth" value="" onchange="javascript:checkConstrains('width');"/></td> ! <td rowspan="2" align="right"><img src="img/locked.gif" id="imgLock" width="25" height="32" alt="Constrained Proportions" /></td> ! <td rowspan="3" align="right"> </td> ! <td align="right"><label for="f_vert">V Space</label></td> ! <td><input type="text" id="f_vert" class="smallWidth" value="" /></td> ! </tr> ! <tr> ! <td align="right"><label for="f_alt">Alt</label></td> ! <td><input type="text" id="f_alt" class="largelWidth" value="" /></td> ! <td align="right"><label for="f_height">Height</label></td> ! <td><input type="text" id="f_height" class="smallWidth" value="" onchange="javascript:checkConstrains('height');"/></td> ! <td align="right"><label for="f_horiz">H Space</label></td> ! <td><input type="text" id="f_horiz" class="smallWidth" value="" /></td> ! </tr> ! <tr> ! <? if($IMConfig['allow_upload'] == true) { ?> ! <td align="right"><label for="upload">Upload</label></td> ! <td> ! <table cellpadding="0" cellspacing="0" border="0"> ! <tr> ! <td><input type="file" name="upload" id="upload"/></td> ! <td> <button type="submit" name="submit" onclick="doUpload();"/>Upload</button></td> ! </tr> ! </table> ! </td> ! <? } else { ?> ! <td colspan="2"></td> ! <? } ?> ! <td align="right"><label for="f_align">Align</label></td> ! <td colspan="2"> ! <select size="1" 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="selected" >Baseline</option> ! <option value="absbottom" >Absbottom</option> ! <option value="bottom" >Bottom</option> ! <option value="middle" >Middle</option> ! <option value="top" >Top</option> ! </select> ! </td> ! <td align="right"><label for="f_border">Border</label></td> ! <td><input type="text" id="f_border" class="smallWidth" value="" /></td> ! </tr> ! <tr> ! <td colspan="4" align="right"> ! <input type="hidden" id="orginal_width" /> ! <input type="hidden" id="orginal_height" /> ! <input type="checkbox" id="constrain_prop" checked="checked" onclick="javascript:toggleConstrains(this);" /> ! </td> ! <td colspan="5"><label for="constrain_prop">Constrain Proportions</label></td> ! </tr> ! </table> ! <!--// image properties --> ! <div style="text-align: right;"> ! <hr /> ! <button type="button" class="buttons" onclick="return refresh();">Refresh</button> ! <button type="button" class="buttons" onclick="return onOK();">OK</button> ! <button type="button" class="buttons" onclick="return onCancel();">Cancel</button> ! </div> ! </form> ! </body> </html> \ No newline at end of file --- 1,129 ---- ! <? ! /** ! * The main GUI for the ImageManager. ! * @author $Author$ ! * @version $Id$ ! * @package ImageManager ! */ ! ! require_once('config.inc.php'); ! require_once('Classes/ImageManager.php'); ! ! $manager = new ImageManager($IMConfig); ! $dirs = $manager->getDirs(); ! ! ?> ! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ! ! <html> ! <head> ! <title>Insert Image</title> ! <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> ! <link href="assets/manager.css" rel="stylesheet" type="text/css" /> ! <script type="text/javascript" src="assets/popup.js"></script> ! <script type="text/javascript" src="assets/dialog.js"></script> ! <script type="text/javascript"> ! /*<![CDATA[*/ ! window.resizeTo(600, 460); ! ! if(window.opener) ! I18N = window.opener.ImageManager.I18N; ! ! var thumbdir = "<? echo $IMConfig['thumbnail_dir']; ?>"; ! var base_url = "<? echo $manager->getBaseURL(); ?>"; ! /*]]>*/ ! </script> ! <script type="text/javascript" src="assets/manager.js"></script> ! </head> ! <body> ! <div class="title">Insert Image</div> ! <form action="images.php" id="uploadForm" method="post" enctype="multipart/form-data"> ! <fieldset><legend>Image Manager</legend> ! <div class="dirs"> ! <label for="dirPath">Directory</label> ! <select name="dir" class="dirWidth" id="dirPath" onchange="updateDir(this)"> ! <option value="/">/</option> ! <? foreach($dirs as $relative=>$fullpath) { ?> ! <option value="<? echo rawurlencode($relative); ?>"><? echo $relative; ?></option> ! <? } ?> ! </select> ! <a href="#" onclick="javascript: goUpDir();" title="Directory Up"><img src="img/btnFolderUp.gif" height="15" width="15" alt="Directory Up" /></a> ! <? if($IMConfig['safe_mode'] == false && $IMConfig['allow_new_dir']) { ?> ! <a href="#" onclick="newFolder();" title="New Folder"><img src="img/btnFolderNew.gif" height="15" width="15" alt="New Folder" /></a> ! <? } ?> ! <div id="messages" style="display: none;"><span id="message"></span><img SRC="img/dots.gif" width="22" height="12" alt="..." /></div> ! <iframe src="images.php" name="imgManager" id="imgManager" class="imageFrame" scrolling="auto" title="Image Selection" frameborder="0"></iframe> ! </div> ! </fieldset> ! <!-- image properties --> ! <table class="inputTable"> ! <tr> ! <td align="right"><label for="f_url">Image File</label></td> ! <td><input type="text" id="f_url" class="largelWidth" value="" /></td> ! <td rowspan="3" align="right"> </td> ! <td align="right"><label for="f_width">Width</label></td> ! <td><input type="text" id="f_width" class="smallWidth" value="" onchange="javascript:checkConstrains('width');"/></td> ! <td rowspan="2" align="right"><img src="img/locked.gif" id="imgLock" width="25" height="32" alt="Constrained Proportions" /></td> ! <td rowspan="3" align="right"> </td> ! <td align="right"><label for="f_vert">V Space</label></td> ! <td><input type="text" id="f_vert" class="smallWidth" value="" /></td> ! </tr> ! <tr> ! <td align="right"><label for="f_alt">Alt</label></td> ! <td><input type="text" id="f_alt" class="largelWidth" value="" /></td> ! <td align="right"><label for="f_height">Height</label></td> ! <td><input type="text" id="f_height" class="smallWidth" value="" onchange="javascript:checkConstrains('height');"/></td> ! <td align="right"><label for="f_horiz">H Space</label></td> ! <td><input type="text" id="f_horiz" class="smallWidth" value="" /></td> ! </tr> ! <tr> ! <? if($IMConfig['allow_upload'] == true) { ?> ! <td align="right"><label for="upload">Upload</label></td> ! <td> ! <table cellpadding="0" cellspacing="0" border="0"> ! <tr> ! <td><input type="file" name="upload" id="upload"/></td> ! <td> <button type="submit" name="submit" onclick="doUpload();"/>Upload</button></td> ! </tr> ! </table> ! </td> ! <? } else { ?> ! <td colspan="2"></td> ! <? } ?> ! <td align="right"><label for="f_align">Align</label></td> ! <td colspan="2"> ! <select size="1" 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="selected" >Baseline</option> ! <option value="absbottom" >Absbottom</option> ! <option value="bottom" >Bottom</option> ! <option value="middle" >Middle</option> ! <option value="top" >Top</option> ! </select> ! </td> ! <td align="right"><label for="f_border">Border</label></td> ! <td><input type="text" id="f_border" class="smallWidth" value="" /></td> ! </tr> ! <tr> ! <td colspan="4" align="right"> ! <input type="hidden" id="orginal_width" /> ! <input type="hidden" id="orginal_height" /> ! <input type="checkbox" id="constrain_prop" checked="checked" onclick="javascript:toggleConstrains(this);" /> ! </td> ! <td colspan="5"><label for="constrain_prop">Constrain Proportions</label></td> ! </tr> ! </table> ! <!--// image properties --> ! <div style="text-align: right;"> ! <hr /> ! <button type="button" class="buttons" onclick="return refresh();">Refresh</button> ! <button type="button" class="buttons" onclick="return onOK();">OK</button> ! <button type="button" class="buttons" onclick="return onCancel();">Cancel</button> ! </div> ! </form> ! </body> </html> \ No newline at end of file Index: newFolder.html =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/_htmlarea/plugins/ImageManager/newFolder.html,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** newFolder.html 25 Oct 2004 18:16:04 -0000 1.1.1.1 --- newFolder.html 9 Nov 2004 19:26:16 -0000 1.2 *************** *** 1,78 **** ! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ! <html> ! <head> ! <title>New Folder</title> ! <style type="text/css"> ! /*<![CDATA[*/ ! html, body { background-color: ButtonFace; color: ButtonText; font: 11px Tahoma,Verdana,sans-serif; margin: 0; padding: 0;} ! body { padding: 5px; } ! .title { background-color: #ddf; color: #000; font-weight: bold; font-size: 120%; padding: 3px 10px; margin-bottom: 10px; border-bottom: 1px solid black; letter-spacing: 2px;} ! select, input, button { font: 11px Tahoma,Verdana,sans-serif; } ! .buttons { width: 70px; text-align: center; } ! form { padding: 0px; margin: 0;} ! form .elements{ ! padding: 10px; text-align: center; ! } ! /*]]>*/ ! </style> ! <script type="text/javascript" src="assets/popup.js"></script> ! <script type="text/javascript"> ! /*<![CDATA[*/ ! window.resizeTo(300, 160); ! ! if(window.opener) ! I18N = window.opener.I18N; ! ! init = function () ! { ! __dlg_init(); ! __dlg_translate(I18N); ! document.getElementById("f_foldername").focus(); ! } ! ! function onCancel() ! { ! __dlg_close(null); ! return false; ! } ! ! function onOK() ! { ! // pass data back to the calling window ! var fields = ["f_foldername"]; ! 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 addEvent(obj, evType, fn) ! { ! if (obj.addEventListener) { obj.addEventListener(evType, fn, true); return true; } ! else if (obj.attachEvent) { var r = obj.attachEvent("on"+evType, fn); return r; } ! else { return false; } ! } ! ! addEvent(window, 'load', init); ! //--> ! </script> ! </head> ! <body > ! <div class="title">New Folder</div> ! <form action=""> ! <div class="elements"> ! <label for="f_foldername">Folder Name:</label> ! <input type="text" id="f_foldername" /> ! </div> ! <div style="text-align: right;"> ! <hr /> ! <button type="button" class="buttons" onclick="return onOK();">OK</button> ! <button type="button" class="buttons" onclick="return onCancel();">Cancel</button> ! </div> ! </form> ! </body> </html> \ No newline at end of file --- 1,78 ---- ! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ! <html> ! <head> ! <title>New Folder</title> ! <style type="text/css"> ! /*<![CDATA[*/ ! html, body { background-color: ButtonFace; color: ButtonText; font: 11px Tahoma,Verdana,sans-serif; margin: 0; padding: 0;} ! body { padding: 5px; } ! .title { background-color: #ddf; color: #000; font-weight: bold; font-size: 120%; padding: 3px 10px; margin-bottom: 10px; border-bottom: 1px solid black; letter-spacing: 2px;} ! select, input, button { font: 11px Tahoma,Verdana,sans-serif; } ! .buttons { width: 70px; text-align: center; } ! form { padding: 0px; margin: 0;} ! form .elements{ ! padding: 10px; text-align: center; ! } ! /*]]>*/ ! </style> ! <script type="text/javascript" src="assets/popup.js"></script> ! <script type="text/javascript"> ! /*<![CDATA[*/ ! window.resizeTo(300, 160); ! ! if(window.opener) ! I18N = window.opener.I18N; ! ! init = function () ! { ! __dlg_init(); ! __dlg_translate(I18N); ! document.getElementById("f_foldername").focus(); ! } ! ! function onCancel() ! { ! __dlg_close(null); ! return false; ! } ! ! function onOK() ! { ! // pass data back to the calling window ! var fields = ["f_foldername"]; ! 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 addEvent(obj, evType, fn) ! { ! if (obj.addEventListener) { obj.addEventListener(evType, fn, true); return true; } ! else if (obj.attachEvent) { var r = obj.attachEvent("on"+evType, fn); return r; } ! else { return false; } ! } ! ! addEvent(window, 'load', init); ! //--> ! </script> ! </head> ! <body > ! <div class="title">New Folder</div> ! <form action=""> ! <div class="elements"> ! <label for="f_foldername">Folder Name:</label> ! <input type="text" id="f_foldername" /> ! </div> ! <div style="text-align: right;"> ! <hr /> ! <button type="button" class="buttons" onclick="return onOK();">OK</button> ! <button type="button" class="buttons" onclick="return onCancel();">Cancel</button> ! </div> ! </form> ! </body> </html> \ No newline at end of file Index: editorFrame.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/_htmlarea/plugins/ImageManager/editorFrame.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** editorFrame.php 25 Oct 2004 18:15:59 -0000 1.1.1.1 --- editorFrame.php 9 Nov 2004 19:26:16 -0000 1.2 *************** *** 1,69 **** ! <? ! ! /** ! * The frame that contains the image to be edited. ! * @author $Author$ ! * @version $Id$ ! * @package ImageManager ! */ ! ! require_once('config.inc.php'); ! require_once('Classes/ImageManager.php'); ! require_once('Classes/ImageEditor.php'); ! ! $manager = new ImageManager($IMConfig); ! $editor = new ImageEditor($manager); ! $imageInfo = $editor->processImage(); ! ! ?> ! ! <html> ! <head> ! <title></title> ! <link href="assets/editorFrame.css" rel="stylesheet" type="text/css" /> ! <script type="text/javascript" src="assets/wz_jsgraphics.js"></script> ! <script type="text/javascript" src="assets/EditorContent.js"></script> ! <script type="text/javascript"> ! if(window.top) ! I18N = window.top.I18N; ! ! function i18n(str) { ! if(I18N) ! return (I18N[str] || str); ! else ! return str; ! }; ! ! var mode = "<? echo $editor->getAction(); ?>" //crop, scale, measure ! ! var currentImageFile = "<? if(count($imageInfo)>0) echo rawurlencode($imageInfo['file']); ?>"; ! ! <? if ($editor->isFileSaved() == 1) { ?> ! alert(i18n('File saved.')); ! <? } else if ($editor->isFileSaved() == -1) { ?> ! alert(i18n('File was not saved.')); ! <? } ?> ! ! </script> ! <script type="text/javascript" src="assets/editorFrame.js"></script> ! </head> ! ! <body> ! <div id="status"></div> ! <div id="ant" class="selection" style="visibility:hidden"><img src="img/spacer.gif" width="0" height="0" border="0" alt="" id="cropContent"></div> ! <? if ($editor->isGDEditable() == -1) { ?> ! <div style="text-align:center; padding:10px;"><span class="error">GIF format is not supported, image editing not supported.</span></div> ! <? } ?> ! <table height="100%" width="100%"> ! <tr> ! <td> ! <? if(count($imageInfo) > 0 && is_file($imageInfo['fullpath'])) { ?> ! <span id="imgCanvas" class="crop"><img src="<? echo $imageInfo['src']; ?>" <? echo $imageInfo['dimensions']; ?> alt="" id="theImage" name="theImage"></span> ! <? } else { ?> ! <span class="error">No Image Available</span> ! <? } ?> ! </td> ! </tr> ! </table> ! </body> ! </html> --- 1,69 ---- ! <? ! ! /** ! * The frame that contains the image to be edited. ! * @author $Author$ ! * @version $Id$ ! * @package ImageManager ! */ ! ! require_once('config.inc.php'); ! require_once('Classes/ImageManager.php'); ! require_once('Classes/ImageEditor.php'); ! ! $manager = new ImageManager($IMConfig); ! $editor = new ImageEditor($manager); ! $imageInfo = $editor->processImage(); ! ! ?> ! ! <html> ! <head> ! <title></title> ! <link href="assets/editorFrame.css" rel="stylesheet" type="text/css" /> ! <script type="text/javascript" src="assets/wz_jsgraphics.js"></script> ! <script type="text/javascript" src="assets/EditorContent.js"></script> ! <script type="text/javascript"> ! if(window.top) ! I18N = window.top.I18N; ! ! function i18n(str) { ! if(I18N) ! return (I18N[str] || str); ! else ! return str; ! }; ! ! var mode = "<? echo $editor->getAction(); ?>" //crop, scale, measure ! ! var currentImageFile = "<? if(count($imageInfo)>0) echo rawurlencode($imageInfo['file']); ?>"; ! ! <? if ($editor->isFileSaved() == 1) { ?> ! alert(i18n('File saved.')); ! <? } else if ($editor->isFileSaved() == -1) { ?> ! alert(i18n('File was not saved.')); ! <? } ?> ! ! </script> ! <script type="text/javascript" src="assets/editorFrame.js"></script> ! </head> ! ! <body> ! <div id="status"></div> ! <div id="ant" class="selection" style="visibility:hidden"><img src="img/spacer.gif" width="0" height="0" border="0" alt="" id="cropContent"></div> ! <? if ($editor->isGDEditable() == -1) { ?> ! <div style="text-align:center; padding:10px;"><span class="error">GIF format is not supported, image editing not supported.</span></div> ! <? } ?> ! <table height="100%" width="100%"> ! <tr> ! <td> ! <? if(count($imageInfo) > 0 && is_file($imageInfo['fullpath'])) { ?> ! <span id="imgCanvas" class="crop"><img src="<? echo $imageInfo['src']; ?>" <? echo $imageInfo['dimensions']; ?> alt="" id="theImage" name="theImage"></span> ! <? } else { ?> ! <span class="error">No Image Available</span> ! <? } ?> ! </td> ! </tr> ! </table> ! </body> ! </html> Index: thumbs.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/_htmlarea/plugins/ImageManager/thumbs.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** thumbs.php 25 Oct 2004 18:16:11 -0000 1.1.1.1 --- thumbs.php 9 Nov 2004 19:26:16 -0000 1.2 *************** *** 1,82 **** ! <? ! /** ! * On the fly Thumbnail generation. ! * Creates thumbnails given by thumbs.php?img=/relative/path/to/image.jpg ! * relative to the base_dir given in config.inc.php ! * @author $Author$ ! * @version $Id$ ! * @package ImageManager ! */ ! ! require_once('config.inc.php'); ! require_once('Classes/ImageManager.php'); ! require_once('Classes/Thumbnail.php'); ! ! //check for img parameter in the url ! if(!isset($_GET['img'])) ! exit(); ! ! ! $manager = new ImageManager($IMConfig); ! ! //get the image and the full path to the image ! $image = rawurldecode($_GET['img']); ! $fullpath = Files::makeFile($manager->getBaseDir(),$image); ! ! //not a file, so exit ! if(!is_file($fullpath)) ! exit(); ! ! $imgInfo = @getImageSize($fullpath); ! ! //Not an image, send default thumbnail ! if(!is_array($imgInfo)) ! { ! //show the default image, otherwise we quit! ! $default = $manager->getDefaultThumb(); ! if($default) ! { ! header('Location: '.$default); ! exit(); ! } ! } ! //if the image is less than the thumbnail dimensions ! //send the original image as thumbnail ! if ($imgInfo[0] <= $IMConfig['thumbnail_width'] ! && $imgInfo[1] <= $IMConfig['thumbnail_height']) ! { ! header('Location: '.$manager->getFileURL($image)); ! exit(); ! } ! ! //Check for thumbnails ! $thumbnail = $manager->getThumbName($fullpath); ! if(is_file($thumbnail)) ! { ! //if the thumbnail is newer, send it ! if(filemtime($thumbnail) >= filemtime($fullpath)) ! { ! header('Location: '.$manager->getThumbURL($image)); ! exit(); ! } ! } ! ! //creating thumbnails ! $thumbnailer = new Thumbnail($IMConfig['thumbnail_width'],$IMConfig['thumbnail_height']); ! $thumbnailer->createThumbnail($fullpath, $thumbnail); ! ! //Check for NEW thumbnails ! if(is_file($thumbnail)) ! { ! //send the new thumbnail ! header('Location: '.$manager->getThumbURL($image)); ! exit(); ! } ! else ! { ! //show the default image, otherwise we quit! ! $default = $manager->getDefaultThumb(); ! if($default) ! header('Location: '.$default); ! } ?> \ No newline at end of file --- 1,82 ---- ! <? ! /** ! * On the fly Thumbnail generation. ! * Creates thumbnails given by thumbs.php?img=/relative/path/to/image.jpg ! * relative to the base_dir given in config.inc.php ! * @author $Author$ ! * @version $Id$ ! * @package ImageManager ! */ ! ! require_once('config.inc.php'); ! require_once('Classes/ImageManager.php'); ! require_once('Classes/Thumbnail.php'); ! ! //check for img parameter in the url ! if(!isset($_GET['img'])) ! exit(); ! ! ! $manager = new ImageManager($IMConfig); ! ! //get the image and the full path to the image ! $image = rawurldecode($_GET['img']); ! $fullpath = Files::makeFile($manager->getBaseDir(),$image); ! ! //not a file, so exit ! if(!is_file($fullpath)) ! exit(); ! ! $imgInfo = @getImageSize($fullpath); ! ! //Not an image, send default thumbnail ! if(!is_array($imgInfo)) ! { ! //show the default image, otherwise we quit! ! $default = $manager->getDefaultThumb(); ! if($default) ! { ! header('Location: '.$default); ! exit(); ! } ! } ! //if the image is less than the thumbnail dimensions ! //send the original image as thumbnail ! if ($imgInfo[0] <= $IMConfig['thumbnail_width'] ! && $imgInfo[1] <= $IMConfig['thumbnail_height']) ! { ! header('Location: '.$manager->getFileURL($image)); ! exit(); ! } ! ! //Check for thumbnails ! $thumbnail = $manager->getThumbName($fullpath); ! if(is_file($thumbnail)) ! { ! //if the thumbnail is newer, send it ! if(filemtime($thumbnail) >= filemtime($fullpath)) ! { ! header('Location: '.$manager->getThumbURL($image)); ! exit(); ! } ! } ! ! //creating thumbnails ! $thumbnailer = new Thumbnail($IMConfig['thumbnail_width'],$IMConfig['thumbnail_height']); ! $thumbnailer->createThumbnail($fullpath, $thumbnail); ! ! //Check for NEW thumbnails ! if(is_file($thumbnail)) ! { ! //send the new thumbnail ! header('Location: '.$manager->getThumbURL($image)); ! exit(); ! } ! else ! { ! //show the default image, otherwise we quit! ! $default = $manager->getDefaultThumb(); ! if($default) ! header('Location: '.$default); ! } ?> \ No newline at end of file Index: images.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/_htmlarea/plugins/ImageManager/images.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** images.php 25 Oct 2004 18:16:04 -0000 1.1.1.1 --- images.php 9 Nov 2004 19:26:16 -0000 1.2 *************** *** 1,205 **** ! <? ! /** ! * Show a list of images in a long horizontal table. ! * @author $Author$ ! * @version $Id$ ! * @package ImageManager ! */ ! ! require_once('config.inc.php'); ! require_once('Classes/ImageManager.php'); ! ! //default path is / ! $relative = '/'; ! $manager = new ImageManager($IMConfig); ! ! //process any file uploads ! $manager->processUploads(); ! ! $manager->deleteFiles(); ! ! $refreshDir = false; ! //process any directory functions ! if($manager->deleteDirs() || $manager->processNewDir()) ! $refreshDir = true; ! ! //check for any sub-directory request ! //check that the requested sub-directory exists ! //and valid ! if(isset($_REQUEST['dir'])) ! { ! $path = rawurldecode($_REQUEST['dir']); ! if($manager->validRelativePath($path)) ! $relative = $path; ! } ! ! ! $manager = new ImageManager($IMConfig); ! ! ! //get the list of files and directories ! $list = $manager->getFiles($relative); ! ! ! /* ================= OUTPUT/DRAW FUNCTIONS ======================= */ ! ! /** ! * Draw the files in an table. ! */ ! function drawFiles($list, &$manager) ! { ! global $relative; ! ! foreach($list as $entry => $file) ! { ?> ! <td><table width="100" cellpadding="0" cellspacing="0"><tr><td class="block"> ! <a href="javascript:;" onclick="selectImage('<? echo $file['relative'];?>', '<? echo $entry; ?>', <? echo $file['image'][0];?>, <? echo $file['image'][1]; ?>);"title="<? echo $entry; ?> - <? echo Files::formatSize($file['stat']['size']); ?>"><img src="<? echo $manager->getThumbnail($file['relative']); ?>" alt="<? echo $entry; ?> - <? echo Files::formatSize($file['stat']['size']); ?>"/></a> ! </td></tr><tr><td class="edit"> ! <a href="images.php?dir=<? echo $relative; ?>&delf=<? echo rawurlencode($file['relative']);?>" title="Trash" onclick="return confirmDeleteFile('<? echo $entry; ?>');"><img src="img/edit_trash.gif" height="15" width="15" alt="Trash"/></a><a href="javascript:;" title="Edit" onclick="editImage('<? echo rawurlencode($file['relative']);?>');"><img src="img/edit_pencil.gif" height="15" width="15" alt="Edit"/></a> ! <? if($file['image']){ echo $file['image'][0].'x'.$file['image'][1]; } else echo $entry;?> ! </td></tr></table></td> ! <? ! }//foreach ! }//function drawFiles ! ! ! /** ! * Draw the directory. ! */ ! function drawDirs($list, &$manager) ! { ! global $relative; ! ! foreach($list as $path => $dir) ! { ?> ! <td><table width="100" cellpadding="0" cellspacing="0"><tr><td class="block"> ! <a href="images.php?dir=<? echo rawurlencode($path); ?>" onclick="updateDir('<? echo $path; ?>')" title="<? echo $dir['entry']; ?>"><img src="img/folder.gif" height="80" width="80" alt="<? echo $dir['entry']; ?>" /></a> ! </td></tr><tr> ! <td class="edit"> ! <a href="images.php?dir=<? echo $relative; ?>&deld=<? echo rawurlencode($path); ?>" title="Trash" onclick="return confirmDeleteDir('<? echo $dir['entry']; ?>', <? echo $dir['count']; ?>);"><img src="img/edit_trash.gif" height="15" width="15" alt="Trash"/></a> ! <? echo $dir['entry']; ?> ! </td> ! </tr></table></td> ! <? ! } //foreach ! }//function drawDirs ! ! ! /** ! * No directories and no files. ! */ ! function drawNoResults() ! { ! ?> ! <table width="100%"> ! <tr> ! <td class="noResult">No Images Found</td> ! </tr> ! </table> ! <? ! } ! ! /** ! * No directories and no files. ! */ ! function drawErrorBase(&$manager) ! { ! ?> ! <table width="100%"> ! <tr> ! <td class="error">Invalid base directory: <? echo $manager->config['base_dir']; ?></td> ! </tr> ! </table> ! <? ! } ! ! ?> ! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ! ! <html> ! <head> ! <title>Image List</title> ! <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> ! <link href="assets/imagelist.css" rel="stylesheet" type="text/css" /> ! <script type="text/javascript" src="assets/dialog.js"></script> ! <script type="text/javascript"> ! /*<![CDATA[*/ ! ! if(window.top) ! I18N = window.top.I18N; ! ! function hideMessage() ! { ! var topDoc = window.top.document; ! var messages = topDoc.getElementById('messages'); ! if(messages) ! messages.style.display = "none"; ! } ! ! init = function() ! { ! hideMessage(); ! var topDoc = window.top.document; ! ! <? ! //we need to refesh the drop directory list ! //save the current dir, delete all select options ! //add the new list, re-select the saved dir. ! if($refreshDir) ! { ! $dirs = $manager->getDirs(); ! ?> ! var selection = topDoc.getElementById('dirPath'); ! var currentDir = selection.options[selection.selectedIndex].text; ! ! while(selection.length > 0) ! { selection.remove(0); } ! ! selection.options[selection.length] = new Option("/","<? echo rawurlencode('/'); ?>"); ! <? foreach($dirs as $relative=>$fullpath) { ?> ! selection.options[selection.length] = new Option("<? echo $relative; ?>","<? echo rawurlencode($relative); ?>"); ! <? } ?> ! ! for(var i = 0; i < selection.length; i++) ! { ! var thisDir = selection.options[i].text; ! if(thisDir == currentDir) ! { ! selection.selectedIndex = i; ! break; ! } ! } ! <? } ?> ! } ! ! function editImage(image) ! { ! var url = "editor.php?img="+image; ! Dialog(url, function(param) ! { ! if (!param) // user must have pressed Cancel ! return false; ! else ! { ! return true; ! } ! }, null); ! } ! ! /*]]>*/ ! </script> ! <script type="text/javascript" src="assets/images.js"></script> ! </head> ! ! <body> ! <? if ($manager->isValidBase() == false) { drawErrorBase($manager); } ! elseif(count($list[0]) > 0 || count($list[1]) > 0) { ?> ! <table> ! <tr> ! <? drawDirs($list[0], $manager); ?> ! <? drawFiles($list[1], $manager); ?> ! </tr> ! </table> ! <? } else { drawNoResults(); } ?> ! </body> ! </html> --- 1,205 ---- ! <? ! /** ! * Show a list of images in a long horizontal table. ! * @author $Author$ ! * @version $Id$ ! * @package ImageManager ! */ ! ! require_once('config.inc.php'); ! require_once('Classes/ImageManager.php'); ! ! //default path is / ! $relative = '/'; ! $manager = new ImageManager($IMConfig); ! ! //process any file uploads ! $manager->processUploads(); ! ! $manager->deleteFiles(); ! ! $refreshDir = false; ! //process any directory functions ! if($manager->deleteDirs() || $manager->processNewDir()) ! $refreshDir = true; ! ! //check for any sub-directory request ! //check that the requested sub-directory exists ! //and valid ! if(isset($_REQUEST['dir'])) ! { ! $path = rawurldecode($_REQUEST['dir']); ! if($manager->validRelativePath($path)) ! $relative = $path; ! } ! ! ! $manager = new ImageManager($IMConfig); ! ! ! //get the list of files and directories ! $list = $manager->getFiles($relative); ! ! ! /* ================= OUTPUT/DRAW FUNCTIONS ======================= */ ! ! /** ! * Draw the files in an table. ! */ ! function drawFiles($list, &$manager) ! { ! global $relative; ! ! foreach($list as $entry => $file) ! { ?> ! <td><table width="100" cellpadding="0" cellspacing="0"><tr><td class="block"> ! <a href="javascript:;" onclick="selectImage('<? echo $file['relative'];?>', '<? echo $entry; ?>', <? echo $file['image'][0];?>, <? echo $file['image'][1]; ?>);"title="<? echo $entry; ?> - <? echo Files::formatSize($file['stat']['size']); ?>"><img src="<? echo $manager->getThumbnail($file['relative']); ?>" alt="<? echo $entry; ?> - <? echo Files::formatSize($file['stat']['size']); ?>"/></a> ! </td></tr><tr><td class="edit"> ! <a href="images.php?dir=<? echo $relative; ?>&delf=<? echo rawurlencode($file['relative']);?>" title="Trash" onclick="return confirmDeleteFile('<? echo $entry; ?>');"><img src="img/edit_trash.gif" height="15" width="15" alt="Trash"/></a><a href="javascript:;" title="Edit" onclick="editImage('<? echo rawurlencode($file['relative']);?>');"><img src="img/edit_pencil.gif" height="15" width="15" alt="Edit"/></a> ! <? if($file['image']){ echo $file['image'][0].'x'.$file['image'][1]; } else echo $entry;?> ! </td></tr></table></td> ! <? ! }//foreach ! }//function drawFiles ! ! ! /** ! * Draw the directory. ! */ ! function drawDirs($list, &$manager) ! { ! global $relative; ! ! foreach($list as $path => $dir) ! { ?> ! <td><table width="100" cellpadding="0" cellspacing="0"><tr><td class="block"> ! <a href="images.php?dir=<? echo rawurlencode($path); ?>" onclick="updateDir('<? echo $path; ?>')" title="<? echo $dir['entry']; ?>"><img src="img/folder.gif" height="80" width="80" alt="<? echo $dir['entry']; ?>" /></a> ! </td></tr><tr> ! <td class="edit"> ! <a href="images.php?dir=<? echo $relative; ?>&deld=<? echo rawurlencode($path); ?>" title="Trash" onclick="return confirmDeleteDir('<? echo $dir['entry']; ?>', <? echo $dir['count']; ?>);"><img src="img/edit_trash.gif" height="15" width="15" alt="Trash"/></a> ! <? echo $dir['entry']; ?> ! </td> ! </tr></table></td> ! <? ! } //foreach ! }//function drawDirs ! ! ! /** ! * No directories and no files. ! */ ! function drawNoResults() ! { ! ?> ! <table width="100%"> ! <tr> ! <td class="noResult">No Images Found</td> ! </tr> ! </table> ! <? ! } ! ! /** ! * No directories and no files. ! */ ! function drawErrorBase(&$manager) ! { ! ?> ! <table width="100%"> ! <tr> ! <td class="error">Invalid base directory: <? echo $manager->config['base_dir']; ?></td> ! </tr> ! </table> ! <? ! } ! ! ?> ! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ! ! <html> ! <head> ! <title>Image List</title> ! <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> ! <link href="assets/imagelist.css" rel="stylesheet" type="text/css" /> ! <script type="text/javascript" src="assets/dialog.js"></script> ! <script type="text/javascript"> ! /*<![CDATA[*/ ! ! if(window.top) ! I18N = window.top.I18N; ! ! function hideMessage() ! { ! var topDoc = window.top.document; ! var messages = topDoc.getElementById('messages'); ! if(messages) ! messages.style.display = "none"; ! } ! ! init = function() ! { ! hideMessage(); ! var topDoc = window.top.document; ! ! <? ! //we need to refesh the drop directory list ! //save the current dir, delete all select options ! //add the new list, re-select the saved dir. ! if($refreshDir) ! { ! $dirs = $manager->getDirs(); ! ?> ! var selection = topDoc.getElementById('dirPath'); ! var currentDir = selection.options[selection.selectedIndex].text; ! ! while(selection.length > 0) ! { selection.remove(0); } ! ! selection.options[selection.length] = new Option("/","<? echo rawurlencode('/'); ?>"); ! <? foreach($dirs as $relative=>$fullpath) { ?> ! selection.options[selection.length] = new Option("<? echo $relative; ?>","<? echo rawurlencode($relative); ?>"); ! <? } ?> ! ! for(var i = 0; i < selection.length; i++) ! { ! var thisDir = selection.options[i].text; ! if(thisDir == currentDir) ! { ! selection.selectedIndex = i; ! break; ! } ! } ! <? } ?> ! } ! ! function editImage(image) ! { ! var url = "editor.php?img="+image; ! Dialog(url, function(param) ! { ! if (!param) // user must have pressed Cancel ! return false; ! else ! { ! return true; ! } ! }, null); ! } ! ! /*]]>*/ ! </script> ! <script type="text/javascript" src="assets/images.js"></script> ! </head> ! ! <body> ! <? if ($manager->isValidBase() == false) { drawErrorBase($manager); } ! elseif(count($list[0]) > 0 || count($list[1]) > 0) { ?> ! <table> ! <tr> ! <? drawDirs($list[0], $manager); ?> ! <? drawFiles($list[1], $manager); ?> ! </tr> ! </table> ! <? } else { drawNoResults(); } ?> ! </body> ! </html> Index: editor.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/_htmlarea/plugins/ImageManager/editor.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** editor.php 25 Oct 2004 18:16:11 -0000 1.1.1.1 --- editor.php 9 Nov 2004 19:26:15 -0000 1.2 *************** *** 1,144 **** ! <? ! /** ! * The PHP Image Editor user interface. ! * @author $Author$ ! * @version $Id$ ! * @package ImageManager ! */ ! ! require_once('config.inc.php'); ! require_once('Classes/ImageManager.php'); ! require_once('Classes/ImageEditor.php'); ! ! $manager = new ImageManager($IMConfig); ! $editor = new ImageEditor($manager); ! ! ?> ! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ! ! <html> ! <head> ! <title></title> ! <link href="assets/editor.css" rel="stylesheet" type="text/css" /> ! <script type="text/javascript" src="assets/slider.js"></script> ! <script type="text/javascript" src="assets/popup.js"></script> ! <script type="text/javascript"> ! /*<![CDATA[*/ ! window.resizeTo(673, 531); ! if(window.opener) ! I18N = window.opener.I18N; ! /*]]>*/ ! </script> ! <script type="text/javascript" src="assets/editor.js"></script> ! </head> ! ! <body> ! <div id="indicator"> ! <img src="img/spacer.gif" id="indicator_image" height="20" width="20" alt="" /> ! </div> ! <div id="tools"> ! <div id="tools_crop" style="display:none;"> ! <div id="tool_inputs"> ! <label for="cx">Start X:</label><input type="text" id="cx" class="textInput" onchange="updateMarker('crop')"/> ! <label for="cy">Start Y:</label><input type="text" id="cy" class="textInput" onchange="updateMarker('crop')"/> ! <label for="cw">Width:</label><input type="text" id="cw" class="textInput" onchange="updateMarker('crop')"/> ! <label for="ch">Height:</label><input type="text" id="ch" class="textInput" onchange="updateMarker('crop')"/> ! <img src="img/div.gif" height="30" width="2" class="div" alt="|" /> ! </div> ! <a href="javascript: editor.doSubmit('crop');" class="buttons" title="OK"><img src="img/btn_ok.gif" height="30" width="30" alt="OK" /></a> ! <a href="javascript: editor.reset();" class="buttons" title="Cancel"><img src="img/btn_cancel.gif" height="30" width="30" alt="Cancel" /></a> ! </div> ! <div id="tools_scale" style="display:none;"> ! <div id="tool_inputs"> ! <label for="sw">Width:</label><input type="text" id="sw" class="textInput" onchange="checkConstrains('width')"/> ! <a href="javascript:toggleConstraints();" title="Lock"><img src="img/islocked2.gif" id="scaleConstImg" height="14" width="8" alt="Lock" class="div" /></a><label for="sh">Height:</label> ! <input type="text" id="sh" class="textInput" onchange="checkConstrains('height')"/> ! <input type="checkbox" id="constProp" value="1" checked="checked" onclick="toggleConstraints()"/> ! <label for="constProp">Constrain Proportions</label> ! <img src="img/div.gif" height="30" width="2" class="div" alt="|" /> ! </div> ! <a href="javascript: editor.doSubmit('scale');" class="buttons" title="OK"><img src="img/btn_ok.gif" height="30" width="30" alt="OK" /></a> ! <a href="javascript: editor.reset();" class="buttons" title="Cancle"><img src="img/btn_cancel.gif" height="30" width="30" alt="Cancel" /></a> ! </div> ! <div id="tools_rotate" style="display:none;"> ! <div id="tool_inputs"> ! <select id="flip" name="flip" style="margin-left: 10px; vertical-align: middle;"> ! <option selected>Flip Image</option> ! <option>-----------------</option> ! <option value="hoz">Flip Horizontal</option> ! <option value="ver">Flip Virtical</option> ! </select> ! <select name="rotate" onchange="rotatePreset(this)" style="margin-left: 20px; vertical-align: middle;"> ! <option selected>Rotate Image</option> ! <option>-----------------</option> ! ! <option value="180">Rotate 180 °</option> ! <option value="90">Rotate 90 ° CW</option> ! <option value="-90">Rotate 90 ° CCW</option> ! </select> ! <label for="ra">Angle:</label><input type="text" id="ra" class="textInput" /> ! <img src="img/div.gif" height="30" width="2" class="div" alt="|" /> ! </div> ! <a href="javascript: editor.doSubmit('rotate');" class="buttons" title="OK"><img src="img/btn_ok.gif" height="30" width="30" alt="OK" /></a> ! <a href="javascript: editor.reset();" class="buttons" title="Cancle"><img src="img/btn_cancel.gif" height="30" width="30" alt="Cancel" /></a> ! </div> ! <div id="tools_measure" style="display:none;"> ! <div id="tool_inputs"> ! <label>X:</label><input type="text" class="measureStats" id="sx" /> ! <label>Y:</label><input type="text" class="measureStats" id="sy" /> ! <img src="img/div.gif" height="30" width="2" class="div" alt="|" /> ! <label>W:</label><input type="text" class="measureStats" id="mw" /> ! <label>H:</label><input type="text" class="measureStats" id="mh" /> ! <img src="img/div.gif" height="30" width="2" class="div" alt="|" /> ! <label>A:</label><input type="text" class="measureStats" id="ma" /> ! <label>D:</label><input type="text" class="measureStats" id="md" /> ! <img src="img/div.gif" height="30" width="2" class="div" alt="|" /> ! <button type="button" onclick="editor.reset();" >Clear</button> ! </div> ! </div> ! <div id="tools_save" style="display:none;"> ! <div id="tool_inputs"> ! <label for="save_filename">Filename:</label><input type="text" id="save_filename" value="<? echo $editor->getDefaultSaveFile();?>"/> ! <select name="format" id="save_format" style="margin-left: 10px; vertical-align: middle;" onchange="updateFormat(this)"> ! <option value="" selected>Image Format</option> ! <option value="">---------------------</option> ! <option value="jpeg,85">JPEG High</option> ! <option value="jpeg,60">JPEG Medium</option> ! <option value="jpeg,35">JPEG Low</option> ! <option value="png">PNG</option> ! <? if($editor->isGDGIFAble() != -1) { ?> ! <option value="gif">GIF</option> ! <? } ?> ! </select> ! <label>Quality:</label> ! <table style="display: inline; vertical-align: middle;" cellpadding="0" cellspacing="0"> ! <tr> ! <td> ! <div id="slidercasing"> ! <div id="slidertrack" style="width:100px"><img src="img/spacer.gif" width="1" height="1" border="0" alt="track"></div> ! <div id="sliderbar" style="left:85px" onmousedown="captureStart();"><img src="img/spacer.gif" width="1" height="1" border="0" alt="track"></div> ! </div> ! </td> ! </tr> ! </table> ! <input type="text" id="quality" onchange="updateSlider(this.value)" style="width: 2em;" value="85"/> ! <img src="img/div.gif" height="30" width="2" class="div" alt="|" /> ! </div> ! <a href="javascript: editor.doSubmit('save');" class="buttons" title="OK"><img src="img/btn_ok.gif" height="30" width="30" alt="OK" /></a> ! <a href="javascript: editor.reset();" class="buttons" title="Cancel"><img src="img/btn_cancel.gif" height="30" width="30" alt="Cancel" /></a> ! </div> ! </div> ! <div id="toolbar"> ! <a href="javascript:toggle('crop')" id="icon_crop" title="Crop"><img src="img/crop.gif" height="20" width="20" alt="Crop" /><span>Crop</span></a> ! <a href="javascript:toggle('scale')" id="icon_scale" title="Resize"><img src="img/scale.gif" height="20" width="20" alt="Resize" /><span>Resize</span></a> ! <a href="javascript:toggle('rotate')" id="icon_rotate" title="Rotate"><img src="img/rotate.gif" height="20" width="20" alt="Rotate" /><span>Rotate</span></a> ! <a href="javascript:toggle('measure')" id="icon_measure" title="Measure"><img src="img/measure.gif" height="20" width="20" alt="Measure" /><span>Measure</span></a> ! <a href="javascript: toggleMarker();" title="Marker"><img id="markerImg" src="img/t_black.gif" height="20" width="20" alt="Marker" /><span>Marker</span></a> ! <a href="javascript:toggle('save')" id="icon_save" title="Save"><img src="img/save.gif" height="20" width="20" alt="Save" /><span>Save</span></a> ! </div> ! <div id="contents"> ! <iframe src="editorFrame.php?img=<? if(isset($_GET['img'])) echo rawurlencode($_GET['img']); ?>" name="editor" id="editor" scrolling="auto" title="Image Editor" frameborder="0"></iframe> ! </div> ! <div id="bottom"></div> ! </body> ! </html> --- 1,144 ---- ! <? ! /** ! * The PHP Image Editor user interface. ! * @author $Author$ ! * @version $Id$ ! * @package ImageManager ! */ ! ! require_once('config.inc.php'); ! require_once('Classes/ImageManager.php'); ! require_once('Classes/ImageEditor.php'); ! ! $manager = new ImageManager($IMConfig); ! $editor = new ImageEditor($manager); ! ! ?> ! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ! ! <html> ! <head> ! <title></title> ! <link href="assets/editor.css" rel="stylesheet" type="text/css" /> ! <script type="text/javascript" src="assets/slider.js"></script> ! <script type="text/javascript" src="assets/popup.js"></script> ! <script type="text/javascript"> ! /*<![CDATA[*/ ! window.resizeTo(673, 531); ! if(window.opener) ! I18N = window.opener.I18N; ! /*]]>*/ ! </script> ! <script type="text/javascript" src="assets/editor.js"></script> ! </head> ! ! <body> ! <div id="indicator"> ! <img src="img/spacer.gif" id="indicator_image" height="20" width="20" alt="" /> ! </div> ! <div id="tools"> ! <div id="tools_crop" style="display:none;"> ! <div id="tool_inputs"> ! <label for="cx">Start X:</label><input type="text" id="cx" class="textInput" onchange="updateMarker('crop')"/> ! <label for="cy">Start Y:</label><input type="text" id="cy" class="textInput" onchange="updateMarker('crop')"/> ! <label for="cw">Width:</label><input type="text" id="cw" class="textInput" onchange="updateMarker('crop')"/> ! <label for="ch">Height:</label><input type="text" id="ch" class="textInput" onchange="updateMarker('crop')"/> ! <img src="img/div.gif" height="30" width="2" class="div" alt="|" /> ! </div> ! <a href="javascript: editor.doSubmit('crop');" class="buttons" title="OK"><img src="img/btn_ok.gif" height="30" width="30" alt="OK" /></a> ! <a href="javascript: editor.reset();" class="buttons" title="Cancel"><img src="img/btn_cancel.gif" height="30" width="30" alt="Cancel" /></a> ! </div> ! <div id="tools_scale" style="display:none;"> ! <div id="tool_inputs"> ! <label for="sw">Width:</label><input type="text" id="sw" class="textInput" onchange="checkConstrains('width')"/> ! <a href="javascript:toggleConstraints();" title="Lock"><img src="img/islocked2.gif" id="scaleConstImg" height="14" width="8" alt="Lock" class="div" /></a><label for="sh">Height:</label> ! <input type="text" id="sh" class="textInput" onchange="checkConstrains('height')"/> ! <input type="checkbox" id="constProp" value="1" checked="checked" onclick="toggleConstraints()"/> ! <label for="constProp">Constrain Proportions</label> ! <img src="img/div.gif" height="30" width="2" class="div" alt="|" /> ! </div> ! <a href="javascript: editor.doSubmit('scale');" class="buttons" title="OK"><img src="img/btn_ok.gif" height="30" width="30" alt="OK" /></a> ! <a href="javascript: editor.reset();" class="buttons" title="Cancle"><img src="img/btn_cancel.gif" height="30" width="30" alt="Cancel" /></a> ! </div> ! <div id="tools_rotate" style="display:none;"> ! <div id="tool_inputs"> ! <select id="flip" name="flip" style="margin-left: 10px; vertical-align: middle;"> ! <option selected>Flip Image</option> ! <option>-----------------</option> ! <option value="hoz">Flip Horizontal</option> ! <option value="ver">Flip Virtical</option> ! </select> ! <select name="rotate" onchange="rotatePreset(this)" style="margin-left: 20px; vertical-align: middle;"> ! <option selected>Rotate Image</option> ! <option>-----------------</option> ! ! <option value="180">Rotate 180 °</option> ! <option value="90">Rotate 90 ° CW</option> ! <option value="-90">Rotate 90 ° CCW</option> ! </select> ! <label for="ra">Angle:</label><input type="text" id="ra" class="textInput" /> ! <img src="img/div.gif" height="30" width="2" class="div" alt="|" /> ! </div> ! <a href="javascript: editor.doSubmit('rotate');" class="buttons" title="OK"><img src="img/btn_ok.gif" height="30" width="30" alt="OK" /></a> ! <a href="javascript: editor.reset();" class="buttons" title="Cancle"><img src="img/btn_cancel.gif" height="30" width="30" alt="Cancel" /></a> ! </div> ! <div id="tools_measure" style="display:none;"> ! <div id="tool_inputs"> ! <label>X:</label><input type="text" class="measureStats" id="sx" /> ! <label>Y:</label><input type="text" class="measureStats" id="sy" /> ! <img src="img/div.gif" height="30" width="2" class="div" alt="|" /> ! <label>W:</label><input type="text" class="measureStats" id="mw" /> ! <label>H:</label><input type="text" class="measureStats" id="mh" /> ! <img src="img/div.gif" height="30" width="2" class="div" alt="|" /> ! <label>A:</label><input type="text" class="measureStats" id="ma" /> ! <label>D:</label><input type="text" class="measureStats" id="md" /> ! <img src="img/div.gif" height="30" width="2" class="div" alt="|" /> ! <button type="button" onclick="editor.reset();" >Clear</button> ! </div> ! </div> ! <div id="tools_save" style="display:none;"> ! <div id="tool_inputs"> ! <label for="save_filename">Filename:</label><input type="text" id="save_filename" value="<? echo $editor->getDefaultSaveFile();?>"/> ! <select name="format" id="save_format" style="margin-left: 10px; vertical-align: middle;" onchange="updateFormat(this)"> ! <option value="" selected>Image Format</option> ! <option value="">---------------------</option> ! <option value="jpeg,85">JPEG High</option> ! <option value="jpeg,60">JPEG Medium</option> ! <option value="jpeg,35">JPEG Low</option> ! <option value="png">PNG</option> ! <? if($editor->isGDGIFAble() != -1) { ?> ! <option value="gif">GIF</option> ! <? } ?> ! </select> ! <label>Quality:</label> ! <table style="display: inline; vertical-align: middle;" cellpadding="0" cellspacing="0"> ! <tr> ! <td> ! <div id="slidercasing"> ! <div id="slidertrack" style="width:100px"><img src="img/spacer.gif" width="1" height="1" border="0" alt="track"></div> ! <div id="sliderbar" style="left:85px" onmousedown="captureStart();"><img src="img/spacer.gif" width="1" height="1" border="0" alt="track"></div> ! </div> ! </td> ! </tr> ! </table> ! <input type="text" id="quality" onchange="updateSlider(this.value)" style="width: 2em;" value="85"/> ! <img src="img/div.gif" height="30" width="2" class="div" alt="|" /> ! </div> ! <a href="javascript: editor.doSubmit('save');" class="buttons" title="OK"><img src="img/btn_ok.gif" height="30" width="30" alt="OK" /></a> ! <a href="javascript: editor.reset();" class="buttons" title="Cancel"><img src="img/btn_cancel.gif" height="30" width="30" alt="Cancel" /></a> ! </div> ! </div> ! <div id="toolbar"> ! <a href="javascript:toggle('crop')" id="icon_crop" title="Crop"><img src="img/crop.gif" height="20" width="20" alt="Crop" /><span>Crop</span></a> ! <a href="javascript:toggle('scale')" id="icon_scale" title="Resize"><img src="img/scale.gif" height="20" width="20" alt="Resize" /><span>Resize</span></a> ! <a href="javascript:toggle('rotate')" id="icon_rotate" title="Rotate"><img src="img/rotate.gif" height="20" width="20" alt="Rotate" /><span>Rotate</span></a> ! <a href="javascript:toggle('measure')" id="icon_measure" title="Measure"><img src="img/measure.gif" height="20" width="20" alt="Measure" /><span>Measure</span></a> ! <a href="javascript: toggleMarker();" title="Marker"><img id="markerImg" src="img/t_black.gif" height="20" width="20" alt="Marker" /><span>Marker</span></a> ! <a href="javascript:toggle('save')" id="icon_save" title="Save"><img src="img/save.gif" height="20" width="20" alt="Save" /><span>Save</span></a> ! </div> ! <div id="contents"> ! <iframe src="editorFrame.php?img=<? if(isset($_GET['img'])) echo rawurlencode($_GET['img']); ?>" name="editor" id="editor" scrolling="auto" title="Image Editor" frameborder="0"></iframe> ! </div> ! <div id="bottom"></div> ! </body> ! </html> |
From: Yves K. <yku...@us...> - 2004-11-09 19:04:05
|
Update of /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/_htmlarea/plugins/ImageManager In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5615/modules/xwysiwyg/mod/xwysiwyg/_htmlarea/plugins/ImageManager Modified Files: image-manager.js Log Message: added alt default-text Index: image-manager.js =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/_htmlarea/plugins/ImageManager/image-manager.js,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** image-manager.js 25 Oct 2004 18:16:08 -0000 1.1.1.1 --- image-manager.js 9 Nov 2004 19:02:28 -0000 1.2 *************** *** 1,100 **** ! /** ! * The ImageManager plugin javascript. ! * @author $Author$ ! * @version $Id$ ! * @package ImageManager ! */ ! ! /** ! * To Enable the plug-in add the following line before HTMLArea is initialised. ! * ! * HTMLArea.loadPlugin("ImageManager"); ! * ! * Then configure the config.inc.php file, that is all. ! * For up-to-date documentation, please visit http://www.zhuo.org/htmlarea/ ! */ ! ! /** ! * It is pretty simple, this file over rides the HTMLArea.prototype._insertImage ! * function with our own, only difference is the popupDialog url ! * point that to the php script. ! */ ! function ImageManager(editor) ! { ! var tt = ImageManager.I18N; ! ! }; ! ! ImageManager._pluginInfo = { ! name : "ImageManager", ! version : "1.0", ! developer : "Xiang Wei Zhuo", ! developer_url : "http://www.zhuo.org/htmlarea/", ! license : "htmlArea" ! }; ! ! ! // Over ride the _insertImage function in htmlarea.js. ! // Open up the ImageManger script instead. ! HTMLArea.prototype._insertImage = function(image) { ! ! var editor = this; // for nested functions ! var outparam = null; ! if (typeof image == "undefined") { ! image = this.getParentElement(); ! if (image && !/^img$/i.test(image.tagName)) ! image = null; ! } ! if (image) outparam = { ! f_url : HTMLArea.is_ie ? image.src : image.getAttribute("src"), ! f_alt : image.alt, ! f_border : image.border, ! f_align : image.align, ! f_vert : image.vspace, ! f_horiz : image.hspace, ! f_width : image.width, ! f_height : image.height ! }; ! ! var manager = _editor_url + 'plugins/ImageManager/manager.php'; ! ! Dialog(manager, function(param) { ! if (!param) { // user must have pressed Cancel ! return false; ! } ! var img = image; ! if (!img) { ! var sel = editor._getSelection(); ! var range = editor._createRange(sel); ! editor._doc.execCommand("insertimage", false, param.f_url); ! if (HTMLArea.is_ie) { ! img = range.parentElement(); ! // wonder if this works... ! if (img.tagName.toLowerCase() != "img") { ! img = img.previousSibling; ! } ! } else { ! img = range.startContainer.previousSibling; ! } ! } else { ! img.src = param.f_url; ! } ! ! for (field in param) { ! var value = param[field]; ! switch (field) { ! case "f_alt" : img.alt = value; break; ! case "f_border" : img.border = parseInt(value || "0"); break; ! case "f_align" : img.align = value; break; ! case "f_vert" : img.vspace = parseInt(value || "0"); break; ! case "f_horiz" : img.hspace = parseInt(value || "0"); break; ! case "f_width" : img.width = parseInt(value || "0"); break; ! case "f_height" : img.height = parseInt(value || "0"); break; ! } ! } ! ! ! }, outparam); ! }; ! ! --- 1,98 ---- ! /** ! * The ImageManager plugin javascript. ! * @author $Author$ ! * @version $Id$ ! * @package ImageManager ! */ ! ! /** ! * To Enable the plug-in add the following line before HTMLArea is initialised. ! * ! * HTMLArea.loadPlugin("ImageManager"); ! * ! * Then configure the config.inc.php file, that is all. ! * For up-to-date documentation, please visit http://www.zhuo.org/htmlarea/ ! */ ! ! /** ! * It is pretty simple, this file over rides the HTMLArea.prototype._insertImage ! * function with our own, only difference is the popupDialog url ! * point that to the php script. ! */ ! function ImageManager(editor) ! { ! var tt = ImageManager.I18N; ! ! }; ! ! ImageManager._pluginInfo = { ! name : "ImageManager", ! version : "1.0", ! developer : "Xiang Wei Zhuo", ! developer_url : "http://www.zhuo.org/htmlarea/", ! license : "htmlArea" ! }; ! ! ! // Over ride the _insertImage function in htmlarea.js. ! // Open up the ImageManger script instead. ! HTMLArea.prototype._insertImage = function(image) { ! ! var editor = this; // for nested functions ! var outparam = null; ! if (typeof image == "undefined") { ! image = this.getParentElement(); ! if (image && !/^img$/i.test(image.tagName)) ! image = null; ! } ! if (image) outparam = { ! f_url : HTMLArea.is_ie ? image.src : image.getAttribute("src"), ! f_alt : image.alt, ! f_border : image.border, ! f_align : image.align, ! f_vert : image.vspace, ! f_horiz : image.hspace, ! f_width : image.width, ! f_height : image.height ! }; ! ! var manager = _editor_url + 'plugins/ImageManager/manager.php'; ! ! Dialog(manager, function(param) { ! if (!param) { // user must have pressed Cancel ! return false; ! } ! var img = image; ! if (!img) { ! var sel = editor._getSelection(); ! var range = editor._createRange(sel); ! editor._doc.execCommand("insertimage", false, param.f_url); ! if (HTMLArea.is_ie) { ! img = range.parentElement(); ! // wonder if this works... ! if (img.tagName.toLowerCase() != "img") { ! img = img.previousSibling; ! } ! } else { ! img = range.startContainer.previousSibling; ! } ! } else { ! img.src = param.f_url; ! } ! ! for (field in param) { ! var value = param[field]; ! switch (field) { ! case "f_alt" : img.alt = (value || "Image"); break; ! case "f_border" : img.border = parseInt(value || "0"); break; ! case "f_align" : img.align = value; break; ! case "f_vert" : img.vspace = parseInt(value || "0"); break; ! case "f_horiz" : img.hspace = parseInt(value || "0"); break; ! case "f_width" : img.width = parseInt(value || "0"); break; ! case "f_height" : img.height = parseInt(value || "0"); break; ! } ! } ! ! ! }, outparam); ! }; |
From: Andy F. <and...@us...> - 2004-11-08 23:16:26
|
Update of /cvsroot/phpwebsite-comm/modules/photobox/class In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26709/photobox/class Modified Files: Photobox.php Log Message: updated to make XHTML compliant Index: Photobox.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/photobox/class/Photobox.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Photobox.php 3 Nov 2004 19:58:28 -0000 1.2 --- Photobox.php 8 Nov 2004 23:15:17 -0000 1.3 *************** *** 95,101 **** //create content of block ! $content .= "<div align=" . $my_align . ">"; ! $content .= "<a href=\"./index.php?module=photoalbum&PHPWS_Photo_op=view&PHPWS_Album_id=".$albumdir."&PHPWS_Photo_id=".$photoid."\">"; ! $content .= "<img src=\"" . $photodir . $albumdir . "/" . $thumbname . "\" border=\"0\""; // check override flag and set width - if needed --- 95,101 ---- //create content of block ! $content .= "<div align=\"" . $my_align . "\">"; ! $content .= "<a href=\"./index.php?module=photoalbum&PHPWS_Photo_op=view&PHPWS_Album_id=".$albumdir."&PHPWS_Photo_id=".$photoid."\">"; ! $content .= "<img src=\"" . $photodir . $albumdir . "/" . $thumbname . "\" border=\"0\" " . "alt=\"" . $thumbname . "\" "; // check override flag and set width - if needed *************** *** 113,124 **** // check flag for view photo link if ($my_plink) { ! $content .= "<br /><a href='./index.php?module=photoalbum&PHPWS_Photo_op=view&PHPWS_Album_id=".$albumdir."&PHPWS_Photo_id=".$photoid; ! $content .= "'>" . $_SESSION["translate"]->it("View Photo") . "</a>\n"; } // check flag for view photo album link if ($my_alink) { ! $content .= "<br /><a href='./index.php?module=photoalbum&PHPWS_Album_op=view&PHPWS_Album_id=".$albumdir; ! $content .= "'>" . $_SESSION["translate"]->it("View Photo Album") . "</a>"; } --- 113,124 ---- // check flag for view photo link if ($my_plink) { ! $content .= "<br /><a href=\"./index.php?module=photoalbum&PHPWS_Photo_op=view&PHPWS_Album_id=".$albumdir."&PHPWS_Photo_id=".$photoid; ! $content .= "\">" . $_SESSION["translate"]->it("View Photo") . "</a>\n"; } // check flag for view photo album link if ($my_alink) { ! $content .= "<br /><a href=\"./index.php?module=photoalbum&PHPWS_Album_op=view&PHPWS_Album_id=".$albumdir; ! $content .= "\">" . $_SESSION["translate"]->it("View Photo Album") . "</a>"; } *************** *** 297,301 **** } ! $content .= "<br /><br /><a href=\"index.php?module=photobox&PHOTOBOX_OP=admin\">"; $content .= "<b>" . $_SESSION["translate"]->it("Back") . "</b></a>"; $GLOBALS["CNT_photobox"]["content"] = $content; --- 297,301 ---- } ! $content .= "<br /><br /><a href=\"index.php?module=photobox&PHOTOBOX_OP=admin\">"; $content .= "<b>" . $_SESSION["translate"]->it("Back") . "</b></a>"; $GLOBALS["CNT_photobox"]["content"] = $content; |
From: Eloi G. <ada...@us...> - 2004-11-08 01:06:03
|
Update of /cvsroot/phpwebsite-comm/modules/article/inc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11723/inc Modified Files: AM_view_news.php Log Message: - The view=news display now accepts an additional switch, "show=more". If you want your news display to show only articles that *didn't* appear on the homepage, use the following URL: /index.php?module=article&view=news&show=more - A paging bug in view=news is now fixed. Index: AM_view_news.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/article/inc/AM_view_news.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** AM_view_news.php 13 Oct 2004 02:51:43 -0000 1.8 --- AM_view_news.php 8 Nov 2004 01:05:21 -0000 1.9 *************** *** 46,49 **** --- 46,58 ---- $result = $GLOBALS['core']->getCol('SELECT id FROM ' . $this->sql_article_table . ' WHERE ' . $this->get_published_sql().' AND mainarticle=0'.$this->sql_predicate . $this->news_filter['order']); + /* If user is just looking for additional articles that did not + * show up on the homepage, filter out those that were shown. */ + $TotalCount = $this->val['summaries_on_homepage'] + $this->val['prev_n_articles']; + if (isset($_REQUEST['show']) && $_REQUEST['order']='more' && $TotalCount>0 + && $exclusions = $GLOBALS['core']->getCol('SELECT * FROM ' . $this->sql_article_table + . ' WHERE ' . $this->get_published_sql().' AND mainarticle=0'. $this->sql_predicate + . ' AND announce ORDER BY updated_date DESC LIMIT ' . $TotalCount)) { + $result = array_diff($result, $exclusions); + } $this->pager->setData($result); $result = NULL; |
From: Eloi G. <ada...@us...> - 2004-11-08 01:05:39
|
Update of /cvsroot/phpwebsite-comm/modules/article/docs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11723/docs Modified Files: INTRODUCTION.txt Log Message: - The view=news display now accepts an additional switch, "show=more". If you want your news display to show only articles that *didn't* appear on the homepage, use the following URL: /index.php?module=article&view=news&show=more - A paging bug in view=news is now fixed. Index: INTRODUCTION.txt =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/article/docs/INTRODUCTION.txt,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** INTRODUCTION.txt 21 Aug 2004 17:02:11 -0000 1.7 --- INTRODUCTION.txt 8 Nov 2004 01:03:56 -0000 1.8 *************** *** 228,231 **** --- 228,234 ---- index.php?module=article&view=news + Listing of all articles except those summarized on the homepage (like an "additional articles" page): + index.php?module=article&view=news&show=more + Create (Submit) a new article: index.php?module=article&edit=create |
From: Yves K. <yku...@us...> - 2004-11-07 16:17:47
|
Update of /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/_fck In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26270/modules/xwysiwyg/mod/xwysiwyg/_fck Modified Files: fckconfig.js fckeditor.cfc fckeditor.cfm fckeditor.js Log Message: unix saving Index: fckconfig.js =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/_fck/fckconfig.js,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** fckconfig.js 25 Oct 2004 18:08:13 -0000 1.1.1.1 --- fckconfig.js 7 Nov 2004 16:17:35 -0000 1.2 *************** *** 1,114 **** /* ! * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2004 Frederico Caldeira Knabben ! * ! * Licensed under the terms of the GNU Lesser General Public License: ! * http://www.opensource.org/licenses/lgpl-license.php ! * ! * For further information visit: ! * http://www.fckeditor.net/ ! * ! * File Name: fckconfig.js ! * Editor configuration settings. ! * ! * Version: 2.0 Beta 2 ! * Modified: 2004-08-30 23:27:01 ! * ! * File Authors: * Frederico Caldeira Knabben (fr...@fc...) ! */ ! ! // Custom Configurations (leave blank to ignore) ! FCKConfig.CustomConfigurationsPath = '' ; // '/fckeditor.config.js' ; ! ! // Enables the debug window ! FCKConfig.Debug = false ; ! ! // Set the path for the skin files to use. ! FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/default/' ; ! ! // Language settings ! FCKConfig.AutoDetectLanguage = true ; ! FCKConfig.DefaultLanguage = "en" ; ! ! // Enable XHTML support ! FCKConfig.EnableXHTML = true ; ! FCKConfig.EnableSourceXHTML = true ; ! ! // Tells Gecko browsers to use SPAN instead of <B>, <I> and <U>. ! FCKConfig.GeckoUseSPAN = true ; ! ! // Force the editor to get the focus on startup (page load). ! FCKConfig.StartupFocus = true ; ! ! // Cut and Paste options ! FCKConfig.ForcePasteAsPlainText = false ; ! ! // Link: Target Windows ! FCKConfig.LinkShowTargets = true ; ! FCKConfig.LinkTargets = '_blank;_parent;_self;_top' ; ! FCKConfig.LinkDefaultTarget = '' ; ! ! FCKConfig.ToolbarStartExpanded = true ; ! FCKConfig.ToolbarCanCollapse = true ; ! ! //## ! //## Toolbar Buttons Sets ! //## ! FCKConfig.ToolbarSets = new Object() ; ! FCKConfig.ToolbarSets["Default"] = [ ! ['Source','-','Save','NewPage','Preview'], ! ['Cut','Copy','Paste','PasteText','PasteWord','-','Print'/*,'SpellCheck'*/], ! ['Undo','Redo',/*'-','Find','Replace',*/'-','SelectAll','RemoveFormat'], ! ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'], ! ['OrderedList','UnorderedList','-','Outdent','Indent'], ! ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'], ! ['Link','Unlink'/*,'Anchor'*/], ! ['Image','Table','Rule','SpecialChar'/*,'UniversalKey'*/,'Smiley'], ! /*['Form','Checkbox','Radio','Input','Textarea','Select','Button','ImageButton','Hidden']*/ ! /*['ShowTableBorders','ShowDetails','-','Zoom'],*/ ! [/*'FontStyleAdv','-','FontStyle','-',*/'FontFormat','-','FontName','-','FontSize'], ! ['TextColor','BGColor'], ! ['About'] ! ] ; ! FCKConfig.ToolbarSets["Basic"] = [ ! ['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink','-','About'] ! ] ; ! ! // Font Colors ! FCKConfig.FontColors = '000000,993300,333300,003300,003366,000080,333399,333333,800000,FF6600,808000,808080,008080,0000FF,666699,808080,FF0000,FF9900,99CC00,339966,33CCCC,3366FF,800080,999999,FF00FF,FFCC00,FFFF00,00FF00,00FFFF,00CCFF,993366,C0C0C0,FF99CC,FFCC99,FFFF99,CCFFCC,CCFFFF,99CCFF,CC99FF,FFFFFF' ; ! ! // Font Names ! FCKConfig.FontNames = 'Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana' ; ! ! // Link Browsing ! FCKConfig.LinkBrowser = true ; ! FCKConfig.LinkBrowserURL = FCKConfig.BasePath + "filemanager/browser/default/browser.html?Connector=connectors/aspx/connector.aspx" ; ! FCKConfig.LinkBrowserWindowWidth = screen.width * 0.7 ; // 70% ! FCKConfig.LinkBrowserWindowHeight = screen.height * 0.7 ; // 70% ! ! // Link Upload ! FCKConfig.LinkUpload = false ; ! FCKConfig.LinkUploadURL = FCKConfig.BasePath + "filemanager/upload/aspx/upload.aspx" ; ! FCKConfig.LinkUploadWindowWidth = 300 ; ! FCKConfig.LinkUploadWindowHeight = 150 ; ! FCKConfig.LinkUploadAllowedExtensions = "*" ; // * or empty for all ! FCKConfig.LinkUploadDeniedExtensions = ".exe .asp .php .aspx .js .cfm .dll" ; // empty for no one ! ! // Image Browsing ! FCKConfig.ImageBrowser = true ; ! FCKConfig.ImageBrowserURL = FCKConfig.BasePath + "filemanager/browser/default/browser.html?Type=Image&Connector=connectors/aspx/connector.aspx" ; ! FCKConfig.ImageBrowserWindowWidth = screen.width * 0.7 ; // 70% ; ! FCKConfig.ImageBrowserWindowHeight = screen.height * 0.7 ; // 70% ; ! ! // Smiley Dialog ! FCKConfig.SmileyPath = FCKConfig.BasePath + "images/smiley/msn/" ; ! FCKConfig.SmileyImages = ["regular_smile.gif","sad_smile.gif","wink_smile.gif","teeth_smile.gif","confused_smile.gif","tounge_smile.gif","embaressed_smile.gif","omg_smile.gif","whatchutalkingabout_smile.gif","angry_smile.gif","angel_smile.gif","shades_smile.gif","devil_smile.gif","cry_smile.gif","lightbulb.gif","thumbs_down.gif","thumbs_up.gif","heart.gif","broken_heart.gif","kiss.gif","envelope.gif"] ; ! FCKConfig.SmileyColumns = 8 ; ! FCKConfig.SmileyWindowWidth = 320 ; ! FCKConfig.SmileyWindowHeight = 240 ; ! ! //** ! // Load the custom configurations file ! if ( FCKConfig.CustomConfigurationsPath.length > 0 ) FCKScriptLoader.AddScript( FCKConfig.CustomConfigurationsPath ) ; \ No newline at end of file --- 1,114 ---- /* ! * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2004 Frederico Caldeira Knabben ! * ! * Licensed under the terms of the GNU Lesser General Public License: ! * http://www.opensource.org/licenses/lgpl-license.php ! * ! * For further information visit: ! * http://www.fckeditor.net/ ! * ! * File Name: fckconfig.js ! * Editor configuration settings. ! * ! * Version: 2.0 Beta 2 ! * Modified: 2004-08-30 23:27:01 ! * ! * File Authors: * Frederico Caldeira Knabben (fr...@fc...) ! */ ! ! // Custom Configurations (leave blank to ignore) ! FCKConfig.CustomConfigurationsPath = '' ; // '/fckeditor.config.js' ; ! ! // Enables the debug window ! FCKConfig.Debug = false ; ! ! // Set the path for the skin files to use. ! FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/default/' ; ! ! // Language settings ! FCKConfig.AutoDetectLanguage = true ; ! FCKConfig.DefaultLanguage = "en" ; ! ! // Enable XHTML support ! FCKConfig.EnableXHTML = true ; ! FCKConfig.EnableSourceXHTML = true ; ! ! // Tells Gecko browsers to use SPAN instead of <B>, <I> and <U>. ! FCKConfig.GeckoUseSPAN = true ; ! ! // Force the editor to get the focus on startup (page load). ! FCKConfig.StartupFocus = true ; ! ! // Cut and Paste options ! FCKConfig.ForcePasteAsPlainText = false ; ! ! // Link: Target Windows ! FCKConfig.LinkShowTargets = true ; ! FCKConfig.LinkTargets = '_blank;_parent;_self;_top' ; ! FCKConfig.LinkDefaultTarget = '' ; ! ! FCKConfig.ToolbarStartExpanded = true ; ! FCKConfig.ToolbarCanCollapse = true ; ! ! //## ! //## Toolbar Buttons Sets ! //## ! FCKConfig.ToolbarSets = new Object() ; ! FCKConfig.ToolbarSets["Default"] = [ ! ['Source','-','Save','NewPage','Preview'], ! ['Cut','Copy','Paste','PasteText','PasteWord','-','Print'/*,'SpellCheck'*/], ! ['Undo','Redo',/*'-','Find','Replace',*/'-','SelectAll','RemoveFormat'], ! ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'], ! ['OrderedList','UnorderedList','-','Outdent','Indent'], ! ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'], ! ['Link','Unlink'/*,'Anchor'*/], ! ['Image','Table','Rule','SpecialChar'/*,'UniversalKey'*/,'Smiley'], ! /*['Form','Checkbox','Radio','Input','Textarea','Select','Button','ImageButton','Hidden']*/ ! /*['ShowTableBorders','ShowDetails','-','Zoom'],*/ ! [/*'FontStyleAdv','-','FontStyle','-',*/'FontFormat','-','FontName','-','FontSize'], ! ['TextColor','BGColor'], ! ['About'] ! ] ; ! FCKConfig.ToolbarSets["Basic"] = [ ! ['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink','-','About'] ! ] ; ! ! // Font Colors ! FCKConfig.FontColors = '000000,993300,333300,003300,003366,000080,333399,333333,800000,FF6600,808000,808080,008080,0000FF,666699,808080,FF0000,FF9900,99CC00,339966,33CCCC,3366FF,800080,999999,FF00FF,FFCC00,FFFF00,00FF00,00FFFF,00CCFF,993366,C0C0C0,FF99CC,FFCC99,FFFF99,CCFFCC,CCFFFF,99CCFF,CC99FF,FFFFFF' ; ! ! // Font Names ! FCKConfig.FontNames = 'Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana' ; ! ! // Link Browsing ! FCKConfig.LinkBrowser = true ; ! FCKConfig.LinkBrowserURL = FCKConfig.BasePath + "filemanager/browser/default/browser.html?Connector=connectors/aspx/connector.aspx" ; ! FCKConfig.LinkBrowserWindowWidth = screen.width * 0.7 ; // 70% ! FCKConfig.LinkBrowserWindowHeight = screen.height * 0.7 ; // 70% ! ! // Link Upload ! FCKConfig.LinkUpload = false ; ! FCKConfig.LinkUploadURL = FCKConfig.BasePath + "filemanager/upload/aspx/upload.aspx" ; ! FCKConfig.LinkUploadWindowWidth = 300 ; ! FCKConfig.LinkUploadWindowHeight = 150 ; ! FCKConfig.LinkUploadAllowedExtensions = "*" ; // * or empty for all ! FCKConfig.LinkUploadDeniedExtensions = ".exe .asp .php .aspx .js .cfm .dll" ; // empty for no one ! ! // Image Browsing ! FCKConfig.ImageBrowser = true ; ! FCKConfig.ImageBrowserURL = FCKConfig.BasePath + "filemanager/browser/default/browser.html?Type=Image&Connector=connectors/aspx/connector.aspx" ; ! FCKConfig.ImageBrowserWindowWidth = screen.width * 0.7 ; // 70% ; ! FCKConfig.ImageBrowserWindowHeight = screen.height * 0.7 ; // 70% ; ! ! // Smiley Dialog ! FCKConfig.SmileyPath = FCKConfig.BasePath + "images/smiley/msn/" ; ! FCKConfig.SmileyImages = ["regular_smile.gif","sad_smile.gif","wink_smile.gif","teeth_smile.gif","confused_smile.gif","tounge_smile.gif","embaressed_smile.gif","omg_smile.gif","whatchutalkingabout_smile.gif","angry_smile.gif","angel_smile.gif","shades_smile.gif","devil_smile.gif","cry_smile.gif","lightbulb.gif","thumbs_down.gif","thumbs_up.gif","heart.gif","broken_heart.gif","kiss.gif","envelope.gif"] ; ! FCKConfig.SmileyColumns = 8 ; ! FCKConfig.SmileyWindowWidth = 320 ; ! FCKConfig.SmileyWindowHeight = 240 ; ! ! //** ! // Load the custom configurations file ! if ( FCKConfig.CustomConfigurationsPath.length > 0 ) FCKScriptLoader.AddScript( FCKConfig.CustomConfigurationsPath ) ; \ No newline at end of file Index: fckeditor.js =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/_fck/fckeditor.js,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** fckeditor.js 25 Oct 2004 18:08:15 -0000 1.1.1.1 --- fckeditor.js 7 Nov 2004 16:17:35 -0000 1.2 *************** *** 1,160 **** /* ! * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2004 Frederico Caldeira Knabben ! * ! * Licensed under the terms of the GNU Lesser General Public License: ! * http://www.opensource.org/licenses/lgpl-license.php ! * ! * For further information visit: ! * http://www.fckeditor.net/ ! * ! * File Name: fckeditor.js ! * This is the integration file for JavaScript. ! * ! * It defines the FCKeditor class that can be used to create editor ! * instances in a HTML page in the client side. For server side ! * operations, use the specific integration system. ! * ! * Version: 2.0 Beta 2 ! * Modified: 2004-05-31 23:07:55 ! * ! * File Authors: * Frederico Caldeira Knabben (fr...@fc...) ! */ ! ! // FCKeditor Class ! var FCKeditor = function( instanceName, width, height, toolbarSet, value ) ! { ! // Properties ! this.InstanceName = instanceName ; ! this.Width = width || '100%' ; ! this.Height = height || '200' ; ! this.ToolbarSet = toolbarSet || 'Default' ; ! this.Value = value || '' ; ! this.BasePath = '/fckeditor/' ; ! this.CheckBrowser = true ; ! this.DisplayErrors = true ; ! ! this.Config = new Object() ; ! ! // Events ! this.OnError = null ; // function( source, errorNumber, errorDescription ) ! } ! ! FCKeditor.prototype.Create = function() ! { ! // Check for errors ! if ( !this.InstanceName || this.InstanceName.length == 0 ) ! { ! this._ThrowError( 701, 'You must specify a instance name.' ) ; ! return ; ! } ! ! document.write( '<div>' ) ; ! ! if ( !this.CheckBrowser || this._IsCompatibleBrowser() ) ! { ! document.write( '<input type="hidden" id="' + this.InstanceName + '" name="' + this.InstanceName + '" value="' + this._HTMLEncode( this.Value ) + '">' ) ; ! document.write( this._GetConfigHtml() ) ; ! document.write( this._GetIFrameHtml() ) ; ! } ! else ! { ! var sWidth = this.Width.toString().indexOf('%') > 0 ? this.Width : this.Width + 'px' ; ! var sHeight = this.Height.toString().indexOf('%') > 0 ? this.Height : this.Height + 'px' ; ! document.write('<textarea name="' + this.InstanceName + '" rows="4" cols="40" style="WIDTH: ' + sWidth + '; HEIGHT: ' + sHeight + '" wrap="virtual">' + this._HTMLEncode( this.Value ) + '<\/textarea>') ; ! } ! ! document.write( '</div>' ) ; ! } ! ! FCKeditor.prototype.ReplaceTextarea = function() ! { ! if ( !this.CheckBrowser || this._IsCompatibleBrowser() ) ! { ! var oTextarea = document.getElementsByName( this.InstanceName )[0] ; ! oTextarea.style.display = 'none' ; ! this._InsertHtmlBefore( this._GetConfigHtml(), oTextarea ) ; ! this._InsertHtmlBefore( this._GetIFrameHtml(), oTextarea ) ; ! } ! } ! ! FCKeditor.prototype._InsertHtmlBefore = function( html, element ) ! { ! if ( element.insertAdjacentHTML ) // IE ! element.insertAdjacentHTML( 'beforeBegin', html ) ; ! else // Gecko ! { ! var oRange = document.createRange() ; ! oRange.setStartBefore( element ) ; ! var oFragment = oRange.createContextualFragment( html ); ! element.parentNode.insertBefore( oFragment, element ) ; ! } ! } ! ! FCKeditor.prototype._GetConfigHtml = function() ! { ! var sConfig = '' ; ! for ( var o in this.Config ) ! { ! if ( sConfig.length > 0 ) sConfig += '&' ; ! sConfig += this._HTMLEncode(o) + '=' + this._HTMLEncode( this.Config[o] ) ; ! } ! ! return '<input type="hidden" id="' + this.InstanceName + '___Config" value="' + sConfig + '">' ; ! } ! ! FCKeditor.prototype._GetIFrameHtml = function() ! { ! var sLink = this.BasePath + 'editor/fckeditor.html?InstanceName=' + this.InstanceName ; ! if (this.ToolbarSet) sLink += '&Toolbar=' + this.ToolbarSet ; ! ! return '<iframe id="' + this.InstanceName + '___Frame" src="' + sLink + '" width="' + this.Width + '" height="' + this.Height + '" frameborder="no" scrolling="no"></iframe>' ; ! } ! ! FCKeditor.prototype._IsCompatibleBrowser = function() ! { ! var sAgent = navigator.userAgent.toLowerCase() ; ! ! // Internet Explorer ! if ( sAgent.indexOf("msie") != -1 && sAgent.indexOf("mac") == -1 && sAgent.indexOf("opera") == -1 ) ! { ! var sBrowserVersion = navigator.appVersion.match(/MSIE (.\..)/)[1] ; ! return ( sBrowserVersion >= 5.5 ) ; ! } ! // Gecko ! else if ( navigator.product == "Gecko" && navigator.productSub >= 20030210 ) ! return true ; ! else ! return false ; ! } ! ! FCKeditor.prototype._ThrowError = function( errorNumber, errorDescription ) ! { ! this.ErrorNumber = errorNumber ; ! this.ErrorDescription = errorDescription ; ! ! if ( this.DisplayErrors ) ! { ! document.write( '<div style="COLOR: #ff0000">' ) ; ! document.write( '[ FCKeditor Error ' + this.ErrorNumber + ': ' + this.ErrorDescription + ' ]' ) ; ! document.write( '</div>' ) ; ! } ! ! if ( typeof( this.OnError ) == 'function' ) ! this.OnError( this, errorNumber, errorDescription ) ; ! } ! ! FCKeditor.prototype._HTMLEncode = function( text ) ! { ! if ( typeof( text ) != "string" ) ! text = text.toString() ; ! ! text = text.replace(/&/g, "&") ; ! text = text.replace(/"/g, """) ; ! text = text.replace(/</g, "<") ; ! text = text.replace(/>/g, ">") ; ! text = text.replace(/'/g, "’") ; ! ! return text ; } \ No newline at end of file --- 1,160 ---- /* ! * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2004 Frederico Caldeira Knabben ! * ! * Licensed under the terms of the GNU Lesser General Public License: ! * http://www.opensource.org/licenses/lgpl-license.php ! * ! * For further information visit: ! * http://www.fckeditor.net/ ! * ! * File Name: fckeditor.js ! * This is the integration file for JavaScript. ! * ! * It defines the FCKeditor class that can be used to create editor ! * instances in a HTML page in the client side. For server side ! * operations, use the specific integration system. ! * ! * Version: 2.0 Beta 2 ! * Modified: 2004-05-31 23:07:55 ! * ! * File Authors: * Frederico Caldeira Knabben (fr...@fc...) ! */ ! ! // FCKeditor Class ! var FCKeditor = function( instanceName, width, height, toolbarSet, value ) ! { ! // Properties ! this.InstanceName = instanceName ; ! this.Width = width || '100%' ; ! this.Height = height || '200' ; ! this.ToolbarSet = toolbarSet || 'Default' ; ! this.Value = value || '' ; ! this.BasePath = '/fckeditor/' ; ! this.CheckBrowser = true ; ! this.DisplayErrors = true ; ! ! this.Config = new Object() ; ! ! // Events ! this.OnError = null ; // function( source, errorNumber, errorDescription ) ! } ! ! FCKeditor.prototype.Create = function() ! { ! // Check for errors ! if ( !this.InstanceName || this.InstanceName.length == 0 ) ! { ! this._ThrowError( 701, 'You must specify a instance name.' ) ; ! return ; ! } ! ! document.write( '<div>' ) ; ! ! if ( !this.CheckBrowser || this._IsCompatibleBrowser() ) ! { ! document.write( '<input type="hidden" id="' + this.InstanceName + '" name="' + this.InstanceName + '" value="' + this._HTMLEncode( this.Value ) + '">' ) ; ! document.write( this._GetConfigHtml() ) ; ! document.write( this._GetIFrameHtml() ) ; ! } ! else ! { ! var sWidth = this.Width.toString().indexOf('%') > 0 ? this.Width : this.Width + 'px' ; ! var sHeight = this.Height.toString().indexOf('%') > 0 ? this.Height : this.Height + 'px' ; ! document.write('<textarea name="' + this.InstanceName + '" rows="4" cols="40" style="WIDTH: ' + sWidth + '; HEIGHT: ' + sHeight + '" wrap="virtual">' + this._HTMLEncode( this.Value ) + '<\/textarea>') ; ! } ! ! document.write( '</div>' ) ; ! } ! ! FCKeditor.prototype.ReplaceTextarea = function() ! { ! if ( !this.CheckBrowser || this._IsCompatibleBrowser() ) ! { ! var oTextarea = document.getElementsByName( this.InstanceName )[0] ; ! oTextarea.style.display = 'none' ; ! this._InsertHtmlBefore( this._GetConfigHtml(), oTextarea ) ; ! this._InsertHtmlBefore( this._GetIFrameHtml(), oTextarea ) ; ! } ! } ! ! FCKeditor.prototype._InsertHtmlBefore = function( html, element ) ! { ! if ( element.insertAdjacentHTML ) // IE ! element.insertAdjacentHTML( 'beforeBegin', html ) ; ! else // Gecko ! { ! var oRange = document.createRange() ; ! oRange.setStartBefore( element ) ; ! var oFragment = oRange.createContextualFragment( html ); ! element.parentNode.insertBefore( oFragment, element ) ; ! } ! } ! ! FCKeditor.prototype._GetConfigHtml = function() ! { ! var sConfig = '' ; ! for ( var o in this.Config ) ! { ! if ( sConfig.length > 0 ) sConfig += '&' ; ! sConfig += this._HTMLEncode(o) + '=' + this._HTMLEncode( this.Config[o] ) ; ! } ! ! return '<input type="hidden" id="' + this.InstanceName + '___Config" value="' + sConfig + '">' ; ! } ! ! FCKeditor.prototype._GetIFrameHtml = function() ! { ! var sLink = this.BasePath + 'editor/fckeditor.html?InstanceName=' + this.InstanceName ; ! if (this.ToolbarSet) sLink += '&Toolbar=' + this.ToolbarSet ; ! ! return '<iframe id="' + this.InstanceName + '___Frame" src="' + sLink + '" width="' + this.Width + '" height="' + this.Height + '" frameborder="no" scrolling="no"></iframe>' ; ! } ! ! FCKeditor.prototype._IsCompatibleBrowser = function() ! { ! var sAgent = navigator.userAgent.toLowerCase() ; ! ! // Internet Explorer ! if ( sAgent.indexOf("msie") != -1 && sAgent.indexOf("mac") == -1 && sAgent.indexOf("opera") == -1 ) ! { ! var sBrowserVersion = navigator.appVersion.match(/MSIE (.\..)/)[1] ; ! return ( sBrowserVersion >= 5.5 ) ; ! } ! // Gecko ! else if ( navigator.product == "Gecko" && navigator.productSub >= 20030210 ) ! return true ; ! else ! return false ; ! } ! ! FCKeditor.prototype._ThrowError = function( errorNumber, errorDescription ) ! { ! this.ErrorNumber = errorNumber ; ! this.ErrorDescription = errorDescription ; ! ! if ( this.DisplayErrors ) ! { ! document.write( '<div style="COLOR: #ff0000">' ) ; ! document.write( '[ FCKeditor Error ' + this.ErrorNumber + ': ' + this.ErrorDescription + ' ]' ) ; ! document.write( '</div>' ) ; ! } ! ! if ( typeof( this.OnError ) == 'function' ) ! this.OnError( this, errorNumber, errorDescription ) ; ! } ! ! FCKeditor.prototype._HTMLEncode = function( text ) ! { ! if ( typeof( text ) != "string" ) ! text = text.toString() ; ! ! text = text.replace(/&/g, "&") ; ! text = text.replace(/"/g, """) ; ! text = text.replace(/</g, "<") ; ! text = text.replace(/>/g, ">") ; ! text = text.replace(/'/g, "’") ; ! ! return text ; } \ No newline at end of file Index: fckeditor.cfm =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/_fck/fckeditor.cfm,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** fckeditor.cfm 25 Oct 2004 18:08:12 -0000 1.1.1.1 --- fckeditor.cfm 7 Nov 2004 16:17:35 -0000 1.2 *************** *** 1,148 **** ! <cfsetting enablecfoutputonly="Yes"> <!--- ! * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2004 Frederico Caldeira Knabben ! * ! * Licensed under the terms of the GNU Lesser General Public License: ! * http://www.opensource.org/licenses/lgpl-license.php ! * ! * For further information visit: ! * http://www.fckeditor.net/ ! * ! * File Name: fckeditor.cfm ! * ColdFusion integration. ! * Note this module is created for use with Coldfusion 4.52 and above. ! * For a cfc version for coldfusion mx check the fckeditor.cfc. ! * ! * Syntax: ! * ! * <cfmodule name="path/to/cfc/fckeditor" ! * instanceName="myEditor" ! * toolbarSet="..." ! * width="..." ! * height="..:" ! * value="..." ! * config="..." ! * > ! * ! * Version: 2.0 Beta 2 ! * Modified: 2004-05-27 12:24:11 ! * ! * File Authors: * Hendrik Kramer (hk...@lw...) ! ---> ! <!--- :: ! * Attribute validation ! :: ---> ! <cfparam name="attributes.instanceName" type="string"> ! <cfparam name="attributes.width" type="string" default="100%"> ! <cfparam name="attributes.height" type="string" default="200"> ! <cfparam name="attributes.toolbarSet" type="string" default="Default"> ! <cfparam name="attributes.value" type="string" default=""> ! <cfparam name="attributes.basePath" type="string" default="/fckeditor/"> ! <cfparam name="attributes.checkBrowser" type="boolean" default="true"> ! <cfparam name="attributes.config" type="struct" default="#structNew()#"> ! ! <!--- :: ! * check browser compatibility via HTTP_USER_AGENT, if checkBrowser is true ! :: ---> ! <cfif attributes.checkBrowser> ! ! <cfscript> ! sAgent = lCase( cgi.HTTP_USER_AGENT ); ! isCompatibleBrowser = false; ! ! // check for Internet Explorer ( >= 5.5 ) ! if( find( "msie", sAgent ) and not find( "mac", sAgent ) and not find( "opera", sAgent ) ) ! { ! // try to extract IE version ! stResult = reFind( "msie ([5-9]\.[0-9])", sAgent, 1, true ); ! if( arrayLen( stResult.pos ) eq 2 ) ! { ! // get IE Version ! sBrowserVersion = mid( sAgent, stResult.pos[2], stResult.len[2] ); ! if( sBrowserVersion GTE 5.5 ) ! isCompatibleBrowser = true; ! } ! } ! // check for Gecko ( >= 20030210+ ) ! else if( find( "gecko", sAgent ) ) ! { ! // try to extract Gecko version date ! stResult = reFind( "gecko/(200[3-9][0-1][0-9][0-3][0-9])", sAgent, 1, true ); ! if( arrayLen( stResult.pos ) eq 2 ) ! { ! // get Gecko build (i18n date) ! sBrowserVersion = mid( sAgent, stResult.pos[2], stResult.len[2] ); ! if( sBrowserVersion GTE 20030210 ) ! isCompatibleBrowser = true; ! } ! } ! </cfscript> ! ! <cfelse> ! <!--- :: If we should not check browser compatibility, assume true :: ---> ! <cfset isCompatibleBrowser = true> ! </cfif> ! ! ! <cfif isCompatibleBrowser> ! ! <!--- :: ! * show html editor area for compatible browser ! :: ---> ! ! <cfscript> ! // try to fix the basePath, if ending slash is missing ! if( len( attributes.basePath) and right( attributes.basePath, 1 ) is not "/" ) ! attributes.basePath = attributes.basePath & "/"; ! ! // construct the url ! sURL = attributes.basePath & "editor/fckeditor.html?InstanceName=" & attributes.instanceName; ! ! // append toolbarset name to the url ! if( len( attributes.toolbarSet ) ) ! sURL = sURL & "&Toolbar=" & attributes.toolbarSet; ! ! // create configuration string: Key1=Value1&Key2=Value2&... (Key/Value:HTML encoded) ! sConfig = ""; ! ! for( key in attributes.config ) ! { ! if( len( sConfig ) ) ! sConfig = sConfig & '&'; ! sConfig = sConfig & HTMLEditFormat( key ) & '=' & HTMLEditFormat( attributes.config[key] ); ! } ! </cfscript> ! ! <cfoutput> ! <div> ! <input type="hidden" id="#attributes.instanceName#" name="#attributes.instanceName#" value="#HTMLEditFormat(attributes.value)#" /> ! <input type="hidden" id="#attributes.instanceName#___Config" value="#sConfig#" /> ! <iframe id="#attributes.instanceName#___Frame" src="#sURL#" width="#attributes.width#" height="#attributes.height#" frameborder="no" scrolling="no"></iframe> ! </div> ! </cfoutput> ! ! <cfelse> ! ! <!--- :: ! * show plain textarea for non compatible browser ! :: ---> ! ! <cfscript> ! // append unit "px" for numeric width and/or height values ! if( isNumeric( attributes.width ) ) ! attributes.width = attributes.width & "px"; ! if( isNumeric( attributes.height ) ) ! attributes.height = attributes.height & "px"; ! </cfscript> ! ! <cfoutput> ! <div> ! <textarea name="#attributes.instanceName#" rows="4" cols="40" style="WIDTH: #width#; HEIGHT: #height#" wrap="virtual">#HTMLEditFormat(attributes.value)#</textarea> ! </div> ! </cfoutput> ! ! </cfif> ! ! <cfsetting enablecfoutputonly="No"> --- 1,148 ---- ! <cfsetting enablecfoutputonly="Yes"> <!--- ! * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2004 Frederico Caldeira Knabben ! * ! * Licensed under the terms of the GNU Lesser General Public License: ! * http://www.opensource.org/licenses/lgpl-license.php ! * ! * For further information visit: ! * http://www.fckeditor.net/ ! * ! * File Name: fckeditor.cfm ! * ColdFusion integration. ! * Note this module is created for use with Coldfusion 4.52 and above. ! * For a cfc version for coldfusion mx check the fckeditor.cfc. ! * ! * Syntax: ! * ! * <cfmodule name="path/to/cfc/fckeditor" ! * instanceName="myEditor" ! * toolbarSet="..." ! * width="..." ! * height="..:" ! * value="..." ! * config="..." ! * > ! * ! * Version: 2.0 Beta 2 ! * Modified: 2004-05-27 12:24:11 ! * ! * File Authors: * Hendrik Kramer (hk...@lw...) ! ---> ! <!--- :: ! * Attribute validation ! :: ---> ! <cfparam name="attributes.instanceName" type="string"> ! <cfparam name="attributes.width" type="string" default="100%"> ! <cfparam name="attributes.height" type="string" default="200"> ! <cfparam name="attributes.toolbarSet" type="string" default="Default"> ! <cfparam name="attributes.value" type="string" default=""> ! <cfparam name="attributes.basePath" type="string" default="/fckeditor/"> ! <cfparam name="attributes.checkBrowser" type="boolean" default="true"> ! <cfparam name="attributes.config" type="struct" default="#structNew()#"> ! ! <!--- :: ! * check browser compatibility via HTTP_USER_AGENT, if checkBrowser is true ! :: ---> ! <cfif attributes.checkBrowser> ! ! <cfscript> ! sAgent = lCase( cgi.HTTP_USER_AGENT ); ! isCompatibleBrowser = false; ! ! // check for Internet Explorer ( >= 5.5 ) ! if( find( "msie", sAgent ) and not find( "mac", sAgent ) and not find( "opera", sAgent ) ) ! { ! // try to extract IE version ! stResult = reFind( "msie ([5-9]\.[0-9])", sAgent, 1, true ); ! if( arrayLen( stResult.pos ) eq 2 ) ! { ! // get IE Version ! sBrowserVersion = mid( sAgent, stResult.pos[2], stResult.len[2] ); ! if( sBrowserVersion GTE 5.5 ) ! isCompatibleBrowser = true; ! } ! } ! // check for Gecko ( >= 20030210+ ) ! else if( find( "gecko", sAgent ) ) ! { ! // try to extract Gecko version date ! stResult = reFind( "gecko/(200[3-9][0-1][0-9][0-3][0-9])", sAgent, 1, true ); ! if( arrayLen( stResult.pos ) eq 2 ) ! { ! // get Gecko build (i18n date) ! sBrowserVersion = mid( sAgent, stResult.pos[2], stResult.len[2] ); ! if( sBrowserVersion GTE 20030210 ) ! isCompatibleBrowser = true; ! } ! } ! </cfscript> ! ! <cfelse> ! <!--- :: If we should not check browser compatibility, assume true :: ---> ! <cfset isCompatibleBrowser = true> ! </cfif> ! ! ! <cfif isCompatibleBrowser> ! ! <!--- :: ! * show html editor area for compatible browser ! :: ---> ! ! <cfscript> ! // try to fix the basePath, if ending slash is missing ! if( len( attributes.basePath) and right( attributes.basePath, 1 ) is not "/" ) ! attributes.basePath = attributes.basePath & "/"; ! ! // construct the url ! sURL = attributes.basePath & "editor/fckeditor.html?InstanceName=" & attributes.instanceName; ! ! // append toolbarset name to the url ! if( len( attributes.toolbarSet ) ) ! sURL = sURL & "&Toolbar=" & attributes.toolbarSet; ! ! // create configuration string: Key1=Value1&Key2=Value2&... (Key/Value:HTML encoded) ! sConfig = ""; ! ! for( key in attributes.config ) ! { ! if( len( sConfig ) ) ! sConfig = sConfig & '&'; ! sConfig = sConfig & HTMLEditFormat( key ) & '=' & HTMLEditFormat( attributes.config[key] ); ! } ! </cfscript> ! ! <cfoutput> ! <div> ! <input type="hidden" id="#attributes.instanceName#" name="#attributes.instanceName#" value="#HTMLEditFormat(attributes.value)#" /> ! <input type="hidden" id="#attributes.instanceName#___Config" value="#sConfig#" /> ! <iframe id="#attributes.instanceName#___Frame" src="#sURL#" width="#attributes.width#" height="#attributes.height#" frameborder="no" scrolling="no"></iframe> ! </div> ! </cfoutput> ! ! <cfelse> ! ! <!--- :: ! * show plain textarea for non compatible browser ! :: ---> ! ! <cfscript> ! // append unit "px" for numeric width and/or height values ! if( isNumeric( attributes.width ) ) ! attributes.width = attributes.width & "px"; ! if( isNumeric( attributes.height ) ) ! attributes.height = attributes.height & "px"; ! </cfscript> ! ! <cfoutput> ! <div> ! <textarea name="#attributes.instanceName#" rows="4" cols="40" style="WIDTH: #width#; HEIGHT: #height#" wrap="virtual">#HTMLEditFormat(attributes.value)#</textarea> ! </div> ! </cfoutput> ! ! </cfif> ! ! <cfsetting enablecfoutputonly="No"> Index: fckeditor.cfc =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/_fck/fckeditor.cfc,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** fckeditor.cfc 25 Oct 2004 18:08:12 -0000 1.1.1.1 --- fckeditor.cfc 7 Nov 2004 16:17:35 -0000 1.2 *************** *** 1,185 **** ! <cfcomponent output="no" displayname="FCKEditor" hint="Create an instance of the FCKEditor."> <!--- ! * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2004 Frederico Caldeira Knabben ! * ! * Licensed under the terms of the GNU Lesser General Public License: ! * http://www.opensource.org/licenses/lgpl-license.php ! * ! * For further information visit: ! * http://www.fckeditor.net/ ! * ! * File Name: fckeditor.cfc ! * ColdFusion MX integration. ! * Note this CFC is created for use only with Coldfusion MX and above. ! * For older version, check the fckeditor.cfm. ! * ! * Syntax: ! * ! * <cfscript> ! * fckEditor = createObject("component", "fckEditorV2/fckeditor"); ! * fckEditor.instanceName="myEditor"; ! * fckEditor.basePath="/fckEditorV2/"; ! * fckEditor.value="This is my <strong>initial</strong> html text."; ! * fckEditor.width="100%"; ! * fckEditor.height="200"; ! * // ... additional parameters ... ! * fckEditor.create(); // create instance now. ! * </cfscript> ! * ! * See your macromedia coldfusion mx documentation for more info. ! * ! * *** Note: ! * Do not use path names with a "." (dot) in the name. This is a coldfusion ! * limitation with the cfc invocation. ! * ! * Version: 2.0 Beta 2 ! * Modified: 2004-05-27 12:39:32 ! * ! * File Authors: * Hendrik Kramer (hk...@lw...) ! ---> ! <cffunction ! name="create" ! access="public" ! output="Yes" ! returntype="void" ! hint="Initialize the FCKEditor instance." ! > ! ! <cfparam name="this.instanceName" type="string" /> ! <cfparam name="this.width" type="string" default="100%" /> ! <cfparam name="this.height" type="string" default="200" /> ! <cfparam name="this.toolbarSet" type="string" default="Default" /> ! <cfparam name="this.value" type="string" default="" /> ! <cfparam name="this.basePath" type="string" default="/fckeditor/" /> ! <cfparam name="this.checkBrowser" type="boolean" default="true" /> ! <cfparam name="this.config" type="struct" default="#structNew()#" /> ! ! <cfscript> ! // display the html editor or a plain textarea? ! if( isCompatibleBrowser() ) ! showHTMLEditor(); ! else ! showTextArea(); ! </cfscript> ! ! </cffunction> ! ! <cffunction ! name="isCompatibleBrowser" ! access="private" ! output="no" ! returnType="boolean" ! hint="Check browser compatibility via HTTP_USER_AGENT, if checkBrowser is true" ! > ! ! <cfscript> ! var sAgent = lCase( cgi.HTTP_USER_AGENT ); ! var stResult = ""; ! var sBrowserVersion = ""; ! ! // do not check if argument "checkBrowser" is false ! if( not this.checkBrowser ) ! return true; ! ! // check for Internet Explorer ( >= 5.5 ) ! if( find( "msie", sAgent ) and not find( "mac", sAgent ) and not find( "opera", sAgent ) ) ! { ! // try to extract IE version ! stResult = reFind( "msie ([5-9]\.[0-9])", sAgent, 1, true ); ! if( arrayLen( stResult.pos ) eq 2 ) ! { ! // get IE Version ! sBrowserVersion = mid( sAgent, stResult.pos[2], stResult.len[2] ); ! return ( sBrowserVersion GTE 5.5 ); ! } ! } ! // check for Gecko ( >= 20030210+ ) ! else if( find( "gecko", sAgent ) ) ! { ! // try to extract Gecko version date ! stResult = reFind( "gecko/(200[3-9][0-1][0-9][0-3][0-9])", sAgent, 1, true ); ! if( arrayLen( stResult.pos ) eq 2 ) ! { ! // get Gecko build (i18n date) ! sBrowserVersion = mid( sAgent, stResult.pos[2], stResult.len[2] ); ! return ( sBrowserVersion GTE 20030210 ); ! } ! } ! ! return false; ! </cfscript> ! </cffunction> ! ! <cffunction ! name="showTextArea" ! access="private" ! output="yes" ! returnType="void" ! hint="Create a textarea field for non-compatible browsers." ! > ! ! <cfscript> ! var width = this.width; ! var height = this.height; ! ! // append unit "px" for numeric width and/or height values ! if( isNumeric( width ) ) ! width = width & "px"; ! if( isNumeric( height ) ) ! height = height & "px"; ! </cfscript> ! ! <cfoutput> ! <div> ! <textarea name="#this.instanceName#" rows="4" cols="40" style="WIDTH: #width#; HEIGHT: #height#" wrap="virtual">#HTMLEditFormat(this.value)#</textarea> ! </div> ! </cfoutput> ! ! </cffunction> ! ! <cffunction ! name="showHTMLEditor" ! access="private" ! output="yes" ! returnType="void" ! hint="Create the html editor instance for compatible browsers." ! > ! ! <cfscript> ! var sConfig = ""; ! var sURL = ""; ! var basePath = this.basePath; ! ! // try to fix the basePath, if ending slash is missing ! if( len( basePath) and right( basePath, 1 ) is not "/" ) ! basePath = basePath & "/"; ! ! // construct the url ! sURL = basePath & "editor/fckeditor.html?InstanceName=" & this.instanceName; ! ! // append toolbarset name to the url ! if( len( this.toolbarSet ) ) ! sURL = sURL & "&Toolbar=" & this.toolbarSet; ! ! // create configuration string: Key1=Value1&Key2=Value2&... (Key/Value:HTML encoded) ! for( key in this.config ) ! { ! if( len( sConfig ) ) ! sConfig = sConfig & '&'; ! sConfig = sConfig & HTMLEditFormat(key) & '=' & HTMLEditFormat(this.config[key]); ! } ! </cfscript> ! ! <cfoutput> ! <div> ! <input type="hidden" id="#this.instanceName#" name="#this.instanceName#" value="#HTMLEditFormat(this.value)#" /> ! <input type="hidden" id="#this.instanceName#___Config" value="#sConfig#" /> ! <iframe id="#this.instanceName#___Frame" src="#sURL#" width="#this.width#" height="#this.height#" frameborder="no" scrolling="no"></iframe> ! </div> ! </cfoutput> ! ! </cffunction> ! </cfcomponent> \ No newline at end of file --- 1,186 ---- ! <cfcomponent output="no" displayname="FCKEditor" hint="Create an instance of the FCKEditor."> <!--- ! * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2004 Frederico Caldeira Knabben ! * ! * Licensed under the terms of the GNU Lesser General Public License: ! * http://www.opensource.org/licenses/lgpl-license.php ! * ! * For further information visit: ! * http://www.fckeditor.net/ ! * ! * File Name: fckeditor.cfc ! * ColdFusion MX integration. ! * Note this CFC is created for use only with Coldfusion MX and above. ! * For older version, check the fckeditor.cfm. ! * ! * Syntax: ! * ! * <cfscript> ! * fckEditor = createObject("component", "fckEditorV2/fckeditor"); ! * fckEditor.instanceName="myEditor"; ! * fckEditor.basePath="/fckEditorV2/"; ! * fckEditor.value="This is my <strong>initial</strong> html text."; ! * fckEditor.width="100%"; ! * fckEditor.height="200"; ! * // ... additional parameters ... ! * fckEditor.create(); // create instance now. ! * </cfscript> ! * ! * See your macromedia coldfusion mx documentation for more info. ! * ! * *** Note: ! * Do not use path names with a "." (dot) in the name. This is a coldfusion ! * limitation with the cfc invocation. ! * ! * Version: 2.0 Beta 2 ! * Modified: 2004-05-27 12:39:32 ! * ! * File Authors: * Hendrik Kramer (hk...@lw...) ! ---> ! ! <cffunction ! name="create" ! access="public" ! output="Yes" ! returntype="void" ! hint="Initialize the FCKEditor instance." ! > ! ! <cfparam name="this.instanceName" type="string" /> ! <cfparam name="this.width" type="string" default="100%" /> ! <cfparam name="this.height" type="string" default="200" /> ! <cfparam name="this.toolbarSet" type="string" default="Default" /> ! <cfparam name="this.value" type="string" default="" /> ! <cfparam name="this.basePath" type="string" default="/fckeditor/" /> ! <cfparam name="this.checkBrowser" type="boolean" default="true" /> ! <cfparam name="this.config" type="struct" default="#structNew()#" /> ! ! <cfscript> ! // display the html editor or a plain textarea? ! if( isCompatibleBrowser() ) ! showHTMLEditor(); ! else ! showTextArea(); ! </cfscript> ! ! </cffunction> ! ! <cffunction ! name="isCompatibleBrowser" ! access="private" ! output="no" ! returnType="boolean" ! hint="Check browser compatibility via HTTP_USER_AGENT, if checkBrowser is true" ! > ! ! <cfscript> ! var sAgent = lCase( cgi.HTTP_USER_AGENT ); ! var stResult = ""; ! var sBrowserVersion = ""; ! ! // do not check if argument "checkBrowser" is false ! if( not this.checkBrowser ) ! return true; ! ! // check for Internet Explorer ( >= 5.5 ) ! if( find( "msie", sAgent ) and not find( "mac", sAgent ) and not find( "opera", sAgent ) ) ! { ! // try to extract IE version ! stResult = reFind( "msie ([5-9]\.[0-9])", sAgent, 1, true ); ! if( arrayLen( stResult.pos ) eq 2 ) ! { ! // get IE Version ! sBrowserVersion = mid( sAgent, stResult.pos[2], stResult.len[2] ); ! return ( sBrowserVersion GTE 5.5 ); ! } ! } ! // check for Gecko ( >= 20030210+ ) ! else if( find( "gecko", sAgent ) ) ! { ! // try to extract Gecko version date ! stResult = reFind( "gecko/(200[3-9][0-1][0-9][0-3][0-9])", sAgent, 1, true ); ! if( arrayLen( stResult.pos ) eq 2 ) ! { ! // get Gecko build (i18n date) ! sBrowserVersion = mid( sAgent, stResult.pos[2], stResult.len[2] ); ! return ( sBrowserVersion GTE 20030210 ); ! } ! } ! ! return false; ! </cfscript> ! </cffunction> ! ! <cffunction ! name="showTextArea" ! access="private" ! output="yes" ! returnType="void" ! hint="Create a textarea field for non-compatible browsers." ! > ! ! <cfscript> ! var width = this.width; ! var height = this.height; ! ! // append unit "px" for numeric width and/or height values ! if( isNumeric( width ) ) ! width = width & "px"; ! if( isNumeric( height ) ) ! height = height & "px"; ! </cfscript> ! ! <cfoutput> ! <div> ! <textarea name="#this.instanceName#" rows="4" cols="40" style="WIDTH: #width#; HEIGHT: #height#" wrap="virtual">#HTMLEditFormat(this.value)#</textarea> ! </div> ! </cfoutput> ! ! </cffunction> ! ! <cffunction ! name="showHTMLEditor" ! access="private" ! output="yes" ! returnType="void" ! hint="Create the html editor instance for compatible browsers." ! > ! ! <cfscript> ! var sConfig = ""; ! var sURL = ""; ! var basePath = this.basePath; ! ! // try to fix the basePath, if ending slash is missing ! if( len( basePath) and right( basePath, 1 ) is not "/" ) ! basePath = basePath & "/"; ! ! // construct the url ! sURL = basePath & "editor/fckeditor.html?InstanceName=" & this.instanceName; ! ! // append toolbarset name to the url ! if( len( this.toolbarSet ) ) ! sURL = sURL & "&Toolbar=" & this.toolbarSet; ! ! // create configuration string: Key1=Value1&Key2=Value2&... (Key/Value:HTML encoded) ! for( key in this.config ) ! { ! if( len( sConfig ) ) ! sConfig = sConfig & '&'; ! sConfig = sConfig & HTMLEditFormat(key) & '=' & HTMLEditFormat(this.config[key]); ! } ! </cfscript> ! ! <cfoutput> ! <div> ! <input type="hidden" id="#this.instanceName#" name="#this.instanceName#" value="#HTMLEditFormat(this.value)#" /> ! <input type="hidden" id="#this.instanceName#___Config" value="#sConfig#" /> ! <iframe id="#this.instanceName#___Frame" src="#sURL#" width="#this.width#" height="#this.height#" frameborder="no" scrolling="no"></iframe> ! </div> ! </cfoutput> ! ! </cffunction> ! </cfcomponent> \ No newline at end of file |
Update of /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/_fck/editor In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26270/modules/xwysiwyg/mod/xwysiwyg/_fck/editor Modified Files: fckdebug.html fckdialog.html fckeditor.html fckeditor.original.html fckeditorarea.html Log Message: unix saving Index: fckdebug.html =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/_fck/editor/fckdebug.html,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** fckdebug.html 25 Oct 2004 18:08:25 -0000 1.1.1.1 --- fckdebug.html 7 Nov 2004 16:16:56 -0000 1.2 *************** *** 1,110 **** <!-- ! * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2004 Frederico Caldeira Knabben ! * ! * Licensed under the terms of the GNU Lesser General Public License: ! * http://www.opensource.org/licenses/lgpl-license.php ! * ! * For further information visit: ! * http://www.fckeditor.net/ ! * ! * File Name: fckdebug.html ! * This is the Debug window. ! * It automatically popups if the Debug = true in the configuration file. ! * ! * Version: 2.0 Beta 2 ! * Modified: 2004-05-31 23:07:52 ! * ! * File Authors: * Frederico Caldeira Knabben (fr...@fc...) ! --> ! <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> ! <html> ! <head> ! <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"> ! <meta name="ROBOTS" content="NOINDEX, NOFOLLOW"> ! <title>FCKeditor Debug Window</title> ! <script type="text/javascript"> ! ! var oWindow ; ! var oDiv ; ! ! if ( !window.FCKMessages ) ! window.FCKMessages = new Array() ; ! ! function Initialize() ! { ! oWindow = window.frames[ 'eOutput' ] ! oWindow.document.open() ; ! oWindow.document.write( '<div id="divMsg"></div>' ) ; ! oWindow.document.close() ; ! oDiv = oWindow.document.getElementById('divMsg') ; ! } ! ! function Output( message, color ) ! { ! if ( color ) ! message = '<font color="' + color + '">' + message + '</font>' ; ! ! window.FCKMessages[ window.FCKMessages.length ] = message ; ! StartTimer() ; ! } ! ! function StartTimer() ! { ! window.setTimeout( 'CheckMessages()', 100 ) ; ! } ! ! function CheckMessages() ! { ! if ( window.FCKMessages.length > 0 ) ! { ! // Get the first item in the queue ! var sMessage = window.FCKMessages[0] ; ! ! // Removes the first item from the queue ! var oTempArray = new Array() ; ! for ( i = 1 ; i < window.FCKMessages.length ; i++ ) ! oTempArray[ i - 1 ] = window.FCKMessages[ i ] ; ! window.FCKMessages = oTempArray ; ! ! var d = new Date() ; ! var sTime = ! ( d.getHours() + 100 + '' ).substr( 1,2 ) + ':' + ! ( d.getMinutes() + 100 + '' ).substr( 1,2 ) + ':' + ! ( d.getSeconds() + 100 + '' ).substr( 1,2 ) + ':' + ! ( d.getMilliseconds() + 1000 + '' ).substr( 1,3 ) ; ! ! var oMsgDiv = oWindow.document.createElement( 'div' ) ; ! oMsgDiv.innerHTML = sTime + ': <b>' + sMessage + '</b>' ; ! oDiv.appendChild( oMsgDiv ) ; ! oMsgDiv.scrollIntoView() ; ! } ! } ! ! function Clear() ! { ! oDiv.innerHTML = '' ; ! } ! </script> ! </head> ! <body onload="Initialize();" bottomMargin="10" leftMargin="10" topMargin="10" rightMargin="10"> ! <TABLE height="100%" cellSpacing="5" cellPadding="0" width="100%" border="0"> ! <TR> ! <TD> ! <TABLE cellSpacing="0" cellPadding="0" width="100%" border="0"> ! <TR> ! <TD><FONT size="+2"><STRONG>FCKeditor Debug Window</STRONG></FONT></TD> ! <TD align="right"><INPUT type="button" value="Clear" onclick="Clear();"></TD> ! </TR> ! </TABLE> ! </TD> ! </TR> ! <TR> ! <TD height="100%" style="BORDER-RIGHT: #696969 1px solid; BORDER-TOP: #696969 1px solid; BORDER-LEFT: #696969 1px solid; BORDER-BOTTOM: #696969 1px solid"> ! <iframe id="eOutput" name="eOutput" width="100%" height="100%" scrolling="auto" src="about:blank" frameborder="no"></iframe> ! </TD> ! </TR> ! </TABLE> ! </body> </html> \ No newline at end of file --- 1,110 ---- <!-- ! * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2004 Frederico Caldeira Knabben ! * ! * Licensed under the terms of the GNU Lesser General Public License: ! * http://www.opensource.org/licenses/lgpl-license.php ! * ! * For further information visit: ! * http://www.fckeditor.net/ ! * ! * File Name: fckdebug.html ! * This is the Debug window. ! * It automatically popups if the Debug = true in the configuration file. ! * ! * Version: 2.0 Beta 2 ! * Modified: 2004-05-31 23:07:52 ! * ! * File Authors: * Frederico Caldeira Knabben (fr...@fc...) ! --> ! <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> ! <html> ! <head> ! <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"> ! <meta name="ROBOTS" content="NOINDEX, NOFOLLOW"> ! <title>FCKeditor Debug Window</title> ! <script type="text/javascript"> ! ! var oWindow ; ! var oDiv ; ! ! if ( !window.FCKMessages ) ! window.FCKMessages = new Array() ; ! ! function Initialize() ! { ! oWindow = window.frames[ 'eOutput' ] ! oWindow.document.open() ; ! oWindow.document.write( '<div id="divMsg"></div>' ) ; ! oWindow.document.close() ; ! oDiv = oWindow.document.getElementById('divMsg') ; ! } ! ! function Output( message, color ) ! { ! if ( color ) ! message = '<font color="' + color + '">' + message + '</font>' ; ! ! window.FCKMessages[ window.FCKMessages.length ] = message ; ! StartTimer() ; ! } ! ! function StartTimer() ! { ! window.setTimeout( 'CheckMessages()', 100 ) ; ! } ! ! function CheckMessages() ! { ! if ( window.FCKMessages.length > 0 ) ! { ! // Get the first item in the queue ! var sMessage = window.FCKMessages[0] ; ! ! // Removes the first item from the queue ! var oTempArray = new Array() ; ! for ( i = 1 ; i < window.FCKMessages.length ; i++ ) ! oTempArray[ i - 1 ] = window.FCKMessages[ i ] ; ! window.FCKMessages = oTempArray ; ! ! var d = new Date() ; ! var sTime = ! ( d.getHours() + 100 + '' ).substr( 1,2 ) + ':' + ! ( d.getMinutes() + 100 + '' ).substr( 1,2 ) + ':' + ! ( d.getSeconds() + 100 + '' ).substr( 1,2 ) + ':' + ! ( d.getMilliseconds() + 1000 + '' ).substr( 1,3 ) ; ! ! var oMsgDiv = oWindow.document.createElement( 'div' ) ; ! oMsgDiv.innerHTML = sTime + ': <b>' + sMessage + '</b>' ; ! oDiv.appendChild( oMsgDiv ) ; ! oMsgDiv.scrollIntoView() ; ! } ! } ! ! function Clear() ! { ! oDiv.innerHTML = '' ; ! } ! </script> ! </head> ! <body onload="Initialize();" bottomMargin="10" leftMargin="10" topMargin="10" rightMargin="10"> ! <TABLE height="100%" cellSpacing="5" cellPadding="0" width="100%" border="0"> ! <TR> ! <TD> ! <TABLE cellSpacing="0" cellPadding="0" width="100%" border="0"> ! <TR> ! <TD><FONT size="+2"><STRONG>FCKeditor Debug Window</STRONG></FONT></TD> ! <TD align="right"><INPUT type="button" value="Clear" onclick="Clear();"></TD> ! </TR> ! </TABLE> ! </TD> ! </TR> ! <TR> ! <TD height="100%" style="BORDER-RIGHT: #696969 1px solid; BORDER-TOP: #696969 1px solid; BORDER-LEFT: #696969 1px solid; BORDER-BOTTOM: #696969 1px solid"> ! <iframe id="eOutput" name="eOutput" width="100%" height="100%" scrolling="auto" src="about:blank" frameborder="no"></iframe> ! </TD> ! </TR> ! </TABLE> ! </body> </html> \ No newline at end of file Index: fckdialog.html =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/_fck/editor/fckdialog.html,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** fckdialog.html 25 Oct 2004 18:08:23 -0000 1.1.1.1 --- fckdialog.html 7 Nov 2004 16:16:57 -0000 1.2 *************** *** 1,246 **** <!-- ! * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2004 Frederico Caldeira Knabben ! * ! * Licensed under the terms of the GNU Lesser General Public License: ! * http://www.opensource.org/licenses/lgpl-license.php ! * ! * For further information visit: ! * http://www.fckeditor.net/ ! * ! * File Name: fckdialog.html ! * This page is used by all dialog box as the container. ! * ! * Version: 2.0 Beta 2 ! * Modified: 2004-08-30 23:57:24 ! * ! * File Authors: * Frederico Caldeira Knabben (fr...@fc...) ! --> ! <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> ! <html> ! <head> ! <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> ! <meta name="robots" content="noindex, nofollow" /> ! <script type="text/javascript"> ! <!-- ! ! // Sets the Skin CSS ! document.write( '<link href="' + dialogArguments.Editor.FCKConfig.SkinPath + 'fck_dialog.css" type="text/css" rel="stylesheet">' ) ; ! ! // Sets the language direction. ! window.document.dir = dialogArguments.Editor.FCKLang.Dir ; ! ! var sTitle = dialogArguments.Title ; ! document.write( '<title>' + sTitle + '</title>' ) ; ! ! function LoadInnerDialog() ! { ! // First of all, translate the dialog box contents. ! dialogArguments.Editor.FCKLanguageManager.TranslatePage( document ) ; ! ! window.frames["frmMain"].document.location.href = dialogArguments.Page ; ! } ! ! function InnerDialogLoaded() ! { ! SetOnKeyDown( window.frames["frmMain"].document ) ; ! DisableContextMenu( window.frames["frmMain"].document ) ; ! ! return dialogArguments.Editor ; ! } ! ! function SetOkButton( showIt ) ! { ! document.getElementById('btnOk').style.visibility = ( showIt ? '' : 'hidden' ) ; ! } ! ! function SetScrollBar( showIt ) ! { ! document.getElementById('frmMain').scrolling = showIt ? 'yes' : 'no' ; ! } ! ! function Ok() ! { ! if ( window.frames["frmMain"].Ok() ) ! Cancel() ; ! } ! ! function Cancel() ! { ! window.close() ; ! } ! ! // Object that holds all available tabs. ! var oTabs = new Object() ; ! ! function AddTab( tabCode, tabText, startHidden ) ! { ! if ( typeof( oTabs[ tabCode ] ) != 'undefined' ) ! return ; ! ! var eTabsRow = document.getElementById( 'Tabs' ) ; ! ! var oCell = eTabsRow.insertCell( eTabsRow.cells.length - 1 ) ; ! oCell.noWrap = true ; ! ! var oDiv = document.createElement( 'DIV' ) ; ! oDiv.className = 'PopupTab' ; ! oDiv.innerHTML = tabText ; ! oDiv.TabCode = tabCode ; ! oDiv.onclick = function() ! { ! SetSelectedTab( this.TabCode ) ; ! } ! ! if ( startHidden ) ! oDiv.style.display = 'none' ; ! ! var eTabsRow = document.getElementById( 'TabsRow' ) ; ! ! oCell.appendChild( oDiv ) ; ! ! if ( eTabsRow.style.display == 'none' ) ! { ! var eTitleArea = document.getElementById( 'TitleArea' ) ; ! eTitleArea.className = 'PopupTitle' ; ! ! oDiv.className = 'PopupTabSelected' ; ! eTabsRow.style.display = '' ; ! ! if ( ! dialogArguments.Editor.FCKBrowserInfo.IsIE ) ! window.onresize() ; ! } ! ! oTabs[ tabCode ] = oDiv ; ! oTabs[ tabCode ].Index = oTabs.length - 1 ; ! } ! ! function SetSelectedTab( tabCode ) ! { ! for ( var sCode in oTabs ) ! { ! if ( sCode == tabCode ) ! oTabs[sCode].className = 'PopupTabSelected' ; ! else ! oTabs[sCode].className = 'PopupTab' ; ! } ! ! if ( typeof( window.frames["frmMain"].OnDialogTabChange ) == 'function' ) ! window.frames["frmMain"].OnDialogTabChange( tabCode ) ; ! } ! ! function SetTabVisibility( tabCode, isVisible ) ! { ! var oTab = oTabs[ tabCode ] ; ! oTab.style.display = isVisible ? '' : 'none' ; ! ! if ( ! isVisible && oTab.className == 'PopupTabSelected' ) ! { ! for ( var sCode in oTabs ) ! { ! if ( oTabs[sCode].style.display != 'none' ) ! { ! SetSelectedTab( sCode ) ; ! break ; ! } ! } ! } ! } ! ! function SetOnKeyDown( targetDocument ) ! { ! targetDocument.onkeydown = function ( e ) ! { ! var e = e || event || this.parentWindow.event ; ! switch ( e.keyCode ) ! { ! case 13 : // ENTER ! var oTarget = e.srcElement || e.target ; ! if ( oTarget.tagName == 'TEXTAREA' ) return ; ! Ok() ; ! return false ; ! case 27 : // ESC ! Cancel() ; ! return false ; ! break ; ! } ! } ! } ! SetOnKeyDown( document ) ; ! ! function DisableContextMenu( targetDocument ) ! { ! if ( dialogArguments.Editor.FCKBrowserInfo.IsIE ) return ; ! ! // Disable Right-Click ! var oOnContextMenu = function( e ) ! { ! var sTagName = e.target.tagName ; ! if ( ! ( ( sTagName == "INPUT" && e.target.type == "text" ) || sTagName == "TEXTAREA" ) ) ! e.preventDefault() ; ! } ! targetDocument.addEventListener( 'contextmenu', oOnContextMenu, true ) ; ! } ! DisableContextMenu( document ) ; ! ! if ( ! dialogArguments.Editor.FCKBrowserInfo.IsIE ) ! { ! window.onresize = function() ! { ! var oFrame = document.getElementById("frmMain") ; ! oFrame.height = 0 ; ! ! var oCell = document.getElementById("FrameCell") ; ! var iHeight = oCell.offsetHeight ; ! ! oFrame.height = iHeight - 2 ; ! } ! } ! ! //--> ! </script> ! </head> ! <body onload="LoadInnerDialog();" class="PopupBody"> ! <table height="100%" cellspacing="0" cellpadding="0" width="100%" border="0"> ! <tr> ! <td id="TitleArea" class="PopupTitle PopupTitleBorder"> ! <script type="text/javascript"> ! <!-- ! document.write( sTitle ) ; ! //--> ! </script> ! </td> ! </tr> ! <tr id="TabsRow" style="DISPLAY: none"> ! <td class="PopupTabArea"> ! <table border="0" cellpadding="0" cellspacing="0" width="100%"> ! <tr id="Tabs" onselectstart="return false;"> ! <td class="PopupTabEmptyArea"> </td> ! <td class="PopupTabEmptyArea" width="100%"> </td> ! </tr> ! </table> ! </td> ! </tr> ! <tr> ! <td id="FrameCell" height="100%"> ! <iframe id="frmMain" name="frmMain" frameborder="0" height="100%" width="100%" scrolling="auto"> ! </iframe> ! </td> ! </tr> ! <tr> ! <td class="PopupButtons"> ! <table border="0" cellpadding="0" cellspacing="0"> ! <tr> ! <td width="100%"> </td> ! <td nowrap="nowrap"> ! <input id="btnOk" style="VISIBILITY: hidden; WIDTH: 100px" type="button" value="Ok" class="Button" ! onclick="Ok();" fckLang="DlgBtnOK" /> <input type="button" value="Cancel" class="Button" onclick="Cancel();" fckLang="DlgBtnCancel" /> ! </td> ! </tr> ! </table> ! </td> ! </tr> ! </table> ! </body> </html> \ No newline at end of file --- 1,246 ---- <!-- ! * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2004 Frederico Caldeira Knabben ! * ! * Licensed under the terms of the GNU Lesser General Public License: ! * http://www.opensource.org/licenses/lgpl-license.php ! * ! * For further information visit: ! * http://www.fckeditor.net/ ! * ! * File Name: fckdialog.html ! * This page is used by all dialog box as the container. ! * ! * Version: 2.0 Beta 2 ! * Modified: 2004-08-30 23:57:24 ! * ! * File Authors: * Frederico Caldeira Knabben (fr...@fc...) ! --> ! <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> ! <html> ! <head> ! <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> ! <meta name="robots" content="noindex, nofollow" /> ! <script type="text/javascript"> ! <!-- ! ! // Sets the Skin CSS ! document.write( '<link href="' + dialogArguments.Editor.FCKConfig.SkinPath + 'fck_dialog.css" type="text/css" rel="stylesheet">' ) ; ! ! // Sets the language direction. ! window.document.dir = dialogArguments.Editor.FCKLang.Dir ; ! ! var sTitle = dialogArguments.Title ; ! document.write( '<title>' + sTitle + '</title>' ) ; ! ! function LoadInnerDialog() ! { ! // First of all, translate the dialog box contents. ! dialogArguments.Editor.FCKLanguageManager.TranslatePage( document ) ; ! ! window.frames["frmMain"].document.location.href = dialogArguments.Page ; ! } ! ! function InnerDialogLoaded() ! { ! SetOnKeyDown( window.frames["frmMain"].document ) ; ! DisableContextMenu( window.frames["frmMain"].document ) ; ! ! return dialogArguments.Editor ; ! } ! ! function SetOkButton( showIt ) ! { ! document.getElementById('btnOk').style.visibility = ( showIt ? '' : 'hidden' ) ; ! } ! ! function SetScrollBar( showIt ) ! { ! document.getElementById('frmMain').scrolling = showIt ? 'yes' : 'no' ; ! } ! ! function Ok() ! { ! if ( window.frames["frmMain"].Ok() ) ! Cancel() ; ! } ! ! function Cancel() ! { ! window.close() ; ! } ! ! // Object that holds all available tabs. ! var oTabs = new Object() ; ! ! function AddTab( tabCode, tabText, startHidden ) ! { ! if ( typeof( oTabs[ tabCode ] ) != 'undefined' ) ! return ; ! ! var eTabsRow = document.getElementById( 'Tabs' ) ; ! ! var oCell = eTabsRow.insertCell( eTabsRow.cells.length - 1 ) ; ! oCell.noWrap = true ; ! ! var oDiv = document.createElement( 'DIV' ) ; ! oDiv.className = 'PopupTab' ; ! oDiv.innerHTML = tabText ; ! oDiv.TabCode = tabCode ; ! oDiv.onclick = function() ! { ! SetSelectedTab( this.TabCode ) ; ! } ! ! if ( startHidden ) ! oDiv.style.display = 'none' ; ! ! var eTabsRow = document.getElementById( 'TabsRow' ) ; ! ! oCell.appendChild( oDiv ) ; ! ! if ( eTabsRow.style.display == 'none' ) ! { ! var eTitleArea = document.getElementById( 'TitleArea' ) ; ! eTitleArea.className = 'PopupTitle' ; ! ! oDiv.className = 'PopupTabSelected' ; ! eTabsRow.style.display = '' ; ! ! if ( ! dialogArguments.Editor.FCKBrowserInfo.IsIE ) ! window.onresize() ; ! } ! ! oTabs[ tabCode ] = oDiv ; ! oTabs[ tabCode ].Index = oTabs.length - 1 ; ! } ! ! function SetSelectedTab( tabCode ) ! { ! for ( var sCode in oTabs ) ! { ! if ( sCode == tabCode ) ! oTabs[sCode].className = 'PopupTabSelected' ; ! else ! oTabs[sCode].className = 'PopupTab' ; ! } ! ! if ( typeof( window.frames["frmMain"].OnDialogTabChange ) == 'function' ) ! window.frames["frmMain"].OnDialogTabChange( tabCode ) ; ! } ! ! function SetTabVisibility( tabCode, isVisible ) ! { ! var oTab = oTabs[ tabCode ] ; ! oTab.style.display = isVisible ? '' : 'none' ; ! ! if ( ! isVisible && oTab.className == 'PopupTabSelected' ) ! { ! for ( var sCode in oTabs ) ! { ! if ( oTabs[sCode].style.display != 'none' ) ! { ! SetSelectedTab( sCode ) ; ! break ; ! } ! } ! } ! } ! ! function SetOnKeyDown( targetDocument ) ! { ! targetDocument.onkeydown = function ( e ) ! { ! var e = e || event || this.parentWindow.event ; ! switch ( e.keyCode ) ! { ! case 13 : // ENTER ! var oTarget = e.srcElement || e.target ; ! if ( oTarget.tagName == 'TEXTAREA' ) return ; ! Ok() ; ! return false ; ! case 27 : // ESC ! Cancel() ; ! return false ; ! break ; ! } ! } ! } ! SetOnKeyDown( document ) ; ! ! function DisableContextMenu( targetDocument ) ! { ! if ( dialogArguments.Editor.FCKBrowserInfo.IsIE ) return ; ! ! // Disable Right-Click ! var oOnContextMenu = function( e ) ! { ! var sTagName = e.target.tagName ; ! if ( ! ( ( sTagName == "INPUT" && e.target.type == "text" ) || sTagName == "TEXTAREA" ) ) ! e.preventDefault() ; ! } ! targetDocument.addEventListener( 'contextmenu', oOnContextMenu, true ) ; ! } ! DisableContextMenu( document ) ; ! ! if ( ! dialogArguments.Editor.FCKBrowserInfo.IsIE ) ! { ! window.onresize = function() ! { ! var oFrame = document.getElementById("frmMain") ; ! oFrame.height = 0 ; ! ! var oCell = document.getElementById("FrameCell") ; ! var iHeight = oCell.offsetHeight ; ! ! oFrame.height = iHeight - 2 ; ! } ! } ! ! //--> ! </script> ! </head> ! <body onload="LoadInnerDialog();" class="PopupBody"> ! <table height="100%" cellspacing="0" cellpadding="0" width="100%" border="0"> ! <tr> ! <td id="TitleArea" class="PopupTitle PopupTitleBorder"> ! <script type="text/javascript"> ! <!-- ! document.write( sTitle ) ; ! //--> ! </script> ! </td> ! </tr> ! <tr id="TabsRow" style="DISPLAY: none"> ! <td class="PopupTabArea"> ! <table border="0" cellpadding="0" cellspacing="0" width="100%"> ! <tr id="Tabs" onselectstart="return false;"> ! <td class="PopupTabEmptyArea"> </td> ! <td class="PopupTabEmptyArea" width="100%"> </td> ! </tr> ! </table> ! </td> ! </tr> ! <tr> ! <td id="FrameCell" height="100%"> ! <iframe id="frmMain" name="frmMain" frameborder="0" height="100%" width="100%" scrolling="auto"> ! </iframe> ! </td> ! </tr> ! <tr> ! <td class="PopupButtons"> ! <table border="0" cellpadding="0" cellspacing="0"> ! <tr> ! <td width="100%"> </td> ! <td nowrap="nowrap"> ! <input id="btnOk" style="VISIBILITY: hidden; WIDTH: 100px" type="button" value="Ok" class="Button" ! onclick="Ok();" fckLang="DlgBtnOK" /> <input type="button" value="Cancel" class="Button" onclick="Cancel();" fckLang="DlgBtnCancel" /> ! </td> ! </tr> ! </table> ! </td> ! </tr> ! </table> ! </body> </html> \ No newline at end of file Index: fckeditor.original.html =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/_fck/editor/fckeditor.original.html,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** fckeditor.original.html 25 Oct 2004 18:08:25 -0000 1.1.1.1 --- fckeditor.original.html 7 Nov 2004 16:16:57 -0000 1.2 *************** *** 1,74 **** <!-- ! * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2004 Frederico Caldeira Knabben ! * ! * Licensed under the terms of the GNU Lesser General Public License: ! * http://www.opensource.org/licenses/lgpl-license.php ! * ! * For further information visit: ! * http://www.fckeditor.net/ ! * ! * File Name: fckeditor.original.html ! * Main page that holds the editor. ! * ! * Version: 2.0 Beta 2 ! * Modified: 2004-08-30 23:37:01 ! * ! * File Authors: * Frederico Caldeira Knabben (fr...@fc...) ! --> ! <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> ! <html> ! <head> ! <title>FCKeditor</title> ! <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"> <!-- @Packager.RemoveLine --> ! <meta name="robots" content="noindex, nofollow" /> ! <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> ! <!-- @Packager.RemoveLine ! <meta http-equiv="Cache-Control" content="public"> ! @Packager.RemoveLine --> ! <!-- @Packager.Remove.Start --> ! <script type="text/javascript" src="_source/internals/fckbrowserinfo.js"></script> ! <script type="text/javascript" src="_source/internals/fckscriptloader.js"></script> ! <script type="text/javascript" src="_source/internals/fckconfig.js"></script> ! <script type="text/javascript" src="_source/internals/fck_onload.js"></script> ! <script type="text/javascript" src="_source/internals/fckurlparams.js"></script> ! <script type="text/javascript" src="_source/globals/fck_constants.js"></script> ! <script type="text/javascript" src="_source/internals/fck.js"></script> ! <script type="text/javascript" src="_source/globals/fckeditorapi.js"></script> ! <!-- @Packager.Remove.End --> ! <!-- @Packager.RemoveLine ! <script type="text/javascript" src="js/fck_startup.js"></script> ! @Packager.RemoveLine --> ! </head> ! <body onfocus="FCK.Focus();" onclick="FCK.Focus();"> ! <table height="100%" width="100%" cellpadding="0" cellspacing="0" border="0"> ! <tr> ! <td unselectable="on"> ! <table width="100%" cellpadding="0" cellspacing="0" border="0"> ! <tr id="Collapsed" style="DISPLAY: none"> ! <td class="TB_Expand" title="Expand Toolbar" unselectable="on" colspan="3" onclick="FCKToolbarSet.Expand();return false;"><img class="TB_ExpandImg" src="images/spacer.gif" width="8" height="4" unselectable="on"></td> ! </tr> ! <tr id="Expanded" style="DISPLAY: none"> ! <td id="CollapseHandle" style="DISPLAY: none" class="TB_Collapse" title="Collapse Toolbar" ! unselectable="on" valign="bottom" onclick="FCKToolbarSet.Collapse();return false;"><img class="TB_CollapseImg" src="images/spacer.gif" width="8" height="4" unselectable="on"></td> ! <td id="eToolbar" class="TB_ToolbarSet" unselectable="on"></td> ! <td width="1" style="BACKGROUND-COLOR: #696969"></td> ! </tr> ! </table> ! </td> ! </tr> ! <tr id="eWysiwyg"> ! <td id="eWysiwygCell" height="100%"> ! <iframe id="eEditorArea" name="eEditorArea" height="100%" width="100%" src="fckeditorarea.html" ! frameborder="no"></iframe> ! </td> ! </tr> ! <tr id="eSource" style="DISPLAY: none"> ! <td class="Source" height="100%" valign="top"> ! <textarea id="eSourceField" style="WIDTH: 100%; HEIGHT: 100%"></textarea> ! </td> ! </tr> ! </table> ! </body> ! </html> --- 1,74 ---- <!-- ! * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2004 Frederico Caldeira Knabben ! * ! * Licensed under the terms of the GNU Lesser General Public License: ! * http://www.opensource.org/licenses/lgpl-license.php ! * ! * For further information visit: ! * http://www.fckeditor.net/ ! * ! * File Name: fckeditor.original.html ! * Main page that holds the editor. ! * ! * Version: 2.0 Beta 2 ! * Modified: 2004-08-30 23:37:01 ! * ! * File Authors: * Frederico Caldeira Knabben (fr...@fc...) ! --> ! <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> ! <html> ! <head> ! <title>FCKeditor</title> ! <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"> <!-- @Packager.RemoveLine --> ! <meta name="robots" content="noindex, nofollow" /> ! <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> ! <!-- @Packager.RemoveLine ! <meta http-equiv="Cache-Control" content="public"> ! @Packager.RemoveLine --> ! <!-- @Packager.Remove.Start --> ! <script type="text/javascript" src="_source/internals/fckbrowserinfo.js"></script> ! <script type="text/javascript" src="_source/internals/fckscriptloader.js"></script> ! <script type="text/javascript" src="_source/internals/fckconfig.js"></script> ! <script type="text/javascript" src="_source/internals/fck_onload.js"></script> ! <script type="text/javascript" src="_source/internals/fckurlparams.js"></script> ! <script type="text/javascript" src="_source/globals/fck_constants.js"></script> ! <script type="text/javascript" src="_source/internals/fck.js"></script> ! <script type="text/javascript" src="_source/globals/fckeditorapi.js"></script> ! <!-- @Packager.Remove.End --> ! <!-- @Packager.RemoveLine ! <script type="text/javascript" src="js/fck_startup.js"></script> ! @Packager.RemoveLine --> ! </head> ! <body onfocus="FCK.Focus();" onclick="FCK.Focus();"> ! <table height="100%" width="100%" cellpadding="0" cellspacing="0" border="0"> ! <tr> ! <td unselectable="on"> ! <table width="100%" cellpadding="0" cellspacing="0" border="0"> ! <tr id="Collapsed" style="DISPLAY: none"> ! <td class="TB_Expand" title="Expand Toolbar" unselectable="on" colspan="3" onclick="FCKToolbarSet.Expand();return false;"><img class="TB_ExpandImg" src="images/spacer.gif" width="8" height="4" unselectable="on"></td> ! </tr> ! <tr id="Expanded" style="DISPLAY: none"> ! <td id="CollapseHandle" style="DISPLAY: none" class="TB_Collapse" title="Collapse Toolbar" ! unselectable="on" valign="bottom" onclick="FCKToolbarSet.Collapse();return false;"><img class="TB_CollapseImg" src="images/spacer.gif" width="8" height="4" unselectable="on"></td> ! <td id="eToolbar" class="TB_ToolbarSet" unselectable="on"></td> ! <td width="1" style="BACKGROUND-COLOR: #696969"></td> ! </tr> ! </table> ! </td> ! </tr> ! <tr id="eWysiwyg"> ! <td id="eWysiwygCell" height="100%"> ! <iframe id="eEditorArea" name="eEditorArea" height="100%" width="100%" src="fckeditorarea.html" ! frameborder="no"></iframe> ! </td> ! </tr> ! <tr id="eSource" style="DISPLAY: none"> ! <td class="Source" height="100%" valign="top"> ! <textarea id="eSourceField" style="WIDTH: 100%; HEIGHT: 100%"></textarea> ! </td> ! </tr> ! </table> ! </body> ! </html> Index: fckeditor.html =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/_fck/editor/fckeditor.html,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** fckeditor.html 25 Oct 2004 18:08:24 -0000 1.1.1.1 --- fckeditor.html 7 Nov 2004 16:16:57 -0000 1.2 *************** *** 1,59 **** <!-- ! * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2004 Frederico Caldeira Knabben ! * ! * Licensed under the terms of the GNU Lesser General Public License: ! * http://www.opensource.org/licenses/lgpl-license.php ! * ! * For further information visit: ! * http://www.fckeditor.net/ ! * ! * File Name: fckeditor.html ! * Main page that holds the editor. ! * ! * Version: 2.0 Beta 2 ! * Modified: 2004-08-30 23:37:01 ! * ! * File Authors: * Frederico Caldeira Knabben (fr...@fc...) ! --> ! <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> ! <html> ! <head> ! <title>FCKeditor</title> ! <meta name="robots" content="noindex, nofollow" /> ! <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> ! <meta http-equiv="Cache-Control" content="public"> ! <script type="text/javascript" src="js/fck_startup.js"></script> ! </head> ! <body onfocus="FCK.Focus();" onclick="FCK.Focus();"> ! <table height="100%" width="100%" cellpadding="0" cellspacing="0" border="0"> ! <tr> ! <td unselectable="on"> ! <table width="100%" cellpadding="0" cellspacing="0" border="0"> ! <tr id="Collapsed" style="DISPLAY: none"> ! <td class="TB_Expand" title="Expand Toolbar" unselectable="on" colspan="3" onclick="FCKToolbarSet.Expand();return false;"><img class="TB_ExpandImg" src="images/spacer.gif" width="8" height="4" unselectable="on"></td> ! </tr> ! <tr id="Expanded" style="DISPLAY: none"> ! <td id="CollapseHandle" style="DISPLAY: none" class="TB_Collapse" title="Collapse Toolbar" ! unselectable="on" valign="bottom" onclick="FCKToolbarSet.Collapse();return false;"><img class="TB_CollapseImg" src="images/spacer.gif" width="8" height="4" unselectable="on"></td> ! <td id="eToolbar" class="TB_ToolbarSet" unselectable="on"></td> ! <td width="1" style="BACKGROUND-COLOR: #696969"></td> ! </tr> ! </table> ! </td> ! </tr> ! <tr id="eWysiwyg"> ! <td id="eWysiwygCell" height="100%"> ! <iframe id="eEditorArea" name="eEditorArea" height="100%" width="100%" src="fckeditorarea.html" ! frameborder="no"></iframe> ! </td> ! </tr> ! <tr id="eSource" style="DISPLAY: none"> ! <td class="Source" height="100%" valign="top"> ! <textarea id="eSourceField" style="WIDTH: 100%; HEIGHT: 100%"></textarea> ! </td> ! </tr> ! </table> ! </body> ! </html> --- 1,59 ---- <!-- ! * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2004 Frederico Caldeira Knabben ! * ! * Licensed under the terms of the GNU Lesser General Public License: ! * http://www.opensource.org/licenses/lgpl-license.php ! * ! * For further information visit: ! * http://www.fckeditor.net/ ! * ! * File Name: fckeditor.html ! * Main page that holds the editor. ! * ! * Version: 2.0 Beta 2 ! * Modified: 2004-08-30 23:37:01 ! * ! * File Authors: * Frederico Caldeira Knabben (fr...@fc...) ! --> ! <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> ! <html> ! <head> ! <title>FCKeditor</title> ! <meta name="robots" content="noindex, nofollow" /> ! <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> ! <meta http-equiv="Cache-Control" content="public"> ! <script type="text/javascript" src="js/fck_startup.js"></script> ! </head> ! <body onfocus="FCK.Focus();" onclick="FCK.Focus();"> ! <table height="100%" width="100%" cellpadding="0" cellspacing="0" border="0"> ! <tr> ! <td unselectable="on"> ! <table width="100%" cellpadding="0" cellspacing="0" border="0"> ! <tr id="Collapsed" style="DISPLAY: none"> ! <td class="TB_Expand" title="Expand Toolbar" unselectable="on" colspan="3" onclick="FCKToolbarSet.Expand();return false;"><img class="TB_ExpandImg" src="images/spacer.gif" width="8" height="4" unselectable="on"></td> ! </tr> ! <tr id="Expanded" style="DISPLAY: none"> ! <td id="CollapseHandle" style="DISPLAY: none" class="TB_Collapse" title="Collapse Toolbar" ! unselectable="on" valign="bottom" onclick="FCKToolbarSet.Collapse();return false;"><img class="TB_CollapseImg" src="images/spacer.gif" width="8" height="4" unselectable="on"></td> ! <td id="eToolbar" class="TB_ToolbarSet" unselectable="on"></td> ! <td width="1" style="BACKGROUND-COLOR: #696969"></td> ! </tr> ! </table> ! </td> ! </tr> ! <tr id="eWysiwyg"> ! <td id="eWysiwygCell" height="100%"> ! <iframe id="eEditorArea" name="eEditorArea" height="100%" width="100%" src="fckeditorarea.html" ! frameborder="no"></iframe> ! </td> ! </tr> ! <tr id="eSource" style="DISPLAY: none"> ! <td class="Source" height="100%" valign="top"> ! <textarea id="eSourceField" style="WIDTH: 100%; HEIGHT: 100%"></textarea> ! </td> ! </tr> ! </table> ! </body> ! </html> Index: fckeditorarea.html =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/_fck/editor/fckeditorarea.html,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** fckeditorarea.html 25 Oct 2004 18:08:32 -0000 1.1.1.1 --- fckeditorarea.html 7 Nov 2004 16:16:57 -0000 1.2 *************** *** 1,9 **** ! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ! <html> ! <head> ! <title>FCKeditor - Editor Area</title> ! <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> ! <link href="css/fck_editorarea.css" type="text/css" rel="stylesheet" /> ! </head> ! <body></body> ! </html> --- 1,9 ---- ! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ! <html> ! <head> ! <title>FCKeditor - Editor Area</title> ! <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> ! <link href="css/fck_editorarea.css" type="text/css" rel="stylesheet" /> ! </head> ! <body></body> ! </html> |
From: Yves K. <yku...@us...> - 2004-11-07 00:32:12
|
Update of /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/class In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31344/modules/xwysiwyg/mod/xwysiwyg/class Removed Files: phpSniff.core.php Log Message: phpSniff.core removed, it is included in the class now --- phpSniff.core.php DELETED --- |
From: Yves K. <yku...@us...> - 2004-11-07 00:31:01
|
Update of /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/class In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30937/modules/xwysiwyg/mod/xwysiwyg/class Modified Files: xwysiwyg.php Log Message: bugfix for notice: undefined variables bugfixes for answer-array bugfix phpsniffer was not working properly optical: simplified javascript-creation Index: xwysiwyg.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/class/xwysiwyg.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** xwysiwyg.php 6 Nov 2004 19:23:28 -0000 1.10 --- xwysiwyg.php 7 Nov 2004 00:29:41 -0000 1.11 *************** *** 47,51 **** 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 $browsers = array("fb.6+", "NS7+","ie5.5+","mz1.3+","op7+","kq3+","ga","aol","ca"); --- 47,51 ---- 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 $browsers = array("fb.6+", "NS7+","ie5.5+","mz1.3+","op7+","kq3+","ga","aol","ca"); *************** *** 53,57 **** if($client->browser_is($search)) $supported = TRUE; } - $settings = PHPWS_xwysiwyg::readConfig(); $allowed = FALSE; --- 53,56 ---- *************** *** 61,75 **** if((!$supported)OR(!$allowed)) { ! $answer[xwysiwyg] = FALSE; ! $answer[onRequest] = FALSE; ! $answer[xwButton] = FALSE; } elseif($settings['request_mode']) { ! $answer[xwysiwyg] = TRUE; ! $answer[onRequest] = TRUE; ! $answer[xwButton] = TRUE; } else { ! $answer[xwysiwyg] = PHPWS_xwysiwyg::isBox($section_name); ! $answer[onRequest] = FALSE; ! $answer[xwButton] = $_SESSION["OBJ_user"]->allow_access("xwysiwyg","settings"); } return $answer; --- 60,74 ---- if((!$supported)OR(!$allowed)) { ! $answer["xwysiwyg"] = FALSE; ! $answer["onRequest"] = FALSE; ! $answer["xwButton"] = FALSE; } elseif($settings['request_mode']) { ! $answer["xwysiwyg"] = TRUE; ! $answer["onRequest"] = TRUE; ! $answer["xwButton"] = TRUE; } else { ! $answer["xwysiwyg"] = PHPWS_xwysiwyg::isBox($section_name); ! $answer["onRequest"] = FALSE; ! $answer["xwButton"] = $_SESSION["OBJ_user"]->allow_access("xwysiwyg","settings"); } return $answer; *************** *** 124,200 **** } ! 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.config.pageStyle = \"@import url('".PHPWS_xwysiwyg::pickCSS()."');\"; ! 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.config.pageStyle = \"@import url('".PHPWS_xwysiwyg::pickCSS()."');\"; ! 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.config.pageStyle = \"@import url('".PHPWS_xwysiwyg::pickCSS()."');\"; ! 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\"; ! editor$index.config.pageStyle = \"@import url('".PHPWS_xwysiwyg::pickCSS()."');\"; ! 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 = \"http://".PHPWS_SOURCE_HTTP."mod/xwysiwyg/_fck/\" ; ! editor$index.CheckBrowser = false ; ! editor$index.Config[\"AutoDetectLanguage\"] = false ; ! editor$index.Config[\"EditorAreaCSS\"] = \"".PHPWS_xwysiwyg::pickCSS()."\"; ! 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; --- 123,154 ---- } ! function makeEditors($settings,$index,$regplugs,$area,$lang) { // Editor - Section ! if($settings['editor']=="htmlarea") { // HtmlArea in Normal-Mode ! $editors = " ! var editor$index = new HTMLArea(\"$area\"); ! ".$regplugs." ! editor$index.config.height = \"300px\"; ! editor$index.config.pageStyle = \"@import url('".PHPWS_xwysiwyg::pickCSS()."');\"; ! setTimeout(function() { editor$index.generate(); }, ".($index*300).");"; ! if($settings['request_mode']) // HtmlArea Editor in Request-Mode ! $editors = "\n function initEditor$index() { \n".$editors."\n return false;\n }\n"; ! } else if($settings['editor']=="fck") { // FCKeditor in Normal-Mode ! $skin = $settings['fck_skin']; ! $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 ; ! editor$index.Config[\"EditorAreaCSS\"] = \"".PHPWS_xwysiwyg::pickCSS()."\"; ! editor$index.Config[\"DefaultLanguage\"] = \"$lang\" ; ! editor$index.Config[\"SkinPath\"] = \"skins/$skin/\" ; ! ".$regplugs." ! setTimeout(function() { editor$index.ReplaceTextarea(); }, ".($index*200).");"; ! ! if($settings['request_mode']) { // FCKeditor in Request-Mode ! $editors = "\n function initEditor$index() {\n".$editors. ! "\n return false;\n }\n"; } } return $editors; *************** *** 202,205 **** --- 156,161 ---- function makeMain($settings,$editors,$loadplugs,$lang) { + $scriptHeader = "<script type=\"text/javascript\">\n//<![CDATA[\n"; + $scriptFooter = "//]]>\n</script>\n"; if($settings['editor']=="htmlarea") { // start cookie-code from chrisbarc *************** *** 215,262 **** // HtmlArea-Main for all Modes ! $main = " ! <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; ! ! 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; ! } ! //]]>\n</script> ! "; ! } } else if($settings['editor']=="fck") { // FCK-Main for all Modes ! $main = " <!-- load the main FCKeditor files --> <script type=\"text/javascript\" src=\"http://".PHPWS_SOURCE_HTTP."mod/xwysiwyg/_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; ! } ! //]]>\n</script> ! "; ! } } return $main; } --- 171,198 ---- // HtmlArea-Main for all Modes ! $main = $scriptHeader. ! " _editor_lang = \"".$lang."\"; _editor_url = \"http://".PHPWS_SOURCE_HTTP."mod/xwysiwyg/_htmlarea/\"; ! $scriptFooter <!-- load the main HTMLArea files --> <script type=\"text/javascript\" src=\"http://".PHPWS_SOURCE_HTTP."mod/xwysiwyg/_htmlarea/htmlarea.js\"></script> ! $scriptHeader".$loadplugs; } else if($settings['editor']=="fck") { // FCK-Main for all Modes ! $main = " <!-- load the main FCKeditor files --> <script type=\"text/javascript\" src=\"http://".PHPWS_SOURCE_HTTP."mod/xwysiwyg/_fck/fckeditor.js\"></script> ! $scriptHeader".$loadplugs; ! } ! if($settings['request_mode']) { // Request-Mode ! $main .= " $editors\n$scriptFooter"; ! } else { // Normal-Mode ! $main .= " window.onload = function initEditor() { // create the editor(s) for the related textbox(es) $editors ! return false; \n }\n$scriptFooter"; } + return $main; } *************** *** 279,283 **** $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; } --- 215,219 ---- $main = PHPWS_xwysiwyg::makeMain($settings,$editors,$loadplugs,$lang); } ! $main = "//]]> </script>\n".$main."<script type=\"text/javascript\"> //<![CDATA["; //ugly hack to work with $GLOBALS['core']->js_func[] return $main; } |
From: Yves K. <yku...@us...> - 2004-11-07 00:27:49
|
Update of /cvsroot/phpwebsite-comm/modules/xwysiwyg/js In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30205/modules/xwysiwyg/js Modified Files: wysiwyg.php Log Message: bugfix: for some notice: undefined variables Index: wysiwyg.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/js/wysiwyg.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** wysiwyg.php 5 Nov 2004 22:40:30 -0000 1.6 --- wysiwyg.php 7 Nov 2004 00:26:35 -0000 1.7 *************** *** 5,12 **** require_once(PHPWS_SOURCE_DIR.'mod/xwysiwyg/class/xwysiwyg.php');//include the xwysiwyg code $answer = PHPWS_xwysiwyg::isSupported($section_name); ! $onRequest = $answer[onRequest]; ! $xwysiwyg = $answer[xwysiwyg]; ! $xw_button = $answer[xwButton]; } if ($xwysiwyg) { $GLOBALS['xwysiwyg_areas'][] = $section_name; //write an array for the theme.php --- 5,15 ---- require_once(PHPWS_SOURCE_DIR.'mod/xwysiwyg/class/xwysiwyg.php');//include the xwysiwyg code $answer = PHPWS_xwysiwyg::isSupported($section_name); ! $onRequest = $answer["onRequest"]; ! $xwysiwyg = $answer["xwysiwyg"]; ! $xw_button = $answer["xwButton"]; } + + if(!isset($GLOBALS['xwysiwyg'])AND($xwysiwyg)) $GLOBALS['xwysiwyg'] = 0; + if ($xwysiwyg) { $GLOBALS['xwysiwyg_areas'][] = $section_name; //write an array for the theme.php *************** *** 23,27 **** if(!isset($GLOBALS['wysiwyg'])) $GLOBALS['wysiwyg'] = 1; - if(!isset($GLOBALS['xwysiwyg'])AND($xwysiwyg)) $GLOBALS['xwysiwyg'] = 1; if(!$xwysiwyg|$onRequest) { --- 26,29 ---- *************** *** 124,128 **** } ! $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"; --- 126,130 ---- } ! if(isset($GLOBALS['xwysiwyg'])) $eid = $GLOBALS['xwysiwyg']; else $eid = 0; // 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"; |
From: Yves K. <yku...@us...> - 2004-11-07 00:26:39
|
Update of /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/class In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29792/modules/xwysiwyg/mod/xwysiwyg/class Modified Files: phpSniff.class.php Log Message: Updated to the actual sniffer Index: phpSniff.class.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/class/phpSniff.class.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** phpSniff.class.php 26 Oct 2004 07:31:52 -0000 1.2 --- phpSniff.class.php 7 Nov 2004 00:24:33 -0000 1.3 *************** *** 1,36 **** <?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 [...999 lines suppressed...] + function _set_browser ($k,$v) + { $this->_browser_info[strtolower($k)] = strtolower($v); + } + + /** + * @access private + */ + function _set_feature ($k) + { $this->_feature_set[strtolower($k)] = !$this->_feature_set[strtolower($k)]; + } + + /** + * @access private + */ + function _set_quirk ($k) + { $this->_quirks[strtolower($k)] = true; + } } ?> \ No newline at end of file |
From: Yves K. <yku...@us...> - 2004-11-06 19:24:10
|
Update of /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/class In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24398/modules/xwysiwyg/mod/xwysiwyg/class Modified Files: xwysiwyg.php Log Message: bugfix php-notice varable not set case edit in action removed optical tuning Index: xwysiwyg.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/class/xwysiwyg.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** xwysiwyg.php 5 Nov 2004 22:44:48 -0000 1.9 --- xwysiwyg.php 6 Nov 2004 19:23:28 -0000 1.10 *************** *** 358,368 **** $formTags['PLUG_IMAGE_TEXT'] = $_SESSION['translate']->it("Enable ImageManager-Plugin"); // $formTags['PLUG_SPELL_TEXT'] = "n.a. yet ".$_SESSION['translate']->it("Enable SpellChecker-Plugin"); ! if(isset($_REQUEST['func'])AND($_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(); --- 358,364 ---- $formTags['PLUG_IMAGE_TEXT'] = $_SESSION['translate']->it("Enable ImageManager-Plugin"); // $formTags['PLUG_SPELL_TEXT'] = "n.a. yet ".$_SESSION['translate']->it("Enable SpellChecker-Plugin"); ! $formTags['MESSAGE'] = $this->updateOptions($settings); ! $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(); *************** *** 375,379 **** 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; } --- 371,375 ---- function showFCKoptions($settings) { if ($_SESSION["OBJ_user"]->allow_access("xwysiwyg", "settings")) { ! if (isset($_REQUEST['func'])AND($_REQUEST['func'] == "update")) { if(isset($_REQUEST['lang_activ'])) { $settings['lang_activ'] = 1; } else { $settings['lang_activ'] = 0; } *************** *** 412,422 **** $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(); --- 408,414 ---- $formTags['REQUEST_MODE_TEXT'] = $_SESSION['translate']->it("Enable Request-Mode"); $formTags['FCK_SKIN_TEXT'] = $_SESSION['translate']->it("Select your Skin"); ! $formTags['MESSAGE'] = $this->updateOptions($settings); ! $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(); *************** *** 427,430 **** --- 419,431 ---- + function updateOptions($settings) { + if(isset($_REQUEST['func'])AND($_REQUEST['func'] == "update")) { + if($GLOBALS['core']->sqlUpdate($settings, "mod_xwysiwyg_conf")) { + $message = "<span style=\"color:green;font-weight:bold\">".$_SESSION['translate']->it("Settings saved successfully")."</span><br />"; } + else { $message = "<span class=\"errortext\">".$_SESSION['translate']->it("There was a problem saving to the database")."</span><br />"; } + } else { $message = "<span style=\"color:blue;font-weight:bold\">".$_SESSION['translate']->it("Make your selections")."</span><br />"; } + return $message; + } + function showArea() { $query = "SELECT id, area FROM ".PHPWS_TBL_PREFIX."mod_xwysiwyg_areas ORDER BY 1"; *************** *** 435,449 **** $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"); --- 436,450 ---- $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"); *************** *** 451,463 **** } ! 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; --- 452,464 ---- } ! function toggleButton($editor) { //need xhtml compatibility ! $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; *************** *** 472,476 **** 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)) { --- 473,477 ---- function addArea() { if ($_SESSION["OBJ_user"]->allow_access("xwysiwyg","settings")) {//Administrativ condition ! if(isset($_REQUEST['area'])) {$data['area'] = PHPWS_Text::parseInput($_REQUEST['area']); } else {return FALSE;} if($GLOBALS['core']->sqlInsert($data, "mod_xwysiwyg_areas", TRUE, FALSE)) { *************** *** 508,512 **** case "toggle": //this for action=admin ! $this->toggleEditor(PHPWS_Text::parseInput($_REQUEST["editor"])); case "admin": //this for action=admin --- 509,514 ---- case "toggle": //this for action=admin ! if(isset($_REQUEST['editor'])) ! $this->toggleEditor(PHPWS_Text::parseInput($_REQUEST["editor"])); case "admin": //this for action=admin *************** *** 520,533 **** 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; --- 522,532 ---- break; ! case "addArea": $this->addArea(); break; ! case "deleData": ! if(isset($_REQUEST['id'])) ! $this->delArea(PHPWS_Text::parseInput($_REQUEST["id"])); break; |
From: Yves K. <yku...@us...> - 2004-11-06 19:21:24
|
Update of /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/lang In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23930/modules/xwysiwyg/mod/xwysiwyg/lang Modified Files: xwysiwyg.de.lng xwysiwyg.en.lng Log Message: Phrases sorted One missing phrase added Index: xwysiwyg.de.lng =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/lang/xwysiwyg.de.lng,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** xwysiwyg.de.lng 26 Oct 2004 07:33:29 -0000 1.2 --- xwysiwyg.de.lng 6 Nov 2004 19:20:55 -0000 1.3 *************** *** 7,10 **** --- 7,11 ---- a:|:Area-Name:|:Area-Name a:|:Back:|:Zurück + a:|:Change:|:Wechseln a:|:Delete:|:Löschen a:|:Edit your entry:|:Eintrag bearbeiten *************** *** 13,20 **** --- 14,26 ---- a:|:Enable ContextMenu-Plugin:|:ContextMenu-Plugin einschalten a:|:Enable EnterParagraphs-Plugin:|:EnterParagraphs-Plugin einschalten + a:|:Enable ImageManager-Plugin:|:ImageManager-Plugin einschalten + a:|:Enable InsertFile-Plugin:|:InsertFile-Plugin einschalten + a:|:Enable ListType-Plugin:|:ListType-Plugin einschalten + a:|:Enable Request-Mode:|:Request-Mode aktivieren 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:|:Error: No editor selected:|:Fehler: Kein Editor ausgewählt a:|:Home:|:Home a:|:ID:|:ID *************** *** 23,26 **** --- 29,33 ---- a:|:Save:|:Speichern a:|:Saving was successfull:|:Speichern war erfolgreich + a:|:Select your Skin:|:Wählen Sie die Oberfläche a:|:Settings saved successfully:|:Einstellungen erfolgreich gespeichert a:|:Settings:|:Einstellungen *************** *** 30,40 **** 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 --- 37,41 ---- a:|:There was a problem updating the database:|:Es gab Probleme beim aktualisieren der Datenbank a:|:Update was successfull:|:Aktualisieren war erfolgreich a:|:You use [var1] now:|:Sie benutzen jetzt [var1] ! a:|:no action given...:|:es wurde keine keine Aktion angegeben... ! a:|:xwysiwyg - Manager:|:xwysiwyg - Manager Index: xwysiwyg.en.lng =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/lang/xwysiwyg.en.lng,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** xwysiwyg.en.lng 26 Oct 2004 07:33:29 -0000 1.2 --- xwysiwyg.en.lng 6 Nov 2004 19:20:55 -0000 1.3 *************** *** 7,10 **** --- 7,11 ---- a:|:Area-Name:|:Area-Name a:|:Back:|:Back + a:|:Change:|:Change a:|:Delete:|:Delete a:|:Edit your entry:|:Edit your entry *************** *** 13,20 **** --- 14,26 ---- a:|:Enable ContextMenu-Plugin:|:Enable ContextMenu-Plugin a:|:Enable EnterParagraphs-Plugin:|:Enable EnterParagraphs-Plugin + a:|:Enable ImageManager-Plugin:|:Enable ImageManager-Plugin + a:|:Enable InsertFile-Plugin:|:Enable InsertFile-Plugin + a:|:Enable ListType-Plugin:|:Enable ListType-Plugin + a:|:Enable Request-Mode:|:Enable Request-Mode 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:|:Error: No editor selected:|:Error: No editor selected a:|:Home:|:Home a:|:ID:|:ID *************** *** 23,26 **** --- 29,33 ---- a:|:Save:|:Save a:|:Saving was successfull:|:Saving was successfull + a:|:Select your Skin:|:Select your Skin a:|:Settings saved successfully:|:Settings saved successfully a:|:Settings:|:Settings *************** *** 30,40 **** 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 --- 37,41 ---- a:|:There was a problem updating the database:|:There was a problem updating the database a:|:Update was successfull:|:Update was successfull a:|:You use [var1] now:|:You use [var1] now ! a:|:no action given...:|:no action given... ! a:|:xwysiwyg - Manager:|:xwysiwyg - Manager |
From: Yves K. <yku...@us...> - 2004-11-05 23:35:41
|
Update of /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/_htmlarea/plugins/ImageManager In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2491/modules/xwysiwyg/mod/xwysiwyg/_htmlarea/plugins/ImageManager Modified Files: config.inc.php Log Message: unix saving Index: config.inc.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/_htmlarea/plugins/ImageManager/config.inc.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** config.inc.php 25 Oct 2004 18:16:02 -0000 1.1.1.1 --- config.inc.php 5 Nov 2004 23:35:25 -0000 1.2 *************** *** 1,134 **** ! <? ! /** ! * Image Manager configuration file. ! * @author $Author$ ! * @version $Id$ ! * @package ImageManager ! */ ! ! ! /* ! File system path to the directory you want to manage the images ! for multiple user systems, set it dynamically. ! ! NOTE: This directory requires write access by PHP. That is, ! PHP must be able to create files in this directory. ! Able to create directories is nice, but not necessary. ! */ ! // $IMConfig['base_dir'] = '/home/barc/www/training/images'; ! $IMConfig['base_dir'] = $_COOKIE['pws_source_dir'].'images/photoalbum'; ! ! /* ! The URL to the above path, the web browser needs to be able to see it. ! It can be protected via .htaccess on apache or directory permissions on IIS, ! check you web server documentation for futher information on directory protection ! If this directory needs to be publicly accessiable, remove scripting capabilities ! for this directory (i.e. disable PHP, Perl, CGI). We only want to store assets ! in this directory and its subdirectories. ! */ ! //$IMConfig['base_url'] = 'http://www.barc.org.au/training/images'; ! $IMConfig['base_url'] = 'http://'.$_COOKIE['pws_source_http'].'images/photoalbum'; ! ! /* ! Possible values: true, false ! ! TRUE - If PHP on the web server is in safe mode, set this to true. ! SAFE MODE restrictions: directory creation will not be possible, ! only the GD library can be used, other libraries require ! Safe Mode to be off. ! ! FALSE - Set to false if PHP on the web server is not in safe mode. ! */ ! $IMConfig['safe_mode'] = false; ! ! /* ! Possible values: 'GD', 'IM', or 'NetPBM' ! ! The image manipulation library to use, either GD or ImageMagick or NetPBM. ! If you have safe mode ON, or don't have the binaries to other packages, ! your choice is 'GD' only. Other packages require Safe Mode to be off. ! */ ! define('IMAGE_CLASS', 'GD'); ! ! ! /* ! After defining which library to use, if it is NetPBM or IM, you need to ! specify where the binary for the selected library are. And of course ! your server and PHP must be able to execute them (i.e. safe mode is OFF). ! GD does not require the following definition. ! */ ! define('IMAGE_TRANSFORM_LIB_PATH', 'C:/"Program Files"/ImageMagick-5.5.7-Q16/'); ! ! ! /* ============== OPTIONAL SETTINGS ============== */ ! ! ! /* ! The prefix for thumbnail files, something like .thumb will do. The ! thumbnails files will be named as "prefix_imagefile.ext", that is, ! prefix + orginal filename. ! */ ! $IMConfig['thumbnail_prefix'] = '.'; ! ! /* ! Thumbnail can also be stored in a directory, this directory ! will be created by PHP. If PHP is in safe mode, this parameter ! is ignored, you can not create directories. ! ! If you do not want to store thumbnails in a directory, set this ! to false or empty string ''; ! */ ! $IMConfig['thumbnail_dir'] = '.thumbs'; ! ! /* ! Possible values: true, false ! ! TRUE - Allow the user to create new sub-directories in the ! $IMConfig['base_dir']. ! ! FALSE - No directory creation. ! ! NOTE: If $IMConfig['safe_mode'] = true, this parameter ! is ignored, you can not create directories ! */ ! $IMConfig['allow_new_dir'] = true; ! ! /* ! Possible values: true, false ! ! TRUE - Allow the user to upload files. ! ! FALSE - No uploading allowed. ! */ ! $IMConfig['allow_upload'] = true; ! ! /* ! Possible values: true, false ! ! TRUE - If set to true, uploaded files will be validated based on the ! function getImageSize, if we can get the image dimensions then ! I guess this should be a valid image. Otherwise the file will be rejected. ! ! FALSE - All uploaded files will be processed. ! ! NOTE: If uploading is not allowed, this parameter is ignored. ! */ ! $IMConfig['validate_images'] = true; ! ! /* ! The default thumbnail if the thumbnails can not be created, either ! due to error or bad image file. ! */ ! $IMConfig['default_thumbnail'] = 'photo.png'; ! ! /* ! Thumbnail dimensions. ! */ ! $IMConfig['thumbnail_width'] = 150; ! $IMConfig['thumbnail_height'] = 113; ! ! /* ! Image Editor temporary filename prefix. ! */ ! $IMConfig['tmp_prefix'] = '.editor_'; ! ?> --- 1,130 ---- ! <? ! /** ! * Image Manager configuration file. ! * @author $Author$ ! * @version $Id$ ! * @package ImageManager ! */ ! ! /* ! File system path to the directory you want to manage the images ! for multiple user systems, set it dynamically. ! ! NOTE: This directory requires write access by PHP. That is, ! PHP must be able to create files in this directory. ! Able to create directories is nice, but not necessary. ! */ ! // $IMConfig['base_dir'] = '/home/barc/www/training/images'; ! $IMConfig['base_dir'] = $_COOKIE['pws_source_dir'].'images/photoalbum'; ! ! /* ! The URL to the above path, the web browser needs to be able to see it. ! It can be protected via .htaccess on apache or directory permissions on IIS, ! check you web server documentation for futher information on directory protection ! If this directory needs to be publicly accessiable, remove scripting capabilities ! for this directory (i.e. disable PHP, Perl, CGI). We only want to store assets ! in this directory and its subdirectories. ! */ ! //$IMConfig['base_url'] = 'http://www.barc.org.au/training/images'; ! $IMConfig['base_url'] = 'http://'.$_COOKIE['pws_source_http'].'images/photoalbum'; ! ! /* ! Possible values: true, false ! ! TRUE - If PHP on the web server is in safe mode, set this to true. ! SAFE MODE restrictions: directory creation will not be possible, ! only the GD library can be used, other libraries require ! Safe Mode to be off. ! FALSE - Set to false if PHP on the web server is not in safe mode. ! */ ! $IMConfig['safe_mode'] = false; ! ! /* ! Possible values: 'GD', 'IM', or 'NetPBM' ! ! The image manipulation library to use, either GD or ImageMagick or NetPBM. ! If you have safe mode ON, or don't have the binaries to other packages, ! your choice is 'GD' only. Other packages require Safe Mode to be off. ! */ ! define('IMAGE_CLASS', 'GD'); ! ! ! /* ! After defining which library to use, if it is NetPBM or IM, you need to ! specify where the binary for the selected library are. And of course ! your server and PHP must be able to execute them (i.e. safe mode is OFF). ! GD does not require the following definition. ! */ ! define('IMAGE_TRANSFORM_LIB_PATH', 'C:/"Program Files"/ImageMagick-5.5.7-Q16/'); ! ! ! /* ============== OPTIONAL SETTINGS ============== */ ! ! ! /* ! The prefix for thumbnail files, something like .thumb will do. The ! thumbnails files will be named as "prefix_imagefile.ext", that is, ! prefix + orginal filename. ! */ ! $IMConfig['thumbnail_prefix'] = '.'; ! ! /* ! Thumbnail can also be stored in a directory, this directory ! will be created by PHP. If PHP is in safe mode, this parameter ! is ignored, you can not create directories. ! ! If you do not want to store thumbnails in a directory, set this ! to false or empty string ''; ! */ ! $IMConfig['thumbnail_dir'] = '.thumbs'; ! ! /* ! Possible values: true, false ! ! TRUE - Allow the user to create new sub-directories in the ! $IMConfig['base_dir']. ! FALSE - No directory creation. ! ! NOTE: If $IMConfig['safe_mode'] = true, this parameter ! is ignored, you can not create directories ! */ ! $IMConfig['allow_new_dir'] = true; ! ! /* ! Possible values: true, false ! ! TRUE - Allow the user to upload files. ! FALSE - No uploading allowed. ! */ ! $IMConfig['allow_upload'] = true; ! ! /* ! Possible values: true, false ! ! TRUE - If set to true, uploaded files will be validated based on the ! function getImageSize, if we can get the image dimensions then ! I guess this should be a valid image. Otherwise the file will be rejected. ! FALSE - All uploaded files will be processed. ! ! NOTE: If uploading is not allowed, this parameter is ignored. ! */ ! $IMConfig['validate_images'] = true; ! ! /* ! The default thumbnail if the thumbnails can not be created, either ! due to error or bad image file. ! */ ! $IMConfig['default_thumbnail'] = 'photo.png'; ! ! /* ! Thumbnail dimensions. ! */ ! $IMConfig['thumbnail_width'] = 150; ! $IMConfig['thumbnail_height'] = 113; ! ! /* ! Image Editor temporary filename prefix. ! */ ! $IMConfig['tmp_prefix'] = '.editor_'; ! ! ?> \ No newline at end of file |
From: Yves K. <yku...@us...> - 2004-11-05 23:35:41
|
Update of /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/_htmlarea/plugins/InsertFile In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2360/modules/xwysiwyg/mod/xwysiwyg/_htmlarea/plugins/InsertFile Modified Files: config.php Log Message: unix saving bugfix in filepath Index: config.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/_htmlarea/plugins/InsertFile/config.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** config.php 25 Oct 2004 18:14:41 -0000 1.1.1.1 --- config.php 5 Nov 2004 23:34:54 -0000 1.2 *************** *** 1,261 **** ! <?php ! /*********************************************************************** ! ** Title.........: Insert File Dialog, File Manager ! ** Version.......: 1.1 ! ** Authors.......: Al Rashid <alr...@kl...> ! ** Xiang Wei ZHUO <we...@zh...> ! ** Filename......: config.php ! ** URL...........: http://alrashid.klokan.sk/insFile/ ! ** Last changed..: 23 July 2004 ! ***********************************************************************/ ! ! // Error reporting should be set to E_NONE in production environment ! // error_reporting( E_NONE ); ! error_reporting(E_ALL); ! ! ! /* ! MY_DOCUMENT_ROOT ! File system path to the directory you want to manage the files and folders ! NOTE: This directory requires write permission by PHP. That is, ! PHP must be able to create files in this directory. ! NOTE2: without trailing slash ! */ ! //$MY_DOCUMENT_ROOT = 'C:\Apache\www\gul\insFile\data'; ! //$MY_DOCUMENT_ROOT = '/home/barc/www/training/files/phatfile'; ! $MY_DOCUMENT_ROOT = $_COOKIE['pws_source_dir'].'files/phatfile'; ! ! /* ! MY_BASE_URL ! Not used in htmlarea3-plugin version ! */ ! $MY_BASE_URL = ''; ! ! /* ! MY_URL_TO_OPEN_FILE ! The URL to the MY_DOCUMENT_ROOT path, the web browser needs to be able to see it. ! It can be protected via .htaccess on apache or directory permissions on IIS, ! check you web server documentation for futher information on directory protection ! If this directory needs to be publicly accessiable, remove scripting capabilities ! for this directory (i.e. disable PHP, Perl, CGI). We only want to store documents ! in this directory and its subdirectories. ! NOTE: without trailing slash ! */ ! //$MY_URL_TO_OPEN_FILE = 'http://gul.net/insFile/data'; ! //$MY_URL_TO_OPEN_FILE = 'http://www.barc.org.au/training/files/phatfile'; ! $MY_URL_TO_OPEN_FILE = 'http://'.$_COOKIE['pws_source_http'].'files/documents'; ! ! /* ! MY_ALLOW_EXTENSIONS ! MY_DENY_EXTENSIONS ! MY_ALLOW_EXTENSIONS and MY_DENY_EXTENSIONS arrays specify which file types can be uploaded. ! Setting to null skips this check. The scheme is: ! 1) If MY_DENY_EXTENSIONS is not null check if it does _not_ contain file extension of the file to be uploaded. ! If it does skip the upload procedure. ! 2) If MY_ALLOW_EXTENSIONS is not null check if it _does_ contain file extension of the file to be uploaded. ! If it doesn't skip the upload procedure. ! 3) Upload file. ! NOTE: File extensions arrays are case insensitive. ! You should always include server side executable file types in MY_DENY_EXTENSIONS !!! ! */ ! ! $MY_ALLOW_EXTENSIONS = array('html', 'doc', 'xls', 'txt', 'gif', 'jpeg', 'jpg', 'png', 'pdf', 'zip'); ! $MY_DENY_EXTENSIONS = array('php', 'php3', 'php4', 'phtml', 'shtml', 'cgi', 'pl'); ! ! /* ! MY_LIST_EXTENSIONS ! This array specifies which files are listed in dialog. Setting to null causes that all files are listed. ! NOTE: File extensions arrays are case insensitive. ! */ ! $MY_LIST_EXTENSIONS = array('html', 'doc', 'xls', 'txt', 'gif', 'jpeg', 'jpg', 'png', 'pdf', 'zip'); ! ! /* ! MY_ALLOW_CREATE ! Boolean (false or true) whether creating folders is allowed or not. ! */ ! ! if (isset($_COOKIE['htmlarea_insfile_cookie_create'])) { ! $MY_ALLOW_CREATE = true; } ! else {$MY_ALLOW_CREATE = false;} ! ! /* ! $MY_ALLOW_DELETE ! Boolean (false or true) whether deleting files and folders is allowed or not. ! */ ! if (isset($_COOKIE['htmlarea_insfile_cookie_delete'])) { ! $MY_ALLOW_DELETE = true; } ! else {$MY_ALLOW_DELETE = false;} ! /* ! $MY_ALLOW_RENAME ! Boolean (false or true) whether renaming files and folders is allowed or not. ! */ ! if (isset($_COOKIE['htmlarea_insfile_cookie_rename'])) { ! $MY_ALLOW_RENAME= true;} ! else {$MY_ALLOW_RENAME = false;} ! ! /* ! $MY_ALLOW_MOVE ! Boolean (false or true) whether moving files and folders is allowed or not. ! */ ! if (isset($_COOKIE['htmlarea_insfile_cookie_move'])) { ! $MY_ALLOW_MOVE = true; } ! else {$MY_ALLOW_MOVE = false; } ! ! /* ! $MY_ALLOW_UPLOAD ! Boolean (false or true) whether uploading files is allowed or not. ! */ ! if (isset($_COOKIE['htmlarea_insfile_cookie_upload'])) { ! $MY_ALLOW_UPLOAD = true; } ! else {$MY_ALLOW_UPLOAD = false; } ! ! /* ! $MY_ALLOW_UPLOAD ! Maximum allowed size for uploaded files (in bytes). ! NOTE2: see also upload_max_filesize setting in your php.ini file ! NOTE: 2*1024*1024 means 2 MB (megabytes) which is the default php.ini setting ! */ ! $MY_MAX_FILE_SIZE = 2*1024*1024; ! ! /* ! $MY_LANG ! Interface language. See the lang directory for translation files. ! NOTE: You should set appropriately MY_CHARSET and $MY_DATETIME_FORMAT variables ! */ ! ! if (isset($_COOKIE['pws_lang'])) { ! $MY_LANG = $_COOKIE['pws_lang']; } ! else {$MY_LANG = 'en'; } ! ! /* ! $MY_CHARSET ! Character encoding for all Insert File dialogs. ! WARNING: For non english and non iso-8859-1 / utf8 users mostly !!! ! This setting affect also how the name of folder you create via Insert File Dialog ! and the name of file uploaded via Insert File Dialog will be encoded on your remote ! server filesystem. Note also the difference between how file names in multipart/data ! form are encoded by Internet Explorer (plain text depending on the webpage charset) ! and Mozilla (encoded according to RFC 1738). ! This should be fixed in next versions. Any help is VERY appreciated. ! */ ! $MY_CHARSET = 'iso-8859-1'; ! ! /* ! MY_DATETIME_FORMAT ! Datetime format for displaying file modification time in Insert File Dialog ! and in inserted link, see MY_LINK_FORMAT ! */ ! $MY_DATETIME_FORMAT = "d.m.Y H:i"; ! ! /* ! MY_LINK_FORMAT ! The string to be inserted into textarea. ! This is the most crucial setting. I apologize for not using the DOM functions any more, ! but inserting raw string allow more customization for everyone. ! The following strings are replaced by corresponding values of selected files/folders: ! _editor_url ! the url of htmlarea root folder - you should set it in your document (see htmlarea help) ! IF_ICON ! file type icon filename (see plugins/InsertFile/images/ext directory) ! IF_URL ! relative path to file relative to $MY_DOCUMENT_ROOT ! IF_CAPTION ! file/folder name ! IF_SIZE ! file size in (B, kB, or MB) ! IF_DATE ! last modification time acording to $MY_DATETIME_FORMAT format ! */ ! // bugfix by chris for following line ! $MY_LINK_FORMAT = '<span class="filelink"><img src="_editor_urlplugins/InsertFile/IF_ICON" alt="'.$MY_URL_TO_OPEN_FILE.'IF_URL" border="0"> <a href="'.$MY_URL_TO_OPEN_FILE.'IF_URL" target="_blank">IF_CAPTION</a> <span style="font-size:70%">[IF_SIZE]</span></span> '; ! ! ! /* ! parse_icon function ! please insert additional file types (extensions) and theis corresponding icons in switch statement ! */ ! ! function parse_icon($ext) { ! switch (strtolower($ext)) { ! case 'doc': return 'doc_small.gif'; ! case 'rtf': return 'doc_small.gif'; ! case 'txt': return 'txt_small.gif'; ! case 'xls': return 'xls_small.gif'; ! case 'csv': return 'xls_small.gif'; ! case 'ppt': return 'ppt_small.gif'; ! case 'html': return 'html_small.gif'; ! case 'htm': return 'html_small.gif'; ! case 'php': return 'script_small.gif'; ! case 'php3': return 'script_small.gif'; ! case 'cgi': return 'script_small.gif'; ! case 'pdf': return 'pdf_small.gif'; ! case 'rar': return 'rar_small.gif'; ! case 'zip': return 'zip_small.gif'; ! case 'gz': return 'gz_small.gif'; ! case 'jpg': return 'jpg_small.gif'; ! case 'gif': return 'gif_small.gif'; ! case 'png': return 'png_small.gif'; ! case 'bmp': return 'image_small.gif'; ! case 'exe': return 'binary_small.gif'; ! case 'bin': return 'binary_small.gif'; ! case 'avi': return 'mov_small.gif'; ! case 'mpg': return 'mov_small.gif'; ! case 'moc': return 'mov_small.gif'; ! case 'asf': return 'mov_small.gif'; ! case 'mp3': return 'sound_small.gif'; ! case 'wav': return 'sound_small.gif'; ! case 'org': return 'sound_small.gif'; ! default: ! return 'def_small.gif'; ! } ! } ! ! /* ! ! !!!!!!!!!!!!! DO NOT EDIT BELLOW !!!!!!!!!!!!!!!!!!111 ! ! */ ! ! /* ! This was meant for standalone InsertFile Dialog version ! */ ! /* ! session_start(); ! if (empty($_REQUEST['dialogname'])) die('Dialog Name missing!'); ! $MY_NAME = $_REQUEST['dialogname']; ! if (!(isset($_SESSION[$MY_NAME])) || !(is_array($_SESSION[$MY_NAME]))) die ('Session not set!'); ! if (!isset($_SESSION[$MY_NAME])) die ('Document Root not set!'); ! ! $MY_DOCUMENT_ROOT = $_SESSION[$MY_NAME]['DocumentRoot']; ! (isset($_SESSION[$MY_NAME]['BaseUrl'])) ? $MY_BASE_URL = $_SESSION[$MY_NAME]['BaseUrl'] : $MY_BASE_URL = ''; ! (isset($_SESSION[$MY_NAME]['UrlToOpenFile'])) ? $MY_URL_TO_OPEN_FILE = $_SESSION[$MY_NAME]['UrlToOpenFile'] : $MY_URL_TO_OPEN_FILE = ''; ! (isset($_SESSION[$MY_NAME]['AllowExtensions'])) ? $MY_ALLOW_EXTENSIONS = $_SESSION[$MY_NAME]['AllowExtensions'] : $MY_ALLOW_EXTENSIONS = null; ! (isset($_SESSION[$MY_NAME]['DenyExtensions'])) ? $MY_DENY_EXTENSIONS = $_SESSION[$MY_NAME]['DenyExtensions'] : $MY_DENY_EXTENSIONS = array('php', 'php3', 'php4', 'phtml', 'shtml', 'cgi'); ! (isset($_SESSION[$MY_NAME]['ListExtensions'])) ? $MY_LIST_EXTENSIONS = $_SESSION[$MY_NAME]['ListExtensions'] : $MY_LIST_EXTENSIONS = null; ! ! (isset($_SESSION[$MY_NAME]['AllowCreate'])) ? $MY_ALLOW_CREATE = $_SESSION[$MY_NAME]['AllowCreate'] : $MY_ALLOW_CREATE = true; ! (isset($_SESSION[$MY_NAME]['AllowDelete'])) ? $MY_ALLOW_DELETE = $_SESSION[$MY_NAME]['AllowDelete'] : $MY_ALLOW_DELETE = true; ! (isset($_SESSION[$MY_NAME]['AllowRename'])) ? $MY_ALLOW_RENAME = $_SESSION[$MY_NAME]['AllowRename'] : $MY_ALLOW_RENAME = true; ! (isset($_SESSION[$MY_NAME]['AllowMove'])) ? $MY_ALLOW_MOVE = $_SESSION[$MY_NAME]['AllowMove'] : $MY_ALLOW_MOVE = true; ! (isset($_SESSION[$MY_NAME]['AllowUpload'])) ? $MY_ALLOW_UPLOAD = $_SESSION[$MY_NAME]['AllowUpload'] : $MY_ALLOW_UPLOAD = true; ! ! (isset($_SESSION[$MY_NAME]['MaxFileSize'])) ? $MY_MAX_FILE_SIZE = $_SESSION[$MY_NAME]['MaxFileSize'] : $MY_MAX_FILE_SIZE = 2*1024*1024; ! (isset($_SESSION[$MY_NAME]['Lang'])) ? $MY_LANG = $_SESSION[$MY_NAME]['Lang'] : $MY_LANG = 'en'; ! (isset($_SESSION[$MY_NAME]['Charset'])) ? $MY_CHARSET = $_SESSION[$MY_NAME]['Charset'] : $MY_CHARSET = 'iso-8859-1'; ! (isset($_SESSION[$MY_NAME]['DateTimeFormat'])) ? $MY_DATETIME_FORMAT = $_SESSION[$MY_NAME]['DateTimeFormat'] : $MY_DATETIME_FORMAT = "d.m.Y H:i"; ! (isset($_SESSION[$MY_NAME]['LinkFormat'])) ? $MY_LINK_FORMAT = $_SESSION[$MY_NAME]['LinkFormat'] : $MY_LINK_FORMAT = '<span class="filelink"><img src="_editor_urlplugins/InsertFile/IF_ICON" alt="IF_URL" border="0"> <a href="IF_URL">IF_CAPTION</a> <span style="font-size:70%">IF_SIZE IF_DATE</span></span> '; ! */ ! ! ! // DO NOT EDIT BELOW ! $MY_NAME = 'inserfiledialog'; ! $lang_file = 'lang/lang-'.$MY_LANG.'.php'; ! if (is_file($lang_file)) { ! require($lang_file); ! } else { ! require('lang/lang-en.php'); ! } ! $MY_PATH = '/'; ! $MY_UP_PATH = '/'; ! ! --- 1,262 ---- ! <?php ! /*********************************************************************** ! ** Title.........: Insert File Dialog, File Manager ! ** Version.......: 1.1 ! ** Authors.......: Al Rashid <alr...@kl...> ! ** Xiang Wei ZHUO <we...@zh...> ! ** Filename......: config.php ! ** URL...........: http://alrashid.klokan.sk/insFile/ ! ** Last changed..: 23 July 2004 ! ***********************************************************************/ ! ! // Error reporting should be set to E_NONE in production environment ! // error_reporting( E_NONE ); ! error_reporting(E_ALL); ! ! ! /* ! MY_DOCUMENT_ROOT ! File system path to the directory you want to manage the files and folders ! NOTE: This directory requires write permission by PHP. That is, ! PHP must be able to create files in this directory. ! NOTE2: without trailing slash ! */ ! //$MY_DOCUMENT_ROOT = 'C:\Apache\www\gul\insFile\data'; ! //$MY_DOCUMENT_ROOT = '/home/barc/www/training/files/phatfile'; ! $MY_DOCUMENT_ROOT = $_COOKIE['pws_source_dir'].'files/documents'; ! ! /* ! MY_BASE_URL ! Not used in htmlarea3-plugin version ! */ ! $MY_BASE_URL = ''; ! ! /* ! MY_URL_TO_OPEN_FILE ! The URL to the MY_DOCUMENT_ROOT path, the web browser needs to be able to see it. ! It can be protected via .htaccess on apache or directory permissions on IIS, ! check you web server documentation for futher information on directory protection ! If this directory needs to be publicly accessiable, remove scripting capabilities ! for this directory (i.e. disable PHP, Perl, CGI). We only want to store documents ! in this directory and its subdirectories. ! NOTE: without trailing slash ! */ ! //$MY_URL_TO_OPEN_FILE = 'http://gul.net/insFile/data'; ! //$MY_URL_TO_OPEN_FILE = 'http://www.barc.org.au/training/files/phatfile'; ! $MY_URL_TO_OPEN_FILE = 'http://'.$_COOKIE['pws_source_http'].'files/documents'; ! ! /* ! MY_ALLOW_EXTENSIONS ! MY_DENY_EXTENSIONS ! MY_ALLOW_EXTENSIONS and MY_DENY_EXTENSIONS arrays specify which file types can be uploaded. ! Setting to null skips this check. The scheme is: ! 1) If MY_DENY_EXTENSIONS is not null check if it does _not_ contain file extension of the file to be uploaded. ! If it does skip the upload procedure. ! 2) If MY_ALLOW_EXTENSIONS is not null check if it _does_ contain file extension of the file to be uploaded. ! If it doesn't skip the upload procedure. ! 3) Upload file. ! NOTE: File extensions arrays are case insensitive. ! You should always include server side executable file types in MY_DENY_EXTENSIONS !!! ! */ ! ! $MY_ALLOW_EXTENSIONS = array('html', 'doc', 'xls', 'txt', 'gif', 'jpeg', 'jpg', 'png', 'pdf', 'zip'); ! $MY_DENY_EXTENSIONS = array('php', 'php3', 'php4', 'phtml', 'shtml', 'cgi', 'pl'); ! ! /* ! MY_LIST_EXTENSIONS ! This array specifies which files are listed in dialog. Setting to null causes that all files are listed. ! NOTE: File extensions arrays are case insensitive. ! */ ! $MY_LIST_EXTENSIONS = array('html', 'doc', 'xls', 'txt', 'gif', 'jpeg', 'jpg', 'png', 'pdf', 'zip'); ! ! /* ! MY_ALLOW_CREATE ! Boolean (false or true) whether creating folders is allowed or not. ! */ ! ! if (isset($_COOKIE['htmlarea_insfile_cookie_create'])) { ! $MY_ALLOW_CREATE = true; } ! else {$MY_ALLOW_CREATE = false;} ! ! /* ! $MY_ALLOW_DELETE ! Boolean (false or true) whether deleting files and folders is allowed or not. ! */ ! if (isset($_COOKIE['htmlarea_insfile_cookie_delete'])) { ! $MY_ALLOW_DELETE = true; } ! else {$MY_ALLOW_DELETE = false;} ! /* ! $MY_ALLOW_RENAME ! Boolean (false or true) whether renaming files and folders is allowed or not. ! */ ! if (isset($_COOKIE['htmlarea_insfile_cookie_rename'])) { ! $MY_ALLOW_RENAME= true;} ! else {$MY_ALLOW_RENAME = false;} ! ! /* ! $MY_ALLOW_MOVE ! Boolean (false or true) whether moving files and folders is allowed or not. ! */ ! if (isset($_COOKIE['htmlarea_insfile_cookie_move'])) { ! $MY_ALLOW_MOVE = true; } ! else {$MY_ALLOW_MOVE = false; } ! ! /* ! $MY_ALLOW_UPLOAD ! Boolean (false or true) whether uploading files is allowed or not. ! */ ! if (isset($_COOKIE['htmlarea_insfile_cookie_upload'])) { ! $MY_ALLOW_UPLOAD = true; } ! else {$MY_ALLOW_UPLOAD = false; } ! ! /* ! $MY_ALLOW_UPLOAD ! Maximum allowed size for uploaded files (in bytes). ! NOTE2: see also upload_max_filesize setting in your php.ini file ! NOTE: 2*1024*1024 means 2 MB (megabytes) which is the default php.ini setting ! */ ! $MY_MAX_FILE_SIZE = 2*1024*1024; ! ! /* ! $MY_LANG ! Interface language. See the lang directory for translation files. ! NOTE: You should set appropriately MY_CHARSET and $MY_DATETIME_FORMAT variables ! */ ! ! ! if (isset($_COOKIE['pws_lang'])) { ! $MY_LANG = $_COOKIE['pws_lang']; } ! else {$MY_LANG = 'en'; } ! ! /* ! $MY_CHARSET ! Character encoding for all Insert File dialogs. ! WARNING: For non english and non iso-8859-1 / utf8 users mostly !!! ! This setting affect also how the name of folder you create via Insert File Dialog ! and the name of file uploaded via Insert File Dialog will be encoded on your remote ! server filesystem. Note also the difference between how file names in multipart/data ! form are encoded by Internet Explorer (plain text depending on the webpage charset) ! and Mozilla (encoded according to RFC 1738). ! This should be fixed in next versions. Any help is VERY appreciated. ! */ ! $MY_CHARSET = 'iso-8859-1'; ! ! /* ! MY_DATETIME_FORMAT ! Datetime format for displaying file modification time in Insert File Dialog ! and in inserted link, see MY_LINK_FORMAT ! */ ! $MY_DATETIME_FORMAT = "d.m.Y H:i"; ! ! /* ! MY_LINK_FORMAT ! The string to be inserted into textarea. ! This is the most crucial setting. I apologize for not using the DOM functions any more, ! but inserting raw string allow more customization for everyone. ! The following strings are replaced by corresponding values of selected files/folders: ! _editor_url ! the url of htmlarea root folder - you should set it in your document (see htmlarea help) ! IF_ICON ! file type icon filename (see plugins/InsertFile/images/ext directory) ! IF_URL ! relative path to file relative to $MY_DOCUMENT_ROOT ! IF_CAPTION ! file/folder name ! IF_SIZE ! file size in (B, kB, or MB) ! IF_DATE ! last modification time acording to $MY_DATETIME_FORMAT format ! */ ! // bugfix by chris for following line ! $MY_LINK_FORMAT = '<span class="filelink"><img src="_editor_urlplugins/InsertFile/IF_ICON" alt="'.$MY_URL_TO_OPEN_FILE.'IF_URL" border="0"> <a href="'.$MY_URL_TO_OPEN_FILE.'IF_URL" target="_blank">IF_CAPTION</a> <span style="font-size:70%">[IF_SIZE]</span></span> '; ! ! ! /* ! parse_icon function ! please insert additional file types (extensions) and theis corresponding icons in switch statement ! */ ! ! function parse_icon($ext) { ! switch (strtolower($ext)) { ! case 'doc': return 'doc_small.gif'; ! case 'rtf': return 'doc_small.gif'; ! case 'txt': return 'txt_small.gif'; ! case 'xls': return 'xls_small.gif'; ! case 'csv': return 'xls_small.gif'; ! case 'ppt': return 'ppt_small.gif'; ! case 'html': return 'html_small.gif'; ! case 'htm': return 'html_small.gif'; ! case 'php': return 'script_small.gif'; ! case 'php3': return 'script_small.gif'; ! case 'cgi': return 'script_small.gif'; ! case 'pdf': return 'pdf_small.gif'; ! case 'rar': return 'rar_small.gif'; ! case 'zip': return 'zip_small.gif'; ! case 'gz': return 'gz_small.gif'; ! case 'jpg': return 'jpg_small.gif'; ! case 'gif': return 'gif_small.gif'; ! case 'png': return 'png_small.gif'; ! case 'bmp': return 'image_small.gif'; ! case 'exe': return 'binary_small.gif'; ! case 'bin': return 'binary_small.gif'; ! case 'avi': return 'mov_small.gif'; ! case 'mpg': return 'mov_small.gif'; ! case 'moc': return 'mov_small.gif'; ! case 'asf': return 'mov_small.gif'; ! case 'mp3': return 'sound_small.gif'; ! case 'wav': return 'sound_small.gif'; ! case 'org': return 'sound_small.gif'; ! default: ! return 'def_small.gif'; ! } ! } ! ! /* ! ! !!!!!!!!!!!!! DO NOT EDIT BELLOW !!!!!!!!!!!!!!!!!!111 ! ! */ ! ! /* ! This was meant for standalone InsertFile Dialog version ! */ ! /* ! session_start(); ! if (empty($_REQUEST['dialogname'])) die('Dialog Name missing!'); ! $MY_NAME = $_REQUEST['dialogname']; ! if (!(isset($_SESSION[$MY_NAME])) || !(is_array($_SESSION[$MY_NAME]))) die ('Session not set!'); ! if (!isset($_SESSION[$MY_NAME])) die ('Document Root not set!'); ! ! $MY_DOCUMENT_ROOT = $_SESSION[$MY_NAME]['DocumentRoot']; ! (isset($_SESSION[$MY_NAME]['BaseUrl'])) ? $MY_BASE_URL = $_SESSION[$MY_NAME]['BaseUrl'] : $MY_BASE_URL = ''; ! (isset($_SESSION[$MY_NAME]['UrlToOpenFile'])) ? $MY_URL_TO_OPEN_FILE = $_SESSION[$MY_NAME]['UrlToOpenFile'] : $MY_URL_TO_OPEN_FILE = ''; ! (isset($_SESSION[$MY_NAME]['AllowExtensions'])) ? $MY_ALLOW_EXTENSIONS = $_SESSION[$MY_NAME]['AllowExtensions'] : $MY_ALLOW_EXTENSIONS = null; ! (isset($_SESSION[$MY_NAME]['DenyExtensions'])) ? $MY_DENY_EXTENSIONS = $_SESSION[$MY_NAME]['DenyExtensions'] : $MY_DENY_EXTENSIONS = array('php', 'php3', 'php4', 'phtml', 'shtml', 'cgi'); ! (isset($_SESSION[$MY_NAME]['ListExtensions'])) ? $MY_LIST_EXTENSIONS = $_SESSION[$MY_NAME]['ListExtensions'] : $MY_LIST_EXTENSIONS = null; ! ! (isset($_SESSION[$MY_NAME]['AllowCreate'])) ? $MY_ALLOW_CREATE = $_SESSION[$MY_NAME]['AllowCreate'] : $MY_ALLOW_CREATE = true; ! (isset($_SESSION[$MY_NAME]['AllowDelete'])) ? $MY_ALLOW_DELETE = $_SESSION[$MY_NAME]['AllowDelete'] : $MY_ALLOW_DELETE = true; ! (isset($_SESSION[$MY_NAME]['AllowRename'])) ? $MY_ALLOW_RENAME = $_SESSION[$MY_NAME]['AllowRename'] : $MY_ALLOW_RENAME = true; ! (isset($_SESSION[$MY_NAME]['AllowMove'])) ? $MY_ALLOW_MOVE = $_SESSION[$MY_NAME]['AllowMove'] : $MY_ALLOW_MOVE = true; ! (isset($_SESSION[$MY_NAME]['AllowUpload'])) ? $MY_ALLOW_UPLOAD = $_SESSION[$MY_NAME]['AllowUpload'] : $MY_ALLOW_UPLOAD = true; ! ! (isset($_SESSION[$MY_NAME]['MaxFileSize'])) ? $MY_MAX_FILE_SIZE = $_SESSION[$MY_NAME]['MaxFileSize'] : $MY_MAX_FILE_SIZE = 2*1024*1024; ! (isset($_SESSION[$MY_NAME]['Lang'])) ? $MY_LANG = $_SESSION[$MY_NAME]['Lang'] : $MY_LANG = 'en'; ! (isset($_SESSION[$MY_NAME]['Charset'])) ? $MY_CHARSET = $_SESSION[$MY_NAME]['Charset'] : $MY_CHARSET = 'iso-8859-1'; ! (isset($_SESSION[$MY_NAME]['DateTimeFormat'])) ? $MY_DATETIME_FORMAT = $_SESSION[$MY_NAME]['DateTimeFormat'] : $MY_DATETIME_FORMAT = "d.m.Y H:i"; ! (isset($_SESSION[$MY_NAME]['LinkFormat'])) ? $MY_LINK_FORMAT = $_SESSION[$MY_NAME]['LinkFormat'] : $MY_LINK_FORMAT = '<span class="filelink"><img src="_editor_urlplugins/InsertFile/IF_ICON" alt="IF_URL" border="0"> <a href="IF_URL">IF_CAPTION</a> <span style="font-size:70%">IF_SIZE IF_DATE</span></span> '; ! */ ! ! ! // DO NOT EDIT BELOW ! $MY_NAME = 'inserfiledialog'; ! $lang_file = 'lang/lang-'.$MY_LANG.'.php'; ! if (is_file($lang_file)) { ! require($lang_file); ! } else { ! require('lang/lang-en.php'); ! } ! $MY_PATH = '/'; ! $MY_UP_PATH = '/'; ! ! ?> \ No newline at end of file |
From: Yves K. <yku...@us...> - 2004-11-05 22:45:00
|
Update of /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/class In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23163/modules/xwysiwyg/mod/xwysiwyg/class Modified Files: xwysiwyg.php Log Message: Incorporated some code from /js/wysiwyg.php Bugfix; Permission not working properly Index: xwysiwyg.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/class/xwysiwyg.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** xwysiwyg.php 3 Nov 2004 20:54:47 -0000 1.8 --- xwysiwyg.php 5 Nov 2004 22:44:48 -0000 1.9 *************** *** 13,17 **** class PHPWS_xwysiwyg { - function pickCSS() { $pick_css = $_SESSION['OBJ_layout']->theme_dir."browsers.txt"; --- 13,16 ---- *************** *** 33,41 **** 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); --- 32,81 ---- + function readConfig() { + if(!isset($GLOBALS['xwysiwyg_settings'])) { + $sql = "SELECT * FROM ".PHPWS_TBL_PREFIX."mod_xwysiwyg_conf"; + $settings = $GLOBALS['core']->quickFetch($sql); + $GLOBALS['xwysiwyg_settings'] = $settings; + } else $settings = $GLOBALS['xwysiwyg_settings']; + return $settings; + }// END FUNC _read_config + + + function isSupported($section_name){ + $answer = array(); + $supported = 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 + $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; + } + + $settings = PHPWS_xwysiwyg::readConfig(); + $allowed = FALSE; + if($_SESSION["OBJ_user"]->isDeity()) $allowed = TRUE; + elseif((!$_SESSION["OBJ_user"]->isUser())AND(!$_SESSION["OBJ_user"]->isDeity())AND($settings['view_anon'])) $allowed = TRUE; + elseif(($_SESSION["OBJ_user"]->isUser())AND(!$_SESSION["OBJ_user"]->isDeity())AND($settings['view_user'])) $allowed = TRUE; + + if((!$supported)OR(!$allowed)) { + $answer[xwysiwyg] = FALSE; + $answer[onRequest] = FALSE; + $answer[xwButton] = FALSE; + } elseif($settings['request_mode']) { + $answer[xwysiwyg] = TRUE; + $answer[onRequest] = TRUE; + $answer[xwButton] = TRUE; + } else { + $answer[xwysiwyg] = PHPWS_xwysiwyg::isBox($section_name); + $answer[onRequest] = FALSE; + $answer[xwButton] = $_SESSION["OBJ_user"]->allow_access("xwysiwyg","settings"); + } + return $answer; + } function isBox($area){ $settings = PHPWS_xwysiwyg::readConfig(); $query = "SELECT id FROM ".PHPWS_TBL_PREFIX."mod_xwysiwyg_areas WHERE area = '$area'"; $result = $GLOBALS['core']->quickFetch($query); *************** *** 44,48 **** } - function loadPlugins($settings) { $loadplugs = ""; --- 84,87 ---- *************** *** 85,92 **** } - - - - function makeEditors($settings,$index,$regplugs,$area,$lang) { // HtmlArea - Editor - Section if($settings['editor']=="htmlarea") { --- 124,127 ---- *************** *** 168,172 **** 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")); --- 203,207 ---- function makeMain($settings,$editors,$loadplugs,$lang) { if($settings['editor']=="htmlarea") { ! // start cookie-code from chrisbarc 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")); *************** *** 177,181 **** setcookie("pws_source_dir", PHPWS_SOURCE_DIR); setcookie("pws_source_http", PHPWS_SOURCE_HTTP); ! // end cookie-code from chris // HtmlArea-Main for all Modes --- 212,216 ---- setcookie("pws_source_dir", PHPWS_SOURCE_DIR); setcookie("pws_source_http", PHPWS_SOURCE_HTTP); ! // end cookie-code from chrisbarc // HtmlArea-Main for all Modes *************** *** 228,232 **** - function makeJS() { $main = ""; --- 263,266 ---- *************** *** 250,263 **** - - - 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")) { --- 284,287 ---- |
From: Yves K. <yku...@us...> - 2004-11-05 22:41:41
|
Update of /cvsroot/phpwebsite-comm/modules/xwysiwyg/js In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22311/modules/xwysiwyg/js Modified Files: wysiwyg.php Log Message: Moved code to the xwysiwyg-class Some cosmetics Index: wysiwyg.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/js/wysiwyg.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** wysiwyg.php 31 Oct 2004 19:51:03 -0000 1.5 --- wysiwyg.php 5 Nov 2004 22:40:30 -0000 1.6 *************** *** 1,37 **** <?php // start xwysiwyg code - $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){ ! 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; ! } } - if ($xwysiwyg) { $GLOBALS['xwysiwyg_areas'][] = $section_name; //write an array for the theme.php $GLOBALS['xwysiwyg']++; } ! // end xwysiwyg-code ! --- 1,17 ---- <?php // start xwysiwyg code $mods = $GLOBALS["core"]->listModules(TRUE); if (in_array ("xwysiwyg", $mods)) { require_once(PHPWS_SOURCE_DIR.'mod/xwysiwyg/class/xwysiwyg.php');//include the xwysiwyg code ! $answer = PHPWS_xwysiwyg::isSupported($section_name); ! $onRequest = $answer[onRequest]; ! $xwysiwyg = $answer[xwysiwyg]; ! $xw_button = $answer[xwButton]; } if ($xwysiwyg) { $GLOBALS['xwysiwyg_areas'][] = $section_name; //write an array for the theme.php $GLOBALS['xwysiwyg']++; } ! // end xwysiwyg code |
From: Thomas L. <tl...@us...> - 2004-11-05 14:06:18
|
Update of /cvsroot/phpwebsite-comm/modules/joboffers/class In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27223 Modified Files: Joboffer.php Log Message: Corrected several typos which prevented the script from running Index: Joboffer.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/joboffers/class/Joboffer.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Joboffer.php 21 Jan 2004 19:12:53 -0000 1.5 --- Joboffer.php 5 Nov 2004 14:05:12 -0000 1.6 *************** *** 126,130 **** * @access private */ ! var $_jobstart /** --- 126,130 ---- * @access private */ ! var $_jobstart; /** *************** *** 215,221 **** } /* else use the date entered in the database */ ! else ( $result = $GLOBALS["core"]->sqlSelect("mod_joboffers", "id", $JOB_id); ! if $result { if ($_SESSION["OBJ_user"]->username == $result[0]["userCreated"]) { $this->_id = $JOB_id; --- 215,221 ---- } /* else use the date entered in the database */ ! else { $result = $GLOBALS["core"]->sqlSelect("mod_joboffers", "id", $JOB_id); ! if ($result) { if ($_SESSION["OBJ_user"]->username == $result[0]["userCreated"]) { $this->_id = $JOB_id; *************** *** 265,274 **** $tags["TITLE"] = $_SESSION["translate"]->it("Search for a job"); $tags["CT_LABEL"] = $_SESSION["translate"]->it("Company type"); ! $tags["CT_RETAIL"] = PHPWS_Form::formCheckbox("JOB_retail",,,,$_SESSION["translate"]->it("Retail pharmacy")); ! $tags["CT_HOSPITAL"] = PHPWS_Form::formCheckbox("JOB_hospital"),,,,$_SESSION["translate"]->it("Hospital")); ! $tags["CT_COMPANY"] = PHPWS_Form::formCheckbox("JOB_company"),,,,$_SESSION["translate"]->it("Company")); ! $tags["CT_UNIVERSITY"] = PHPWS_Form::formCheckbox("JOB_university"),,,,$_SESSION["translate"]->it("University")); ! $tags["CT_ADMIN"] = PHPWS_Form::formCheckbox("JOB_admin"),,,,$_SESSION["translate"]->it("Administration")); ! $tags["CT_OTHER"] = PHPWS_Form::formCheckbox("JOB_other"),,,,$_SESSION["translate"]->it("Other")); $tags["ZIP_LABEL"] = $_SESSION["translate"]->it("zipcode"); $tags["ZIPCODE"] = PHPWS_Form::formTextField("JOB_zipcode", $this->_zipcode, 5, 5); --- 265,274 ---- $tags["TITLE"] = $_SESSION["translate"]->it("Search for a job"); $tags["CT_LABEL"] = $_SESSION["translate"]->it("Company type"); ! $tags["CT_RETAIL"] = PHPWS_Form::formCheckBox("JOB_retail",0,1,NULL,$_SESSION["translate"]->it("Retail pharmacy")); ! $tags["CT_HOSPITAL"] = PHPWS_Form::formCheckBox("JOB_hospital",0,1,NULL,$_SESSION["translate"]->it("Hospital")); ! $tags["CT_COMPANY"] = PHPWS_Form::formCheckBox("JOB_company",0,1,NULL,$_SESSION["translate"]->it("Company")); ! $tags["CT_UNIVERSITY"] = PHPWS_Form::formCheckBox("JOB_university",0,1,NULL,$_SESSION["translate"]->it("University")); ! $tags["CT_ADMIN"] = PHPWS_Form::formCheckBox("JOB_admin",0,1,NULL,$_SESSION["translate"]->it("Administration")); ! $tags["CT_OTHER"] = PHPWS_Form::formCheckBox("JOB_other",0,1,NULL,$_SESSION["translate"]->it("Other")); $tags["ZIP_LABEL"] = $_SESSION["translate"]->it("zipcode"); $tags["ZIPCODE"] = PHPWS_Form::formTextField("JOB_zipcode", $this->_zipcode, 5, 5); *************** *** 289,311 **** $tags["TITLE"] = $_SESSION["translate"]->it("Extended search for job offers"); $tags["CT_LABEL"] = $_SESSION["translate"]->it("Company type"); ! $tags["CT_RETAIL"] = PHPWS_Form::formCheckbox("JOB_retail",,,,$_SESSION["translate"]->it("Retail pharmacy")); ! $tags["CT_HOSPITAL"] = PHPWS_Form::formCheckbox("JOB_hospital",,,,$_SESSION["translate"]->it("Hospital")); ! $tags["CT_COMPANY"] = PHPWS_Form::formCheckbox("JOB_company",,,,$_SESSION["translate"]->it("Company")); ! $tags["CT_UNIVERSITY"] = PHPWS_Form::formCheckbox("JOB_university",,,,$_SESSION["translate"]->it("University")); ! $tags["CT_ADMIN"] = PHPWS_Form::formCheckbox("JOB_admin",,,,$_SESSION["translate"]->it("Administration")); ! $tags["CT_OTHER"] = PHPWS_Form::formCheckbox("JOB_other",,,,$_SESSION["translate"]->it("Other")); $tags["CITY_LABEL"] = $_SESSION["translate"]->it("zipcode/city"); ! $tags["ZIPCODE"] = PHPWS_Form::formTextField("JOB_zipcode",, 5, 5); ! $tags["CITY"] = PHPWS_Form::formTextField("JOB_city",,20,100); ! $tags["INTERNSHIP"] = PHPWS_Form::formCheckBox("JOB_internship",,,, $_SESSION["translate"]->it("Should offer internships")); $tags["DURATION_LABEL"] = $_SESSION["translate"]->it("Job duration"); ! $tags["DURATION_6"] = PHPWS_Form::formCheckbox("JOB_duration6",,,,$_SESSION["translate"]->it("6 months")); ! $tags["DURATION_12"] = PHPWS_Form::formCheckbox("JOB_duration12",,,,$_SESSION["translate"]->it("12 months")); ! $tags["DURATION_6OR12"] = PHPWS_Form::formCheckbox("JOB_duration6or12",,,,$_SESSION["translate"->it("6 or 12 months")); $tags["FROMTO_LABEL"] = $_SESSION["translate"]->it("Job starts between"); $tags["STARTFROM"] = PHPWS_Form::formDate("JOB_startfrom"); $tags["TO"] = $_SESSION["translate"]->it("and"); $tags["STARTTO"] = PHPWS_Form::formDate("JOB_startto"); ! $tags["SUBMIT"] = = PHPWS_Form::formSubmit($_SESSION["translate"]->it("Search")); $elements[0] = PHPWS_Form::formHidden("module", "joboffers"); $elements[0] .= PHPWS_Form::formHidden("type", "extended"); --- 289,311 ---- $tags["TITLE"] = $_SESSION["translate"]->it("Extended search for job offers"); $tags["CT_LABEL"] = $_SESSION["translate"]->it("Company type"); ! $tags["CT_RETAIL"] = PHPWS_Form::formCheckBox("JOB_retail",0,1,NULL,$_SESSION["translate"]->it("Retail pharmacy")); ! $tags["CT_HOSPITAL"] = PHPWS_Form::formCheckBox("JOB_hospital",0,1,NULL,$_SESSION["translate"]->it("Hospital")); ! $tags["CT_COMPANY"] = PHPWS_Form::formCheckBox("JOB_company",0,1,NULL,$_SESSION["translate"]->it("Company")); ! $tags["CT_UNIVERSITY"] = PHPWS_Form::formCheckBox("JOB_university",0,1,NULL,$_SESSION["translate"]->it("University")); ! $tags["CT_ADMIN"] = PHPWS_Form::formCheckBox("JOB_admin",0,1,NULL,$_SESSION["translate"]->it("Administration")); ! $tags["CT_OTHER"] = PHPWS_Form::formCheckBox("JOB_other",0,1,NULL,$_SESSION["translate"]->it("Other")); $tags["CITY_LABEL"] = $_SESSION["translate"]->it("zipcode/city"); ! $tags["ZIPCODE"] = PHPWS_Form::formTextField("JOB_zipcode",NULL,5,5); ! $tags["CITY"] = PHPWS_Form::formTextField("JOB_city",NULL,20,100); ! $tags["INTERNSHIP"] = PHPWS_Form::formCheckBox("JOB_internship",0,1,NULL, $_SESSION["translate"]->it("Should offer internships")); $tags["DURATION_LABEL"] = $_SESSION["translate"]->it("Job duration"); ! $tags["DURATION_6"] = PHPWS_Form::formCheckBox("JOB_duration6",0,1,NULL,$_SESSION["translate"]->it("6 months")); ! $tags["DURATION_12"] = PHPWS_Form::formCheckBox("JOB_duration12",0,1,NULL,$_SESSION["translate"]->it("12 months")); ! $tags["DURATION_6OR12"] = PHPWS_Form::formCheckBox("JOB_duration6or12",0,1,NULL,$_SESSION["translate"]->it("6 or 12 months")); $tags["FROMTO_LABEL"] = $_SESSION["translate"]->it("Job starts between"); $tags["STARTFROM"] = PHPWS_Form::formDate("JOB_startfrom"); $tags["TO"] = $_SESSION["translate"]->it("and"); $tags["STARTTO"] = PHPWS_Form::formDate("JOB_startto"); ! $tags["SUBMIT"] = PHPWS_Form::formSubmit($_SESSION["translate"]->it("Search"),NULL,"JOB"); $elements[0] = PHPWS_Form::formHidden("module", "joboffers"); $elements[0] .= PHPWS_Form::formHidden("type", "extended"); *************** *** 320,324 **** */ function view ($type) { ! if (!$_POST["JOB_retail"] && !$_POST["JOB_hospital"] && !$_POST["JOB_industry" && !$_POST["JOB_university"] && !$_POST["JOB_admin"] && !$_POST["JOB_other"] && $_POST["JOB_zipcode"] == "") { --- 320,324 ---- */ function view ($type) { ! if (!$_POST["JOB_retail"] && !$_POST["JOB_hospital"] && !$_POST["JOB_industry"] && !$_POST["JOB_university"] && !$_POST["JOB_admin"] && !$_POST["JOB_other"] && $_POST["JOB_zipcode"] == "") { *************** *** 326,333 **** } else { $sql = "SELECT * FROM mod_joboffers WHERE "; ! if ($_POST["JOB_retail"] { ! $query .= "companytype = 1"; ! } ! if ($_POST["JOB_retail"] } $result = $GLOBALS["core"]->getAllAssoc($sql, TRUE); --- 326,331 ---- } else { $sql = "SELECT * FROM mod_joboffers WHERE "; ! if ($_POST["JOB_retail"]) $query .= "companytype = 1"; ! if ($_POST["JOB_hospital"]) $query .= "companytype = 3"; } $result = $GLOBALS["core"]->getAllAssoc($sql, TRUE); *************** *** 376,381 **** $tags["URL"] = PHPWS_Form::formTextField("JOB_url", $this->_url, 20, 100); $tags["START_LABEL"] = $_SESSION["translate"]->it("Job starts at"); ! $tags["START"] = PHPWS_Form::formDate("JOB_jobstart", ! $this->formatDate($this->_jobstart), substr($this->formatDate($this->_jobstart), 0, 4); $tags["DURATION_LABEL"] = $_SESSION["translate"]->it("Job duration"); $tags["DURATION_6"] = PHPWS_Form::formRadio( --- 374,378 ---- $tags["URL"] = PHPWS_Form::formTextField("JOB_url", $this->_url, 20, 100); $tags["START_LABEL"] = $_SESSION["translate"]->it("Job starts at"); ! $tags["START"] = PHPWS_Form::formDate("JOB_jobstart",NULL,NULL,NULL,NULL); $tags["DURATION_LABEL"] = $_SESSION["translate"]->it("Job duration"); $tags["DURATION_6"] = PHPWS_Form::formRadio( *************** *** 384,392 **** "JOB_duration", 12, $this->_duration, NULL, $_SESSION["translate"]->it("12 months")); $tags["DURATION_6OR12"] = PHPWS_Form::formRadio( ! "JOB_duration", 0, $this->_duration, NULL, $_SESSION["translate"->it("6 or 12 months")); $tags["INTERNSHIP"] = PHPWS_Form::formCheckBox( ! "JOB_internship", $this->_internship, $this->_internship,, $_SESSION["translate"]->it("We offer internships")); $tags["DESCRIPTION_LABEL"] = $_SESSION["translate"]->it( ! "Job description<br /><span style="small">(HTML characters are allowed)</span>"); $tags["DESCRIPTION"] = PHPWS_WizardBag::js_insert( "wysiwyg", "JOB_edit", "JOB_description") . "<br />" . --- 381,389 ---- "JOB_duration", 12, $this->_duration, NULL, $_SESSION["translate"]->it("12 months")); $tags["DURATION_6OR12"] = PHPWS_Form::formRadio( ! "JOB_duration", 0, $this->_duration, NULL, $_SESSION["translate"]->it("6 or 12 months")); $tags["INTERNSHIP"] = PHPWS_Form::formCheckBox( ! "JOB_internship", $this->_internship, $this->_internship,NULL, $_SESSION["translate"]->it("We offer internships")); $tags["DESCRIPTION_LABEL"] = $_SESSION["translate"]->it( ! "Job description<br /><span style=\"small\">(HTML characters are allowed)</span>"); $tags["DESCRIPTION"] = PHPWS_WizardBag::js_insert( "wysiwyg", "JOB_edit", "JOB_description") . "<br />" . *************** *** 415,421 **** */ function save () { ! if ($_POST["JOB_company"] { ! $this->_company = PHPWS_Text::parseInput($_POST["JOB_company"]; ! $data["company" = $this->_company; } else { $this->_error("no_company"); --- 412,418 ---- */ function save () { ! if ($_POST["JOB_company"]) { ! $this->_company = PHPWS_Text::parseInput($_POST["JOB_company"], NULL); ! $data["company"] = $this->_company; } else { $this->_error("no_company"); *************** *** 446,451 **** } ! if ($_POST["JOB_zipcode"] { ! $this->_company = PHPWS_Text::parseInput($_POST["JOB_zipcode"]; /* Since I want to use this module for Germany check if the zip code * is valid (i.e. 5 digits) --- 443,448 ---- } ! if ($_POST["JOB_zipcode"]) { ! $this->_company = PHPWS_Text::parseInput($_POST["JOB_zipcode"],NULL); /* Since I want to use this module for Germany check if the zip code * is valid (i.e. 5 digits) *************** *** 456,460 **** return; } ! $data["zipcode" = $this->_zipcode; } else { $this->_error("wrong_zipcode"); --- 453,457 ---- return; } ! $data["zipcode"] = $this->_zipcode; } else { $this->_error("wrong_zipcode"); *************** *** 463,469 **** } ! if ($_POST["JOB_city"] { ! $this->_city = PHPWS_Text::parseInput($_POST["JOB_city"]; ! $data["city" = $this->_city; } else { $this->_error("no_city"); --- 460,466 ---- } ! if ($_POST["JOB_city"]) { ! $this->_city = PHPWS_Text::parseInput($_POST["JOB_city"]); ! $data["city"] = $this->_city; } else { $this->_error("no_city"); *************** *** 499,503 **** } ! $this->_description = PHPWS_Text::parseInput($_POST["JOB_description"]; $data["description"] = $this->_description; --- 496,500 ---- } ! $this->_description = PHPWS_Text::parseInput($_POST["JOB_description"]); $data["description"] = $this->_description; *************** *** 511,515 **** $data["expiration"] = $this->expiration; if ($this->_new) { ! if ($this->add($data) { $content = $_SESSION["translate"]->it("You job was successfully saved in the database."); } else { --- 508,512 ---- $data["expiration"] = $this->expiration; if ($this->_new) { ! if ($this->add($data)) { $content = $_SESSION["translate"]->it("You job was successfully saved in the database."); } else { *************** *** 519,528 **** } } elseif ($this_id) { ! if ($this->update($data) { $content = $_SESSION["translate"]->it("Your job offer was successfully updated."); } else { $this->_error("update_failed"); $this->edit(); ! return } } --- 516,525 ---- } } elseif ($this_id) { ! if ($this->update($data)) { $content = $_SESSION["translate"]->it("Your job offer was successfully updated."); } else { $this->_error("update_failed"); $this->edit(); ! return; } } *************** *** 556,560 **** case "wrong_zipcode": ! $content .= $_SESSION["translate"]->("The zip code you entered was wrong."); break; --- 553,557 ---- case "wrong_zipcode": ! $content .= $_SESSION["translate"]->it("The zip code you entered was wrong."); break; *************** *** 592,597 **** $content .= $_SESSION["translate"]->it("The error type was <b> " . $type . "</b>."); } - } // End of function _error $GLOBALS["CNT_joboffers"]["joboffers"] .= $content; } // End of class PHPWS_Joboffer ?> \ No newline at end of file --- 589,594 ---- $content .= $_SESSION["translate"]->it("The error type was <b> " . $type . "</b>."); } $GLOBALS["CNT_joboffers"]["joboffers"] .= $content; + } // End of function _error } // End of class PHPWS_Joboffer ?> \ No newline at end of file |
From: Chris R. <chr...@us...> - 2004-11-04 10:31:37
|
Update of /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/_htmlarea/popups In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24314/xwysiwyg/mod/xwysiwyg/_htmlarea/popups Modified Files: fullscreen.html Log Message: fix IE freeze when source edit in fullscreen Index: fullscreen.html =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/_htmlarea/popups/fullscreen.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** fullscreen.html 26 Oct 2004 07:34:54 -0000 1.2 --- fullscreen.html 4 Nov 2004 10:30:32 -0000 1.3 *************** *** 54,58 **** if (document.all) { // IE ! newHeight = document.body.offsetHeight - editor._toolbar.offsetHeight; if (newHeight < 0) { newHeight = 0; } } else { --- 54,64 ---- if (document.all) { // IE ! // newHeight = document.body.offsetHeight - editor._toolbar.offsetHeight; ! // fix IE freeze on source edit/resize ! if(document.documentElement && document.documentElement.clientHeight) { ! newHeight = document.documentElement.clientHeight - editor._toolbar.offsetHeight; ! } else { ! newHeight = document.body.clientHeight - editor._toolbar.offsetHeight; ! } if (newHeight < 0) { newHeight = 0; } } else { |
From: Andy F. <and...@us...> - 2004-11-04 01:09:35
|
Update of /cvsroot/phpwebsite-comm/modules/photobox/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29568 Modified Files: admin.tpl Log Message: update admin.tpl to reflect newest photo option Index: admin.tpl =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/photobox/templates/admin.tpl,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** admin.tpl 7 Oct 2004 19:44:56 -0000 1.1.1.1 --- admin.tpl 4 Nov 2004 01:07:56 -0000 1.2 *************** *** 10,13 **** {TN_RESTRICT} {PRESTRICT_TXT}:<br /> {PA_LABEL} <br /><br /> {PBOX_SAVE}<br /><br /> ! {END_FORM} --- 10,14 ---- {TN_RESTRICT} {PRESTRICT_TXT}:<br /> {PA_LABEL} <br /><br /> + {TN_NEWEST} {PNEWEST_TXT}<br /><br /> {PBOX_SAVE}<br /><br /> ! {END_FORM} \ No newline at end of file |
From: Chris R. <chr...@us...> - 2004-11-03 21:04:12
|
Update of /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/_htmlarea In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8434/xwysiwyg/mod/xwysiwyg/_htmlarea Modified Files: htmlarea.js Log Message: Added a border around the edit box so it is visible and not just a white space Index: htmlarea.js =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/_htmlarea/htmlarea.js,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** htmlarea.js 26 Oct 2004 07:35:55 -0000 1.2 --- htmlarea.js 3 Nov 2004 21:03:55 -0000 1.3 *************** *** 785,789 **** html += '<base href="' + editor.config.baseURL + '" />'; html += "<style>" + editor.config.pageStyle + ! " html,body { border: 0px; }</style>\n"; html += "</head>\n"; html += "<body>\n"; --- 785,789 ---- html += '<base href="' + editor.config.baseURL + '" />'; html += "<style>" + editor.config.pageStyle + ! " html,body { border-right-width: 2px; border-right-style: solid; border-bottom-width: 1px; border-bottom-style: solid; border-left-width: 1px; border-left-style: solid; border-top-width: 1px; border-top-style: solid; border-top-color: #666666; border-right-color: #666666; border-bottom-color: #666666; border-left-color: #666666;}</style>\n"; html += "</head>\n"; html += "<body>\n"; |