View Single Post
  #9  
Old 09-22-2005, 04:38 AM
 
anandat anandat is offline
 

X-Adept
  
Join Date: Jan 2004
Posts: 914
 

Default

I am on 4.0.12 & I also can't find 2nd step code in stats.php

following is my stats.php

Code:
if ( !defined('XCART_SESSION_START') ) { header("Location: error_message.php?permission_denied"); die("Access denied"); } $sesses = func_query("SELECT sessid, is_registered FROM $sql_tbl[users_online] WHERE usertype = 'C'"); $statistics = array(); if($sesses) { foreach($sesses as $s) { $data = func_query_first("SELECT data, expiry FROM $sql_tbl[sessions_data] WHERE sessid = '$s[sessid]'"); if(empty($data['data'])) continue; $rec = array("last_date" => $data['expiry']); $data = unserialize($data['data']); if(!empty($data['login']) && $data['login_type'] != 'C') continue; if(!empty($data['login'])) $rec['userinfo'] = func_userinfo($data['login'], 'C'); if(!empty($data['cart']['products'])) $rec['products'] = $data['cart']['products']; $rec['current_date'] = $data['current_date']+$config["General"]["timezone_offset"]; $rec['current_url_page'] = $data['current_url_page']; $rec['session_create_date'] = $data['session_create_date']; $statistics[] = $rec; } } ?>

Could you please me what excatly I will have to change in this file.
__________________
X-Cart: 4.7.7 LIVE
Skin:Ultra by xcartmods.co.uk
X-cart Modules: | ACR, Rich Google Search, Customer Testimonials | Cloud Search, | Websitecm: CDSEO (2.1.9)
---------------
Server: Linux
php: 5.3
mysql: 5.0.89
----------------
Reply With Quote