[+] добавлен класс для работы с конфигурацией (пока базовая реализация)
This commit is contained in:
1 parent
12ee13c3d1
commit
9708ec5419
15 files changed
+68
-19
No files matched your search
+2
-1
@@ -21,6 +21,7 @@
|
||||
|
||||
use Core\Helpers\Pagination;
|
||||
use Core\ExternalServices\RemoteHosts;
|
||||
use Core\SystemConfig;
|
||||
|
||||
require_once __DIR__ . '/inc/header.php';
|
||||
|
||||
@@ -66,7 +67,7 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
Pagination::execute($_REQUEST['page'], RemoteHosts::getAllCount(), PAGINATION_LIMIT);
|
||||
Pagination::execute($_REQUEST['page'], RemoteHosts::getAllCount(), SystemConfig::getValue('PAGINATION_LIMIT'));
|
||||
$limit = Pagination::getLimit();
|
||||
|
||||
$arHosts = RemoteHosts::getHosts($limit);
|
||||
|
||||
+4
-2
@@ -20,7 +20,9 @@
|
||||
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
use Core\Helpers\Cache;use Core\Helpers\Files;use Core\Models\{User, Roles};
|
||||
use Core\Helpers\Cache;use Core\Helpers\Files;
|
||||
use Core\SystemConfig;
|
||||
use Core\Models\{User, Roles};
|
||||
|
||||
require_once __DIR__ . '/inc/header.php';
|
||||
?>
|
||||
@@ -96,7 +98,7 @@
|
||||
<h3 class="panel-title">Отладка</h3>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<?= DEBUG ? 'Включена' : 'Отключена' ?>
|
||||
<?= SystemConfig::getValue('DEBUG') ? 'Включена' : 'Отключена' ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
+2
-1
@@ -21,6 +21,7 @@
|
||||
|
||||
use Core\Helpers\Pagination;
|
||||
use Core\Helpers\SystemFunctions;
|
||||
use Core\SystemConfig;
|
||||
|
||||
require_once __DIR__ . '/inc/header.php';
|
||||
|
||||
@@ -66,7 +67,7 @@
|
||||
<?php
|
||||
$nginxLogFile = $_SERVER['DOCUMENT_ROOT'].'/../../log/it-stories.ru_access';
|
||||
//$nginxLogFile = $_SERVER['DOCUMENT_ROOT'].'/../../log/test.log';
|
||||
Pagination::execute($_REQUEST['page'], SystemFunctions::getNginxLogData($nginxLogFile, true), PAGINATION_LIMIT);
|
||||
Pagination::execute($_REQUEST['page'], SystemFunctions::getNginxLogData($nginxLogFile, true), SystemConfig::getValue('PAGINATION_LIMIT'));
|
||||
$limit = Pagination::getLimit();
|
||||
|
||||
$arLogs = SystemFunctions::getNginxLogData($nginxLogFile, false, $limit, true);
|
||||
|
||||
+2
-1
@@ -23,6 +23,7 @@
|
||||
use Core\Models\File;
|
||||
use Core\Models\Posts;
|
||||
use Core\Models\User;
|
||||
use Core\SystemConfig;
|
||||
|
||||
require_once __DIR__ . '/inc/header.php';
|
||||
?>
|
||||
@@ -61,7 +62,7 @@
|
||||
<tbody>
|
||||
<?php
|
||||
$objectPosts = new Posts();
|
||||
Pagination::execute($_REQUEST['page'], $objectPosts->getAllCount(), PAGINATION_LIMIT);
|
||||
Pagination::execute($_REQUEST['page'], $objectPosts->getAllCount(), SystemConfig::getValue('PAGINATION_LIMIT'));
|
||||
$limit = Pagination::getLimit();
|
||||
|
||||
$arPosts = $objectPosts->getPosts($limit);
|
||||
|
||||
+2
-1
@@ -21,6 +21,7 @@
|
||||
|
||||
use Core\Helpers\Pagination;
|
||||
use Core\Models\User;
|
||||
use Core\SystemConfig;
|
||||
|
||||
require_once __DIR__ . '/inc/header.php';
|
||||
|
||||
@@ -69,7 +70,7 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
Pagination::execute($_REQUEST['page'], User::getAllCount(), PAGINATION_LIMIT);
|
||||
Pagination::execute($_REQUEST['page'], User::getAllCount(), SystemConfig::getValue('PAGINATION_LIMIT'));
|
||||
$limit = Pagination::getLimit();
|
||||
|
||||
$arUsers = User::getUsers($limit);
|
||||
|
||||
Reference in new issue
Block a user