Changed .ini a bit
This commit is contained in:
parent
7b014f036b
commit
7faf46beb9
3 changed files with 5 additions and 3 deletions
|
@ -8,9 +8,11 @@ filesPath=./files/
|
||||||
thumbsPath=./thumbs/
|
thumbsPath=./thumbs/
|
||||||
mediaPath=./public_html/media/
|
mediaPath=./public_html/media/
|
||||||
title=szurubooru
|
title=szurubooru
|
||||||
|
salt = "1A2/$_4xVa"
|
||||||
|
|
||||||
|
[misc]
|
||||||
featuredPostMaxDays=7
|
featuredPostMaxDays=7
|
||||||
debugQueries=0
|
debugQueries=0
|
||||||
salt = "1A2/$_4xVa"
|
|
||||||
|
|
||||||
[browsing]
|
[browsing]
|
||||||
usersPerPage=8
|
usersPerPage=8
|
||||||
|
|
|
@ -11,7 +11,7 @@ class IndexController
|
||||||
$this->context->stylesheets []= 'index-index.css';
|
$this->context->stylesheets []= 'index-index.css';
|
||||||
$this->context->transport->postCount = R::$f->begin()->select('count(1)')->as('count')->from('post')->get('row')['count'];
|
$this->context->transport->postCount = R::$f->begin()->select('count(1)')->as('count')->from('post')->get('row')['count'];
|
||||||
|
|
||||||
$featuredPostRotationTime = $this->config->main->featuredPostMaxDays * 24 * 3600;
|
$featuredPostRotationTime = $this->config->misc->featuredPostMaxDays * 24 * 3600;
|
||||||
|
|
||||||
$featuredPostId = Model_Property::get(Model_Property::FeaturedPostId);
|
$featuredPostId = Model_Property::get(Model_Property::FeaturedPostId);
|
||||||
$featuredPostUserId = Model_Property::get(Model_Property::FeaturedPostUserId);
|
$featuredPostUserId = Model_Property::get(Model_Property::FeaturedPostUserId);
|
||||||
|
|
|
@ -98,7 +98,7 @@
|
||||||
<div class="main-wrapper">
|
<div class="main-wrapper">
|
||||||
<span>Load: <?php echo sprintf('%.05f', microtime(true) - trueStartTime()) ?>s</span>
|
<span>Load: <?php echo sprintf('%.05f', microtime(true) - trueStartTime()) ?>s</span>
|
||||||
<span>Queries: <?php echo count(queryLogger()->getLogs()) ?></span>
|
<span>Queries: <?php echo count(queryLogger()->getLogs()) ?></span>
|
||||||
<?php if ($this->config->main->debugQueries): ?>
|
<?php if ($this->config->misc->debugQueries): ?>
|
||||||
<pre class="debug"><?php echo join('<br>', array_map(function($x) { return preg_replace('/\s+/', ' ', $x); }, queryLogger()->getLogs())) ?></pre>
|
<pre class="debug"><?php echo join('<br>', array_map(function($x) { return preg_replace('/\s+/', ' ', $x); }, queryLogger()->getLogs())) ?></pre>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<span><a href="<?php echo SZURU_LINK ?>">szurubooru v<?php echo SZURU_VERSION ?></a></span>
|
<span><a href="<?php echo SZURU_LINK ?>">szurubooru v<?php echo SZURU_VERSION ?></a></span>
|
||||||
|
|
Loading…
Reference in a new issue