mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Реформат в PSR-2 + добавление заголовков лицензии MIT в файлы
This commit is contained in:
parent
a04df19607
commit
3730bed000
207 changed files with 44327 additions and 43119 deletions
|
@ -1,71 +1,102 @@
|
|||
<?php
|
||||
if (!defined('BB_ROOT')) die(basename(__FILE__));
|
||||
/**
|
||||
* MIT License
|
||||
*
|
||||
* Copyright (c) 2005-2017 TorrentPier
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in all
|
||||
* copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
if (!defined('BB_ROOT')) {
|
||||
die(basename(__FILE__));
|
||||
}
|
||||
?>
|
||||
|
||||
<style type="text/css">
|
||||
.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;
|
||||
}
|
||||
.sqlLogHead {
|
||||
text-align: right;
|
||||
float: right;
|
||||
width: 100%;
|
||||
}
|
||||
.sqlLogHead fieldset {
|
||||
float: right;
|
||||
margin-right: 4px;
|
||||
}
|
||||
.sqlLogWrapped {
|
||||
white-space: normal;
|
||||
overflow: visible;
|
||||
}
|
||||
.sqlExplain {
|
||||
color: #B50000;
|
||||
font-size: 13px;
|
||||
cursor: default;
|
||||
}
|
||||
.sqlHover {
|
||||
border-color: #8B0000;
|
||||
}
|
||||
.sqlHighlight {
|
||||
background: #FFE4E1;
|
||||
}
|
||||
.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;
|
||||
}
|
||||
|
||||
.sqlLogHead {
|
||||
text-align: right;
|
||||
float: right;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.sqlLogHead fieldset {
|
||||
float: right;
|
||||
margin-right: 4px;
|
||||
}
|
||||
|
||||
.sqlLogWrapped {
|
||||
white-space: normal;
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.sqlExplain {
|
||||
color: #B50000;
|
||||
font-size: 13px;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.sqlHover {
|
||||
border-color: #8B0000;
|
||||
}
|
||||
|
||||
.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');
|
||||
}
|
||||
}
|
||||
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']) ? get_sql_log() : '';
|
||||
|
@ -92,11 +123,10 @@ function fixSqlLog() {
|
|||
|
||||
echo '</div><!-- / sqlLogHead -->';
|
||||
|
||||
if ($sql_log)
|
||||
{
|
||||
echo '<div class="sqlLog" id="sqlLog">'. ($sql_log ? $sql_log : '') .'</div><!-- / sqlLog --><br clear="all" />';
|
||||
if ($sql_log) {
|
||||
echo '<div class="sqlLog" id="sqlLog">' . ($sql_log ? $sql_log : '') . '</div><!-- / sqlLog --><br clear="all" />';
|
||||
}
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(fixSqlLog);
|
||||
$(document).ready(fixSqlLog);
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue