<?php
	require_once ('../common/scripts/templatize.inc.php');
	require_once ('../common/scripts/connect.inc.php');
	require_once ('../common/scripts/bdd.inc.php');
	require_once ('../common/scripts/emblemize.inc.php');

/***********************/
/*demarre la session et*/
/*trouve un nombre     */
/*aleatoire            */
/***********************/

	session_start();
	$login = $_SESSION['login'];
	$pass = $_SESSION['password'];
	
/**************/
/*affichage   */
/**************/
	
	$arrayVars = array(
		'LOGIN' => $login,
		'GUILDNAME' => bdd_simpleQuery($dbconn,"SELECT user_guild_name FROM users WHERE user_login='$login'"),
		'GUILDCOLOR' => bdd_simpleQuery($dbconn,"SELECT user_guild_color FROM users WHERE user_login='$login'"),
		'GUILDINFOS' => bdd_simpleQuery($dbconn,"SELECT user_guild_infos FROM users WHERE user_login='$login'"),
		'MAIL' => bdd_simpleQuery($dbconn,"SELECT user_mail FROM users WHERE user_login='$login'"),
		'FILEEMBLEM' => bdd_simpleQuery($dbconn,"SELECT user_guild_emblem FROM users WHERE user_login='$login'"),
		'LINK_COMPTEFINI' => 'compteFini.php',
		'EMBLEMES_PREEXISTANTS' => emblemize('../emblemes_preexistants')
		);
	
	//echo $arrayVars['LOGIN'].';'.$arrayVars['GUILDNAME'].';'.$arrayVars['GUILDCOLOR'].';'.$arrayVars['GUILDINFOS'].';'.$arrayVars['MAIL'];
	
	templatizeWithVars('../common/header2.tpl','../common/menuInterieur.tpl', 'compte.tpl','../common/footer.tpl', $arrayVars);
?>
