aboutsummaryrefslogtreecommitdiffstats
path: root/admin/site_manager.php
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2008-11-23 17:23:57 +0000
committerpatdenice <patdenice@piwigo.org>2008-11-23 17:23:57 +0000
commitc74e2ab49ee08101b38b3904a49037fcd6f9403c (patch)
treeb1c5cdaa0af1f3e63ad4375bdef1d3e5576a1b86 /admin/site_manager.php
parent61d8bf79c169e601b480bf54fc393c453b8874a0 (diff)
- 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. git-svn-id: http://piwigo.org/svn/trunk@2902 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/site_manager.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/admin/site_manager.php b/admin/site_manager.php
index b965b26e8..ea7f060cd 100644
--- a/admin/site_manager.php
+++ b/admin/site_manager.php
@@ -44,8 +44,9 @@ function remote_output($url)
{
global $template, $page;
- if($lines = @file($url))
+ if (fetchRemote($url, $result))
{
+ $lines = explode("\r\n", $result);
// cleaning lines from HTML tags
foreach ($lines as $line)
{
@@ -112,8 +113,9 @@ SELECT COUNT(id) AS count
$clf_url = $url.'create_listing_file.php';
$clf_url.= '?action=test';
$clf_url.= '&version='.PHPWG_VERSION;
- if ( ($lines = @file($clf_url)) !== false)
+ if (fetchRemote($clf_url, $result))
{
+ $lines = explode("\r\n", $result);
$first_line = strip_tags($lines[0]);
if (!preg_match('/^PWG-INFO-2:/', $first_line))
{