1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
error_reporting(E_STRICT | E_WARNING);
if($_GET['pages']) :
if($_GET['pages'] == 'index') :
//http://localhost/?pages=index
echo 'home pages';
endif;
if($_GET['pages'] == 'autre') :
if($_GET['lol']) :
if($_GET['lol'] == 'hello-world') :
echo 'http://localhost/?pages=autre&lol=hello-world';
endif;
else :
header();
echo 'http://localhost/?pages=autre';
endif;
endif;
else :
echo 'http://localhost/';
endif;
/***********Ta ajoute des function si tu veux************/
if(!function_exist('header')) :
public function header(){
return '<html><body>';
}
endif;
//etc..... |