Yes, I have a similar situation. I am using FCK within PhpWcms ( a php-based CMS), which offers a newsletter feature. In order for newsletters to work properly...all image paths must be absolute....so my question is similar to that of the previous poster, soundsational. Any pointers to the making the proper modifications would be greatly appreciated, so that I can offer the use of FCK editor to client to make newsletters, with no hassles..... (using php)
--> see Bug #1204273 (There is an error in the PHP script that alows everyone to write everything, everywhere to your Webserver if not restrikted by webservers-access-rights!)
-Use for example this:------------------------------------------ function GetSecurePath($in_dir) { $in_dir=strtr($in_dir,'\\\'":<>!|','/_______'); if (substr($in_dir,-1) !='/') $in_dir = $in_dir . '/';
$out_Dir=array(); $out_Count=0;
$in_DirArr=explode('/', $in_dir);
foreach ($in_DirArr as $FolderName) { $FolderName=trim($FolderName);
if (($FolderName!='') && (($FolderName!='.'))) { if (substr($FolderName,0,2)=='..') { $out_Count--; if ($out_Count<0) $out_Count=0; } else { $out_Dir[$out_Count]=$FolderName; $out_Count++; } } }
return $out_dir; } ---------------------------------------------------------- in connector.php to check $GLOBALS["UserFilesPath"] and $sCurrentFolder .
Thanks for that but wasn't really waht i needed. Basically, i want to be able to open the file manager browser to browse contents that is located on another domain.
RE: Upload file path as an absolute path?
(using php)
Cheers,
John
New Zealand
RE: Upload file path as an absolute path?
RE: Upload file path as an absolute path?
(There is an error in the PHP script that alows everyone to write everything, everywhere to your Webserver if not restrikted by webservers-access-rights!)
-Use for example this:------------------------------------------
function GetSecurePath($in_dir)
{
$in_dir=strtr($in_dir,'\\\'":<>!|','/_______');
if (substr($in_dir,-1) !='/') $in_dir = $in_dir . '/';
$out_Dir=array();
$out_Count=0;
$in_DirArr=explode('/', $in_dir);
foreach ($in_DirArr as $FolderName)
{
$FolderName=trim($FolderName);
if (($FolderName!='') && (($FolderName!='.')))
{
if (substr($FolderName,0,2)=='..')
{
$out_Count--;
if ($out_Count<0) $out_Count=0;
}
else
{
$out_Dir[$out_Count]=$FolderName;
$out_Count++;
}
}
}
$out_dir='/';
for ($i=0; $i<$out_Count; $i++)
{
$out_dir .= $out_Dir[$i] .'/';
}
return $out_dir;
}
----------------------------------------------------------
in connector.php to check $GLOBALS["UserFilesPath"] and $sCurrentFolder .
------------
$GLOBALS["UserFilesPath"]=GetSecurePath($GLOBALS["UserFilesPath"]);
$sCurrentFolder =GetSecurePath($sCurrentFolder);
------------
regards Hmilchuser
RE: Upload file path as an absolute path?
Cheers,
S
RE: Upload file path as an absolute path?
http://www.main-domain.com/fckeditor/
http://www.managed-domain1.com/browser/
http://www.managed-domain2.com/browser/
http://www.managed-domain3.com/browser/
http://www.managed-domain4.com/browser/
http://www.managed-domain5.com/browser/
http://www.managed-domain5.com/
RE: Upload file path as an absolute path?
window.top.opener.SetUrl( fileUrl ) ;
saying: Permission Denied. That beceause you are cross domain scripting. Don't know how to solve it.
RE: Upload file path as an absolute path?
RE: Upload file path as an absolute path?
RE: Upload file path as an absolute path?
Please let me know if you've discovered a solutions. I need this for newsletter purposes too.
--Aaron
RE: Upload file path as an absolute path?
RE: File browser help needed
http://sourceforge.net/forum/message.php?msg_id=3261673
http://www.cactusclimbing.co.nz/scms/
http://www.cactusclimbing.co.nz/FCKedit ... /test.html