merge -c2902 from trunk to branch 2.0.

- 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/branches/2.0@2903 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
patdenice
2008-11-23 17:25:24 +00:00
parent a1e6ae0f15
commit 60f2d18f1f
12 changed files with 38 additions and 23 deletions
+4 -2
View File
@@ -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))
{