Ignore:
Timestamp:
Nov 28, 2010, 1:01:06 PM (13 years ago)
Author:
cljosse
Message:

[cl_conflit] save?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/cl_conflit/admin/admin_conflit.php

    r7880 r7905  
    9292
    9393        $path = CONFLIT_PATH;
    94           $plg_data = implode( '', file($path.'main.inc.php') );
    95           if ( preg_match("|Plugin Name: (.*)|", $plg_data, $val) )
    96           {
    97             $plugin['name'] = trim( $val[1] );
    98           }
    99           if (preg_match("|Version: (.*)|", $plg_data, $val))
    100           {
    101             $plugin['version'] = trim($val[1]);
    102           }
    103           if ( preg_match("|Plugin URI: (.*)|", $plg_data, $val) )
    104           {
    105             $plugin['uri'] = trim($val[1]);
    106           }
    107           if ($desc = load_language('description.txt', $path.'/', array('return' => true)))
    108           {
    109             $plugin['description'] = trim($desc);
    110           }
    111           elseif ( preg_match("|Description: (.*)|", $plg_data, $val) )
    112           {
    113             $plugin['description'] = trim($val[1]);
    114           }
    115           if ( preg_match("|Author: (.*)|", $plg_data, $val) )
    116           {
    117             $plugin['author'] = trim($val[1]);
    118           }
    119           if ( preg_match("|Author URI: (.*)|", $plg_data, $val) )
    120           {
    121             $plugin['author uri'] = trim($val[1]);
    122           }
    123           if (!empty($plugin['uri']) and strpos($plugin['uri'] , 'extension_view.php?eid='))
    124           {
    125             list( , $extension) = explode('extension_view.php?eid=', $plugin['uri']);
    126             if (is_numeric($extension)) $plugin['extension'] = $extension;
    127           }
    128           // IMPORTANT SECURITY !
    129           $plugin = array_map('htmlspecialchars', $plugin);
    13094
    131 $version = $plugin['version'] ;
    13295         $conflit_parametres = cl_conflit_Get_Options();
    13396
Note: See TracChangeset for help on using the changeset viewer.