#18681100 : do not chmod for windows server

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7289 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
haneul 2010-02-06 16:01:33 +00:00
parent 256647c2d0
commit 4343e0592e

View file

@ -205,17 +205,21 @@
{
return new Object(-1, "msg_make_directory_failed");
}
if (function_exists('ftp_chmod')) {
if(!ftp_chmod($connection, 0755, $ftp_path))
{
return new Object(-1, "msg_permission_adjust_failed");
}
}
else
if(!stristr(PHP_OS, 'win'))
{
if(!ftp_site($connection, "CHMOD 755 ".$ftp_path))
if (function_exists('ftp_chmod')) {
if(!ftp_chmod($connection, 0755, $ftp_path))
{
return new Object(-1, "msg_permission_adjust_failed");
}
}
else
{
return new Object(-1, "msg_permission_adjust_failed");
if(!ftp_site($connection, "CHMOD 755 ".$ftp_path))
{
return new Object(-1, "msg_permission_adjust_failed");
}
}
}
}