-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmod_hikamarket_stats.php
29 lines (26 loc) · 1.18 KB
/
mod_hikamarket_stats.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
/**
* @author Henrik Nielsen
* @copyright (C) 2018 Flexsus.
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
defined('_JEXEC') or die('Restricted access');
if(!defined('DS'))
define('DS', DIRECTORY_SEPARATOR);
if(!include_once(rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikashop'.DS.'helpers'.DS.'helper.php')){
echo 'This module can not work without the Hikashop Component';
return;
}
if(!include_once(rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikamarket'.DS.'helpers'.DS.'helper.php')){
echo 'This module can not work without the HikaMarket Component';
return;
}
// Include the statistics functions only once.
require_once dirname(__FILE__) . '/helper.php';
$vendor_count = modHikamarketStatsHelper::getTotalVendors($params);
$product_count = modHikamarketStatsHelper::getTotalProducts($params);
$shipped_order_count = modHikamarketStatsHelper::getTotalShippedOrders($params);
$online_num = modHikamarketStatsHelper::getOnlineCount($params);
$total_users = modHikamarketStatsHelper::getOnlineCount($params);
$ShowHideParams = modHikamarketStatsHelper::getData($params);
require JModuleHelper::getLayoutPath('mod_hikamarket_stats');