Changeset 50109 in spip-zone for _squelettes_/avenir_du_littoral


Ignore:
Timestamp:
Jul 30, 2011, 12:21:31 PM (8 years ago)
Author:
jleyaoua@…
Message:

ereg() deprecated with php 5.3. Change with preg_match

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _squelettes_/avenir_du_littoral/header.inc.html

    r49769 r50109  
    77        <script type="text/javascript" src="#CHEMIN{ypSlideOutMenus.js}"></script>
    88        <?php
    9         if (ereg("MSIE 6", $_SERVER["HTTP_USER_AGENT"])  || ereg("MSIE 7", $_SERVER["HTTP_USER_AGENT"])) {
     9        if (preg_match("#MSIE 6#", $_SERVER["HTTP_USER_AGENT"])  || preg_match("#MSIE 7#", $_SERVER["HTTP_USER_AGENT"])) {
    1010            echo('<link rel="stylesheet" type="text/css" href="#CHEMIN{css/ms-idea-of-css.css}" />');
    1111            echo('<script src="#CHEMIN{ie7-standard.js}" type="text/javascript"></script>');
Note: See TracChangeset for help on using the changeset viewer.