[ Index ] |
|
Code source de SPIP 1.8.3 |
1 <?php 2 3 // Appel spip 4 if (!function_exists('find_in_path')) { 5 define('_SPIP_PAGE',1); # ne pas mourir si on passe le $fond 6 include ('ecrire/inc_version.php3'); 7 } 8 // Reglage du $fond 9 if (isset($contexte_inclus['fond'])) 10 $fond = $contexte_inclus['fond']; 11 else if (isset($_GET["fond"])) 12 $fond = $_GET["fond"]; 13 else 14 $fond = '404'; 15 16 // Reglage du $delais 17 // par defaut : la valeur existante (inclusion) ou sinon SPIP fera son reglage 18 if (isset($contexte_inclus['delais'])) 19 $delais = $contexte_inclus['delais']; 20 21 // Securite 22 if (strstr($fond, '/') 23 OR preg_match(',^formulaire_,i', $fond)) { 24 die ("Faut pas se gener"); 25 } 26 if (!find_in_path("$fond.html")) { 27 spip_log("page.php3: find_in_path ne trouve pas le squelette $fond"); 28 $fond = '404'; 29 } 30 include ("inc-public.php3"); 31 32 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Thu Feb 22 22:27:47 2007 | par Balluche grâce à PHPXref 0.7 |