aboutsummaryrefslogtreecommitdiff
path: root/templates/debug/db-log.php
diff options
context:
space:
mode:
authorPhilipp Schüttlöffel <schuettloeffel@zqs.uni-hannover.de>2024-09-24 10:53:31 +0200
committerPhilipp Schüttlöffel <schuettloeffel@zqs.uni-hannover.de>2024-09-24 10:53:31 +0200
commit4459dd7917f4d1c34f40bb68f0e991e9c3d53e4c (patch)
tree5c07151ae61276d334e88f6309c30d439a85c12e /templates/debug/db-log.php
parentda0022e5c1abbf9825ae76debaabdff7e8623bb4 (diff)
parent97a188592c679890a25c37ab78463add76a52ff7 (diff)
Merge branch 'main' into issue-3911issue-3911
Diffstat (limited to 'templates/debug/db-log.php')
-rw-r--r--templates/debug/db-log.php55
1 files changed, 0 insertions, 55 deletions
diff --git a/templates/debug/db-log.php b/templates/debug/db-log.php
deleted file mode 100644
index 9797295..0000000
--- a/templates/debug/db-log.php
+++ /dev/null
@@ -1,55 +0,0 @@
-<? if (!empty($GLOBALS['DEBUG_ALL_DB_QUERIES'])) : ?>
- <style>
- #all_db_queries td:first-child {
- border-left: 4px solid transparent;
- border-right: 4px solid red;
- }
- #all_db_queries .sorm td:first-child {
- border-left-color: blue;
- }
- #all_db_queries .prepared td:first-child {
- border-right-color: green;
- }
- #all_db_queries .query {
- white-space: pre-wrap;
- }
- #all_db_queries ul {
- counter-reset: queries -1;
- }
- #all_db_queries li:hover {
- text-decoration: underline;
- }
- #all_db_queries li::before {
- content: "#" counter(queries);
- counter-increment: queries;
- }
- #all_db_queries li::before,
- #all_db_queries span {
- font-weight: lighter;
- }
- </style>
- <div style="display: none;" id="all_db_queries">
- <table class="default">
- <tbody>
- <? foreach ((array) DBManager::get()->queries as $query) : ?>
- <tr class="<?= $query['classes'] ?>">
- <td>
- <code class="query"><?= htmlReady($query['query']) ?></code>
- </td>
- <? if ($GLOBALS['DEBUG_ALL_DB_QUERIES_WITH_TRACE']) : ?>
- <td>
- <ul class="list-unstyled">
- <? foreach ($query['trace'] as $i => $row): ?>
- <li>
- <?= $this->render_partial('debug/trace-row.php', $row) ?>
- </li>
- <? endforeach; ?>
- </ul>
- </td>
- <? endif ?>
- </tr>
- <? endforeach ?>
- </tbody>
- </table>
- </div>
-<? endif ?>