diff options
author | Marc Alexander <admin@m-a-styles.de> | 2016-02-21 22:14:58 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2016-12-03 14:23:34 +0100 |
commit | 89fef2ce13a183c7b963032274f455a09a05f325 (patch) | |
tree | 9a6d7d5306328c5f11e709e7bda33d0a65f069a6 /phpBB/adm/style/acp_help_phpbb.html | |
parent | 80a63a9a94af042da37227ed747eba0feeac1049 (diff) | |
download | forums-89fef2ce13a183c7b963032274f455a09a05f325.tar forums-89fef2ce13a183c7b963032274f455a09a05f325.tar.gz forums-89fef2ce13a183c7b963032274f455a09a05f325.tar.bz2 forums-89fef2ce13a183c7b963032274f455a09a05f325.tar.xz forums-89fef2ce13a183c7b963032274f455a09a05f325.zip |
[ticket/14492] Send statistics via ajax request
Flooding ajax requests will try to be prevented and sending
stats without JS will also properly work.
PHPBB3-14492
Diffstat (limited to 'phpBB/adm/style/acp_help_phpbb.html')
-rw-r--r-- | phpBB/adm/style/acp_help_phpbb.html | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/phpBB/adm/style/acp_help_phpbb.html b/phpBB/adm/style/acp_help_phpbb.html index d2f5e76916..48a4595913 100644 --- a/phpBB/adm/style/acp_help_phpbb.html +++ b/phpBB/adm/style/acp_help_phpbb.html @@ -4,7 +4,7 @@ <h1>{L_ACP_HELP_PHPBB}</h1> -<form id="acp_board" method="post" action="{U_ACTION}"> +<form id="acp_help_phpbb" method="post" action="{U_ACTION}" data-ajax-action="{U_COLLECT_STATS}"> <div class="send-stats-row"> <!-- EVENT acp_help_phpbb_stats_before --> <div class="send-stats-tile"> @@ -12,9 +12,9 @@ <p>{L_EXPLAIN_SEND_STATISTICS}</p> <div class="send-stats-row"> <div class="send-stats-data-row send-stats-data-only-row"> - <a id="trigger-configlist" data-ajax="toggle_link" data-toggle-text="{L_HIDE_STATISTICS}"><span>{L_SHOW_STATISTICS}</span><i class="icon fa-angle-down"></i></a> + <a id="trigger-configlist" data-ajax="toggle_link" data-overlay="false" data-toggle-text="{L_HIDE_STATISTICS}"><span>{L_SHOW_STATISTICS}</span><i class="icon fa-angle-down"></i></a> </div> - <div class="send-stats-data-row send-stats-data-hidden"> + <div class="send-stats-data-row"> <div class="configlist" id="configlist"> <!-- BEGIN providers --> <fieldset> @@ -41,11 +41,21 @@ <!-- EVENT acp_help_phpbb_stats_after --> <fieldset> <p class="submit-buttons"> + <input type="hidden" name="systemdata" value="{RAW_DATA}" /> + <input type="hidden" name="help_send_statistics_time" value="{COLLECT_STATS_TIME}" /> <input class="button1" type="submit" id="submit" name="submit" value="{L_SUBMIT}" /> </p> {S_FORM_TOKEN} </fieldset> </div> </form> +<form action="{U_COLLECT_STATS}" method="post" target="questionaire_result" id="questionnaire-form"> + <fieldset> + <p class="submit-buttons"> + <input type="hidden" name="systemdata" value="{RAW_DATA}" /> + <input class="button1" type="submit" id="submit_stats" name="submit" value="{L_SEND_STATISTICS}" /> + </p> + </fieldset> +</form> <!-- INCLUDE overall_footer.html --> |