Changeset 2880 for trunk/admin/intro.php


Ignore:
Timestamp:
Nov 15, 2008, 10:10:05 PM (15 years ago)
Author:
patdenice
Message:
  • Add fetchRemote function which allow to retrieve datas over HTTP protocol using cURL method, file_get_contents function or fsockopen method. This allow to retrieve datas or files even if allow_url_fopen is deactivated.
  • Use fetchRemote function in plugins manager and in latest version checking.
  • Add german translations for upgrade.lang.php.
  • Remove empty line at the end of pclzip.lib.php.
  • Change display of deactivated plugins after upgrade.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/intro.php

    r2529 r2880  
    4343if (isset($_GET['action']) and 'check_upgrade' == $_GET['action'])
    4444{
    45   if (!ini_get('allow_url_fopen'))
     45  if (!fetchRemote(PHPWG_URL.'/latest_version', $result))
    4646  {
    47     array_push(
    48       $page['errors'],
    49       l10n('Unable to check for upgrade since allow_url_fopen is disabled.')
    50       );
     47    array_push($page['errors'], l10n('Unable to check for upgrade.'));
    5148  }
    5249  else
    5350  {
    5451    $versions = array('current' => PHPWG_VERSION);
    55     $lines = @file(PHPWG_URL.'/latest_version');
     52    $lines = @explode("\r\n", $result);
    5653
    5754    // if the current version is a BSF (development branch) build, we check
Note: See TracChangeset for help on using the changeset viewer.