diff options
| author | Philipp Schüttlöffel <schuettloeffel@zqs.uni-hannover.de> | 2024-09-24 10:53:31 +0200 |
|---|---|---|
| committer | Philipp Schüttlöffel <schuettloeffel@zqs.uni-hannover.de> | 2024-09-24 10:53:31 +0200 |
| commit | 4459dd7917f4d1c34f40bb68f0e991e9c3d53e4c (patch) | |
| tree | 5c07151ae61276d334e88f6309c30d439a85c12e /templates/debug | |
| parent | da0022e5c1abbf9825ae76debaabdff7e8623bb4 (diff) | |
| parent | 97a188592c679890a25c37ab78463add76a52ff7 (diff) | |
Merge branch 'main' into issue-3911issue-3911
Diffstat (limited to 'templates/debug')
| -rw-r--r-- | templates/debug/db-log.php | 55 | ||||
| -rw-r--r-- | templates/debug/trace-row.php | 13 |
2 files changed, 0 insertions, 68 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 ?> diff --git a/templates/debug/trace-row.php b/templates/debug/trace-row.php deleted file mode 100644 index f3d29be..0000000 --- a/templates/debug/trace-row.php +++ /dev/null @@ -1,13 +0,0 @@ -<?php -$file = ltrim(str_replace($GLOBALS['STUDIP_BASE_PATH'], '', $file), '/'); -$trac = htmlReady("https://develop.studip.de/trac/browser/trunk/{$file}#L{$line}"); -?> -<code> - <?= htmlReady(sprintf( - '%s(%s)', - isset($class) ? "{$class}{$type}{$function}" : $function, - implode(', ', array_map(function ($arg) { return is_object($arg) ? get_class($arg) : (string) $arg; }, $args)) - )) ?> -</code> -<span>called at</span> -<a href="<?= $trac ?>" target="_blank"><?= htmlReady("{$file}:{$line}") ?></a> |
