torrentpier/library/includes/page_footer_dev.php
Roman Kelesidis 001c210217
Minor improvements (#1633)
* Minor improvements

* Update CHANGELOG.md

* Update filelist.php

* Update ffprobe_info.php

* Updated

* Update announce.php

* Update announce.php

* Update ffprobe_info.php

* Updated

* Update ffprobe_info.php

* Update ffprobe_info.php

* Updated

* Update common.php

* Update common.php

* Revert "Update common.php"

This reverts commit 3793263ff0.

* Revert "Update common.php"

This reverts commit 3911e72dba.

* Update common.php

* Updated

* Update playback_m3u.tpl

* Update ffprobe_info.php

* Update playback_m3u.php

* Update dl.php

* Update dl.php

* Updated

* Update dl.php

* Update playback_m3u.php

* Revert "Update playback_m3u.php"

This reverts commit 8cf6e9a041.

* Revert "Update dl.php"

This reverts commit 7c11cc385b.

* Revert "Updated"

This reverts commit 9c004f0651.

* Revert "Update dl.php"

This reverts commit 26d5feffa5.

* Revert "Update dl.php"

This reverts commit 261f8d3e62.

* Update playback_m3u.php

* Updated

* Update dl.php

* Update dl.php

* Update CHANGELOG.md
2024-09-19 20:57:36 +07:00

90 lines
1.9 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/**
* TorrentPier Bull-powered BitTorrent tracker engine
*
* @copyright Copyright (c) 2005-2024 TorrentPier (https://torrentpier.com)
* @link https://github.com/torrentpier/torrentpier for the canonical source repository
* @license https://github.com/torrentpier/torrentpier/blob/master/LICENSE MIT License
*/
if (!defined('BB_ROOT')) {
die(basename(__FILE__));
}
?>
<style>
.sqlLog {
clear: both;
font-family: Courier, monospace;
font-size: 12px;
white-space: nowrap;
background: #F5F5F5;
border: 1px solid #BBC0C8;
overflow: auto;
width: 98%;
margin: 0 auto;
padding: 2px 4px;
}
.sqlLogTitle {
font-weight: bold;
color: #444444;
font-size: 11px;
font-family: Verdana, Arial, Helvetica, sans-serif;
padding-bottom: 2px;
}
.sqlLogRow {
background-color: #F5F5F5;
padding-bottom: 1px;
border: solid #F5F5F5;
border-width: 0 0 1px 0;
cursor: pointer;
}
.sqlLogRow:hover {
border-color: #8B0000;
}
.sqlLogWrapped {
white-space: normal;
overflow: visible;
}
.sqlExplain {
color: #B50000;
font-size: 13px;
cursor: inherit !important;
}
.sqlHighlight {
background: #FFE4E1;
}
</style>
<?php
if (!empty($_COOKIE['explain'])) {
foreach ($DBS->srv as $srv_name => $db_obj) {
if (!empty($db_obj->do_explain)) {
$db_obj->explain('display');
}
}
}
$sql_log = !empty($_COOKIE['sql_log']) ? $debug->getSqlLog() : false;
if ($sql_log) {
echo '<div class="sqlLog" id="sqlLog">' . $sql_log . '</div><!-- / sqlLog --><br clear="all" />';
}
?>
<script type="text/javascript">
function fixSqlLog() {
if ($("#sqlLog").height() > 400) {
$("#sqlLog").height(400);
}
}
$(document).ready(fixSqlLog);
</script>