[prev in list] [next in list] [prev in thread] [next in thread] 

List:       squirrelmail-plugins
Subject:    Re: [SM-PLUGINS] how to insert jpg in copose in HTML
From:       Toby Wahlers <toby () vidiom ! com>
Date:       2007-02-27 8:39:09
Message-ID: 45E3EE2D.2000204 () vidiom ! com
[Download RAW message or body]

[Attachment #2 (text/html)]

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Paul Lesniewski wrote:
<blockquote
 cite="mid58191e420702262256pd0d29e8u31947c25a64f43b3@mail.gmail.com"
 type="cite">
  <pre wrap="">On 2/26/07, Toby Wahlers <a class="moz-txt-link-rfc2396E"
 href="mailto:toby@vidiom.com">&lt;toby@vidiom.com&gt;</a> wrote:
  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <pre wrap="">Sophia Alikhani wrote:

Hi
one of my user want to insert a jpeg in compose window in HTML mode but
when we want to do this we must set an URL . Is there another way doesn't
want an URL and can insert image directly.
maia wrote:
hello
woder if you managed to solve this problem... can not figure how to insert
an image directly either.
regards, maria
      </pre>
    </blockquote>
    <pre wrap="">I have incorporated the fckeditor plugin 'ImageManager' into \
hmtl_mail. The default plugin had more complexity than I wanted, so I made some
changes. I could supply diffs if you wanted to try to do the same thing
(or my entire html_mail directory. :-} ).
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Please share.  :-)  If you can provide information about the steps you
took to install the plugin, that might be useful for the next release
of the plugin.  I am personally not familiar with the plugin you refer
to -- can you describe the differences between it and what comes with
fckeditor?
  </pre>
</blockquote>
As I recall, the built-in functionality was as the other users
described, i.e. no inline images, at least not without messing with
URLs.<br>
<br>
I got the plugin from the saulmade site linked on the fckeditor wiki
site, <a class="moz-txt-link-freetext"
 href="http://wiki.fckeditor.net/FCKeditor_descriptions">http://wiki.fckeditor.net/FCKeditor_descriptions</a>.
 The saulmade
site seems to be down now, but ImageManager is in Sourceforge:
<a class="moz-txt-link-freetext"
 href="http://sourceforge.net/tracker/index.php?func=detail&amp;aid=1456214&amp;group_ \
id=75348&amp;atid=737639">http://sourceforge.net/tracker/index.php?func=detail&amp;aid=1456214&amp;group_id=75348&amp;atid=737639</a>.
 Some other guy has a bug fix patch here:  
<a class="moz-txt-link-freetext"
 href="http://www.thierryb.net/site/Update-to-Saulmade-ImageManager.html?lang=en">http://www.thierryb.net/site/Update-to-Saulmade-ImageManager.html?lang=en</a>.<br>
 <br>
I installed the patched version in
plugins/html_mail/fckeditor/editor/plugins. I kept hacking away at it
until it was better for my
use. By default, ImageManager has a whole lot of functionality. All I
really wanted to do was be able to insert an image. The default
interface was overkill, it adds file management (like its name
implies). The interface had 4 tabs or so. I removed all but the file
upload and resize/preview tabs. Can't exactly remember all the steps
now: I was snowbound by a blizzard over the holidays and starting to
eat my shoelaces. An image manipulation package is required (I use
ImageMagick), and you have to set up an area for image uploads (users
have to upload the image first, not just copy/paste).<br>
<br>
I've enclosed the diffs.<br>
<br>
--<br>
Toby<br>
</body>
</html>


["html_mail.diff" (text/plain)]

diff -ur --ignore-space-change --strip-trailing-cr \
html_mail/fckeditor/editor/dialog/fck_image/fck_image.js \
/usr/share/squirrelmail/plugins/html_mail/fckeditor/editor/dialog/fck_image/fck_image.js
                
--- html_mail/fckeditor/editor/dialog/fck_image/fck_image.js	2005-10-15 \
                21:32:18.000000000 -0600
+++ /usr/share/squirrelmail/plugins/html_mail/fckeditor/editor/dialog/fck_image/fck_image.js	2006-12-30 \
03:47:37.000000000 -0700 @@ -27,23 +27,23 @@
 //#### Dialog Tabs
 
 // Set the dialog tabs.
+//if ( FCKConfig.ImageUpload )
+	window.parent.AddTab( 'Upload', FCKLang.DlgLnkUpload ) ;
+
 window.parent.AddTab( 'Info', FCKLang.DlgImgInfoTab ) ;
 
 if ( !bImageButton && !FCKConfig.ImageDlgHideLink )
 	window.parent.AddTab( 'Link', FCKLang.DlgImgLinkTab ) ;
 
-if ( FCKConfig.ImageUpload )
-	window.parent.AddTab( 'Upload', FCKLang.DlgLnkUpload ) ;
-
 if ( !FCKConfig.ImageDlgHideAdvanced )
 	window.parent.AddTab( 'Advanced', FCKLang.DlgAdvancedTag ) ;
 
 // Function called when a dialog tag is selected.
 function OnDialogTabChange( tabCode )
 {
+	ShowE('divUpload'	, ( tabCode == 'Upload' ) ) ;
 	ShowE('divInfo'		, ( tabCode == 'Info' ) ) ;
 	ShowE('divLink'		, ( tabCode == 'Link' ) ) ;
-	ShowE('divUpload'	, ( tabCode == 'Upload' ) ) ;
 	ShowE('divAdvanced'	, ( tabCode == 'Advanced' ) ) ;
 }
 
diff -ur --ignore-space-change --strip-trailing-cr \
html_mail/fckeditor/editor/dialog/fck_image.html \
                /usr/share/squirrelmail/plugins/html_mail/fckeditor/editor/dialog/fck_image.html
                
--- html_mail/fckeditor/editor/dialog/fck_image.html	2005-10-15 21:32:18.000000000 \
                -0600
+++ /usr/share/squirrelmail/plugins/html_mail/fckeditor/editor/dialog/fck_image.html	2006-12-30 \
17:22:59.000000000 -0700 @@ -27,7 +27,7 @@
 		<link href="common/fck_dialog_common.css" rel="stylesheet" type="text/css" />
 	</head>
 	<body scroll="no" style="OVERFLOW: hidden">
-		<div id="divInfo">
+		<div id="divInfo"  style="DISPLAY: none">
 			<table cellspacing="1" cellpadding="1" border="0" width="100%" height="100%">
 				<tr>
 					<td>
@@ -123,22 +123,7 @@
 										<tr>
 											<td valign="top">
 												<div class="ImagePreviewArea">
-													<a id="lnkPreview" onclick="return false;" style="CURSOR: default"><img \
                id="imgPreview" style="DISPLAY: none"></a>Magnus 
-													es, domine, et laudabilis valde: magna virtus tua, et sapientiae tuae \
                non est 
-													numerus. et laudare te vult homo, aliqua portio creaturae tuae, et homo \
                
-													circumferens mortalitem suam, circumferens testimonium peccati sui et 
-													testimonium, quia superbis resistis: et tamen laudare te vult homo, \
                aliqua 
-													portio creaturae tuae.tu excitas, ut laudare te delectet, quia fecisti \
                nos ad 
-													te et inquietum est cor nostrum, donec requiescat in te. da mihi, \
                domine, scire 
-													et intellegere, utrum sit prius invocare te an laudare te, et scire te \
                prius 
-													sit an invocare te. sed quis te invocat nesciens te? aliud enim pro \
                alio potest 
-													invocare nesciens. an potius invocaris, ut sciaris? quomodo autem \
                invocabunt, 
-													in quem non crediderunt? aut quomodo credent sine praedicante? et \
                laudabunt 
-													dominum qui requirunt eum. quaerentes enim inveniunt eum et invenientes \
                
-													laudabunt eum. quaeram te, domine, invocans te, et invocem te credens \
                in te: 
-													praedicatus enim es nobis. invocat te, domine, fides mea, quam dedisti \
                mihi, 
-													quam inspirasti mihi per humanitatem filii tui, per ministerium \
                praedicatoris 
-													tui.
+													<a id="lnkPreview" onclick="return false;" style="CURSOR: default"><img \
id="imgPreview" style="DISPLAY: none"></a>   </div>
 											</td>
 										</tr>
@@ -150,12 +135,14 @@
 				</tr>
 			</table>
 		</div>
-		<div id="divUpload" style="DISPLAY: none">
+		<div id="divUpload">
 			<form id="frmUpload" method="post" target="UploadWindow" \
enctype="multipart/form-data" action="" onsubmit="return CheckUpload();">  <span \
                fckLang="DlgLnkUpload">Upload</span><br />
 				<input id="txtUploadFile" style="WIDTH: 100%" type="file" size="40" \
name="NewFile" /><br />  <br />
 				<input id="btnUpload" type="submit" value="Send it to the Server" \
fckLang="DlgLnkBtnUpload" /> +				<br /><br /><br /><br />
+				<span>First, upload your image. Then you can size it and align it.</span>
 				<iframe name="UploadWindow" style="DISPLAY: none" \
src="../fckblank.html"></iframe>   </form>
 		</div>
diff -ur --ignore-space-change --strip-trailing-cr \
html_mail/fckeditor/editor/dialog/fck_link.html \
                /usr/share/squirrelmail/plugins/html_mail/fckeditor/editor/dialog/fck_link.html
                
--- html_mail/fckeditor/editor/dialog/fck_link.html	2005-10-15 21:32:18.000000000 \
                -0600
+++ /usr/share/squirrelmail/plugins/html_mail/fckeditor/editor/dialog/fck_link.html	2006-12-29 \
23:41:25.000000000 -0700 @@ -26,6 +26,15 @@
 		<script src="fck_link/fck_link.js" type="text/javascript"></script>
 	</head>
 	<body scroll="no" style="OVERFLOW: hidden">
+                <div id="divUpload" style="DISPLAY: none">
+                        <form id="frmUpload" method="post" target="UploadWindow" \
enctype="multipart/form-data" action="" onsubmit="return CheckUpload();"> +           \
<span fckLang="DlgLnkUpload">Upload</span><br /> +                                \
<input id="txtUploadFile" style="WIDTH: 100%" type="file" size="40" name="NewFile" \
/><br /> +                                <br />   
+                                <input id="btnUpload" type="submit" value="Send it \
to the Server" fckLang="DlgLnkBtnUpload" /> +                                <iframe \
name="UploadWindow" style="DISPLAY: none" src="../fckblank.html"></iframe> +          \
</form> +                </div>
 		<div id="divInfo" style="DISPLAY: none">
 			<span fckLang="DlgLnkType">Link Type</span><br />
 			<select id="cmbLinkType" onchange="SetLinkType(this.value);">
@@ -98,15 +107,6 @@
 				<textarea id="txtEMailBody" style="WIDTH: 100%" rows="3" cols="20"></textarea>
 			</div>
 		</div>
-		<div id="divUpload" style="DISPLAY: none">
-			<form id="frmUpload" method="post" target="UploadWindow" \
                enctype="multipart/form-data" action="" onsubmit="return \
                CheckUpload();">
-				<span fckLang="DlgLnkUpload">Upload</span><br />
-				<input id="txtUploadFile" style="WIDTH: 100%" type="file" size="40" \
                name="NewFile" /><br />
-				<br />
-				<input id="btnUpload" type="submit" value="Send it to the Server" \
                fckLang="DlgLnkBtnUpload" />
-				<iframe name="UploadWindow" style="DISPLAY: none" \
                src="../fckblank.html"></iframe> 
-			</form>
-		</div>
 		<div id="divTarget" style="DISPLAY: none">
 			<table cellspacing="0" cellpadding="0" width="100%" border="0">
 				<tr>
diff -ur --ignore-space-change --strip-trailing-cr \
html_mail/fckeditor/editor/filemanager/browser/default/connectors/php/config.php \
/usr/share/squirrelmail/plugins/html_mail/fckeditor/editor/filemanager/browser/default/connectors/php/config.php
                
--- html_mail/fckeditor/editor/filemanager/browser/default/connectors/php/config.php	2005-10-15 \
                21:32:18.000000000 -0600
+++ /usr/share/squirrelmail/plugins/html_mail/fckeditor/editor/filemanager/browser/default/connectors/php/config.php	2006-12-29 \
20:39:30.000000000 -0700 @@ -21,16 +21,16 @@
 global $Config ;
 
 // SECURITY: You must explicitelly enable this "connector". (Set it to "true").
-$Config['Enabled'] = false ;
+$Config['Enabled'] = true ;
 
 // Path to user files relative to the document root.
-$Config['UserFilesPath'] = '/UserFiles/' ;
+$Config['UserFilesPath'] = '/webmail/FCKeditor/' ;
 
 // Fill the following value it you prefer to specify the absolute path for the
 // user files directory. Usefull if you are using a virtual directory, symbolic
 // link or alias. Examples: 'C:\\MySite\\UserFiles\\' or '/root/mysite/UserFiles/'.
 // Attention: The above 'UserFilesPath' must point to the same directory.
-$Config['UserFilesAbsolutePath'] = '' ;
+$Config['UserFilesAbsolutePath'] = '/home/webmail/FCKeditor/' ;
 
 $Config['AllowedExtensions']['File']	= array() ;
 $Config['DeniedExtensions']['File']		= \
array('php','php3','php5','phtml','asp','aspx','ascx','jsp','cfm','cfc','pl','bat','exe','dll','reg','cgi') \
                ;
diff -ur --ignore-space-change --strip-trailing-cr \
html_mail/fckeditor/editor/filemanager/browser/mcpuk/connectors/php/config.php \
/usr/share/squirrelmail/plugins/html_mail/fckeditor/editor/filemanager/browser/mcpuk/connectors/php/config.php
                
--- html_mail/fckeditor/editor/filemanager/browser/mcpuk/connectors/php/config.php	2005-10-15 \
                21:32:18.000000000 -0600
+++ /usr/share/squirrelmail/plugins/html_mail/fckeditor/editor/filemanager/browser/mcpuk/connectors/php/config.php	2006-12-29 \
22:28:52.000000000 -0700 @@ -32,29 +32,29 @@
 /* The physical path to the document root, Set manually if not using apache	*/
 /*------------------------------------------------------------------------------*/
 //$fckphp_config['basedir']=$_SERVER['DOCUMENT_ROOT'];
-$fckphp_config['basedir'] = \
'D:\Work\FCKeditor\www\FCKeditor.V2\editor\filemanager\browser\mcpuk' ; \
+//$fckphp_config['basedir'] = \
'D:\Work\FCKeditor\www\FCKeditor.V2\editor\filemanager\browser\mcpuk' ;  \
/*==============================================================================*/  
 
 /*------------------------------------------------------------------------------*/
 /* Prefix added to image path before sending back to editor			*/
 /*------------------------------------------------------------------------------*/
-$fckphp_config['urlprefix']=$fckphp_config['prot'].$_SERVER['SERVER_NAME'];
+//$fckphp_config['urlprefix']=$fckphp_config['prot'].$_SERVER['SERVER_NAME'];
 /*==============================================================================*/
 
 
 /*------------------------------------------------------------------------------*/
 /* Path to user files relative to the document root (no trailing slash)		*/
 /*------------------------------------------------------------------------------*/
-$fckphp_config['UserFilesPath'] = "/UserFiles" ;
+$fckphp_config['UserFilesPath'] = "/webmail/FCKeditor" ;
 /*==============================================================================*/
 
 
 /*------------------------------------------------------------------------------*/
 /* Progressbar handler (script that monitors upload progress) (''=none)
 /*------------------------------------------------------------------------------*/
-// $fckphp_config['uploadProgressHandler']=''; //No upload progress handler
-$fckphp_config['uploadProgressHandler']=$fckphp_config['prot'].$_SERVER['SERVER_NAME']."/cgi-bin/progress.cgi"; \
//Perl upload progress handler +$fckphp_config['uploadProgressHandler']=''; //No \
upload progress handler \
+//$fckphp_config['uploadProgressHandler']=$fckphp_config['prot'].$_SERVER['SERVER_NAME']."/cgi-bin/progress.cgi"; \
//Perl upload progress handler  \
/*==============================================================================*/  
 
@@ -98,10 +98,10 @@
 	'AllowedMIME'		=>	array(),
 	
 	//Set the maximum single upload to this area to 2MB (2048Kb)
-	'MaxSize'		=>	2048,
+	'MaxSize'		=>	204800,
 	
 	//Set disk quota for this resource area to 20MB
-	'DiskQuota'		=>	20,
+	'DiskQuota'		=>	2000,
 	
 	//By Default hide all folders starting with a . (Unix standard)
 	'HideFolders'		=>	array("^\."), 
@@ -110,18 +110,18 @@
 	'HideFiles'		=>	array("^\."), 
 	
 	//Do not allow images to be edited in this resource area
-	'AllowImageEditing'	=>	false
+	'AllowImageEditing'	=>	true
 	);
 
 //Image area
 $fckphp_config['ResourceAreas']['Image'] =array(
 	'AllowedExtensions'	=>	array("jpg","gif","jpeg","png","tiff","tif",),
 	'AllowedMIME'		=>	array(),
-	'MaxSize'		=>	1024,
-	'DiskQuota'		=>	5,
+	'MaxSize'		=>	9182,
+	'DiskQuota'		=>	200,
 	'HideFolders'		=>	array("^\."),
 	'HideFiles'		=>	array("^\."),
-	'AllowImageEditing'	=>	false //Not yet complete, but you can take a look and see
+	'AllowImageEditing'	=>	true //Not yet complete, but you can take a look and see
 	);
 
 //Flash area
@@ -152,7 +152,7 @@
 /*------------------------------------------------------------------------------*/
 /* Global Disk Quota - Max size of all resource areas				*/
 /*------------------------------------------------------------------------------*/
-$fckphp_config['DiskQuota']['Global']=50; //In MBytes (default: 50mb)
+$fckphp_config['DiskQuota']['Global']=2000; //In MBytes (default: 50mb)
 /*==============================================================================*/
 
 
@@ -163,7 +163,7 @@
 /*  -FileNameAllowedChars :: Array of characters allowed in a file name		*/
 /*------------------------------------------------------------------------------*/
 
-$fckphp_config['MaxDirNameLength']=25;
+$fckphp_config['MaxDirNameLength']=50;
 
 $fckphp_config['DirNameAllowedChars']=array();
 
diff -ur --ignore-space-change --strip-trailing-cr \
html_mail/fckeditor/editor/filemanager/upload/php/config.php \
/usr/share/squirrelmail/plugins/html_mail/fckeditor/editor/filemanager/upload/php/config.php
                
--- html_mail/fckeditor/editor/filemanager/upload/php/config.php	2005-10-15 \
                21:32:18.000000000 -0600
+++ /usr/share/squirrelmail/plugins/html_mail/fckeditor/editor/filemanager/upload/php/config.php	2006-12-29 \
20:50:26.000000000 -0700 @@ -20,11 +20,12 @@
 
 global $Config ;
 
-// SECURITY: You must explicitelly enable this "uploader". 
-$Config['Enabled'] = false ;
+// SECURITY: You must explicitly enable this "uploader". 
+$Config['Enabled'] = true ;
 
 // Path to uploaded files relative to the document root.
-$Config['UserFilesPath'] = '/UserFiles/' ;
+$Config['UserFilesPath'] = '/webmail/FCKeditor/Image/' ;
+$Config['UserFilesAbsolutePath'] = '/home/webmail/FCKeditor/Image/' ;
 
 $Config['AllowedExtensions']['File']	= array() ;
 $Config['DeniedExtensions']['File']		= \
array('php','php3','php5','phtml','asp','aspx','ascx','jsp','cfm','cfc','pl','bat','exe','dll','reg','cgi') \
                ;
diff -ur --ignore-space-change --strip-trailing-cr \
html_mail/fckeditor/editor/filemanager/upload/php/upload.php \
/usr/share/squirrelmail/plugins/html_mail/fckeditor/editor/filemanager/upload/php/upload.php
                
--- html_mail/fckeditor/editor/filemanager/upload/php/upload.php	2005-10-15 \
                21:32:18.000000000 -0600
+++ /usr/share/squirrelmail/plugins/html_mail/fckeditor/editor/filemanager/upload/php/upload.php	2006-12-29 \
20:51:04.000000000 -0700 @@ -65,7 +65,8 @@
 $iCounter = 0 ;
 
 // The the target directory.
-$sServerDir = GetRootPath() . $Config["UserFilesPath"] ;
+//$sServerDir = GetRootPath() . $Config["UserFilesPath"] ;
+$sServerDir = $Config["UserFilesAbsolutePath"] ;
 
 while ( true )
 {
diff -ur --ignore-space-change --strip-trailing-cr \
html_mail/fckeditor/editor/plugins/ImageManager/config.inc.php \
/usr/share/squirrelmail/plugins/html_mail/fckeditor/editor/plugins/ImageManager/config.inc.php
                
--- html_mail/fckeditor/editor/plugins/ImageManager/config.inc.php	2006-06-20 \
                22:17:32.000000000 -0600
+++ /usr/share/squirrelmail/plugins/html_mail/fckeditor/editor/plugins/ImageManager/config.inc.php	2006-12-29 \
18:46:37.000000000 -0700 @@ -26,15 +26,15 @@
  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.saulmade.nl/FCKeditor/images/';
+$IMConfig['base_url'] = 'https://www.mydomain.com/webmail/FCKeditor/images/';
 //$IMConfig['base_dir'] = $_SERVER['DOCUMENT_ROOT'].$IMConfig['base_url'];
-$IMConfig['base_dir'] = '/home/saulmade.nl/www/FCKeditor/images/';
+$IMConfig['base_dir'] = '/home/webmail/FCKeditor/images/';
 $IMConfig['server_name'] = $_SERVER['SERVER_NAME'];
 
 /*
  demo - when true, no saving is allowed
 */
-$IMConfig['demo'] = true;
+$IMConfig['demo'] = false;
 
 /*
 
@@ -65,7 +65,7 @@
  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', '/ext/imagemagick/bin/');
+define('IMAGE_TRANSFORM_LIB_PATH', '/usr/bin/');
 
 
 /* ==============  OPTIONAL SETTINGS ============== */
diff -ur --ignore-space-change --strip-trailing-cr \
html_mail/fckeditor/editor/plugins/ImageManager/fckplugin.js \
/usr/share/squirrelmail/plugins/html_mail/fckeditor/editor/plugins/ImageManager/fckplugin.js
                
--- html_mail/fckeditor/editor/plugins/ImageManager/fckplugin.js	2006-06-20 \
                22:17:32.000000000 -0600
+++ /usr/share/squirrelmail/plugins/html_mail/fckeditor/editor/plugins/ImageManager/fckplugin.js	2006-12-29 \
18:43:30.000000000 -0700 @@ -19,7 +19,7 @@
 // show image manager or show immediately the image editor
 // false = use manager, standard behavior
 // true = no manager, only editing the image
-	var IM_directEdit = true;
+	var IM_directEdit = false;
 
 // ================================================
 
diff -ur --ignore-space-change --strip-trailing-cr html_mail/fckeditor/fckconfig.js \
                /usr/share/squirrelmail/plugins/html_mail/fckeditor/fckconfig.js
--- html_mail/fckeditor/fckconfig.js	2005-10-15 22:05:52.000000000 -0600
+++ /usr/share/squirrelmail/plugins/html_mail/fckeditor/fckconfig.js	2006-12-30 \
00:03:29.000000000 -0700 @@ -30,11 +30,12 @@
 
 FCKConfig.Debug = false ;
 
-FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/default/' ;
+FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/silver/' ;
 
 FCKConfig.PluginsPath = FCKConfig.BasePath + 'plugins/' ;
 
 // FCKConfig.Plugins.Add( 'placeholder', 'en,it' ) ;
+//FCKConfig.Plugins.Add( 'ImageManager' ) ;
 
 FCKConfig.ProtectedSource.Add( /<script[\s\S]*?\/script>/gi ) ;	// <SCRIPT> tags.
 // FCKConfig.ProtectedSource.Add( /<%[\s\S]*?%>/g ) ;	// ASP style server side code \
<%...%> @@ -123,13 +124,13 @@
 FCKConfig.DisableImageHandles = false ;
 FCKConfig.DisableTableHandles = false ;
 
-FCKConfig.LinkDlgHideTarget		= false ;
-FCKConfig.LinkDlgHideAdvanced	= false ;
+FCKConfig.LinkDlgHideTarget		= true ;
+FCKConfig.LinkDlgHideAdvanced	= true ;
 
-FCKConfig.ImageDlgHideLink		= false ;
-FCKConfig.ImageDlgHideAdvanced	= false ;
+FCKConfig.ImageDlgHideLink		= true ;
+FCKConfig.ImageDlgHideAdvanced	= true ;
 
-FCKConfig.FlashDlgHideAdvanced	= false ;
+FCKConfig.FlashDlgHideAdvanced	= true ;
 
 FCKConfig.LinkBrowser = false ;
 //FCKConfig.LinkBrowserURL = FCKConfig.BasePath + \
'filemanager/browser/default/browser.html?Connector=connectors/asp/connector.asp&ServerPath=/CustomFiles/' \
; @@ -137,17 +138,15 @@
 // ColdFusion	// FCKConfig.LinkBrowserURL = FCKConfig.BasePath + \
'filemanager/browser/default/browser.html?Connector=connectors/cfm/connector.cfm' ;  \
// Perl			// FCKConfig.LinkBrowserURL = FCKConfig.BasePath + \
'filemanager/browser/default/browser.html?Connector=connectors/perl/connector.cgi' ;  \
// PHP			// FCKConfig.LinkBrowserURL = FCKConfig.BasePath + \
                'filemanager/browser/default/browser.html?Connector=connectors/php/connector.php' \
                ;
-FCKConfig.LinkBrowserURL = FCKConfig.BasePath + \
'filemanager/browser/default/browser.html?Connector=connectors/php/connector.php' ;  \
// PHP - mcpuk	// FCKConfig.LinkBrowserURL = FCKConfig.BasePath + \
'filemanager/browser/mcpuk/browser.html?Connector=connectors/php/connector.php' ;  \
FCKConfig.LinkBrowserWindowWidth	= FCKConfig.ScreenWidth * 0.7 ;	// 70%  \
FCKConfig.LinkBrowserWindowHeight	= FCKConfig.ScreenHeight * 0.7 ;// 70%  
-FCKConfig.ImageBrowser = false ;
+// FCKConfig.ImageBrowser = false ;
 // ASP.Net		// FCKConfig.ImageBrowserURL = FCKConfig.BasePath + \
'filemanager/browser/default/browser.html?Type=Image&Connector=connectors/aspx/connector.aspx' \
;  // ColdFusion	// FCKConfig.ImageBrowserURL = FCKConfig.BasePath + \
'filemanager/browser/default/browser.html?Type=Image&Connector=connectors/cfm/connector.cfm' \
;  // Perl			// FCKConfig.ImageBrowserURL = FCKConfig.BasePath + \
'filemanager/browser/default/browser.html?Type=Image&Connector=connectors/perl/connector.cgi' \
;  // PHP			// FCKConfig.ImageBrowserURL = FCKConfig.BasePath + \
'filemanager/browser/default/browser.html?Type=Image&Connector=connectors/php/connector.php' \
                ;
-FCKConfig.ImageBrowserURL = FCKConfig.BasePath + \
'filemanager/browser/default/browser.html?Type=Image&Connector=connectors/php/connector.php' \
;  // PHP - mcpuk	// FCKConfig.ImageBrowserURL = FCKConfig.BasePath + \
'filemanager/browser/mcpuk/browser.html?Type=Image&Connector=connectors/php/connector.php' \
;  FCKConfig.ImageBrowserWindowWidth  = FCKConfig.ScreenWidth * 0.7 ;	// 70% ;
 FCKConfig.ImageBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ;	// 70% ;
@@ -157,7 +156,7 @@
 // ColdFusion	// FCKConfig.FlashBrowserURL = FCKConfig.BasePath + \
'filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/cfm/connector.cfm' \
;  // Perl			// FCKConfig.FlashBrowserURL = FCKConfig.BasePath + \
'filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/perl/connector.cgi' \
;  // PHP			// FCKConfig.FlashBrowserURL = FCKConfig.BasePath + \
'filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/php/connector.php' \
                ;
-FCKConfig.FlashBrowserURL = FCKConfig.BasePath + \
'filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/php/connector.php' \
; +FCKConfig.FlashBrowserURL = FCKConfig.BasePath + \
'filemanager/browser/mcpuk/browser.html?Type=Flash&Connector=connectors/php/connector.php' \
;  // PHP - mcpuk	// FCKConfig.FlashBrowserURL = FCKConfig.BasePath + \
'filemanager/browser/mcpuk/browser.html?Type=Flash&Connector=connectors/php/connector.php' \
;  FCKConfig.FlashBrowserWindowWidth  = FCKConfig.ScreenWidth * 0.7 ;	//70% ;
 FCKConfig.FlashBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ;	//70% ;
@@ -168,7 +167,7 @@
 FCKConfig.LinkUploadAllowedExtensions	= "" ;			// empty for all
 FCKConfig.LinkUploadDeniedExtensions	= \
".(php|php3|php5|phtml|asp|aspx|ascx|jsp|cfm|cfc|pl|bat|exe|dll|reg|cgi)$" ;	// empty \
for no one  
-FCKConfig.ImageUpload = false ;
+FCKConfig.ImageUpload = true ;
 // PHP // FCKConfig.ImageUploadURL = FCKConfig.BasePath + \
'filemanager/upload/php/upload.php?Type=Image' ;  FCKConfig.ImageUploadURL = \
FCKConfig.BasePath + 'filemanager/upload/php/upload.php?Type=Image' ;  \
                FCKConfig.ImageUploadAllowedExtensions	= ".(jpg|gif|jpeg|png)$" ;		// \
                empty for all
diff -ur --ignore-space-change --strip-trailing-cr html_mail/functions.php \
                /usr/share/squirrelmail/plugins/html_mail/functions.php
--- html_mail/functions.php	2005-10-15 22:46:01.000000000 -0600
+++ /usr/share/squirrelmail/plugins/html_mail/functions.php	2007-01-06 \
16:19:11.000000000 -0700 @@ -75,7 +75,7 @@
 
 //         echo '<a href="' . $PHP_SELF . (strpos($PHP_SELF, '?') === FALSE ? '?' : \
'&') . 'comp_in_html=1">'. _("Compose in HTML") . '</a>';  //         echo '<input \
type="button" onclick="window.location=\'' . $PHP_SELF . (strpos($PHP_SELF, '?') === \
                FALSE ? '?' : '&') . 'comp_in_html=1\'" value="'. _("HTML") . '" />';
-         echo '<input type="button" onclick="window.location=\'' . $PHP_SELF . \
(strpos($PHP_SELF, '?') === FALSE ? '?' : '&') . 'comp_in_html=1\'" value="'. \
_("Compose in HTML") . '" />'; +         echo '<input type="button" \
onclick="window.location=\'' . $PHP_SELF . (strpos($PHP_SELF, '?') === FALSE ? '?' : \
'&') . 'comp_in_html=1\'" style="font-size:80%" value="'. _("Compose in HTML") . '" \
/>';  }



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

--
squirrelmail-plugins mailing list
Posting Guidelines: http://www.squirrelmail.org/wiki/MailingListPostingGuidelines
List Address: squirrelmail-plugins@lists.sourceforge.net
List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.plugins
List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=3931
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic