[geeklog-cvs] Geeklog-1.x/public_html/fckeditor/editor/filemanager/connectors test.html, 1.1, 1.2 uploadtest.html, 1.1, 1.2

Blaine Lang blaine at qs1489.pair.com
Sun May 4 20:35:29 EDT 2008


Update of /cvsroot/geeklog/Geeklog-1.x/public_html/fckeditor/editor/filemanager/connectors
In directory qs1489.pair.com:/tmp/cvs-serv85146/editor/filemanager/connectors

Modified Files:
	test.html uploadtest.html 
Log Message:
Upgraded the FCKeditor to version 2.6 Final - latest release April 7/08

Index: test.html
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/fckeditor/editor/filemanager/connectors/test.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** test.html	9 Feb 2008 12:53:59 -0000	1.1
--- test.html	5 May 2008 00:35:25 -0000	1.2
***************
*** 1,5 ****
  <!--
   * FCKeditor - The text editor for Internet - http://www.fckeditor.net
!  * Copyright (C) 2003-2007 Frederico Caldeira Knabben
   *
   * == BEGIN LICENSE ==
--- 1,5 ----
  <!--
   * FCKeditor - The text editor for Internet - http://www.fckeditor.net
!  * Copyright (C) 2003-2008 Frederico Caldeira Knabben
   *
   * == BEGIN LICENSE ==
***************
*** 25,29 ****
--- 25,62 ----
  <head>
  	<title>FCKeditor - Connectors Tests</title>
+ 	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  	<script type="text/javascript">
+ 
+ // Automatically detect the correct document.domain (#1919).
+ (function()
+ {
+ 	var d = document.domain ;
+ 
+ 	while ( true )
+ 	{
+ 		// Test if we can access a parent property.
+ 		try
+ 		{
+ 			var test = window.opener.document.domain ;
+ 			break ;
+ 		}
+ 		catch( e ) {}
+ 
+ 		// Remove a domain part: www.mytest.example.com => mytest.example.com => example.com ...
+ 		d = d.replace( /.*?(?:\.|$)/, '' ) ;
+ 
+ 		if ( d.length == 0 )
+ 			break ;		// It was not able to detect the domain.
+ 
+ 		try
+ 		{
+ 			document.domain = d ;
+ 		}
+ 		catch (e)
+ 		{
+ 			break ;
+ 		}
+ 	}
+ })() ;
  
  function BuildBaseUrl( command )

Index: uploadtest.html
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/fckeditor/editor/filemanager/connectors/uploadtest.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** uploadtest.html	9 Feb 2008 12:53:59 -0000	1.1
--- uploadtest.html	5 May 2008 00:35:25 -0000	1.2
***************
*** 1,5 ****
  <!--
   * FCKeditor - The text editor for Internet - http://www.fckeditor.net
!  * Copyright (C) 2003-2007 Frederico Caldeira Knabben
   *
   * == BEGIN LICENSE ==
--- 1,5 ----
  <!--
   * FCKeditor - The text editor for Internet - http://www.fckeditor.net
!  * Copyright (C) 2003-2008 Frederico Caldeira Knabben
   *
   * == BEGIN LICENSE ==
***************
*** 24,29 ****
--- 24,62 ----
  	<head>
  		<title>FCKeditor - Uploaders Tests</title>
+ 		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  		<script type="text/javascript">
  
+ // Automatically detect the correct document.domain (#1919).
+ (function()
+ {
+ 	var d = document.domain ;
+ 
+ 	while ( true )
+ 	{
+ 		// Test if we can access a parent property.
+ 		try
+ 		{
+ 			var test = window.opener.document.domain ;
+ 			break ;
+ 		}
+ 		catch( e ) {}
+ 
+ 		// Remove a domain part: www.mytest.example.com => mytest.example.com => example.com ...
+ 		d = d.replace( /.*?(?:\.|$)/, '' ) ;
+ 
+ 		if ( d.length == 0 )
+ 			break ;		// It was not able to detect the domain.
+ 
+ 		try
+ 		{
+ 			document.domain = d ;
+ 		}
+ 		catch (e)
+ 		{
+ 			break ;
+ 		}
+ 	}
+ })() ;
+ 
  function SendFile()
  {
***************
*** 42,48 ****
  	txtUrl.value = '' ;
  
! 	frmUpload.action = sUploaderUrl;
  	if (document.getElementById('cmbType').value) {
! 		frmUpload.action = frmUpload.action + '?Type='+document.getElementById('cmbType').value;
  	}
  	frmUpload.submit() ;
--- 75,86 ----
  	txtUrl.value = '' ;
  
! 	var date = new Date()
! 
! 	frmUpload.action = sUploaderUrl + '?time=' + date.getTime();
  	if (document.getElementById('cmbType').value) {
! 		frmUpload.action = frmUpload.action + '&Type='+document.getElementById('cmbType').value;
! 	}
! 	if (document.getElementById('CurrentFolder').value) {
! 		frmUpload.action = frmUpload.action + '&CurrentFolder='+document.getElementById('CurrentFolder').value;
  	}
  	frmUpload.submit() ;
***************
*** 89,93 ****
  						<tr>
  							<td nowrap>
! 								Select the "File Uploader" to use:<br>
  								<select id="cmbUploaderUrl">
  									<option selected value="asp/upload.asp">ASP</option>
--- 127,131 ----
  						<tr>
  							<td nowrap>
! 								Select the "File Uploader" to use: <br>
  								<select id="cmbUploaderUrl">
  									<option selected value="asp/upload.asp">ASP</option>
***************
*** 112,115 ****
--- 150,157 ----
  							</select>
  						</td>
+ 						<td>
+ 						Current Folder: <br>
+ 						<input type="text" name="CurrentFolder" id="CurrentFolder" value="/">
+ 						</td>
  							<td nowrap>      </td>
  							<td width="100%">
***************
*** 126,129 ****
--- 168,172 ----
  									Upload a new file:<br>
  									<input type="file" name="NewFile"><br>
+ 
  									<input type="button" value="Send it to the Server" onclick="SendFile();">
  								</form>




More information about the geeklog-cvs mailing list