forked from rebillar/site-accueil-insa
Enigma v00.0
This commit is contained in:
parent
0a1ef77adc
commit
699f3d0a1f
2 changed files with 25 additions and 4 deletions
|
@ -229,7 +229,7 @@ function get_enigma_code() {
|
||||||
$score_data["text"] = 'Énigme 0';
|
$score_data["text"] = 'Énigme 0';
|
||||||
$score_data["points"] = 100;
|
$score_data["points"] = 100;
|
||||||
|
|
||||||
if($date< 1628641800 ) {
|
if($date< 1628706600 ) {
|
||||||
$data["info"] = "<h2>Énigme 0</h2>
|
$data["info"] = "<h2>Énigme 0</h2>
|
||||||
<p>Bien joué ! Attendez demain pour la suite qui a été minutieusement préparée !</p>
|
<p>Bien joué ! Attendez demain pour la suite qui a été minutieusement préparée !</p>
|
||||||
";
|
";
|
||||||
|
@ -240,8 +240,7 @@ function get_enigma_code() {
|
||||||
<p> - Quatre petits oiseaux apprennent à s'envoler un à un.</p>
|
<p> - Quatre petits oiseaux apprennent à s'envoler un à un.</p>
|
||||||
<p> - L'histoire qui se lisait dans les deux sens.</p>";
|
<p> - L'histoire qui se lisait dans les deux sens.</p>";
|
||||||
|
|
||||||
// 3217411
|
|
||||||
// 1147123
|
|
||||||
|
|
||||||
}
|
}
|
||||||
if(isFirstTeamToSolve($score_data)) {
|
if(isFirstTeamToSolve($score_data)) {
|
||||||
|
@ -262,7 +261,7 @@ function get_enigma_code() {
|
||||||
<p>Qui sera le plus rapide à libérer Paul et Cécile...</p>";
|
<p>Qui sera le plus rapide à libérer Paul et Cécile...</p>";
|
||||||
} else {
|
} else {
|
||||||
$data["info"] = "<h2>Énigme 00</h2>
|
$data["info"] = "<h2>Énigme 00</h2>
|
||||||
<a href=\"\">Paul et Cécile ont fait tombé ce livre...</a>";
|
<a href=\"assets/enigmes/Livre.pdf\">Paul et Cécile ont fait tombé ce livre...</a>";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -273,6 +272,28 @@ function get_enigma_code() {
|
||||||
echo json_encode($data, JSON_FORCE_OBJECT);
|
echo json_encode($data, JSON_FORCE_OBJECT);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
/*
|
||||||
|
case 'POMMADE' :
|
||||||
|
$data["name"] = "enigme-000";
|
||||||
|
$score_data["text"] = 'Énigme 000';
|
||||||
|
$score_data["points"] = 300;
|
||||||
|
|
||||||
|
if($date< 1628613000 ) {
|
||||||
|
$data["info"] = "<h2>Énigme 7</h2>
|
||||||
|
<p>Bien joué ! Attendez demain pour la suite !</p>";
|
||||||
|
} else {
|
||||||
|
$data["info"] = "<h2>Énigme 7</h2>
|
||||||
|
|
||||||
|
";
|
||||||
|
|
||||||
|
}
|
||||||
|
if(isFirstTeamToSolve($score_data)) {
|
||||||
|
$dao = new Dao();
|
||||||
|
$dao->add_score($score_data);
|
||||||
|
}
|
||||||
|
echo json_encode($data, JSON_FORCE_OBJECT);
|
||||||
|
break;
|
||||||
|
*/
|
||||||
|
|
||||||
default:
|
default:
|
||||||
$data["name"] = null;
|
$data["name"] = null;
|
||||||
|
|
BIN
assets/enigmes/Livre.pdf
Normal file
BIN
assets/enigmes/Livre.pdf
Normal file
Binary file not shown.
Loading…
Reference in a new issue