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/cl_conflit_admin.php

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