Changeset 4125


Ignore:
Timestamp:
Oct 26, 2009, 11:46:57 PM (11 years ago)
Author:
vdigital
Message:

[PiwigoPress] = 1.04 =

  • Alternate pwg_get_contents (file_get_contents, fsockopen, ...)
  • cURL is coming soon
Location:
extensions/piwigopress
Files:
1 added
2 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • extensions/piwigopress/PiwigoPress_code.php

    r4101 r4125  
    11<?php
    2 if (defined('PHPWG_ROOT_PATH')) return; /* Avoid Automatic install under Piwigo */
    3 if (!defined('PWGP_NAME')) return; /* Avoid Direct call */
     2if (defined('PHPWG_ROOT_PATH')) return; /* Avoid direct usage under Piwigo */
     3if (!defined('PWGP_NAME')) return; /* Avoid unpredicted access */
    44
    55global $wpdb; /* Need for recent thumbnail access */
     
    3939echo $before_widget;
    4040echo $title;
     41if (!function_exists('pwg_get_contents')) include 'PiwigoPress_get.php';
    4142
    4243if ($thumbnail == 'true') {
    4344        // Make the Piwigo link
    44         $response = file_get_contents( $piwigo_url
     45        $response = pwg_get_contents( $piwigo_url
    4546                        . 'ws.php?method=pwg.categories.getImages&format=php'
    4647                        . $options . '&recursive=true&order=random&f_with_thumbnail=true');
     
    5859if ($mbcategories == 'true') {
    5960        // Make the Piwigo category list
    60         $response = file_get_contents( $piwigo_url
     61        $response = pwg_get_contents( $piwigo_url
    6162                        . 'ws.php?method=pwg.categories.getList&format=php&public=true');
    6263        $cats = unserialize($response);
  • extensions/piwigopress/PiwigoPress_options.php

    r4101 r4125  
    11<?php
    2 if (defined('PHPWG_ROOT_PATH')) return; /* Avoid Automatic install under Piwigo */
    3 if (!defined('PWGP_NAME')) return; /* Avoid Direct call */
     2if (defined('PHPWG_ROOT_PATH')) return; /* Avoid direct usage under Piwigo */
     3if (!defined('PWGP_NAME')) return; /* Avoid unpredicted access */
    44
    55        // Defaults
  • extensions/piwigopress/piwigopress.php

    r4109 r4125  
    44Plugin URI: http://piwigo.org/ext/extension_view.php?eid=316
    55Description: PiwigoPress is a WordPress 2.8 widget, it links a public picture in your Piwigo gallery (<a href="http://piwigo.org/">Piwigo</a>). In other words, it's a WordPress Sidebar Widget with some available public pictures in your Piwigo gallery as a prereq.
    6 Version: 1.03
     6Version: 1.04
    77Author: vpiwigo ( for The Piwigo Team )
    88Author URI: http://www.vdigital.org/sharing/
  • extensions/piwigopress/readme.txt

    r4109 r4125  
    7373== Changelog ==
    7474
     75= 1.04 =
     76* Alternate pwg_get_contents (file_get_contents, fsockopen, ...)
     77* cURL is coming
     78
    7579= 1.03 =
    7680* Project rename: Directory name changed for WordPress constraints
Note: See TracChangeset for help on using the changeset viewer.