Ignore:
Timestamp:
Nov 23, 2008, 6:23:57 PM (15 years ago)
Author:
patdenice
Message:
  • Add home and identification buttons after installation.
  • Use fetchRemote function for remote site actions.
  • Corrections in fetchRemote fnction.
  • Move PLUGIN_PICTURE_BEFORE in picture.tpl.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/site_manager.php

    r2530 r2902  
    4545  global $template, $page;
    4646
    47   if($lines = @file($url))
    48   {
     47  if (fetchRemote($url, $result))
     48  {
     49    $lines = explode("\r\n", $result);
    4950    // cleaning lines from HTML tags
    5051    foreach ($lines as $line)
     
    113114        $clf_url.= '?action=test';
    114115        $clf_url.= '&version='.PHPWG_VERSION;
    115         if ( ($lines = @file($clf_url)) !== false)
     116        if (fetchRemote($clf_url, $result))
    116117        {
     118          $lines = explode("\r\n", $result);
    117119          $first_line = strip_tags($lines[0]);
    118120          if (!preg_match('/^PWG-INFO-2:/', $first_line))
Note: See TracChangeset for help on using the changeset viewer.