X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=index.php;h=99ef80560c89f40acc78e60c71bd6a7f9352ebe7;hp=d1dad1baf98a4f00efeb9116a875b7ceff00e4d6;hb=141a47a3f1a6ffa0eb48c6664c3d17eb0abaf1ad;hpb=b74908c768e91f6e19a31f3956a57a2031c510fa diff --git a/index.php b/index.php index d1dad1b..99ef805 100644 --- a/index.php +++ b/index.php @@ -204,6 +204,7 @@ function save_status() { foreach($hash as $key) { + /* sorting the options, not sure why I do that actually */ $tmp=""; if( ereg("i",$player[$key]["option"]) ) $tmp.="i"; @@ -213,8 +214,29 @@ function save_status() $tmp.="t"; if( ereg("c",$player[$key]["option"]) ) $tmp.="c"; + if( ereg("N",$player[$key]["option"]) ) + $tmp.="N"; + if( ereg("W",$player[$key]["option"]) ) + $tmp.="W"; + if( ereg("P",$player[$key]["option"]) ) + $tmp.="P"; + if( ereg("O",$player[$key]["option"]) ) + $tmp.="O"; + if( ereg("S",$player[$key]["option"]) ) + $tmp.="S"; + if( ereg("Q",$player[$key]["option"]) ) + $tmp.="Q"; + if( ereg("J",$player[$key]["option"]) ) + $tmp.="J"; + if( ereg("C",$player[$key]["option"]) ) + $tmp.="C"; + if( ereg("A",$player[$key]["option"]) ) + $tmp.="A"; + if( ereg("H",$player[$key]["option"]) ) + $tmp.="H"; $player[$key]["option"]=$tmp; + /* saving the player stats */ fwrite($output,"".$player[$key]["hash"].":" ); fwrite($output,"".$player[$key]["name"].":" ); fwrite($output,"".$player[$key]["email"].":" ); @@ -353,6 +375,11 @@ if(sizeof($lines)<2) else { /* load game status */ $game["init"]=0; + $game["solo-who"]=-1; + $game["solo-what"]=""; + $game["wedding"]=0; + $game["poverty"]=0; + $game["nines"]=0; $tmp = explode( ":",$lines[0]); $hash[0] = $tmp[0]; @@ -504,9 +531,18 @@ if(sizeof($lines)<2)
aehm... at the moment please just answer everything with no, still need to implement this