1 |
unnilennium |
1.1 |
--- smeserver-phpwebftp-4.0/root/home/httpd/html/webftp/include/ftp.class.php.ftppatch 2006-11-28 22:01:00.000000000 +0100 |
2 |
|
|
+++ smeserver-phpwebftp-4.0/root/home/httpd/html/webftp/include/ftp.class.php 2013-11-05 00:30:11.000000000 +0100 |
3 |
|
|
@@ -22,7 +22,7 @@ |
4 |
|
|
/** Type of FTP server (UNIX, Windows, ...) */ |
5 |
|
|
var $systype = ""; |
6 |
|
|
/** Binary (1) or ASCII (0) mode */ |
7 |
|
|
- var $mode = 1; |
8 |
|
|
+ var $mode = FTP_BINARY; |
9 |
|
|
/** Logon indicator */ |
10 |
|
|
var $loggedOn = false; |
11 |
|
|
/** resume broken downloads */ |
12 |
|
|
@@ -64,7 +64,9 @@ |
13 |
|
|
} |
14 |
|
|
|
15 |
|
|
/** Set transfermode */ |
16 |
|
|
- function setMode($mode=0) { |
17 |
|
|
+ function setMode($mode=FTP_BINARY) { |
18 |
unnilennium |
1.2 |
+ # if ($mode==0){$mode=FTP_ASCII;} |
19 |
|
|
+ # else if ($mode==1) {$mode=FTP_BINARY;} |
20 |
unnilennium |
1.1 |
$this->mode = $mode; |
21 |
|
|
return; |
22 |
|
|
} |