} if($shopcoinsorder){ $tpl['user']['product_amount'] = $_SESSION["shopcoinsorderamount"] = $orderdetails_class->getShopcoinsorderamount(); $dataBasket = $orderdetails_class->forBasket($clientdiscount); $tpl['user']['summ'] = $bascetsum = $_SESSION['bascetsum'] = $dataBasket["mysum"]; } } else { $tpl['user']['user_id'] = 0; $shopcoins_class = new model_shopcoins($db_class,$tpl['user']['user_id'],$nocheck); } $stats_class = new stats($db_class,$tpl['user']['user_id'],session_id()); $tpl['user']['showfullgrouplist'] = false; $u_statistic = $user_class->getStat(); $tpl['user']['fullcount'] = $u_statistic['fullcount']; $tpl['user']['coinscount'] = $u_statistic['coinscount']; $tpl['user']['searchcount'] = $u_statistic['searchcount']; $tpl['user']['filterscount'] = $u_statistic['filterscount']; if(!isset($_COOKIE['groups-full-show'])&&$tpl['user']['user_id']) { $tpl['user']['showfullgrouplist'] = true;
public function __construct($db, $user_id = 0, $nocheck = 0) { parent::__construct($db); }