<?php

##############################################################################
# VG config
##############################################################################

$GAME_NAME = "KestuFoot";
# Database information
$DATABASE = array(# Host for the database
		  "host" => "188.165.40.84",
		  # Login for the database connection
		  "login" => "nerim",
		  # Password for the database connection
		  "password" => "sok3d",
		  # Name of the main database
		  "main_name" => "KESTUFOOT_Pronostics",
		  # Name of the session database
		  "session_name" => "KESTUFOOT_Pronostics");
		  
# Database information
$DATABASE_SLAVE = array(# Host for the database
		  "host" => "188.165.40.84",
		  # Login for the database connection
		  "login" => "nerim",
		  # Password for the database connection
		  "password" => "sok3d",
		  # Name of the main database
		  "main_name" => "KESTUFOOT_Pronostics",
		  # Name of the session database
		  "session_name" => "KESTUFOOT_Pronostics");

# Database information
$DATABASE_PLOG = array(# Host for the database
		  "host" => "188.165.40.84",
		  # Login for the database connection
		  "login" => "nerim",
		  # Password for the database connection
		  "password" => "sok3d",
		  # Name of the main database
		  "main_name" => "kestufoot_plog",
		  # Name of the session database
		  "session_name" => "kestufoot_plog");
		  
		  
# URL for server (don't forget the /)
# This URL corresponds to where the viralgames server is running
# Only the client will have access to it (using a username and
# password encoded in the require.php3 script)

########################
# constante pour différencier lycos & ktf
########################
$ORIGINE_KTF = 0;
$ORIGINE_LYCOS = 1;
$ORIGINE_M6 = 2;

if ($SERVER_NAME == "m6.kestufoot.com" or $SERVER_NAME == "kestufoot.m6.fr")
{
	$ORIGIN = $ORIGINE_M6;
	$SERVER_URL = "http://kestufoot.m6.fr/";
	$GAME_NAME = "KestuFoot M6";
	$PIC_COIN_GAUCHE="interieur_coin_gauche.gif";
	$BG_COLOR_FOND_1BIS = "#005F3F"; 
	# URL of registration page secured
	$REGISTRATION_PAGE = "http:/"."/www.m6.fr/m6web/common/services/profil/login.jhtml?part=viralgames&service=kestufoot&from=".$SERVER_URL."home.php3";
	$CHECK_LOGIN_PAGE = $SERVER_URL . "login_box.m6.php3";
}
elseif ($SERVER_NAME == "lycosfoot.lycos.fr")
{
	$ORIGIN = $ORIGINE_LYCOS;
	$SERVER_URL = "http://lycosfoot.lycos.fr/";
	$GAME_NAME = "KestuFoot LYCOS";
	# URL of registration page secured
	$REGISTRATION_PAGE = $SERVER_URL . "registration.php3";	
	$CHECK_LOGIN_PAGE = $SERVER_URL . "login_box.php3";
}
else
{
	$ORIGIN = $ORIGINE_KTF;
	$SERVER_URL = "http://www.kestufoot.com/";
	$GAME_NAME = "KestuFoot";
	$PIC_COIN_GAUCHE="interieur_coin_gauche.gif";
	$BG_COLOR_FOND_1BIS = "#005F3F"; 
	# URL of registration page secured
	$REGISTRATION_PAGE = $SERVER_URL . "registration.php3";	
	$CHECK_LOGIN_PAGE = $SERVER_URL . "login_box.php3";
}

$ORIGINE = $ORIGIN;

##########################################################
# login et password de securite pour la passerelle EA/KTF
##########################################################
# url de l'admin chez EA
# $ADMIN_EA_URL = "http://pronoEA.viralgames.com/Adm/";
$ADMIN_EA_URL = "http://www.jeudepronostic.com/Adm/";
$ADMIN_USER = "admin";
$ADMIN_PWD = "wIwwuIwbf";
##########################################################

##########################################################
# login et password de securite pour la passerelle PLOG/KTF
##########################################################
$PLOG_USER = "admin";
$PLOG_PWD = "wIwwuIwbf";
$PLOG_URL = "http://blog.kestufoot.com/";
$BLOG_SUMMARY_PAGE = $PLOG_URL."summary.php";
##########################################################

# racine du jeu
$GAME_DIR = "/var/www/htdocs/kestufoot_v5/";

$SYNCHRO_URL = "http://www.kestufoot.com:8880/";

# Images directory (don't forget the /)
# This directory should be different from $SERVER_URL since
# it will be directly accessed by the end-user browser.
# It should thus not be protected.
$IMAGES_DIR = $SERVER_URL."Images/";

# url de l'admin chez EA

$ARCHIVES_DIR = $GAME_DIR."Adm/exploitation/";

$SEPARATOR="/";

# repertoire des fichier partagés (bibliotheques)
$BIB = $GAME_DIR."Bib/";
$ADMIN = $GAME_DIR."Adm/";

###############################
# constantes pour viralMail
# où se trouve la bibliothèque viral mail
$BIB_VIRAL_MAIL="/var/www/htdocs/MailSystem/bib_mail.php3";

# où se trouve le répertoire de spool pour le mail
$VIRAL_MAIL_SPOOL="/var/www/htdocs/exploitation/MailSystem/mail_spool6/";
###############################
# Expiration time for sessions (in seconds)
$SESSION_EXPIRATION_TIME = 3600; 
$SESSION_EXPIRATION_TIME_PERCENT_LIMIT = 75;
$SESSION_WITH_COOKIE = true;


#décalage horaire
$JETLAG = 0;

# constantes pour la mise à jour des scores
$BET_NOT_SENT = 2;
$BET_SENT = 1;

# temps de pari par défault
$TEMPS_PARI = 60;

# URL where the game is installed
# This is the URL users have to go to in order to access
# the game
# Using a relative URL allows to be client-independent
# since the browser will automatically add the path to it
# Indeed, this URL is the starting point of every link that appears 
# on the pages.
$DYNAPI2_LOCATION = "dynAPI2/Core/js/dynapi.js";
$DYNAPI2_LIBPATH = "dynAPI2/Core/js/lib2.0/";

########################
# constante pour le cookie
$COOKIE_NAME="cokt312";
########################
$COOKIE_LANG="coktlg";



########################
# constante pour différencier lycos & ktf
########################
$ORIGINE_KTF = 'LOC';

$ORIGIN = $ORIGINE = $ORIGINE_KTF;
$GAME_NAME = "KestuFoot";
# URL of registration page secured
$REGISTRATION_PAGE = $SERVER_URL . "inscrivez-vous.php";	
$CHECK_LOGIN_PAGE = $SERVER_URL . "login_box.core.php3";


# constante pour l'affiliation des pages
$AFFILIATION_SERVER_PAGE = $SERVER_URL."affiliation_server.php3";
########################

$AFFICHE_PARIS_PAGE = $GAME_DIR."affiche_paris.php";
$AFFICHE_PARIS_CHOOSE_BET_PAGE = $GAME_DIR."affiche_paris_choose_bet.php3";

$AFFICHE_PARIS_BETS_PAGE = $GAME_DIR."affiche_paris_resultats.php3";
$AFFICHE_PARIS_MYBETS_PAGE = $GAME_DIR."affiche_paris_mybets.php3";

$CARNETADRESSE_PAGE = $SERVER_URL."carnet-adresse.php";

$FORM_HEADER = "form_header.inc";
$FORM_FOOTER = "form_footer.inc";

# temps max pour le déroulement d'un script d'admin
$TIME_LIMIT = 40000;

# the winners (bis)
$ALL_WINNERS_PAGE = $SERVER_URL . "gagnants.php";

# the postit
$POSTIT_PAGE = $SERVER_URL . "postit.php3";

# the postit
$POSTIT_UPDATE = $SERVER_URL . "postit_update.php3";

# the postit delete
$POSTIT_DELETE_ONE = $SERVER_URL . "postit_delete_one.php3";

# URL of cartons jaunes
$CARTONS_JAUNES_PAGE = $SERVER_URL . "mes-cartons.php";

# URL of black liste
$BLACK_LIST_PAGE = $SERVER_URL . "blacklist.php";

# URL of login page
$LOGIN_PAGE = $SERVER_URL . "accueil.php";

# URL of member home page
$MEMBER_PAGE = $SERVER_URL . "accueil-membre.php";

# URL of invitation page
$INVITATION_PAGE = $SERVER_URL . "invitation.php";

# URL of forgotten password
$FORGOTTEN_PAGE = $SERVER_URL . "mot-de-passe-oublie.php";

# URL of Team selection for rss
$CHOOSE_FAVTEAM_PAGE = $SERVER_URL . "equipes-foot.php";
$CHOOSE_MORETEAM_PAGE = $SERVER_URL . "autre-equipes-foot.php";

# URL of high scores page
$HIGH_PAGE = $SERVER_URL . "mes-classements.php";

# URL of guide section
$GUIDE_PAGE = $SERVER_URL . "regles-du-jeu.php";
$SHOP_PAGE = $SERVER_URL ."acheter-le-cadeau.php";

# URL of the chat page
$CHAT_PAGE = $SERVER_URL . "chat.php";

$CHAT_FORBIDDEN_PAGE = $SERVER_URL . "chat-interdit.php";

# URL of gifts page
$GIFTS_PAGE = $SERVER_URL . "boutique-cadeaux.php";

# URL of page partenaires
$PARTENAIRES_PAGE = $SERVER_URL . "partenaires.php";

#URL of ending registration
$CLOSING_REGISTRATION_PAGE = $SERVER_URL . "fin-inscription.php";

#URL of coreg registration
$COREG_REGISTRATION_PAGE = $SERVER_URL . "inscrivez-vous-2.php";

#URL of modify email
$INSCRIPTION_RELANCE = $SERVER_URL . "modifier-email.php";

# 
$RULES_PAGE = $SERVER_URL . "reglement.php";

# URL of closing connection
$DECONNECTION_PAGE = $SERVER_URL . "deconnexion.php";

# URL of tree page
$TREE_PAGE = $SERVER_URL . "fiche-joueur.php";

# URL of choosing a bet page
$CHOOSE_BET_PAGE = $SERVER_URL . "mes-pronostics.php";

# URL of the bet page
$BET_PAGE = $SERVER_URL . "pronostiquer.php";

# URL of all bets page
$MY_BETS_PAGE = $SERVER_URL . "mes-resultats.php";

# URL of the news
$NEWS_PAGE = $SERVER_URL . "actualites.php";

# URL of the news archive
$ALL_NEWS_PAGE = $SERVER_URL . "archives_news.php3";

# URL of the adding friends page
$ADD_FRIENDS_PAGE = $SERVER_URL . "mes-amis.php";

# URL of the unregister page
$UNREGISTER_PAGE = $SERVER_URL . "unregister.php3";

# URL of the replay page
$REPLAY_PAGE = $SERVER_URL . "remise-a-100-pts.php";

$KFGRATUITS_PAGE = $SERVER_URL. "kf-gratuits.php";

# chemin du fichier de stats
$FICH_STATS = $ARCHIVES_DIR."stats.inc";

$STATS_PAGE = $SERVER_URL . "actu_stats.php3";
$STATS_PAGE_MODULE = $SERVER_URL . "actu_stats_module.php";

# page des anciens high-scores
$OLD_SCORES = $SERVER_URL."oldScores.php3";

# page to register the address
$REGISTER_ADDRESS = $SERVER_URL . "register_address.php3";

# URL of the popup comments page
$CONFIRM_BET_POPUP = $SERVER_URL . "confirm_bet_popup.php3";

# URL of the forum page
$FORUM_PAGE = $SERVER_URL . "forums/index.php";

# URL of the user options page
$USER_OPTIONS_PAGE = $REGISTRATION_PAGE;

# URL Faire le plein de joker
$JOKER_ACHAT_POPUP = $SERVER_URL . "joker_achat_popup.php3";

$AJOUT_TOURNOI_PAGE = $SERVER_URL . "ajout_tournoi.php3";
$TOURNOI_SELECTION_MATCHS_PAGE = $SERVER_URL . "tournoi_selection_matchs.php3";
$TOURNOI_PAGE = $SERVER_URL . "tournoi.php3";

$AFFICHE_NIVEAUX_PAGE = $SERVER_URL . "affiche_niveau.php3";

$CONTACT_PAGE = $SERVER_URL . "contact.php";

//URL DES INSTANTS GAGNANTS KTF avec le "/"
$KTF_IG_PAGE = "http://www.instantscadeaux.kestufoot.com/";
########################################################"

# Email of the news
$NEWS_EMAIL = "gazette@viralgames.com";

# Email of the tree root
$ROOT_EMAIL = "error@viralgames.com";

# Customer service
$CUSTOMER_SERVICE = "sclient_ktf@viralgames.com";

# From field when sending an invitation email
$FROM_FIELD = "www-data@mails.viralgames.biz";

# ReplyTo field when sending an invitation email
$REPLY_TO_FIELD = "www-data@mails.viralgames.biz";

# rank of the invisible fruit
$INVISIBLE_FRUIT = "Fruit-Transp.gif";

# Maximum number of children to display in the tree
$MAX_CHILDREN_IN_TREE = 10;

# Maximum number of high scores to display
$MAX_SCORES = 10;

# Maximum number of members (0=infinity)
$MAX_NBMEMBERS=0;

# Nombre de pts pr un filleul
$NB_PTS_PAR_FILLEUL = 0;

# Nombre de pts pr un petit filleul
$NB_PTS_PAR_P_FILLEUL = 0;

# Nombre de pts pr un arriere petit filleul
$NB_PTS_PAR_AP_FILLEUL = 0;

# Nombre de pts en plus pr un filleul avec meme fruit
$NB_PTS_PAR_FILLEUL_FRUIT_PERE = 0;

# Nombre de pts pr en plus un petit filleul avec meme fruit
$NB_PTS_PAR_P_FILLEUL_FRUIT_PERE = 0;

# Nombre de pts pr en plus un arriere petit filleul avec meme fruit
$NB_PTS_PAR_AP_FILLEUL_FRUIT_PERE = 0;

# Nombre de pts accordes lors de l'inscription
$NB_PTS_INSCRIPTION = 100;

# Nombre de pts accordes si le joueur choisit le meme fruit que son pere
$NB_PTS_FRUIT_PERE = 0;

# points donnés si on est parrainé
$INVITED_PTS = 0;

#nbr d'options par Player
$NB_PLAYER_OPTIONS=60;

# pourcentage limite du nb de points que l'on peut miser sur un match
$BET_LIMIT = 20;

$KF_PERFECT = 100;
$KF_CORRECT = 20;

$CONTAINER_ALL = 9;
$CONTAINER_ALL_SMALL = 0;

# tableua des differents etats du champ etat (table Matchs)
$TYPE_ETAT['COUR'] = -1; //etat lorsque le prono est en cours de saisie ou d annulation en cours
$TYPE_ETAT['DONE'] = 1; //etat du prono a la fin de la saisie ou de l annulation
$TYPE_ETAT['NULL'] = 0; // le resultat du prono n a pas ete saisi
$TYPE_ETAT['WAIT'] = 2; //le resultat du prono a ete saisi mais il n y a pas eu de mises a jour des scores

# tableau des differents types de resultat (correct, perfect et echec)
$TYPE_RESULT['CORRECT'] = 2;
$TYPE_RESULT['PERFECT'] = 3;
$TYPE_RESULT['ECHEC'] = 1;

# tableau renseignant EA sur quelle la table il doit traiter
# utilise dans les fichiers d'admin (add_categories)
$TRAITEMENT['Category'] = 1;
$TRAITEMENT['Match'] = 2;

# date de debut et fin de saison utilisee poyr la maj des classements de clubs
$DATE_DEBUT = "2010-08-01 12:00:00";
$DATE_FIN = "2011-07-01 12:01:00";

$def="rien";
// le langage n'est pas choisi par le joueur
$CookVal=$HTTP_COOKIE_VARS["coktlg"]; // oui : on récupère cette langue
$CookVal2=$coktlg; // oui : on récupère cette langue
if (!isset($lang))
{
// alors on regarde s'il y a un cookie de langue
if ($CookVal!="")
{
	$lang=$HTTP_COOKIE_VARS["coktlg"]; // oui : on récupère cette langue
	$def="pas de lang & cookie=".$lang.".";
	}
else
{
	$lang="fr"; // non : on prend le français par défaut
	$def = "pas de langue pas de cookie : def=fr";
}
}
else
{
	// la langue est choisie par le joueur : on met à jour le cookie
	$def="set cookie = ".$lang;
//	setcookie($COOKIE_LANG, $lang);
	setcookie("coktlg", $lang, time()+1209600);
}


if ($lang=="")
	$lang="fr";

# ici on met en dur la langue parce que ce n'est plus utilisé
#include($GAME_DIR.$lang."/lang.php3");
include($GAME_DIR."fr/lang.php3");

# création d'équipe
$EQUIPE_CREER_PAGE = $SERVER_URL . "creer_equipe.php3";

# gestion des équipes
$ALL_EQUIPES_PAGE = $SERVER_URL . "all_equipes.php3";

# URL of betting for all /not used
$EQUIPE_PAGE = $SERVER_URL . "equipe.php3";

$COOKIE_FROMNEWS = "FromNews";

$COOKIE_SONDAGE = "ktf_sondage";

$NB_MAX_IN_EQUIPE = 11;

$COOKIE_LOGIN = "ktf_login";
$COOKIE_PWD = "ktf_pwd";

$BG_COLOR_FOND_1 = "#005F3F"; 	//vert marais
$BG_COLOR_FOND_2 = "#FFFFFF";	//blanc
$BG_COLOR_FOND_3 = "#CCDFD9";	//vert marais pâle
$BG_COLOR_FOND_4 = "#66CC00";	//vert Paris
$BG_COLOR_FOND_5 = "#FFF5CC";	// jaune resultats pale
$BG_COLOR_FOND_6 = "#FFCC00";	// jaune résultats
$BG_COLOR_FOND_7 = "#E0F5CC";	// vert paris pale
$BG_COLOR_FOND_8 = "#CCCCCC";
$BG_COLOR_FOND_9 = "#F5F9F7";	//vert marais très pâle
$BG_COLOR_FOND_10 = "#FF9900";	//orange
$BG_COLOR_FOND_11 = "#0099FF";	//bleu
$BG_COLOR_FOND_12 = "#EFEFEF";	//gris très pale
$BG_COLOR_FOND_13 = "#F5CCCC";	//rouge starklub pale
$BG_COLOR_FOND_14 = "#FCF2F2";	//rouge starklub tres pale
$BG_COLOR_FOND_15 = "#CC0000";	//rouge starklub
$BG_COLOR_FOND_16 = "#A28951";  //vert marron
$BG_COLOR_FOND_17 = "#000000";  //noir
$BG_COLOR_FOND_NOEL= "#C20201"; //Rouge Noel

$VG_DEBUG=0;

# Active le robot anti-bot sur la registration
$REGISTRATION_ROBOT = true;
$REGISTRATION_CONFIRMATION_KEY = "fsnfshnqser";

# Active la validation de compte par email
$REGISTRATION_CONFIRM = true;
$REGISTRATION_CONFIRM_PAGE = $SERVER_URL . "confirmation.php3";

# Clé d'encryptage des mots de passe
$PASSWORD_SECRET_KEY = "verhthbhdbtssdrsscv";

#CONSTANTE POUR LES CARTONS
$TYPE_CARTON["Jaune"] = "#F4DC00";
$TYPE_CARTON["Rouge"] = "#FF0000";
$TYPE_CARTON["Rose"] = "#FBAEF5";

$TYPE_CARTON["Non_lu"] = 0;
$TYPE_CARTON["Lu"] = 1;

# Lien externe vers un site payant.
$BET_IN_EURO_LINK = "http://www.betclic.com/register_b.aspx?p=KET";

?>
