@@ -967,7 +967,8 @@ function downloadPlugin($url, $filename, $frame = 0)
967967 curl_setopt ($ ch , CURLOPT_SSL_VERIFYHOST , 2 );
968968 curl_setopt ($ ch , CURLOPT_FILE , $ f );
969969
970- if (preg_match ('/market/\?op=download/ ' , $ url )) {
970+ if (preg_match ('/\?op=download/ ' , $ url )) {
971+ DebMes ("Setting CONNECT authorization credentials " , 'market ' );
971972 @include_once (DIR_MODULES . 'connect/connect.class.php ' );
972973 if (class_exists ('connect ' )) {
973974 $ connect = new connect ();
@@ -977,14 +978,17 @@ function downloadPlugin($url, $filename, $frame = 0)
977978 if ($ connect_username != '' && $ connect_password != '' ) {
978979 curl_setopt ($ ch , CURLOPT_HTTPAUTH , CURLAUTH_BASIC );
979980 curl_setopt ($ ch , CURLOPT_USERPWD , $ connect_username . ": " . $ connect_password );
981+ DebMes ("Auth credentials set. " , 'market ' );
982+ } else {
983+ DebMes ("Auth credentials missing. " , 'market ' );
980984 }
981985 }
982986 }
983987 $ incoming = curl_exec ($ ch );
984988 curl_close ($ ch );
985989 @fclose ($ f );
986990
987- if (filesize ($ filename )> 0 ) {
991+ if (filesize ($ filename ) > 0 ) {
988992 if ($ frame ) {
989993 $ this ->echonow ("OK<br/> " , 'green ' );
990994 }
0 commit comments