Changeset 7912 for extensions/Autosize/include
- Timestamp:
- Nov 28, 2010, 4:36:17 PM (13 years ago)
- Location:
- extensions/Autosize/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/include/affiche.php
r7899 r7912 1 1 <?php 2 3 2 4 3 5 $visible=(isset($visible))?$visible:false; 4 6 $img_width=isset($picture['current']['width'])?$picture['current']['width']:480; 5 7 $img_height=isset($picture['current']['height'])?$picture['current']['height']:320; 6 7 $version=isset($version)?$version:""; 8 $cl_plugin=isset($cl_plugin)?$cl_plugin:""; 8 $cl_version=isset($cl_version)?$cl_version:""; 9 9 $theme=$user['theme']; 10 10 $user_status = $user['status'] ; 11 11 12 12 $template->assign( 13 array( 14 ' version' => $version,13 array( 14 'cl_version' => $cl_version, 15 15 'cl_plugin' => $cl_plugin, 16 16 -
extensions/Autosize/include/constants.php
r6912 r7912 2 2 global $prefixeTable; 3 3 if (!defined('CL_AUTOSIZE_TABLE')) define('CL_AUTOSIZE_TABLE', $prefixeTable.'cl_autosize'); 4 $path = AUTOSIZE_PATH; 5 $plg_data = implode( '', file($path.'main.inc.php') ); 6 if ( preg_match("|Plugin Name: (.*)|", $plg_data, $val) ) 7 { 8 $conflit_plugin['name'] = trim( $val[1] ); 9 } 10 if (preg_match("|Version: (.*)|", $plg_data, $val)) 11 { 12 $conflit_plugin['version'] = trim($val[1]); 13 } 14 if ( preg_match("|Plugin URI: (.*)|", $plg_data, $val) ) 15 { 16 $conflit_plugin['uri'] = trim($val[1]); 17 } 18 if ($desc = load_language('description.txt', $path.'/', array('return' => true))) 19 { 20 $conflit_plugin['description'] = trim($desc); 21 } 22 elseif ( preg_match("|Description: (.*)|", $plg_data, $val) ) 23 { 24 $conflit_plugin['description'] = trim($val[1]); 25 } 26 if ( preg_match("|Author: (.*)|", $plg_data, $val) ) 27 { 28 $conflit_plugin['author'] = trim($val[1]); 29 } 30 if ( preg_match("|Author URI: (.*)|", $plg_data, $val) ) 31 { 32 $conflit_plugin['author uri'] = trim($val[1]); 33 } 34 if (!empty($conflit_plugin['uri']) and strpos($conflit_plugin['uri'] , 'extension_view.php?eid=')) 35 { 36 list( , $extension) = explode('extension_view.php?eid=', $conflit_plugin['uri']); 37 if (is_numeric($extension)) $conflit_plugin['extension'] = $extension; 38 } 39 // IMPORTANT SECURITY ! 40 $conflit_plugin = array_map('htmlspecialchars', $conflit_plugin); 41 42 global $cl_plugin, $cl_version; 43 $cl_version = $conflit_plugin['version'] ; 44 $cl_plugin = $conflit_plugin; 45 4 46 ?>
Note: See TracChangeset
for help on using the changeset viewer.