Ignore:
Timestamp:
Nov 26, 2010, 11:26:26 AM (13 years ago)
Author:
cljosse
Message:

[Autosize][beta] bug in main.php ?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Autosize/main.inc.php

    r7873 r7886  
    22/*
    33Plugin Name: AutoSize
    4 Version: 1.3.8
     4Version: 1.0.0
    55Description: Ajuste l'affichage des photos en fonction de la hauteur de la fenetre de navigation
    66Plugin URI: http://piwigo.org/ext/extension_view.php?eid=448
     
    88Author URI:http://cljosse.free.fr
    99*/
    10 /*| Ajoute l' option validation de l'autotaille en fonction du statut */
    1110if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
    1211if (!defined('AUTOSIZE_PATH'))
    1312define(  'AUTOSIZE_PATH',   PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/' );
    14 include_once(AUTOSIZE_PATH.'autosize.inc.php');
    15 global $cl_version,$cl_plugin ;
    16 //===================================================================
     13//=================================================================================
    1714        $path = AUTOSIZE_PATH;
    1815          $plg_data = implode( '', file($path.'main.inc.php') );
    19                    
    2016          if ( preg_match("|Plugin Name: (.*)|", $plg_data, $val) )
    2117          {
     
    5147            if (is_numeric($extension)) $plugin['extension'] = $extension;
    5248          }
    53           // IMPORTANT SECURITY !
     49           
    5450          $plugin = array_map('htmlspecialchars', $plugin);
     51//==================================================================     
     52                  global $cl_version ;
    5553                  $cl_version = $plugin;
    56 //============================================================================
     54include_once(AUTOSIZE_PATH.'autosize.inc.php');
     55//==================================================================
    5756$autosize_controler = new autosize_controler();
    5857
     
    6766  array(&$autosize_controler, 'cl_autosize_script_3'),  EVENT_HANDLER_PRIORITY_NEUTRAL-1,  2  );
    6867
    69  //add_event_handler('loc_end_index',array(&$autosize_controler, 'cl_autosize_script_3'),  EVENT_HANDLER_PRIORITY_NEUTRAL );
    70  
    71 //---- Categorie --gmapsMarkup.packed.js-
    72 // if (k[c]) { p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]) } }
    73 //    p = p.replace(new RegExp("\\$", "ig"), "jQuery"); return p }
    7468
    7569 
Note: See TracChangeset for help on using the changeset viewer.