1 |
diff -up smeserver-phpwebftp-4.0/root/home/httpd/html/webftp/index.php.patch1 smeserver-phpwebftp-4.0/root/home/httpd/html/webftp/index.php |
2 |
--- smeserver-phpwebftp-4.0/root/home/httpd/html/webftp/index.php.patch1 2006-11-28 16:17:00.000000000 -0500 |
3 |
+++ smeserver-phpwebftp-4.0/root/home/httpd/html/webftp/index.php 2013-11-24 05:02:28.000000000 -0500 |
4 |
@@ -414,7 +414,7 @@ XML; |
5 |
<tr> |
6 |
<td class="menu"> |
7 |
<? |
8 |
- $newMode=($ftp->mode==1)?0:1; |
9 |
+ $newMode=($ftp->mode==FTP_BINARY)?FTP_ASCII:FTP_BINARY; |
10 |
|
11 |
if($ftp->loggedOn) |
12 |
{ |
13 |
@@ -648,7 +648,7 @@ XML; |
14 |
<table border="0" cellpadding="0" cellspacing="0" width="100%"> |
15 |
<tr> |
16 |
<? |
17 |
- $newMode=($ftp->mode==1)?0:1; |
18 |
+ $newMode=($ftp->mode==FTP_BINARY)?FTP_ASCII:FTP_BINARY; |
19 |
if($ftp->loggedOn) |
20 |
{ |
21 |
?> |
22 |
@@ -946,7 +946,7 @@ XML; |
23 |
<P> |
24 |
<?=($ftp->loggedOn)?"$lblConnectedTo $server:$port ($ftp->systype)":$lblNotConnected;?> |
25 |
<P> |
26 |
- <?=$lblTransferMode;?> :<?=$ftp->mode==1?$lblBinaryMode:$lblASCIIMode;?> |
27 |
+ <?=$lblTransferMode;?> :<?=$ftp->mode==FTP_BINARY?$lblBinaryMode:$lblASCIIMode;?> |
28 |
<br/><br/> |
29 |
</div> |
30 |
</td> |