Linux mail.vriendennsm.nl 6.1.0-51-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.177-1 (2026-07-16) x86_64
Apache/2.4.68 (Debian)
Server IP : 217.154.75.17 & Your IP : 216.73.216.195
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
vnsm /
modules /
mod_j2store_cart /
Delete
Unzip
Name
Size
Permission
Date
Action
css
[ DIR ]
drwxr-xr-x
2025-02-08 22:29
tmpl
[ DIR ]
drwxr-xr-x
2025-02-08 22:29
helper.php
2.94
KB
-rwxr-xr-x
2022-02-20 10:42
index.html
44
B
-rwxr-xr-x
2022-02-20 10:42
mod_j2store_cart.php
2.55
KB
-rwxr-xr-x
2022-02-20 10:42
mod_j2store_cart.xml
5.15
KB
-rwxr-xr-x
2022-02-20 10:42
Save
Rename
<?php /*------------------------------------------------------------------------ # mod_j2store_cart - J2 Store Cart # ------------------------------------------------------------------------ # author Sasi varna kumar - Weblogicx India http://www.weblogicxindia.com # copyright Copyright (C) 2014 - 19 Weblogicxindia.com. All Rights Reserved. # @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL # Websites: http://j2store.org # Technical Support: Forum - http://j2store.org/forum/index.html -------------------------------------------------------------------------*/ // no direct access defined('_JEXEC') or die('Restricted access'); require_once (JPATH_ADMINISTRATOR.'/components/com_j2store/helpers/j2store.php'); class modJ2StoreCartHelper { protected static $_data = null; protected static $_items = null; protected static $_orders = null; public static function getItems() { if (empty(self::$_data )) { $list = array(); $total = 0; $order = self::getOrder (); $params = ModJ2StoreCartHelper::getModuleParams(); if($params->get('quantity_count',1) == 1){ $items = $order->getItems(); if(count($items)>0){ foreach($items as $item){ $total += $item->orderitem_quantity; } } } else { $total = $order->getItemCount(); } if($total) { $list['total'] = $order->order_total; $list['product_count'] = $total; //$html = JText::sprintf('J2STORE_CART_TOTAL', $product_count, J2StorePrices::number($total)); } else { $list['total'] = 0; $list['product_count'] = 0; //$html = JText::_('J2STORE_NO_ITEMS_IN_CART'); } self::$_data = $list; } return self::$_data; } public static function getOrder(){ if(empty( self::$_orders )){ self::$_orders = F0FModel::getTmpInstance('Orders', 'J2StoreModel')->initOrder()->getOrder(); } return self::$_orders; } public static function getAdavcedItems(){ if (empty(self::$_items)) { $order = self::getOrder (); // Get params and output $items = $order->getItems(); // fix the file name foreach($items as $item) { if(isset($item->orderitemattributes) && count($item->orderitemattributes)) { foreach($item->orderitemattributes as &$attribute) { if($attribute->orderitemattribute_type == 'file') { unset($table); $table = F0FTable::getInstance('Upload', 'J2StoreTable')->getClone (); if($table->load(array('mangled_name'=>$attribute->orderitemattribute_value))) { $attribute->orderitemattribute_value = $table->original_name; } } } } } self::$_items = $items; } return self::$_items; } public static function getModuleParams(){ $db = JFactory::getDBO(); $query = $db->getQuery(true)->select('params')->from('#__modules')->where('module='.$db->q('mod_j2store_cart'))->where('published = 1'); $db->setQuery($query); $result = $db->loadResult(); // Get params and output return $params = new JRegistry($result);//$module->params } }