mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
#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:
parent
256647c2d0
commit
4343e0592e
1 changed files with 13 additions and 9 deletions
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue