forked from vergnet/site-accueil-insa
Enigma v3
This commit is contained in:
parent
f256fb07f5
commit
cec7de8888
1 changed files with 23 additions and 2 deletions
|
@ -143,11 +143,11 @@ function get_enigma_code() {
|
|||
|
||||
if($_GET['date'] < 1628353800 ) {
|
||||
$data["info"] = "<h2>Énigme 3</h2><p>Code trouvé</p>";
|
||||
} elseif ($_GET['date'] < 1628375400) {
|
||||
} elseif ($_GET['date'] < 1628400600) {
|
||||
$data["info"] = "<h2>Énigme 3</h2><p>Code trouvé ! Voici un petit indice pour la suite</p><img src=\"assets/enigmes/Caesar.jpg\"></img>";
|
||||
} else {
|
||||
$data["info"] = "<h2>Énigme 3</h2>
|
||||
<p>OaduaxmzgeEzai</p>
|
||||
<!--<p>OaduaxmzgeEzai</p><p>M'hvshuh txh yrxv dlphu od fubswrjudsklh!</p>-->
|
||||
<img src=\"assets/enigmes/Caesar.jpg\"></img>";
|
||||
|
||||
}
|
||||
|
@ -157,6 +157,27 @@ function get_enigma_code() {
|
|||
}
|
||||
echo json_encode($data, JSON_FORCE_OBJECT);
|
||||
break;
|
||||
case 'CoriolanusSnow' :
|
||||
$data["name"] = "enigme-4";
|
||||
$score_data["text"] = 'Énigme 4';
|
||||
$score_data["points"] = 250;
|
||||
|
||||
if($_GET['date'] < 1628440200 ) {
|
||||
$data["info"] = "<h2>Énigme 4</h2>
|
||||
Code trouvé !<!--Parcours du site en cours...--> ";
|
||||
} else {
|
||||
$data["info"] = "<h2>Énigme 4</h2>
|
||||
Code trouvé ! Parcours du site en cours...
|
||||
<p>Voilà plusieurs jours que tu parcours les énigmes, augmentons un peu la difficulté...</p>";
|
||||
|
||||
|
||||
}
|
||||
if(isFirstTeamToSolve($score_data)) {
|
||||
$dao = new Dao();
|
||||
$dao->add_score($score_data);
|
||||
}
|
||||
echo json_encode($data, JSON_FORCE_OBJECT);
|
||||
break;
|
||||
|
||||
default:
|
||||
$data["name"] = null;
|
||||
|
|
Loading…
Reference in a new issue