diff options
-rw-r--r-- | phpBB/adm/style/acp_main.html | 114 | ||||
-rw-r--r-- | phpBB/adm/style/admin.css | 14 | ||||
-rw-r--r-- | phpBB/includes/acp/acp_bbcodes.php | 5 |
3 files changed, 76 insertions, 57 deletions
diff --git a/phpBB/adm/style/acp_main.html b/phpBB/adm/style/acp_main.html index ce55d81375..b8d337cfd8 100644 --- a/phpBB/adm/style/acp_main.html +++ b/phpBB/adm/style/acp_main.html @@ -95,112 +95,116 @@ <!-- EVENT acp_main_notice_after --> <div class="lside"> - <table class="table1 zebra-table no-header" data-no-responsive-header="true"> + <table class="table2 zebra-table no-header" data-no-responsive-header="true"> <thead> <tr> - <th>{L_STATISTIC}</th> - <th>{L_VALUE}</th> + <th>{{ lang('STATISTIC') }}</th> + <th>{{ lang('VALUE') }}</th> </tr> </thead> + <tbody> <tr> - <td class="tabled">{L_NUMBER_POSTS}{L_COLON}</td> - <td class="tabled"><strong>{TOTAL_POSTS}</strong></td> + <td class="tabled">{{ lang('BOARD_STARTED') ~ lang('COLON') }}</td> + <td class="tabled"><strong>{{ START_DATE }}</strong></td> </tr> <tr> - <td class="tabled">{L_POSTS_PER_DAY}{L_COLON}</td> - <td class="tabled"><strong>{POSTS_PER_DAY}</strong></td> + <td class="tabled">{{ lang('AVATAR_DIR_SIZE') ~ lang('COLON') }}</td> + <td class="tabled"><strong>{{ AVATAR_DIR_SIZE }}</strong></td> </tr> <tr> - <td class="tabled">{L_NUMBER_TOPICS}{L_COLON}</td> - <td class="tabled"><strong>{TOTAL_TOPICS}</strong></td> + <td class="tabled">{{ lang('DATABASE_SIZE') ~ lang('COLON') }}</td> + <td class="tabled"><strong>{{ DBSIZE }}</strong></td> </tr> <tr> - <td class="tabled">{L_TOPICS_PER_DAY}{L_COLON}</td> - <td class="tabled"><strong>{TOPICS_PER_DAY}</strong></td> + <td class="tabled">{{ lang('UPLOAD_DIR_SIZE') ~ lang('COLON') }}</td> + <td class="tabled"><strong>{{ UPLOAD_DIR_SIZE }}</strong></td> </tr> <tr> - <td class="tabled">{L_NUMBER_USERS}{L_COLON}</td> - <td class="tabled"><strong>{TOTAL_USERS}</strong></td> + <td class="tabled">{{ lang('DATABASE_SERVER_INFO') ~ lang('COLON') }}</td> + <td class="tabled"><strong>{{ DATABASE_INFO }}</strong></td> </tr> <tr> - <td class="tabled">{L_USERS_PER_DAY}{L_COLON}</td> - <td class="tabled"><strong>{USERS_PER_DAY}</strong></td> + <td class="tabled">{{ lang('GZIP_COMPRESSION') ~ lang('COLON') }}</td> + <td class="tabled"><strong>{{ GZIP_COMPRESSION }}</strong></td> </tr> <tr> - <td class="tabled">{L_NUMBER_FILES}{L_COLON}</td> - <td class="tabled"><strong>{TOTAL_FILES}</strong></td> + <td class="tabled">{{ lang('PHP_VERSION') ~ lang('COLON') }}</td> + <td class="tabled"><strong>{{ PHP_VERSION_INFO }}</strong></td> </tr> <tr> - <td class="tabled">{L_FILES_PER_DAY}{L_COLON}</td> - <td class="tabled"><strong>{FILES_PER_DAY}</strong></td> + {% if S_TOTAL_ORPHAN %} + <td class="tabled">{{ lang('NUMBER_ORPHAN') ~ lang('COLON') }}</td> + <td class="tabled"> + {% if TOTAL_ORPHAN > 0 %} + <a href="{{ U_ATTACH_ORPHAN }}" title="{{ lang('MORE_INFORMATION') }}"><strong>{{ TOTAL_ORPHAN }}</strong></a> + {% else %} + <strong>{{ TOTAL_ORPHAN }}</strong> + {% endif %} + </td> + {% else %} + {% endif %} </tr> + {% if S_VERSIONCHECK %} <tr> - <td class="tabled"> </td> - <td class="tabled"> </td> + <td class="tabled">{{ lang('BOARD_VERSION') ~ lang('COLON') }}</td> + <td class="tabled"> + <strong><a href="{{ U_VERSIONCHECK }}" {% if S_VERSION_UP_TO_DATE %}style="color: #228822;" {% elseif not S_VERSIONCHECK_FAIL %}style="color: #BC2A4D;" {% endif %}title="{{ lang('MORE_INFORMATION') }}">{{ BOARD_VERSION }}</a></strong> [ <a href="{{ U_VERSIONCHECK_FORCE }}">{{ lang('VERSIONCHECK_FORCE_UPDATE') }}</a> ] + </td> </tr> + {% endif %} </tbody> </table> - <table class="table1 zebra-table no-header" data-no-responsive-header="true"> + + <table class="table2 zebra-table no-header" data-no-responsive-header="true"> <thead> <tr> - <th>{L_STATISTIC}</th> - <th>{L_VALUE}</th> + <th>{{ lang('STATISTIC') }}</th> + <th>{{ lang('VALUE') }}</th> </tr> </thead> + <tbody> <tr> - <td class="tabled">{L_BOARD_STARTED}{L_COLON}</td> - <td class="tabled"><strong>{START_DATE}</strong></td> + <td class="tabled">{{ lang('NUMBER_POSTS') ~ lang('COLON') }}</td> + <td class="tabled"><strong>{{ TOTAL_POSTS }}</strong></td> </tr> <tr> - <td class="tabled">{L_AVATAR_DIR_SIZE}{L_COLON}</td> - <td class="tabled"><strong>{AVATAR_DIR_SIZE}</strong></td> + <td class="tabled">{{ lang('POSTS_PER_DAY') ~ lang('COLON') }}</td> + <td class="tabled"><strong>{{ POSTS_PER_DAY }}</strong></td> </tr> <tr> - <td class="tabled">{L_DATABASE_SIZE}{L_COLON}</td> - <td class="tabled"><strong>{DBSIZE}</strong></td> + <td class="tabled">{{ lang('NUMBER_TOPICS') ~ lang('COLON') }}</td> + <td class="tabled"><strong>{{ TOTAL_TOPICS }}</strong></td> </tr> <tr> - <td class="tabled">{L_UPLOAD_DIR_SIZE}{L_COLON}</td> - <td class="tabled"><strong>{UPLOAD_DIR_SIZE}</strong></td> + <td class="tabled">{{ lang('TOPICS_PER_DAY') ~ lang('COLON') }}</td> + <td class="tabled"><strong>{{ TOPICS_PER_DAY }}</strong></td> </tr> <tr> - <td class="tabled">{L_DATABASE_SERVER_INFO}{L_COLON}</td> - <td class="tabled"><strong>{DATABASE_INFO}</strong></td> + <td class="tabled">{{ lang('NUMBER_USERS') ~ lang('COLON') }}</td> + <td class="tabled"><strong>{{ TOTAL_USERS }}</strong></td> </tr> <tr> - <td class="tabled">{L_GZIP_COMPRESSION}{L_COLON}</td> - <td class="tabled"><strong>{GZIP_COMPRESSION}</strong></td> + <td class="tabled">{{ lang('USERS_PER_DAY') ~ lang('COLON') }}</td> + <td class="tabled"><strong>{{ USERS_PER_DAY }}</strong></td> </tr> <tr> - <td class="tabled">{L_PHP_VERSION}{L_COLON}</td> - <td class="tabled"><strong>{PHP_VERSION_INFO}</strong></td> + <td class="tabled">{{ lang('NUMBER_FILES') ~ lang('COLON') }}</td> + <td class="tabled"><strong>{{ TOTAL_FILES }}</strong></td> </tr> <tr> - <!-- IF S_TOTAL_ORPHAN --> - <td class="tabled">{L_NUMBER_ORPHAN}{L_COLON}</td> - <td class="tabled"> - <!-- IF TOTAL_ORPHAN > 0 --> - <a href="{U_ATTACH_ORPHAN}" title="{L_MORE_INFORMATION}"><strong>{TOTAL_ORPHAN}</strong></a> - <!-- ELSE --> - <strong>{TOTAL_ORPHAN}</strong> - <!-- ENDIF --> - </td> - <!-- ELSE --> - <!-- ENDIF --> + <td class="tabled">{{ lang('FILES_PER_DAY') ~ lang('COLON') }}</td> + <td class="tabled"><strong>{{ FILES_PER_DAY }}</strong></td> </tr> - <!-- IF S_VERSIONCHECK --> <tr> - <td class="tabled">{L_BOARD_VERSION}{L_COLON}</td> - <td class="tabled"> - <strong><a href="{U_VERSIONCHECK}" <!-- IF S_VERSION_UP_TO_DATE -->style="color: #228822;" <!-- ELSEIF not S_VERSIONCHECK_FAIL -->style="color: #BC2A4D;" <!-- ENDIF -->title="{L_MORE_INFORMATION}">{BOARD_VERSION}</a></strong> [ <a href="{U_VERSIONCHECK_FORCE}">{L_VERSIONCHECK_FORCE_UPDATE}</a> ] - </td> + <td class="tabled"> </td> + <td class="tabled"> </td> </tr> - <!-- ENDIF --> </tbody> </table> </div> + <!-- IF S_ACTION_OPTIONS --> <fieldset> <legend>{L_STATISTIC_RESYNC_OPTIONS}</legend> diff --git a/phpBB/adm/style/admin.css b/phpBB/adm/style/admin.css index a44de6561e..3243d0eb24 100644 --- a/phpBB/adm/style/admin.css +++ b/phpBB/adm/style/admin.css @@ -728,8 +728,20 @@ td { border-collapse: separate; } +.table2 { + display: inline-block; + border-spacing: 1px; + border-collapse: separate; +} + +.lside { + display: flex; + align-items: stretch; + width: 100%; +} + .tabled { - width: 25%; + width: 1%; } dt#color_palette_placeholder table { diff --git a/phpBB/includes/acp/acp_bbcodes.php b/phpBB/includes/acp/acp_bbcodes.php index 84dbbf02ba..5e39055f50 100644 --- a/phpBB/includes/acp/acp_bbcodes.php +++ b/phpBB/includes/acp/acp_bbcodes.php @@ -207,7 +207,10 @@ class acp_bbcodes $db->sql_freeresult($result); // Grab the end, interrogate the last closing tag - if ($info['test'] === '1' || in_array(strtolower($data['bbcode_tag']), $hard_coded) || (preg_match('#\[/([^[]*)]$#', $bbcode_match, $regs) && in_array(strtolower($regs[1]), $hard_coded))) + if (isset($info['test']) && $info['test'] === '1' + || in_array(strtolower($data['bbcode_tag']), $hard_coded) + || (preg_match('#\[/([^[]*)]$#', $bbcode_match, $regs) && in_array(strtolower($regs[1]), $hard_coded)) + ) { trigger_error($user->lang['BBCODE_INVALID_TAG_NAME'] . adm_back_link($this->u_action), E_USER_WARNING); } |