Changeset 19832 for extensions/pbase2piwigo/include
- Timestamp:
- Jan 5, 2013, 11:28:38 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/pbase2piwigo/include/functions.inc.php
r17434 r19832 346 346 347 347 curl_setopt($ch, CURLOPT_URL, $src); 348 curl_setopt($ch, CURLOPT_HEADER, 0);348 curl_setopt($ch, CURLOPT_HEADER, false); 349 349 curl_setopt($ch, CURLOPT_HTTPHEADER, array("Accept-language: en")); 350 350 curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)'); … … 365 365 } 366 366 367 if (($out = curl_exec($ch)) === false) 367 $out = curl_exec($ch); 368 curl_close($ch); 369 370 if ($out === false) 368 371 { 369 372 return 'file_error'; 370 373 } 371 372 curl_close($ch); 373 374 if (!$return) 374 else if (!$return) 375 375 { 376 376 fclose($newf);
Note: See TracChangeset
for help on using the changeset viewer.