mirror of
https://github.com/torrentpier/torrentpier.git
synced 2024-11-04 12:40:36 -08:00
001c210217
* 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 commit3793263ff0
. * Revert "Update common.php" This reverts commit3911e72dba
. * 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 commit8cf6e9a041
. * Revert "Update dl.php" This reverts commit7c11cc385b
. * Revert "Updated" This reverts commit9c004f0651
. * Revert "Update dl.php" This reverts commit26d5feffa5
. * Revert "Update dl.php" This reverts commit261f8d3e62
. * Update playback_m3u.php * Updated * Update dl.php * Update dl.php * Update CHANGELOG.md
90 lines
1.9 KiB
PHP
90 lines
1.9 KiB
PHP
<?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>
|