configg9.php <?
// fichier de configuration
$varaible_divers=array("HTTP_GET_VARS",
"HTTP_POST_FILES",
"HTTP_POST_VARS",
"HTTP_SESSION_VARS",
"HTTP_SERVER_VARS",
"HTTP_ENV_VARS");
for ($iHTTP=0;$iHTTP<count($varaible_divers);$iHTTP++){
$tempoarray=$$varaible_divers[$iHTTP];
if (is_array($tempoarray)){
for ($ii=0;$ii<=count(array_keys($tempoarray));$ii++){
$temparray=array_keys($tempoarray);
$$temparray[$ii]=$tempoarray[$temparray[$ii]];
}
}
}
$taille=10;
$username = "vote login"; //MYSQL USERNAME
$password = "votre mot de passe "; //MYSQL PASSWORD
$dbhost = "localhost"; //MYSQL HOST
$database = "votre base";
$nbcase=6; // en vrai +1 donc 6 donne 7
$xtaillecarte=450;
$ytaillecarte=300;
// fonctions
function dbconnect() {
global $username;global $password;global $dbhost;global $database;global $mode;global $msgadmin;
@mysql_connect($dbhost, $username, $password);
@mysql_select_db($database) or die ("<center>serveur HS :)</center>");
}
function dbdeconnect()
{
global $username;global $password;global $dbhost;
mysql_close(mysql_connect($dbhost, $username, $password));
}
function EmailOK($email)
{
return(ereg( ^[-!#$%&\ *+\\./0-9=?A-Z^_`a-z{|}~]+ . @ . [-!#$%&\ *+\\/0-9=?A-Z^_`a-z{|}~]+\. . [-!#$%&\ *+\\./0-9=?A-Z^_`a-z{|}~]+$ ,$email) );
}
// fin des fonctions
?>
par jouer.org
dernière mise à jour:12/01/2005