<?php
if(isset($_POST['affichageAJAX']) && $_POST['affichageAJAX']!=''){
	switch($_POST['affichageAJAX']){
		case 'joueur':
			include('joueur.php');
		  break;
		default:
			echo "Qu'est-ce que tu essaye de faire?";
		  break;
	}
exit;
}
include ('logue.php'); 
include ('entete2.php');
include ('entete.php');
if(isset($_GET['action'])){
	$action=$_GET['action'];
}else{
	$action='accueil';
}
switch($action){
	case 'accueil':
		include('accueil.php');
	  break;
	case 'statistique':
		include('statistique.php');
	  break;
	case 'push':
		include('push.php');
	  break;
	case 'rechercher':
		include('rechercher.php');
	  break;
	case 'avertissement':
		include('avertissement.php');
	  break;  
	case 'rechercher_connection':
		include('rechercher_connection.php');
	  break;
	case 'rechercher_msg':
		include('rechercher_msg.php');
	  break;
	case 'ban':
		include('ban.php');
	  break;
	case 'change_pass':
		include('change_pass.php');
	  break;
	case 'guerre':
		include('guerre.php');
	  break;
	case 'guerre_del':
		include('guerre_del.php');
	  break;
	case 'guerre_ajout':
		include('guerre_ajout.php');
	  break;
	case 'multi_comptes':
		include('multi_comptes.php');
	  break;
	case 'multi_autoriser':
		include('multi_autoriser.php');
	  break;
	case 'msg_apercu':
		include('msg_apercu.php');
	  break;
	case 'mp_del_auto':
		include('mp_del_auto.php');
	  break;
	case 'log_modo':
		include('log_modo.php');
	  break;
	case 'contacter':
		include('mp_contact.php');
	  break;
	case 'joueur':
		include('joueur.php');
	  break;
	case 'reconstr_uni':
		include('reconstruction_univers.php');
	  break;
	case 'edit_config_push':
		include('edit_conf_push.php');
	  break;
	default :
		include('accueil.php');
	  break;
}
echo "</div></td></tr></table></body></html>";
?>


