<?php

##############################################################################
# config.inc.php                                                             #
# Configuration file for Kestufoot game                                     #
#                                                                            #
# Copyright ViralGames SARL 2000                                             #
##############################################################################

$GAME_NAME = "KestuFoot";

# Database information
$DATABASE = array(# Host for the database
			  "host" => "localhost",
		  # Login for the database connection
		  "login" => "dummy",
		  # Password for the database connection
		  "password" => "dummy",
		  # Name of the main database
		  "main_name" => "kestufoot_v2",
		  # Name of the session database
		  "session_name" => "kestufoot_v2");

# 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)
$SERVER_URL = "http://viral5/ktf_multi/kestufoot_v2/";
//$SERVER_URL = "http://192.168.0.18/ktf_multi/kestufoot_v2/";
//$SERVER_URL = "http://host.166.162.23.62.rev.coltfrance.com/ktf_multi/kestufoot_v2/";
//$S_SERVER_URL = "http://host.166.162.23.62.rev.coltfrance.com/ktf_multi/kestufoot_v2/";
//$WAP_SERVER_URL = "http://host.166.162.23.62.rev.coltfrance.com/ktf_multi/kestufoot_v2/wap/";

# 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/";
//$IMAGES_DIR = "http://host.166.162.23.62.rev.coltfrance.com/ktf_multi/kestufoot_v2/Images/";
//$S_IMAGES_DIR = "http://host.166.162.23.62.rev.coltfrance.com/ktf_multi/kestufoot_v2/Images/";

#repertoire des archives de la gazette
$ARCHIVES_DIR = "/home/samba/wwwdev/ArchivesKestufoot/kestufoot_v2/";

$SEPARATOR="/";

# racine du jeu
$GAME_DIR = "/home/samba/wwwdev/ktf_multi/kestufoot_v2/";

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

###############################
# constantes pour viralMail
# où se trouve la bibliothèque viral mail
$BIB_VIRAL_MAIL="/home/samba/wwwdev/utils/bib_mail.php3";

# où se trouve le répertoire de spool
$VIRAL_MAIL_SPOOL="/home/samba/wwwdev/utils/mail_spool/";
###############################

# Expiration time for sessions (in seconds)
$SESSION_EXPIRATION_TIME = 1*60*60; 

#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 l'affiliation des pages
$AFFILIATION_SERVER_PAGE = $SERVER_URL."affiliation_server.php3";
########################

$GAME_PAGE = "require.php3";

# the winners (bis)
$ALL_WINNERS_PAGE = $SERVER_URL . "all_winners.php3";

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

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

# URL of login page
$LOGIN_PAGE = $SERVER_URL . "home.php3";

# URL of member home page
$MEMBER_PAGE = $SERVER_URL . "member.php3";
$WAP_MEMBER_PAGE = $WAP_SERVER_URL . "wml_member.php3";

# URL of registration page secured
$REGISTRATION_PAGE = $S_SERVER_URL . "registration.php3";

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

# URL of profile update page
$PROFILE_PAGE = $SERVER_URL . "profile.php3";

# URL of forgotten password
$FORGOTTEN_PAGE = $SERVER_URL . "forgotten.php3";

# URL of high scores page
$HIGH_PAGE = $SERVER_URL . "high.php3";

# URL of guide section
$GUIDE_PAGE = $SERVER_URL . "guide.php3";

# URL of gifts page
$GIFTS_PAGE = $SERVER_URL . "gifts.php3";
$WAP_GIFTS_PAGE = $WAP_SERVER_URL . "wml_gifts.php3";

# URL of tree page
$TREE_PAGE = $SERVER_URL . "tree.php3";

# URL of families page
$FAMILIES_PAGE = $SERVER_URL . "families.php3";

# URL of choosing a bet page
$CHOOSE_BET_PAGE = $SERVER_URL . "chooseBet.php3";
$WAP_CHOOSE_BET_PAGE = $WAP_SERVER_URL . "wml_chooseBet.php3";

# URL of the bet page
$BET_PAGE = $SERVER_URL . "bet.php3";
$WAP_BET_PAGE = $WAP_SERVER_URL . "wml_bet.php3";

# URL of all bets page
$MY_BETS_PAGE = $SERVER_URL . "myBets.php3";
$WAP_MY_BETS_PAGE = $WAP_SERVER_URL . "wml_myBets.php3";

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

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

# URL of the adding friends page
$ADD_FRIENDS_PAGE = $SERVER_URL . "add_friends.php3";

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

# URL of the calendar page
$CALENDAR_PAGE = $SERVER_URL . "calendar.php3";

# URL of the replay page
$REPLAY_PAGE = $SERVER_URL . "replay.php3";

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

# page des anciens high-scores
$HIGH_OLD = $SERVER_URL . "high_old.php3";

# page des coups spéciaux
$CS = $SERVER_URL . "cs.php3";

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

# URL of the read comments page
$READ_COMMENT_PAGE = $SERVER_URL . "read_comment.php3";

# URL of the put comments page
$NEW_COMMENT_PAGE = $SERVER_URL . "new_comment.php3";

# URL of the popup comments page
$COMMENT_PAGE = $SERVER_URL . "comment_popup.php3";

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

# URL of the popup joker page 
$JOKER_POPUP = $SERVER_URL . "joker_popup.php3";

# URL of the popup joker page 
$JOKER_HELP_POPUP = $SERVER_URL . "joker_help_popup.php3";

# URL of the popup CS1 page 
$CS1_POPUP = $SERVER_URL . "cs1_popup.php3";

# URL of the popup CS2 page 
$CS2_POPUP = $SERVER_URL . "cs2_popup.php3";

$CS_HELP_POPUP = $SERVER_URL . "cs_help_popup.php3";

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

# URL of the user profile page
$USER_PROFILE_PAGE = $SERVER_URL . "user_profile.php3";

# URL of the user options page
$USER_OPTIONS_PAGE = $SERVER_URL . "user_options.php3";

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


########################################################"

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

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

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

# From field when sending an invitation email
$FROM_FIELD = "kestufoot@viralgames.com";

# ReplyTo field when sending an invitation email
$REPLY_TO_FIELD = "kestufoot@viralgames.com";

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

# cross fruit when no child
$CROSS_FRUIT = "cross.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=10;

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



$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";

include($GAME_DIR.$lang."/lang.php3");
?>
