svn: /web/php-rmtools/trunk/client/include/ Tools.php

From: Date: Fri, 29 Apr 2011 05:59:25 +0000
Subject: svn: /web/php-rmtools/trunk/client/include/ Tools.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-10922@lists.php.net to get a copy of this message
pajoye Fri, 29 Apr 2011 05:59:25 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=310646 Log: - typo for log auth and don't overwrite channels with logs Changed paths: U web/php-rmtools/trunk/client/include/Tools.php Modified: web/php-rmtools/trunk/client/include/Tools.php =================================================================== --- web/php-rmtools/trunk/client/include/Tools.php 2011-04-28 21:14:06 UTC (rev 310645) +++ web/php-rmtools/trunk/client/include/Tools.php 2011-04-29 05:59:25 UTC (rev 310646) @@ -153,7 +153,6 @@ $mh = \curl_multi_init(); $files = glob($src_dir . '/*.{zip,json}', GLOB_BRACE); - foreach ($files as $i => $local_file) { $ch = $curl[$i] = \curl_init(); @@ -172,14 +171,14 @@ } $files = glob($src_dir . '/logs/*.*'); - + $offset = $i + 1; foreach ($files as $i => $local_file) { - $ch = $curl[$i] = \curl_init(); + $ch = $curl[$offset + $i] = \curl_init(); $fp = fopen($local_file, "rb"); $local_file = basename($local_file); - $remoteurl = "ftps://${ftp_user}:${ftp_password}@${ftpserver}${ftp_path}/logs/${local_file}"; + $remoteurl = "ftps://${ftp_user}:${ftp_password}@${ftp_server}${ftp_path}/logs/${local_file}"; \curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); \curl_setopt($ch, CURLOPT_URL, $remoteurl);

« previous php.webmaster (#10922) next »