Ignore:
Timestamp:
May 24, 2009, 9:33:51 AM (11 years ago)
Author:
vdigital
Message:

+ 2.0.d (Called lumenation bypass)some url were generated in https

Location:
extensions/charlies_content
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/charlies_content/charlies.inc.php

    r3318 r3341  
    2323  $path = $picture['element_path'];
    2424  $url = $picture['element_url'];
    25   if ( substr($url,0,4)!='http' and substr($url,0,1)!='/' )
     25  if ( !url_is_remote($url) )
    2626  {
    2727    set_make_full_url();
    28     $url = get_element_url( $picture );;
     28    $url = get_element_url( $picture );
    2929    unset_make_full_url();
    3030  }
    31 
     31        // If needed NO_https can easily be set in your config_local thru LocalFiles Editor
     32  if (isset($conf['NO_https']) and $conf['NO_https'] and strncasecmp($url, 'https://', 8) == 0 )
     33          $url = 'http://' . substr($url, 8);
     34               
    3235        if (!isset($conf['video_default_width']))       $conf['video_default_width'] = $charlie['video_default_width'];
    3336        if (!isset($conf['video_default_height']))      $conf['video_default_height'] = $charlie['video_default_height'];
  • extensions/charlies_content/main.inc.php

    r3320 r3341  
    11<?php /*
    22Plugin Name: Charlies content
    3 Version: 2.0.c
     3Version: 2.0.d
    44Description: Charlies content is a global solution for none picture files.
    55Plugin URI: http://fr.piwigo.org/ext/extension_view.php?eid=119
     
    2121
    2222/** History ***************
     23  2009-05-24 2.0.d (Called lumenation bypass)
     24                   some url were generated with https://
    2325  2009-04-13 2.0.c
    2426                   Flipflip proposal to exclude GETID3 for some extends
     
    5557define('CHARLIES_DIR' , basename(dirname(__FILE__)));
    5658define('CHARLIES_PATH' , PHPWG_PLUGINS_PATH . CHARLIES_DIR . '/');
    57 define('CHARLIES_VER' , '2.0.c');
     59define('CHARLIES_VER' , '2.0.d');
    5860$x = @file_get_contents( $conf['local_data_dir'].'/plugins/'.basename(dirname(__FILE__)).'.dat');
    5961if ($x!==false) $charlie = unserialize($x);
Note: See TracChangeset for help on using the changeset viewer.