miniflux-legacy/controllers/console.php

18 lines
469 B
PHP
Raw Normal View History

<?php
// Flush console messages
2016-04-18 01:44:45 +02:00
Router\get_action('flush-console', function () {
@unlink(DEBUG_FILENAME);
Response\redirect('?action=console');
});
// Display console
2016-04-18 01:44:45 +02:00
Router\get_action('console', function () {
Response\html(Template\layout('console', array(
'content' => @file_get_contents(DEBUG_FILENAME),
'nb_unread_items' => Model\Item\count_by_status('unread'),
'menu' => 'config',
'title' => t('Console')
)));
});