Skip to content

Commit

Permalink
Revert "Feature/mkwc (#36)"
Browse files Browse the repository at this point in the history
This reverts commit 40c81cf.
  • Loading branch information
tmalahie committed Jun 17, 2023
1 parent 40c81cf commit 2aee37a
Show file tree
Hide file tree
Showing 12 changed files with 90 additions and 202 deletions.
Binary file removed images/mkwc/flags/aru.png
Binary file not shown.
Binary file removed images/mkwc/flags/bnl.png
Binary file not shown.
Binary file removed images/mkwc/flags/cal.png
Binary file not shown.
Binary file removed images/mkwc/flags/ind.png
Binary file not shown.
Binary file removed images/mkwc/flags/kor.png
Binary file not shown.
Binary file removed images/mkwc/flags/mag.png
Binary file not shown.
Binary file modified images/mkwc/flags/nrd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed images/mkwc/flags/por.png
Binary file not shown.
Binary file removed images/mkwc/flags/pri.png
Binary file not shown.
Binary file removed images/mkwc/logo-mkwc-2023.png
Binary file not shown.
53 changes: 24 additions & 29 deletions php/pages/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -313,36 +313,31 @@ function startsWith($haystack, $needle) {
<section id="right_section">
<?php
require_once('../includes/utils-date.php');
if ($id) {
//$today = time();
//if (($today > 1607310000) && ($today < 1607914800)) {
$getMkwcVotes = mysql_fetch_array(mysql_query('SELECT COUNT(*) AS nb FROM mkwcbets WHERE player = ' . $id));
$alreadyVoted = ($getMkwcVotes['nb'] >= 2);
if (!$alreadyVoted) {
if ($language) {
?>
<div class="subsection">
<div id="official_message" style="font-size: 0.9em; text-align: left">
The <strong>2023 Mario Kart World Cup</strong> has begun!<br />
Come and <a href="mkwc.php">vote here</a> for your favorite team!<br />
For more information, read the related <a href="news.php?id=15109">news</a>.
</div>
</div>
<?php
}
else {
?>
<div class="subsection">
<div id="official_message" style="font-size: 0.9em; text-align: left">
La <strong>Coupe Du Monde 2023 de Mario Kart</strong> à débuté !<br />
Venez <a href="mkwc.php">voter ici</a> pour votre équipe préférée !<br />
Pour plus d'information, consultez la <a href="news.php?id=15109">news</a> associée.
</div>
/*if ($id) {
?>
<div class="subsection">
<div id="official_message">
<?php
if ($language) {
?>
It's Christmas on MKPC!
Enjoy the <strong>advent calendar</strong> special event!<br />
<a href="advent-calendar.php">Click here</a> to discover it.<br />
To learn more, head to the <a href="topic.php?topic=10452">official topic</a>.
<?php
}
else {
?>
C'est Noël sur MKPC ! Profitez de l'événement spécial : <strong>calendrier de l'avent</strong> !<br />
<a href="advent-calendar.php">Cliquez ici</a> pour le découvrir.<br />
Pour en savoir plus, rendez-vous sur le <a href="topic.php?topic=10452">topic officiel</a>.
<?php
}
?>
</div>
<?php
}
}
}
</div>
<?php
}*/
function uc_strlen($str) {
return strlen(preg_replace("#(%u[0-9a-fA-F]{4})+#", ".", $str));
}
Expand Down
239 changes: 66 additions & 173 deletions php/pages/mkwc.php

Large diffs are not rendered by default.

0 comments on commit 2aee37a

Please sign in to comment.