diff options
| author | cassiopc <cassiopc@gmail.com> | 2015-11-13 12:48:07 +0000 |
|---|---|---|
| committer | cassiopc <cassiopc@gmail.com> | 2015-11-13 12:48:07 +0000 |
| commit | d4eb5ba1422574d1ec2c6d71dc8a8c2946769dac (patch) | |
| tree | 2180fac91ec63c7b06d5899d1487f284827ede82 /src/fextdata.php | |
| parent | 6ed4232421c788aec6c4a014ff8ab6068135d66e (diff) | |
| download | boca-d4eb5ba1422574d1ec2c6d71dc8a8c2946769dac.tar.gz boca-d4eb5ba1422574d1ec2c6d71dc8a8c2946769dac.zip | |
bug fix
Diffstat (limited to 'src/fextdata.php')
| -rw-r--r-- | src/fextdata.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/fextdata.php b/src/fextdata.php index 0e500ec..28d8257 100644 --- a/src/fextdata.php +++ b/src/fextdata.php @@ -24,7 +24,7 @@ function scoretransfer($putname, $localsite) { if(is_readable('/etc/boca.conf')) { $pif=parse_ini_file('/etc/boca.conf'); $bocaproxy = @trim($pif['proxy']); - if(substr($bocaproxy,0,6) != 'tcp://') + if($bocaproxy != "" && substr($bocaproxy,0,6) != 'tcp://') $bocaproxy = 'tcp://' . $bocaproxy; $bocaproxylogin = @trim($pif['proxylogin']); $bocaproxypass = @trim($pif['proxypassword']); @@ -76,8 +76,8 @@ function scoretransfer($putname, $localsite) { ); if($bocaproxy != "") $opts['http']['proxy'] = $bocaproxy; - if($bocapass != "") - $opts['http']['header'] .= "\r\nProxy-Authorization: Basic " . $bocapass; + if($bocaproxypass != "") + $opts['http']['header'] .= "\r\nProxy-Authorization: Basic " . $bocaproxypass; $context = stream_context_create($opts); @@ -131,8 +131,8 @@ function scoretransfer($putname, $localsite) { ); if($bocaproxy != "") $opts['http']['proxy'] = $bocaproxy; - if($bocapass != "") - $opts['http']['header'] .= "\r\nProxy-Authorization: Basic " . $bocapass; + if($bocaproxypass != "") + $opts['http']['header'] .= "\r\nProxy-Authorization: Basic " . $bocaproxypass; $context = stream_context_create($opts); $s = @file_get_contents($siteurl . $urldiv . "site/putfile.php", 0, $context); |