Skip to content
Extraits de code Groupes Projets
Valider f31e35b1 rédigé par mattpiwik's avatar mattpiwik
Parcourir les fichiers

Fixes #3033 - Visitor Log in an Iframe a one liner... we should have done it a long time ago! ;)

Also removed code now useless since recent add in frontcontroller of the token_auth being used in all controller actions, when it used to work only for widgets

THe visitor Log in Iframe mode looks nice, full screen view, and easy to view 500 at once. Can give a clear picfture of a few typical use cases and could be quite fun to do.

git-svn-id: http://dev.piwik.org/svn/trunk@6314 59fd770c-687e-43c8-a1e3-f5a4ff64c105
parent b3e2979a
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -22,7 +22,6 @@ class Piwik_Live_Controller extends Piwik_Controller ...@@ -22,7 +22,6 @@ class Piwik_Live_Controller extends Piwik_Controller
public function widget($fetch = false) public function widget($fetch = false)
{ {
Piwik_API_Request::reloadAuthUsingTokenAuth();
$view = Piwik_View::factory('index'); $view = Piwik_View::factory('index');
$view->idSite = $this->idSite; $view->idSite = $this->idSite;
$view = $this->setCounters($view); $view = $this->setCounters($view);
...@@ -34,7 +33,6 @@ class Piwik_Live_Controller extends Piwik_Controller ...@@ -34,7 +33,6 @@ class Piwik_Live_Controller extends Piwik_Controller
public function ajaxTotalVisitors($fetch = false) public function ajaxTotalVisitors($fetch = false)
{ {
Piwik_API_Request::reloadAuthUsingTokenAuth();
$view = Piwik_View::factory('totalVisits'); $view = Piwik_View::factory('totalVisits');
$view = $this->setCounters($view); $view = $this->setCounters($view);
$view->idSite = $this->idSite; $view->idSite = $this->idSite;
...@@ -52,7 +50,6 @@ class Piwik_Live_Controller extends Piwik_Controller ...@@ -52,7 +50,6 @@ class Piwik_Live_Controller extends Piwik_Controller
public function getVisitorLog($fetch = false) public function getVisitorLog($fetch = false)
{ {
Piwik_API_Request::reloadAuthUsingTokenAuth();
// If previous=1 is set, user clicked previous // If previous=1 is set, user clicked previous
// we can't deal with previous so we force display of the first page // we can't deal with previous so we force display of the first page
if(Piwik_Common::getRequestVar('previous', 0, 'int') == 1) { if(Piwik_Common::getRequestVar('previous', 0, 'int') == 1) {
...@@ -89,7 +86,6 @@ class Piwik_Live_Controller extends Piwik_Controller ...@@ -89,7 +86,6 @@ class Piwik_Live_Controller extends Piwik_Controller
public function getLastVisitsStart($fetch = false) public function getLastVisitsStart($fetch = false)
{ {
Piwik_API_Request::reloadAuthUsingTokenAuth();
// hack, ensure we load today's visits by default // hack, ensure we load today's visits by default
$_GET['date'] = 'today'; $_GET['date'] = 'today';
$_GET['period'] = 'day'; $_GET['period'] = 'day';
......
...@@ -64,6 +64,7 @@ class Piwik_Live extends Piwik_Plugin ...@@ -64,6 +64,7 @@ class Piwik_Live extends Piwik_Plugin
public function addWidget() public function addWidget()
{ {
Piwik_AddWidget('Live!', 'Live_VisitorsInRealTime', 'Live', 'widget'); Piwik_AddWidget('Live!', 'Live_VisitorsInRealTime', 'Live', 'widget');
Piwik_AddWidget('Live!', 'Live_VisitorLog', 'Live', 'getVisitorLog');
} }
} }
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter