Changeset 5287 in spip-zone


Ignore:
Timestamp:
Sep 12, 2006, 2:53:09 PM (15 years ago)
Author:
franck.ducas@…
Message:

Petits reglages. Fonctionnel.

Location:
_plugins_/habillages
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/habillages/exec/config_habillages.php

    r5278 r5287  
    579579                                                copy ("img_pack_backup//icones/$fichier_three","img_pack/icones/$fichier_three");
    580580                                }
    581                 }
    582         }
     581                        }
     582                       
     583                        unlink ("img_pack/theme.xml");
     584                }
    583585       
    584586        echo "<a name='access-c' href='#access-c' accesskey='c'></a><div class='cadre-r'><div style='position: relative;'><div class='cadre-titre' style='margin: 0px;'>";
  • _plugins_/habillages/habillages.php

    r5278 r5287  
    1515        global $exec;
    1616       
     17        if (file_exists("img_pack/theme.xml")) {
     18       
    1719        $theme_file = "img_pack/theme.xml";
    18        
    19         if (fopen($theme_file, 'r') == TRUE) {
    2020        $plugin_directory = _DIR_PLUGIN_HABILLAGES;
    2121        $open_theme_file = fopen($theme_file, 'r');
     
    2323        $read_theme_file = fread ($open_theme_file, $theme_file_size);
    2424        $search_theme_name = eregi("<prefixe>(.*)</prefixe>", $read_theme_file, $theme_name);
    25         $flux .= '<link rel="stylesheet" href="'.$plugin_directory.'/prive/themes/'.$theme_name[1].'/img_pack/style.css" />'."\n";
     25        $flux .= '<link rel="stylesheet" href="'.$plugin_directory.'/prive/themes/'.$theme_name[1].'/img_pack/style.css" type="text/css" />'."\n";
     26        $flux .= '<meta http-equiv="Pragma" content="no-cache">'."\n";
     27        $flux .= '<meta http-equiv="expires" content="0">'."\n";
     28        return $flux;   
     29        }
     30        else {
     31                $flux .= '<meta http-equiv="Pragma" content="no-cache">'."\n";
     32                $flux .= '<meta http-equiv="expires" content="0">'."\n";
     33                return $flux;
    2634        }
    2735       
    28         return $flux;
    2936}
    3037?>
Note: See TracChangeset for help on using the changeset viewer.