summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-01-27 22:46:35 +0100
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-01-27 22:46:35 +0100
commitec48755fc163bc1c975cdf53c2f19a19d6a1ade7 (patch)
tree2548adc83cb9d55f6c0af68ecd352cda7921d35a
parentfdefc8c731c05d8a7db626e55fe41d7211488f98 (diff)
Ajout authentification + titre pour page stats
-rwxr-xr-xapp/Controllers/indexController.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/Controllers/indexController.php b/app/Controllers/indexController.php
index 70560b98b..7d6d73c28 100755
--- a/app/Controllers/indexController.php
+++ b/app/Controllers/indexController.php
@@ -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();