Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question<?php $pageOK = array('site' => 'site.php', 'members' => 'members.php', 'admin' => 'admin.php', 'view_site' => "$builsite" , 'ticketadm' => 'reponseadm.php', 'admin_cadeau'=>'admin_parrain_categories.php', 'admin_cadeau_add'=>'admin_cadeau_add.php', 'admin_race_add'=>'admin_race_add.php', 'admin_dog_categories'=>'admin_dog_categories.php', 'alldog_display'=>'alldog_cat.php', 'my_shell'=>'my_shell.php', 'v_vente_de_chien'=>'view_vente_chien.php', 'support_clientel' =>'./cgi-bin/ttx/ttx.cgi'); // On teste que le parametre d'url existe et qu'il est bien autorise // ----------------------------------------------------------------- if ( (isset($_GET['page'])) && (isset($pageOK[$_GET['page']])) ) { if(!eregi("http://",'$pageOK')){ //si la page contient http include($pageOK[$_GET['page']]); } }else { include("chien1.php"); //si erreur retour a cette page } ?>
[php] <?php if ($_GET['lang']=='fr') { // si la langue est 'fr' (français) on inclut le fichier fr-lang.php include('lang/fr-lang.php'); $lang='fr'; $flag=""; } else if ($_GET['lang']=='en') { // si la langue est 'en' (anglais) on inclut le fichier en-lang.php include('lang/en-lang.php'); $lang='en'; $flag=""; } else if ($_GET['lang']=='nl') { // si la langue est 'en' (anglais) on inclut le fichier en-lang.php include('lang/nl-lang.php'); $lang='nl'; $flag=""; } else {// si aucune langue n'est déclarée on inclut le fichier fr-lang.php par défaut include('lang/fr-lang.php'); $lang='fr'; $flag=""; } ?>/php