diff --git a/css/swad18.123.css b/css/swad18.123.css index 7a415f0f..565966dd 100644 --- a/css/swad18.123.css +++ b/css/swad18.123.css @@ -2615,6 +2615,13 @@ a:hover img.CENTRE_PHOTO_SHOW display:table; margin:5%; width:90%; + text-align:center; + } +.GAM_PLAY_STD_WAIT + { + box-sizing:border-box; + width:50%; + margin:0 auto; } .GAM_PLAY_STD_NUM_QST { diff --git a/icon/flag-checkered.svg b/icon/flag-checkered.svg new file mode 100644 index 00000000..0428068c --- /dev/null +++ b/icon/flag-checkered.svg @@ -0,0 +1 @@ + diff --git a/icon/wait.gif b/icon/wait.gif new file mode 100644 index 00000000..8b7f8a50 Binary files /dev/null and b/icon/wait.gif differ diff --git a/swad_changelog.h b/swad_changelog.h index 954e8d37..a2e4be0b 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -452,6 +452,10 @@ ps2pdf source.ps destination.pdf #define CSS_FILE "swad18.123.css" #define JS_FILE "swad18.123.js" /* + Version 18.123.1: May 22, 2019 Wait icon while a game has not started. (? lines) + Copy the following icon to icon public directory: +sudo cp icon/wait.gif /var/www/html/swad/icon/ + Version 18.123: May 22, 2019 Game is refreshed automatically. Code refactoring in actions related to AJAX refreshing. (242770 lines) Version 18.122.5: May 20, 2019 Buttons for options in games. (242596 lines) diff --git a/swad_firewall.c b/swad_firewall.c index 3dd350d7..40707ad0 100644 --- a/swad_firewall.c +++ b/swad_firewall.c @@ -44,7 +44,7 @@ extern struct Globals Gbl; should be large enough to prevent an IP from being banned due to automatic refresh when the user is viewing the last clicks. */ #define Fw_CHECK_INTERVAL ((time_t)(10UL)) // Check clicks in the last 10 seconds -#define Fw_MAX_CLICKS_IN_INTERVAL 30 // Maximum of 30 clicks allowed in 10 seconds +#define Fw_MAX_CLICKS_IN_INTERVAL 50 // Maximum of 50 clicks allowed in 10 seconds #define Fw_TIME_BANNED ((time_t)(60UL*60UL)) // Ban IP for 1 hour diff --git a/swad_game.c b/swad_game.c index 9abdddc8..59670c10 100644 --- a/swad_game.c +++ b/swad_game.c @@ -3401,7 +3401,7 @@ static void Gam_ShowQuestionBeingPlayed (void) ShowAnswers = (row[2][0] == 'Y'); } - /***** Free structure that stores the query result *****/ + /* Free structure that stores the query result */ DB_FreeMySQLResult (&mysql_res); /***** Show question *****/ @@ -3453,6 +3453,14 @@ static void Gam_ShowQuestionBeingPlayed (void) fprintf (Gbl.F.Out,""); } + else + { + fprintf (Gbl.F.Out,"\"Please", + Cfg_URL_ICON_PUBLIC, + "Por favor, espere a que el juego comience..."); // TODO: Need translation!!!!! + } } /*****************************************************************************/