Revision 1600
Added by Dietmar over 12 years ago
branches/2.8.x/CHANGELOG | ||
---|---|---|
11 | 11 |
! = Update/Change |
12 | 12 |
|
13 | 13 |
=========================== add small Features 2.8.2 ========================== |
14 |
07 Feb-2012 Build 1600 Dietmar Woellbrink (Luisehahne) |
|
15 |
# more fixed issues with get_magic_quotes_gpc and FCKeditor |
|
16 |
! remove create and upload in FCKeditor Filemanager |
|
14 | 17 |
06 Feb-2012 Build 1599 Dietmar Woellbrink (Luisehahne) |
15 | 18 |
! update all used files with redirect_url to $_SESSION['HTTP_REFERER'] |
16 | 19 |
06 Feb-2012 Build 1598 Dietmar Woellbrink (Luisehahne) |
branches/2.8.x/wb/admin/interface/version.php | ||
---|---|---|
51 | 51 |
|
52 | 52 |
// check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled) |
53 | 53 |
if(!defined('VERSION')) define('VERSION', '2.8.2'); |
54 |
if(!defined('REVISION')) define('REVISION', '1599');
|
|
54 |
if(!defined('REVISION')) define('REVISION', '1600');
|
|
55 | 55 |
if(!defined('SP')) define('SP', 'SP2'); |
branches/2.8.x/wb/modules/wysiwyg/save.php | ||
---|---|---|
40 | 40 |
$content = $_POST['content'.$section_id]; |
41 | 41 |
if(version_compare(PHP_VERSION, '5.3.0', '<')) |
42 | 42 |
{ |
43 |
if(get_magic_quotes_gpc()) { |
|
44 |
$content = $admin->strip_slashes($_POST['content'.$section_id]); |
|
45 |
} |
|
43 |
$content = $admin->strip_slashes($_POST['content'.$section_id]); |
|
46 | 44 |
} |
47 | 45 |
$searchfor = '@(<[^>]*=\s*")('.preg_quote($sMediaUrl).')([^">]*".*>)@siU'; |
48 | 46 |
$content = preg_replace($searchfor, '$1{SYSVAR:MEDIA_REL}$3', $content); |
49 | 47 |
// searching in $text will be much easier this way |
50 |
$content = addslashes($content);
|
|
48 |
$content = mysql_real_escape_string ($content);
|
|
51 | 49 |
$text = umlauts_to_entities($content, strtoupper(DEFAULT_CHARSET), 0); |
52 | 50 |
$sql = 'UPDATE `'.TABLE_PREFIX.'mod_wysiwyg` '; |
53 | 51 |
$sql .= 'SET `content`=\''.$content.'\', `text`=\''.$text.'\' '; |
branches/2.8.x/wb/modules/fckeditor/fckeditor/editor/filemanager/browser/default/frmupload.html.org | ||
---|---|---|
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
|
2 |
<!-- |
|
3 |
* FCKeditor - The text editor for Internet - http://www.fckeditor.net |
|
4 |
* Copyright (C) 2003-2010 Frederico Caldeira Knabben |
|
5 |
* |
|
6 |
* == BEGIN LICENSE == |
|
7 |
* |
|
8 |
* Licensed under the terms of any of the following licenses at your |
|
9 |
* choice: |
|
10 |
* |
|
11 |
* - GNU General Public License Version 2 or later (the "GPL") |
|
12 |
* http://www.gnu.org/licenses/gpl.html |
|
13 |
* |
|
14 |
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL") |
|
15 |
* http://www.gnu.org/licenses/lgpl.html |
|
16 |
* |
|
17 |
* - Mozilla Public License Version 1.1 or later (the "MPL") |
|
18 |
* http://www.mozilla.org/MPL/MPL-1.1.html |
|
19 |
* |
|
20 |
* == END LICENSE == |
|
21 |
* |
|
22 |
* Page used to upload new files in the current folder. |
|
23 |
--> |
|
24 |
<html> |
|
25 |
<head> |
|
26 |
<title>File Upload</title> |
|
27 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
|
28 |
<link href="browser.css" type="text/css" rel="stylesheet" > |
|
29 |
<script type="text/javascript" src="js/common.js"></script> |
|
30 |
<script type="text/javascript"> |
|
31 |
|
|
32 |
function SetCurrentFolder( resourceType, folderPath ) |
|
33 |
{ |
|
34 |
var sUrl = oConnector.ConnectorUrl + 'Command=FileUpload' ; |
|
35 |
sUrl += '&Type=' + resourceType ; |
|
36 |
sUrl += '&CurrentFolder=' + encodeURIComponent( folderPath ) ; |
|
37 |
|
|
38 |
document.getElementById('frmUpload').action = sUrl ; |
|
39 |
} |
|
40 |
|
|
41 |
function OnSubmit() |
|
42 |
{ |
|
43 |
if ( document.getElementById('NewFile').value.length == 0 ) |
|
44 |
{ |
|
45 |
alert( 'Please select a file from your computer' ) ; |
|
46 |
return false ; |
|
47 |
} |
|
48 |
|
|
49 |
// Set the interface elements. |
|
50 |
document.getElementById('eUploadMessage').innerHTML = 'Upload a new file in this folder (Upload in progress, please wait...)' ; |
|
51 |
document.getElementById('btnUpload').disabled = true ; |
|
52 |
|
|
53 |
return true ; |
|
54 |
} |
|
55 |
|
|
56 |
function OnUploadCompleted( errorNumber, data ) |
|
57 |
{ |
|
58 |
// Reset the Upload Worker Frame. |
|
59 |
window.parent.frames['frmUploadWorker'].location = 'javascript:void(0)' ; |
|
60 |
|
|
61 |
// Reset the upload form (On IE we must do a little trick to avoid problems). |
|
62 |
if ( document.all ) |
|
63 |
document.getElementById('NewFile').outerHTML = '<input id="NewFile" name="NewFile" style="WIDTH: 100%" type="file">' ; |
|
64 |
else |
|
65 |
document.getElementById('frmUpload').reset() ; |
|
66 |
|
|
67 |
// Reset the interface elements. |
|
68 |
document.getElementById('eUploadMessage').innerHTML = 'Upload a new file in this folder' ; |
|
69 |
document.getElementById('btnUpload').disabled = false ; |
|
70 |
|
|
71 |
switch ( errorNumber ) |
|
72 |
{ |
|
73 |
case 0 : |
|
74 |
window.parent.frames['frmResourcesList'].Refresh() ; |
|
75 |
break ; |
|
76 |
case 1 : // Custom error. |
|
77 |
alert( data ) ; |
|
78 |
break ; |
|
79 |
case 201 : |
|
80 |
window.parent.frames['frmResourcesList'].Refresh() ; |
|
81 |
alert( 'A file with the same name is already available. The uploaded file has been renamed to "' + data + '"' ) ; |
|
82 |
break ; |
|
83 |
case 202 : |
|
84 |
alert( 'Invalid file' ) ; |
|
85 |
break ; |
|
86 |
default : |
|
87 |
alert( 'Error on file upload. Error number: ' + errorNumber ) ; |
|
88 |
break ; |
|
89 |
} |
|
90 |
} |
|
91 |
|
|
92 |
window.onload = function() |
|
93 |
{ |
|
94 |
window.top.IsLoadedUpload = true ; |
|
95 |
} |
|
96 |
</script> |
|
97 |
</head> |
|
98 |
<body> |
|
99 |
<form id="frmUpload" action="" target="frmUploadWorker" method="post" enctype="multipart/form-data" onsubmit="return OnSubmit();"> |
|
100 |
<table class="fullHeight" cellspacing="0" cellpadding="0" width="100%" border="0"> |
|
101 |
<tr> |
|
102 |
<td nowrap="nowrap"> |
|
103 |
<span id="eUploadMessage">Upload a new file in this folder</span><br> |
|
104 |
<table cellspacing="0" cellpadding="0" width="100%" border="0"> |
|
105 |
<tr> |
|
106 |
<td width="100%"><input id="NewFile" name="NewFile" style="WIDTH: 100%" type="file"></td> |
|
107 |
<td nowrap="nowrap"> <input id="btnUpload" type="submit" value="Upload"></td> |
|
108 |
</tr> |
|
109 |
</table> |
|
110 |
</td> |
|
111 |
</tr> |
|
112 |
</table> |
|
113 |
</form> |
|
114 |
</body> |
|
115 |
</html> |
branches/2.8.x/wb/modules/fckeditor/fckeditor/editor/filemanager/browser/default/frmupload.html | ||
---|---|---|
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
|
2 |
<!-- |
|
3 |
* FCKeditor - The text editor for Internet - http://www.fckeditor.net |
|
4 |
* Copyright (C) 2003-2010 Frederico Caldeira Knabben |
|
5 |
* |
|
6 |
* == BEGIN LICENSE == |
|
7 |
* |
|
8 |
* Licensed under the terms of any of the following licenses at your |
|
9 |
* choice: |
|
10 |
* |
|
11 |
* - GNU General Public License Version 2 or later (the "GPL") |
|
12 |
* http://www.gnu.org/licenses/gpl.html |
|
13 |
* |
|
14 |
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL") |
|
15 |
* http://www.gnu.org/licenses/lgpl.html |
|
16 |
* |
|
17 |
* - Mozilla Public License Version 1.1 or later (the "MPL") |
|
18 |
* http://www.mozilla.org/MPL/MPL-1.1.html |
|
19 |
* |
|
20 |
* == END LICENSE == |
|
21 |
* |
|
22 |
* Page used to upload new files in the current folder. |
|
23 |
--> |
|
24 |
<html> |
|
25 |
<head> |
|
26 |
<title>File Upload</title> |
|
27 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
|
28 |
<link href="browser.css" type="text/css" rel="stylesheet" > |
|
29 |
<script type="text/javascript" src="js/common.js"></script> |
|
30 |
<script type="text/javascript"> |
|
31 |
|
|
32 |
function SetCurrentFolder( resourceType, folderPath ) |
|
33 |
{ |
|
34 |
var sUrl = oConnector.ConnectorUrl + 'Command=FileUpload' ; |
|
35 |
sUrl += '&Type=' + resourceType ; |
|
36 |
sUrl += '&CurrentFolder=' + encodeURIComponent( folderPath ) ; |
|
37 |
|
|
38 |
document.getElementById('frmUpload').action = sUrl ; |
|
39 |
} |
|
40 |
|
|
41 |
function OnSubmit() |
|
42 |
{ |
|
43 |
if ( document.getElementById('NewFile').value.length == 0 ) |
|
44 |
{ |
|
45 |
alert( 'Please select a file from your computer' ) ; |
|
46 |
return false ; |
|
47 |
} |
|
48 |
|
|
49 |
// Set the interface elements. |
|
50 |
document.getElementById('eUploadMessage').innerHTML = 'Upload a new file in this folder (Upload in progress, please wait...)' ; |
|
51 |
document.getElementById('btnUpload').disabled = true ; |
|
52 |
|
|
53 |
return true ; |
|
54 |
} |
|
55 |
|
|
56 |
function OnUploadCompleted( errorNumber, data ) |
|
57 |
{ |
|
58 |
// Reset the Upload Worker Frame. |
|
59 |
window.parent.frames['frmUploadWorker'].location = 'javascript:void(0)' ; |
|
60 |
|
|
61 |
// Reset the upload form (On IE we must do a little trick to avoid problems). |
|
62 |
if ( document.all ) |
|
63 |
document.getElementById('NewFile').outerHTML = '<input id="NewFile" name="NewFile" style="WIDTH: 100%" type="file">' ; |
|
64 |
else |
|
65 |
document.getElementById('frmUpload').reset() ; |
|
66 |
|
|
67 |
// Reset the interface elements. |
|
68 |
document.getElementById('eUploadMessage').innerHTML = 'Upload a new file in this folder' ; |
|
69 |
document.getElementById('btnUpload').disabled = false ; |
|
70 |
|
|
71 |
switch ( errorNumber ) |
|
72 |
{ |
|
73 |
case 0 : |
|
74 |
window.parent.frames['frmResourcesList'].Refresh() ; |
|
75 |
break ; |
|
76 |
case 1 : // Custom error. |
|
77 |
alert( data ) ; |
|
78 |
break ; |
|
79 |
case 201 : |
|
80 |
window.parent.frames['frmResourcesList'].Refresh() ; |
|
81 |
alert( 'A file with the same name is already available. The uploaded file has been renamed to "' + data + '"' ) ; |
|
82 |
break ; |
|
83 |
case 202 : |
|
84 |
alert( 'Invalid file' ) ; |
|
85 |
break ; |
|
86 |
default : |
|
87 |
alert( 'Error on file upload. Error number: ' + errorNumber ) ; |
|
88 |
break ; |
|
89 |
} |
|
90 |
} |
|
91 |
|
|
92 |
window.onload = function() |
|
93 |
{ |
|
94 |
window.top.IsLoadedUpload = true ; |
|
95 |
} |
|
96 |
</script> |
|
97 |
</head> |
|
98 |
<body> |
|
99 |
<form id="frmUpload" action="" target="frmUploadWorker" method="post" enctype="multipart/form-data" onsubmit="return OnSubmit();"> |
|
100 |
<table class="fullHeight" cellspacing="0" cellpadding="0" width="100%" border="0"> |
|
101 |
<tr> |
|
102 |
<td nowrap="nowrap"> |
|
103 |
<span id="eUploadMessage">Upload a new file in this folder</span><br> |
|
104 |
<table cellspacing="0" cellpadding="0" width="100%" border="0"> |
|
105 |
<tr> |
|
106 |
<td width="100%"><input id="NewFile" name="NewFile" style="WIDTH: 100%" type="file"></td> |
|
107 |
<td nowrap="nowrap"> <input id="btnUpload" type="submit" value="Upload"></td> |
|
108 |
</tr> |
|
109 |
</table> |
|
110 |
</td> |
|
111 |
</tr> |
|
112 |
</table> |
|
113 |
</form> |
|
114 |
</body> |
|
115 |
</html> |
|
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
|
2 |
<!-- |
|
3 |
* FCKeditor - The text editor for Internet - http://www.fckeditor.net |
|
4 |
* Copyright (C) 2003-2010 Frederico Caldeira Knabben |
|
5 |
* |
|
6 |
* == BEGIN LICENSE == |
|
7 |
* |
|
8 |
* Licensed under the terms of any of the following licenses at your |
|
9 |
* choice: |
|
10 |
* |
|
11 |
* - GNU General Public License Version 2 or later (the "GPL") |
|
12 |
* http://www.gnu.org/licenses/gpl.html |
|
13 |
* |
|
14 |
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL") |
|
15 |
* http://www.gnu.org/licenses/lgpl.html |
|
16 |
* |
|
17 |
* - Mozilla Public License Version 1.1 or later (the "MPL") |
|
18 |
* http://www.mozilla.org/MPL/MPL-1.1.html |
|
19 |
* |
|
20 |
* == END LICENSE == |
|
21 |
* |
|
22 |
* Page used to upload new files in the current folder. |
|
23 |
--> |
|
24 |
<html> |
|
25 |
<head> |
|
26 |
<title>File Upload</title> |
|
27 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
|
28 |
<link href="browser.css" type="text/css" rel="stylesheet" > |
|
29 |
<script type="text/javascript" src="js/common.js"></script> |
|
30 |
<script type="text/javascript"> |
|
31 |
|
|
32 |
function SetCurrentFolder( resourceType, folderPath ) |
|
33 |
{ |
|
34 |
var sUrl = oConnector.ConnectorUrl + 'Command=FileUpload' ; |
|
35 |
sUrl += '&Type=' + resourceType ; |
|
36 |
sUrl += '&CurrentFolder=' + encodeURIComponent( folderPath ) ; |
|
37 |
|
|
38 |
document.getElementById('frmUpload').action = sUrl ; |
|
39 |
} |
|
40 |
|
|
41 |
function OnSubmit() |
|
42 |
{ |
|
43 |
if ( document.getElementById('NewFile').value.length == 0 ) |
|
44 |
{ |
|
45 |
alert( 'Please select a file from your computer' ) ; |
|
46 |
return false ; |
|
47 |
} |
|
48 |
|
|
49 |
// Set the interface elements. |
|
50 |
document.getElementById('eUploadMessage').innerHTML = 'Upload a new file in this folder (Upload in progress, please wait...)' ; |
|
51 |
document.getElementById('btnUpload').disabled = true ; |
|
52 |
|
|
53 |
return true ; |
|
54 |
} |
|
55 |
|
|
56 |
function OnUploadCompleted( errorNumber, data ) |
|
57 |
{ |
|
58 |
// Reset the Upload Worker Frame. |
|
59 |
window.parent.frames['frmUploadWorker'].location = 'javascript:void(0)' ; |
|
60 |
|
|
61 |
// Reset the upload form (On IE we must do a little trick to avoid problems). |
|
62 |
if ( document.all ) |
|
63 |
document.getElementById('NewFile').outerHTML = '<input id="NewFile" name="NewFile" style="WIDTH: 100%" type="file">' ; |
|
64 |
else |
|
65 |
document.getElementById('frmUpload').reset() ; |
|
66 |
|
|
67 |
// Reset the interface elements. |
|
68 |
document.getElementById('eUploadMessage').innerHTML = 'Upload a new file in this folder' ; |
|
69 |
document.getElementById('btnUpload').disabled = false ; |
|
70 |
|
|
71 |
switch ( errorNumber ) |
|
72 |
{ |
|
73 |
case 0 : |
|
74 |
window.parent.frames['frmResourcesList'].Refresh() ; |
|
75 |
break ; |
|
76 |
case 1 : // Custom error. |
|
77 |
alert( data ) ; |
|
78 |
break ; |
|
79 |
case 201 : |
|
80 |
window.parent.frames['frmResourcesList'].Refresh() ; |
|
81 |
alert( 'A file with the same name is already available. The uploaded file has been renamed to "' + data + '"' ) ; |
|
82 |
break ; |
|
83 |
case 202 : |
|
84 |
alert( 'Invalid file' ) ; |
|
85 |
break ; |
|
86 |
default : |
|
87 |
alert( 'Error on file upload. Error number: ' + errorNumber ) ; |
|
88 |
break ; |
|
89 |
} |
|
90 |
} |
|
91 |
|
|
92 |
window.onload = function() |
|
93 |
{ |
|
94 |
window.top.IsLoadedUpload = true ; |
|
95 |
} |
|
96 |
</script> |
|
97 |
</head> |
|
98 |
<body> |
|
99 |
<form id="frmUpload" action="" target="frmUploadWorker" method="post" > |
|
100 |
<table summary="" class="fullHeight" cellspacing="0" cellpadding="0" width="100%" border="0"> |
|
101 |
<tr> |
|
102 |
<td nowrap="nowrap"> </td> |
|
103 |
</tr> |
|
104 |
</table> |
|
105 |
</form> |
|
106 |
</body> |
|
107 |
|
|
108 |
</html> |
branches/2.8.x/wb/modules/fckeditor/fckeditor/editor/filemanager/browser/default/frmcreatefolder.html.org | ||
---|---|---|
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
|
2 |
<!-- |
|
3 |
* FCKeditor - The text editor for Internet - http://www.fckeditor.net |
|
4 |
* Copyright (C) 2003-2010 Frederico Caldeira Knabben |
|
5 |
* |
|
6 |
* == BEGIN LICENSE == |
|
7 |
* |
|
8 |
* Licensed under the terms of any of the following licenses at your |
|
9 |
* choice: |
|
10 |
* |
|
11 |
* - GNU General Public License Version 2 or later (the "GPL") |
|
12 |
* http://www.gnu.org/licenses/gpl.html |
|
13 |
* |
|
14 |
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL") |
|
15 |
* http://www.gnu.org/licenses/lgpl.html |
|
16 |
* |
|
17 |
* - Mozilla Public License Version 1.1 or later (the "MPL") |
|
18 |
* http://www.mozilla.org/MPL/MPL-1.1.html |
|
19 |
* |
|
20 |
* == END LICENSE == |
|
21 |
* |
|
22 |
* Page used to create new folders in the current folder. |
|
23 |
--> |
|
24 |
<html> |
|
25 |
<head> |
|
26 |
<title>Create Folder</title> |
|
27 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
|
28 |
<link href="browser.css" type="text/css" rel="stylesheet"> |
|
29 |
<script type="text/javascript" src="js/common.js"></script> |
|
30 |
<script type="text/javascript"> |
|
31 |
|
|
32 |
function SetCurrentFolder( resourceType, folderPath ) |
|
33 |
{ |
|
34 |
oConnector.ResourceType = resourceType ; |
|
35 |
oConnector.CurrentFolder = folderPath ; |
|
36 |
} |
|
37 |
|
|
38 |
function CreateFolder() |
|
39 |
{ |
|
40 |
var sFolderName ; |
|
41 |
|
|
42 |
while ( true ) |
|
43 |
{ |
|
44 |
sFolderName = prompt( 'Type the name of the new folder:', '' ) ; |
|
45 |
|
|
46 |
if ( sFolderName == null ) |
|
47 |
return ; |
|
48 |
else if ( sFolderName.length == 0 ) |
|
49 |
alert( 'Please type the folder name' ) ; |
|
50 |
else |
|
51 |
break ; |
|
52 |
} |
|
53 |
|
|
54 |
oConnector.SendCommand( 'CreateFolder', 'NewFolderName=' + encodeURIComponent( sFolderName) , CreateFolderCallBack ) ; |
|
55 |
} |
|
56 |
|
|
57 |
function CreateFolderCallBack( fckXml ) |
|
58 |
{ |
|
59 |
if ( oConnector.CheckError( fckXml ) == 0 ) |
|
60 |
window.parent.frames['frmResourcesList'].Refresh() ; |
|
61 |
|
|
62 |
/* |
|
63 |
// Get the current folder path. |
|
64 |
var oNode = fckXml.SelectSingleNode( 'Connector/Error' ) ; |
|
65 |
var iErrorNumber = parseInt( oNode.attributes.getNamedItem('number').value ) ; |
|
66 |
|
|
67 |
switch ( iErrorNumber ) |
|
68 |
{ |
|
69 |
case 0 : |
|
70 |
window.parent.frames['frmResourcesList'].Refresh() ; |
|
71 |
break ; |
|
72 |
case 101 : |
|
73 |
alert( 'Folder already exists' ) ; |
|
74 |
break ; |
|
75 |
case 102 : |
|
76 |
alert( 'Invalid folder name' ) ; |
|
77 |
break ; |
|
78 |
case 103 : |
|
79 |
alert( 'You have no permissions to create the folder' ) ; |
|
80 |
break ; |
|
81 |
case 110 : |
|
82 |
alert( 'Unknown error creating folder' ) ; |
|
83 |
break ; |
|
84 |
default : |
|
85 |
alert( 'Error creating folder. Error number: ' + iErrorNumber ) ; |
|
86 |
break ; |
|
87 |
} |
|
88 |
*/ |
|
89 |
} |
|
90 |
|
|
91 |
window.onload = function() |
|
92 |
{ |
|
93 |
window.top.IsLoadedCreateFolder = true ; |
|
94 |
} |
|
95 |
</script> |
|
96 |
</head> |
|
97 |
<body> |
|
98 |
<table class="fullHeight" cellSpacing="0" cellPadding="0" width="100%" border="0"> |
|
99 |
<tr> |
|
100 |
<td> |
|
101 |
<button type="button" style="WIDTH: 100%" onclick="CreateFolder();"> |
|
102 |
<table cellSpacing="0" cellPadding="0" border="0"> |
|
103 |
<tr> |
|
104 |
<td><img height="16" alt="" src="images/Folder.gif" width="16"></td> |
|
105 |
<td> </td> |
|
106 |
<td nowrap>Create New Folder</td> |
|
107 |
</tr> |
|
108 |
</table> |
|
109 |
</button> |
|
110 |
</td> |
|
111 |
</tr> |
|
112 |
</table> |
|
113 |
</body> |
|
114 |
</html> |
branches/2.8.x/wb/modules/fckeditor/fckeditor/editor/filemanager/browser/default/frmcreatefolder.html | ||
---|---|---|
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
|
2 |
<!-- |
|
3 |
* FCKeditor - The text editor for Internet - http://www.fckeditor.net |
|
4 |
* Copyright (C) 2003-2010 Frederico Caldeira Knabben |
|
5 |
* |
|
6 |
* == BEGIN LICENSE == |
|
7 |
* |
|
8 |
* Licensed under the terms of any of the following licenses at your |
|
9 |
* choice: |
|
10 |
* |
|
11 |
* - GNU General Public License Version 2 or later (the "GPL") |
|
12 |
* http://www.gnu.org/licenses/gpl.html |
|
13 |
* |
|
14 |
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL") |
|
15 |
* http://www.gnu.org/licenses/lgpl.html |
|
16 |
* |
|
17 |
* - Mozilla Public License Version 1.1 or later (the "MPL") |
|
18 |
* http://www.mozilla.org/MPL/MPL-1.1.html |
|
19 |
* |
|
20 |
* == END LICENSE == |
|
21 |
* |
|
22 |
* Page used to create new folders in the current folder. |
|
23 |
--> |
|
24 |
<html> |
|
25 |
<head> |
|
26 |
<title>Create Folder</title> |
|
27 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
|
28 |
<link href="browser.css" type="text/css" rel="stylesheet"> |
|
29 |
<script type="text/javascript" src="js/common.js"></script> |
|
30 |
<script type="text/javascript"> |
|
31 |
|
|
32 |
function SetCurrentFolder( resourceType, folderPath ) |
|
33 |
{ |
|
34 |
oConnector.ResourceType = resourceType ; |
|
35 |
oConnector.CurrentFolder = folderPath ; |
|
36 |
} |
|
37 |
|
|
38 |
function CreateFolder() |
|
39 |
{ |
|
40 |
var sFolderName ; |
|
41 |
|
|
42 |
while ( true ) |
|
43 |
{ |
|
44 |
sFolderName = prompt( 'Type the name of the new folder:', '' ) ; |
|
45 |
|
|
46 |
if ( sFolderName == null ) |
|
47 |
return ; |
|
48 |
else if ( sFolderName.length == 0 ) |
|
49 |
alert( 'Please type the folder name' ) ; |
|
50 |
else |
|
51 |
break ; |
|
52 |
} |
|
53 |
|
|
54 |
oConnector.SendCommand( 'CreateFolder', 'NewFolderName=' + encodeURIComponent( sFolderName) , CreateFolderCallBack ) ; |
|
55 |
} |
|
56 |
|
|
57 |
function CreateFolderCallBack( fckXml ) |
|
58 |
{ |
|
59 |
if ( oConnector.CheckError( fckXml ) == 0 ) |
|
60 |
window.parent.frames['frmResourcesList'].Refresh() ; |
|
61 |
|
|
62 |
/* |
|
63 |
// Get the current folder path. |
|
64 |
var oNode = fckXml.SelectSingleNode( 'Connector/Error' ) ; |
|
65 |
var iErrorNumber = parseInt( oNode.attributes.getNamedItem('number').value ) ; |
|
66 |
|
|
67 |
switch ( iErrorNumber ) |
|
68 |
{ |
|
69 |
case 0 : |
|
70 |
window.parent.frames['frmResourcesList'].Refresh() ; |
|
71 |
break ; |
|
72 |
case 101 : |
|
73 |
alert( 'Folder already exists' ) ; |
|
74 |
break ; |
|
75 |
case 102 : |
|
76 |
alert( 'Invalid folder name' ) ; |
|
77 |
break ; |
|
78 |
case 103 : |
|
79 |
alert( 'You have no permissions to create the folder' ) ; |
|
80 |
break ; |
|
81 |
case 110 : |
|
82 |
alert( 'Unknown error creating folder' ) ; |
|
83 |
break ; |
|
84 |
default : |
|
85 |
alert( 'Error creating folder. Error number: ' + iErrorNumber ) ; |
|
86 |
break ; |
|
87 |
} |
|
88 |
*/ |
|
89 |
} |
|
90 |
|
|
91 |
window.onload = function() |
|
92 |
{ |
|
93 |
window.top.IsLoadedCreateFolder = true ; |
|
94 |
} |
|
95 |
</script> |
|
96 |
</head> |
|
97 |
<body> |
|
98 |
<table class="fullHeight" cellSpacing="0" cellPadding="0" width="100%" border="0"> |
|
99 |
<tr> |
|
100 |
<td> |
|
101 |
<button type="button" style="WIDTH: 100%" onclick="CreateFolder();"> |
|
102 |
<table cellSpacing="0" cellPadding="0" border="0"> |
|
103 |
<tr> |
|
104 |
<td><img height="16" alt="" src="images/Folder.gif" width="16"></td> |
|
105 |
<td> </td> |
|
106 |
<td nowrap>Create New Folder</td> |
|
107 |
</tr> |
|
108 |
</table> |
|
109 |
</button> |
|
110 |
</td> |
|
111 |
</tr> |
|
112 |
</table> |
|
113 |
</body> |
|
114 |
</html> |
|
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
|
2 |
<!-- |
|
3 |
* FCKeditor - The text editor for Internet - http://www.fckeditor.net |
|
4 |
* Copyright (C) 2003-2010 Frederico Caldeira Knabben |
|
5 |
* |
|
6 |
* == BEGIN LICENSE == |
|
7 |
* |
|
8 |
* Licensed under the terms of any of the following licenses at your |
|
9 |
* choice: |
|
10 |
* |
|
11 |
* - GNU General Public License Version 2 or later (the "GPL") |
|
12 |
* http://www.gnu.org/licenses/gpl.html |
|
13 |
* |
|
14 |
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL") |
|
15 |
* http://www.gnu.org/licenses/lgpl.html |
|
16 |
* |
|
17 |
* - Mozilla Public License Version 1.1 or later (the "MPL") |
|
18 |
* http://www.mozilla.org/MPL/MPL-1.1.html |
|
19 |
* |
|
20 |
* == END LICENSE == |
|
21 |
* |
|
22 |
* Page used to create new folders in the current folder. |
|
23 |
--> |
|
24 |
<html> |
|
25 |
<head> |
|
26 |
<title>Create Folder</title> |
|
27 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
|
28 |
<link href="browser.css" type="text/css" rel="stylesheet"> |
|
29 |
<script type="text/javascript" src="js/common.js"></script> |
|
30 |
<script type="text/javascript"> |
|
31 |
|
|
32 |
function SetCurrentFolder( resourceType, folderPath ) |
|
33 |
{ |
|
34 |
oConnector.ResourceType = resourceType ; |
|
35 |
oConnector.CurrentFolder = folderPath ; |
|
36 |
} |
|
37 |
|
|
38 |
function CreateFolder() |
|
39 |
{ |
|
40 |
var sFolderName ; |
|
41 |
|
|
42 |
while ( true ) |
|
43 |
{ |
|
44 |
sFolderName = prompt( 'Type the name of the new folder:', '' ) ; |
|
45 |
|
|
46 |
if ( sFolderName == null ) |
|
47 |
return ; |
|
48 |
else if ( sFolderName.length == 0 ) |
|
49 |
alert( 'Please type the folder name' ) ; |
|
50 |
else |
|
51 |
break ; |
|
52 |
} |
|
53 |
|
|
54 |
oConnector.SendCommand( 'CreateFolder', 'NewFolderName=' + encodeURIComponent( sFolderName) , CreateFolderCallBack ) ; |
|
55 |
} |
|
56 |
|
|
57 |
function CreateFolderCallBack( fckXml ) |
|
58 |
{ |
|
59 |
if ( oConnector.CheckError( fckXml ) == 0 ) |
|
60 |
window.parent.frames['frmResourcesList'].Refresh() ; |
|
61 |
|
|
62 |
/* |
|
63 |
// Get the current folder path. |
|
64 |
var oNode = fckXml.SelectSingleNode( 'Connector/Error' ) ; |
|
65 |
var iErrorNumber = parseInt( oNode.attributes.getNamedItem('number').value ) ; |
|
66 |
|
|
67 |
switch ( iErrorNumber ) |
|
68 |
{ |
|
69 |
case 0 : |
|
70 |
window.parent.frames['frmResourcesList'].Refresh() ; |
|
71 |
break ; |
|
72 |
case 101 : |
|
73 |
alert( 'Folder already exists' ) ; |
|
74 |
break ; |
|
75 |
case 102 : |
|
76 |
alert( 'Invalid folder name' ) ; |
|
77 |
break ; |
|
78 |
case 103 : |
|
79 |
alert( 'You have no permissions to create the folder' ) ; |
|
80 |
break ; |
|
81 |
case 110 : |
|
82 |
alert( 'Unknown error creating folder' ) ; |
|
83 |
break ; |
|
84 |
default : |
|
85 |
alert( 'Error creating folder. Error number: ' + iErrorNumber ) ; |
|
86 |
break ; |
|
87 |
} |
|
88 |
*/ |
|
89 |
} |
|
90 |
|
|
91 |
window.onload = function() |
|
92 |
{ |
|
93 |
window.top.IsLoadedCreateFolder = true ; |
|
94 |
} |
|
95 |
</script> |
|
96 |
</head> |
|
97 |
<body> |
|
98 |
<table summary="" class="fullHeight" cellSpacing="0" cellPadding="0" width="100%" border="0"> |
|
99 |
<tr> |
|
100 |
<td> </td> |
|
101 |
</tr> |
|
102 |
</table> |
|
103 |
</body> |
|
104 |
|
|
105 |
</html> |
Also available in: Unified diff
more fixed issues with get_magic_quotes_gpc and FCKeditor
remove create and upload in FCKeditor Filemanager