error_reporting(0);
$SOURCE = "http://bluemoon.tuxfamily.org";
session_start ();
$taille_medaillon = 50;
// include "babble_includes.php";
$cartes = array (
'0_LeMat',
'1_LePetit',
'2_LeLoup',
'3_LaCruche',
'4_LeDenier',
'5_LOurs',
'6_LeHeros',
'7_LaLicorne',
'8_LeSablier',
'9_LEunuque',
'10_LaMontagne',
'11_LesGemeaux',
'12_LeDragon',
'13_LeTemple',
'14_LaReine',
'15_LaCourtisane',
'16_LaTour',
'17_LeDeluge',
'18_LeSabre',
'19_LeLion',
'20_LUsurier',
'21_LEmpereur',
'22_LeVoleur',
'23_LaMort',
'24_LePape',
'25_LaBalance',
'26_LaLune',
'27_LErmite',
'28_LaPapesse',
'29_LePoete',
'30_LeSoleil',
'31_LeMonde',
);
$n = sizeof($cartes);
$id = session_id();
$retour = $_GET["retour"];
$options = $_GET["options"];
$etats = $_GET["etats"];
$tirage = $_GET["tirage"];
if (!empty($tirage)) {
$c = split("-",$tirage);
if (strcmp(substr($c[0],-1,1),"*")==0) { $ret1="_ret"; $a1=substr($c[0],0,strlen($c[0])-1); }
else { $ret1=""; $a1=$c[0]; }
if (strcmp(substr($c[1],-1,1),"*")==0) { $ret2="_ret"; $a2=substr($c[1],0,strlen($c[1])-1); }
else { $ret2=""; $a2=$c[1]; }
if (strcmp(substr($c[2],-1,1),"*")==0) { $ret3="_ret"; $a3=substr($c[2],0,strlen($c[2])-1); }
else { $ret3=""; $a3=$c[2]; }
if (strcmp(substr($c[3],-1,1),"*")==0) { $ret4="_ret"; $a4=substr($c[3],0,strlen($c[3])-1); }
else { $ret4=""; $a4=$c[3]; }
}
else {
$a1 = rand(0,$n-1);
do { $a2 = rand(0,$n-1); } while ($a2 == $a1);
do { $a3 = rand(0,$n-1); } while ($a3 == $a1 or $a3 == $a2);
do { $a4 = rand(0,$n-1); } while ($a4 == $a1 or $a4 == $a2 or $a4 == $a3);
if (rand(0,1)==0) { $ret1 = ""; } else { $ret1 = "_ret"; }
if (rand(0,1)==0) { $ret2 = ""; } else { $ret2 = "_ret"; }
if (rand(0,1)==0) { $ret3 = ""; } else { $ret3 = "_ret"; }
if (rand(0,1)==0) { $ret4 = ""; } else { $ret4 = "_ret"; }
}
$carte1 = $cartes[$a1].$ret1.'_hg.png';
$carte2 = $cartes[$a2].$ret2.'_hg.png';
$carte3 = $cartes[$a3].$ret3.'_hg.png';
$carte4 = $cartes[$a4].$ret4.'_bd.png';
if (empty($ret1)) { $k1 = $a1; } else { $k1 = $a1."*"; }
if (empty($ret2)) { $k2 = $a2; } else { $k2 = $a2."*"; }
if (empty($ret3)) { $k3 = $a3; } else { $k3 = $a3."*"; }
if (empty($ret4)) { $k4 = $a4; } else { $k4 = $a4."*"; }
$tirage = $k1."-".$k2."-".$k3."-".$k4;
$sitecartes = "http://bluemoon.tuxfamily.org/tarot/";
$jeu = "
\n"
."\n"
."".""." | \n"
."".""." | \n"
.""
.""." | \n"
."
\n"
."
\n";
print ("\n");
if (!empty($retour))
{ $return = ''
.'✺'
.''; }
else
{ $return = ""; }
print ("Tirage de tarot\n");
print ("\n");
print ("Un tirage de tarot $return
\n");
print ("");
print ("
");
print ($jeu);
print ("\n");
print ("\n");
?>