// Welcome 2012²
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
* 2007-2012 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
@@ -19,7 +19,7 @@
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2011 PrestaShop SA
|
||||
* @copyright 2007-2012 PrestaShop SA
|
||||
* @version Release: $Revision: 7307 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
@@ -50,14 +50,14 @@ class StatsLive extends Module
|
||||
{
|
||||
return parent::install() && $this->registerHook('AdminStatsModules');
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get the number of online customers
|
||||
*
|
||||
* @return array(array, int) array of online customers entries, number of online customers
|
||||
*/
|
||||
*/
|
||||
private function getCustomersOnline()
|
||||
{
|
||||
{
|
||||
$sql = 'SELECT u.id_customer, u.firstname, u.lastname, pt.name as page
|
||||
FROM `'._DB_PREFIX_.'connections` c
|
||||
LEFT JOIN `'._DB_PREFIX_.'connections_page` cp ON c.id_connections = cp.id_connections
|
||||
@@ -73,12 +73,12 @@ class StatsLive extends Module
|
||||
$results = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($sql);
|
||||
return array($results, Db::getInstance()->NumRows());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get the number of online visitors
|
||||
*
|
||||
* @return array(array, int) array of online visitors entries, number of online visitors
|
||||
*/
|
||||
*/
|
||||
private function getVisitorsOnline()
|
||||
{
|
||||
if (Configuration::get('PS_STATSDATA_CUSTOMER_PAGESVIEWS'))
|
||||
@@ -108,7 +108,7 @@ class StatsLive extends Module
|
||||
}
|
||||
|
||||
$results = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($sql);
|
||||
return array($results, Db::getInstance()->NumRows());
|
||||
return array($results, Db::getInstance()->NumRows());
|
||||
}
|
||||
|
||||
public function hookAdminStatsModules($params)
|
||||
|
||||
Reference in New Issue
Block a user