Changeset 21288 for extensions/flickr2piwigo
- Timestamp:
- Mar 6, 2013, 5:45:15 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/flickr2piwigo/include/functions.inc.php
r17476 r21288 46 46 curl_setopt($ch, CURLOPT_HTTPHEADER, array("Accept-language: en")); 47 47 curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)'); 48 curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);49 curl_setopt($ch, CURLOPT_MAXREDIRS, 1);50 48 curl_setopt($ch, CURLOPT_TIMEOUT, 30); 49 if (!ini_get('safe_mode')) 50 { 51 curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); 52 curl_setopt($ch, CURLOPT_MAXREDIRS, 1); 53 } 51 54 if (strpos($src, 'https://') !== false) 52 55 {
Note: See TracChangeset
for help on using the changeset viewer.