mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
Some security improvements 🔑 (#1503)
* Some security improvements 🔑
* Update .env.example
* Update Dev.php
* Update CHANGELOG.md
* Update Dev.php
* Update Ajax.php
* Update SqlDb.php
* Updated
* Updated
* Update Dev.php
* Update page_header.tpl
* Updated
* Updated
* Update CHANGELOG.md
This commit is contained in:
parent
3562a5f63a
commit
0663f55e54
21 changed files with 117 additions and 83 deletions
|
@ -11,7 +11,7 @@ if (!defined('BB_ROOT')) {
|
|||
die(basename(__FILE__));
|
||||
}
|
||||
|
||||
global $bb_cfg, $userdata, $template, $DBS, $lang;
|
||||
global $bb_cfg, $debug, $userdata, $template, $DBS, $lang;
|
||||
|
||||
if (!empty($template)) {
|
||||
$template->assign_vars([
|
||||
|
@ -25,7 +25,7 @@ if (!empty($template)) {
|
|||
$template->pparse('page_footer');
|
||||
}
|
||||
|
||||
$show_dbg_info = (APP_DEBUG && !(isset($_GET['pane']) && $_GET['pane'] == 'left'));
|
||||
$show_dbg_info = (!$debug->isProduction && !(isset($_GET['pane']) && $_GET['pane'] == 'left'));
|
||||
|
||||
if (!$bb_cfg['gzip_compress']) {
|
||||
flush();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue