if (!$online_ips_rows[$ip_address_index]) {
         if ($this_new_visitor) {
             $this_new_visitor = false;
             $new_visitors .= $whos_online_row;
             $online_new_ips_rows[$ip_address_index] = $whos_online_row;
         } else {
             $online_ips_rows[$ip_address_index] = $whos_online_row;
         }
     }
 }
 if ($info) {
     $heading = array();
     $heading[] = array('text' => HTML_B_START . TABLE_HEADING_SHOPPING_CART . HTML_B_END);
     $contents = array();
     if ($sessions_in_db) {
         $session_data = _sess_read($info, false);
     } else {
         $session_file = $session_path . $info;
         if (file_exists($session_file)) {
             if (filesize($session_file) > 0) {
                 $session_data = file_get_contents($session_file);
             }
         }
     }
     $length = strlen($session_data);
     if ($length) {
         $session_change = true;
         // and flush $_SESSION array
         $_SESSION = array();
         //set customers session as session data
         session_decode($session_data);
?>
              </div>
              </div>
            
          <?php 
$heading = array();
$contents = array();
if (isset($info)) {
    $heading[] = array('text' => '<strong>' . TABLE_HEADING_SHOPPING_CART . '</strong>');
    $session_data = '';
    if (STORE_SESSIONS == 'mysql') {
        //BOF - GTB - 2011-05-04 - BUGFIX base64decoded Session caused empty cart
        //  $session_data = xtc_db_query("select value from " . TABLE_SESSIONS . " WHERE sesskey = '" . $info . "'");
        //  $session_data = xtc_db_fetch_array($session_data);
        //  $session_data = trim($session_data['value']);
        $session_data = _sess_read($info);
        //EOF - GTB - 2011-05-04 - BUGFIX base64decoded Session caused empty cart
    } else {
        if (file_exists(xtc_session_save_path() . '/sess_' . $info) && filesize(xtc_session_save_path() . '/sess_' . $info) > 0) {
            $session_data = file(xtc_session_save_path() . '/sess_' . $info);
            $session_data = trim(implode('', $session_data));
        }
    }
    $user_session = unserialize_session_data($session_data);
    if (isset($user_session) && $user_session != '') {
        $products = xtc_get_products($user_session);
        for ($i = 0, $n = sizeof($products); $i < $n; $i++) {
            $contents[] = array('text' => $products[$i]['quantity'] . ' x ' . $products[$i]['name']);
        }
        if (sizeof($products) > 0) {
            $contents[] = array('text' => xtc_draw_separator('pixel_black.gif', '100%', '1'));