Changeset 2881 for branches/2.0/admin/include/plugins.class.php
- Timestamp:
- Nov 15, 2008, 10:11:58 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/admin/include/plugins.class.php
r2701 r2881 269 269 $versions_to_check = array(); 270 270 $url = PEM_URL . '/api/get_version_list.php?category_id=12&format=php'; 271 if ($source = @file_get_contents($url) 272 and $pem_versions = @unserialize($source)) 271 if (fetchRemote($url, $result) and $pem_versions = @unserialize($result)) 273 272 { 274 273 if (!preg_match('/^\d+\.\d+\.\d+/', $version)) … … 309 308 $url .= implode(',', $plugins_to_check); 310 309 } 311 if ( $source = @file_get_contents($url))312 { 313 $pem_plugins = @unserialize($ source);310 if (fetchRemote($url, $result)) 311 { 312 $pem_plugins = @unserialize($result); 314 313 if (!is_array($pem_plugins)) 315 314 { … … 322 321 return true; 323 322 } 323 return false; 324 324 } 325 325 … … 358 358 $url = PEM_URL . '/download.php?rid=' . $revision; 359 359 $url .= '&origin=piwigo_' . $action; 360 if (@copy($url, $archive)) 361 { 360 361 if ($handle = @fopen($archive, 'wb') and fetchRemote($url, $handle)) 362 { 363 fclose($handle); 362 364 include(PHPWG_ROOT_PATH.'admin/include/pclzip.lib.php'); 363 365 $zip = new PclZip($archive);
Note: See TracChangeset
for help on using the changeset viewer.