Ignore:
Timestamp:
Mar 17, 2010, 5:12:41 PM (14 years ago)
Author:
roby
Message:

Eliminati messaggi notice di php

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/client/modules.php

    r23 r29  
    213213        $_SESSION['newtema']="$tema";
    214214        }
    215 
    216 if (preg_match("/%/i",$_SESSION['newtema'])) $_SESSION['newtema']="default"; // xss
    217 if (isset($_SESSION['newtema'])) $tema=$_SESSION['newtema'];
    218 
     215if (isset($_SESSION['newtema'])) {
     216        $tema=$_SESSION['newtema'];
     217        if (preg_match("/%/i",$_SESSION['newtema'])) $_SESSION['newtema']="default"; // xss
     218}
    219219$PHP_SELF=$_SERVER['PHP_SELF'];
    220220$file=(isset($_GET['file'])) ? $_GET['file']:"index";
     
    223223$name=htmlentities($name);
    224224$file=htmlentities($file);
    225 $id_comune=intval($id_comune);
     225#$id_comune=intval($id_comune);
    226226
    227227$modpath = "modules/$name/$file.php";
Note: See TracChangeset for help on using the changeset viewer.