Changeset 4850


Ignore:
Timestamp:
02/08/10 12:27:55 (10 years ago)
Author:
vdigital
Message:

2.0.f (The reset version)

New: includes Reset ALL Charlies' configuration in second tab
New: translation system (Thanks to ddtddt).
minor language/plugin corrections.

Location:
extensions/charlies_content
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/charlies_content/charlies_config.tpl

    r4223 r4850  
    292292        </ul> 
    293293        </div> 
    294 <input type="submit" value="{'Save Charlies\' configuration'|@translate}" name="submit" class="submit"/> 
     294<input type="submit" value="{'Save Charlies\' configuration'|@translate}" name="submit" class="submit"/><br /> 
     295<input type="submit" value="{'Reset ALL Charlies\' configuration'|@translate}" name="reset" class="submit" onclick="return confirm('{'Reset ALL Confirmation'|@translate|@escape:javascript}');"/> 
    295296        <p class="bot">[ {'FYI: all these options might be used or NOT by the inbound player (template).'|@translate} ]<br /> 
    296297        [ {'Note: These options are available with the Maxi FLV Player. More details on all theses options on:'|@translate}  
  • extensions/charlies_content/main.inc.php

    r3974 r4850  
    11<?php /* 
    22Plugin Name: Charlies content 
    3 Version: 2.0.e 
     3Version: 2.0.f 
    44Description: Charlies content is a global solution for none picture files. 
    5 Plugin URI: http://fr.piwigo.org/ext/extension_view.php?eid=119 
    6 Author: VDigital, rvelices (PhpWebGallery team) 
    7 Author URI: http://www.phpwebgallery.net 
     5Plugin URI: http://piwigo.org/ext/extension_view.php?eid=119 
     6Author: VDigital, rvelices (Piwigo team) 
     7Author URI: http://piwigo.org/ 
    88*/ 
    99/* Synopsis 
     
    1616 
    1717/** History *************** 
     18  2010-02-08 2.0.f (The reset version) 
     19                                                 includes Reset ALL Charlies' configuration in second tab 
     20                                                 translation system (Thanks to ddtddt). 
     21                                                 minor language/plugin corrections. 
    1822  2009-05-24 2.0.e (Called ngoc version) 
    1923                   buffermessage correction for flv 
     
    5660define('CHARLIES_DIR' , basename(dirname(__FILE__))); 
    5761define('CHARLIES_PATH' , PHPWG_PLUGINS_PATH . CHARLIES_DIR . '/'); 
    58 define('CHARLIES_VER' , '2.0.e'); 
     62define('CHARLIES_VER' , '2.0.f'); 
    5963$x = @file_get_contents( $conf['local_data_dir'].'/plugins/'.basename(dirname(__FILE__)).'.dat'); 
    6064if ($x!==false) $charlie = unserialize($x); 
     65// Un code review s'impose grave !!! 
     66if ( isset($_POST['reset']) and defined('IN_ADMIN') 
     67    and isset($_GET['section']) and $_GET['section']=='charlies_content/charlies_config.php' ) { 
     68                $charlie = array(); 
     69                if (!isset($infos)) $infos = array(); 
     70                array_push($infos, l10n('Your configuration configuration has been reset.')); 
     71} 
    6172if (!isset($charlie['version']) or  $charlie['version'] != CHARLIES_VER)  
    6273{ 
Note: See TracChangeset for help on using the changeset viewer.