mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-24 16:25:00 -04:00
Ajout authentification + titre pour page stats
This commit is contained in:
@@ -194,6 +194,15 @@ class FreshRSS_index_Controller extends Minz_ActionController {
|
||||
}
|
||||
|
||||
public function statsAction () {
|
||||
if (!$this->view->loginOk) {
|
||||
Minz_Error::error (
|
||||
403,
|
||||
array ('error' => array (Minz_Translate::t ('access_denied')))
|
||||
);
|
||||
}
|
||||
|
||||
Minz_View::prependTitle (Minz_Translate::t ('stats') . ' · ');
|
||||
|
||||
$statsDAO = new FreshRSS_StatsDAO ();
|
||||
Minz_View::appendScript (Minz_Url::display ('/scripts/flotr2.min.js?' . @filemtime(PUBLIC_PATH . '/scripts/flotr2.min.js')));
|
||||
$this->view->repartition = $statsDAO->calculateEntryRepartition();
|
||||
|
||||
Reference in New Issue
Block a user