Append query ID and IP address as a /* comment */ to every query, if enabled in debug settings

This commit is contained in:
Kijin Sung 2021-01-13 22:14:15 +09:00
parent fcc3db3a7a
commit 4805a1864b
7 changed files with 47 additions and 1 deletions

View file

@ -87,6 +87,14 @@
<textarea name="debug_allowed_ip" id="debug_allowed_ip" rows="4" cols="42" placeholder="{$remote_addr} ({$lang->local_ip_address})" style="margin-right:10px">{$debug_allowed_ip}</textarea>
</div>
</div>
<div class="x_control-group">
<label class="x_control-label">{$lang->debug_query_comment}</label>
<div class="x_controls">
<label for="debug_query_comment_Y" class="x_inline"><input type="radio" name="debug_query_comment" id="debug_query_comment_Y" value="Y" checked="checked"|cond="$debug_query_comment" /> {$lang->cmd_yes}</label>
<label for="debug_query_comment_N" class="x_inline"><input type="radio" name="debug_query_comment" id="debug_query_comment_N" value="N" checked="checked"|cond="!$debug_query_comment" /> {$lang->cmd_no}</label>
<p class="x_help-block">{$lang->about_debug_query_comment}</p>
</div>
</div>
<div class="x_control-group">
<label class="x_control-label">{$lang->debug_write_error_log}</label>
<div class="x_controls">