Skip to content

Commit

Permalink
Minor improvements (#255)
Browse files Browse the repository at this point in the history
* Minor improvements

* Update CHANGELOG.md
  • Loading branch information
belomaxorka committed Sep 23, 2023
1 parent 8348db6 commit b78bfd5
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
- Added missing translation in admin_ug_auth [\#254](https://github.com/torrentpier/torrentpier-lts/pull/254) ([belomaxorka](https://github.com/belomaxorka))
- Support for IDN domains [\#252](https://github.com/torrentpier/torrentpier-lts/pull/252) ([belomaxorka](https://github.com/belomaxorka))
- Fixed cache directory auto-creating with SQLite [\#247](https://github.com/torrentpier/torrentpier-lts/pull/247) ([belomaxorka](https://github.com/belomaxorka))
- Minor improvements [\#245](https://github.com/torrentpier/torrentpier-lts/pull/245), [\#246](https://github.com/torrentpier/torrentpier-lts/pull/246), [\#248](https://github.com/torrentpier/torrentpier-lts/pull/248), [\#249](https://github.com/torrentpier/torrentpier-lts/pull/249), [\#250](https://github.com/torrentpier/torrentpier-lts/pull/250), [\#251](https://github.com/torrentpier/torrentpier-lts/pull/251), [\#253](https://github.com/torrentpier/torrentpier-lts/pull/253) ([belomaxorka](https://github.com/belomaxorka))
- Minor improvements [\#245](https://github.com/torrentpier/torrentpier-lts/pull/245), [\#246](https://github.com/torrentpier/torrentpier-lts/pull/246), [\#248](https://github.com/torrentpier/torrentpier-lts/pull/248), [\#249](https://github.com/torrentpier/torrentpier-lts/pull/249), [\#250](https://github.com/torrentpier/torrentpier-lts/pull/250), [\#251](https://github.com/torrentpier/torrentpier-lts/pull/251), [\#253](https://github.com/torrentpier/torrentpier-lts/pull/253), [\#255](https://github.com/torrentpier/torrentpier-lts/pull/255) ([belomaxorka](https://github.com/belomaxorka))

## [v2.1.5-2023.08-HotFix](https://github.com/torrentpier/torrentpier-lts/tree/v2.1.5-2023.08-HotFix) (2023-09-17)
[Full Changelog](https://github.com/torrentpier/torrentpier-lts/compare/v2.1.5-2023.08...v2.1.5-2023.08-HotFix)
Expand Down
8 changes: 4 additions & 4 deletions library/includes/page_footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@
}

$stat .= '  ]';
$stat .= !empty($_COOKIE['sql_log']) ? '&nbsp;[ <a href="#" class="med" onclick="$p(\'sqlLog\').className=\'sqlLog sqlLogWrapped\'; return false;">wrap</a> &middot; <a href="#sqlLog" class="med" onclick="$(\'#sqlLog\').css({ height: $(window).height()-50 }); return false;">max</a> ]&nbsp;|' : '';
$stat .= '
<label><input type="checkbox" onclick="setCookie(\'sql_log\', this.checked ? 1 : 0); window.location.reload();" '. (!empty($_COOKIE['sql_log']) ? HTML_CHECKED : '') .' />show log </label>
<label title="cut long queries"><input type="checkbox" onclick="setCookie(\'sql_log_full\', this.checked ? 1 : 0); window.location.reload();" '. (!empty($_COOKIE['sql_log_full']) ? HTML_CHECKED : '') .' />cut </label>
<label><input type="checkbox" onclick="setCookie(\'explain\', this.checked ? 1 : 0); window.location.reload();" '. (!empty($_COOKIE['explain']) ? HTML_CHECKED : '') .' />explain </label>
<label><input type="checkbox" onclick="setCookie(\'sql_log\', this.checked ? 1 : 0); window.location.reload();" '. (!empty($_COOKIE['sql_log']) ? HTML_CHECKED : '') .' />'. $lang['SHOW_LOG'] .'</label>&nbsp;|
<label title="cut long queries"><input type="checkbox" onclick="setCookie(\'sql_log_full\', this.checked ? 1 : 0); window.location.reload();" '. (!empty($_COOKIE['sql_log_full']) ? HTML_CHECKED : '') .' />'. $lang['CUT_LONG_LOG'] .'</label>&nbsp;|
<label><input type="checkbox" onclick="setCookie(\'explain\', this.checked ? 1 : 0); window.location.reload();" '. (!empty($_COOKIE['explain']) ? HTML_CHECKED : '') .' />'. $lang['EXPLAIN_LOG'] .'</label>
';
$stat .= !empty($_COOKIE['sql_log']) ? '[ <a href="#" class="med" onclick="$p(\'sqlLog\').className=\'sqlLog sqlLogWrapped\'; return false;">wrap</a> &middot; <a href="#sqlLog" class="med" onclick="$(\'#sqlLog\').css({ height: $(window).height()-50 }); return false;">max</a> ]' : '';

echo '<div style="margin: 6px; font-size:10px; color: #444444; letter-spacing: -1px; text-align: center;">'. $stat .'</div>';
}
Expand Down
3 changes: 3 additions & 0 deletions library/language/en/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -1471,6 +1471,9 @@
$lang['MEMORY'] = 'Mem: ';
$lang['QUERIES'] = 'queries';
$lang['LIMIT'] = 'Limit:';
$lang['SHOW_LOG'] = 'show log';
$lang['CUT_LONG_LOG'] = 'cut long queries';
$lang['EXPLAIN_LOG'] = 'explained log';

// Attach Guest
$lang['DOWNLOAD_INFO'] = 'Download free and at maximum speed!';
Expand Down
3 changes: 3 additions & 0 deletions library/language/ru/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -1471,6 +1471,9 @@
$lang['MEMORY'] = 'Память: ';
$lang['QUERIES'] = 'запр.';
$lang['LIMIT'] = 'Лимит:';
$lang['SHOW_LOG'] = 'показать лог';
$lang['CUT_LONG_LOG'] = 'обрезать длинные запросы';
$lang['EXPLAIN_LOG'] = 'подробный лог';

// Attach Guest
$lang['DOWNLOAD_INFO'] = 'Скачать бесплатно и на максимальной скорости!';
Expand Down
3 changes: 3 additions & 0 deletions library/language/uk/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -1471,6 +1471,9 @@
$lang['MEMORY'] = "Пам'ять: ";
$lang['QUERIES'] = 'запит.';
$lang['LIMIT'] = 'Ліміт:';
$lang['SHOW_LOG'] = 'показати лог';
$lang['CUT_LONG_LOG'] = 'скоротити довгі запити';
$lang['EXPLAIN_LOG'] = 'пояснений лог';

// Attach Guest
$lang['DOWNLOAD_INFO'] = 'Зареєструватися та завантажити торрент!';
Expand Down

0 comments on commit b78bfd5

Please sign in to comment.