|
|
' .
'' . WHOS_ONLINE_REFRESH_LIST_TEXT . '' . '' .
' ' . WHOS_ONLINE_LEGEND_TEXT . ' ' .
zen_image(DIR_WS_IMAGES . 'icon_status_green.gif') . ' ' . WHOS_ONLINE_ACTIVE_TEXT . ' ' .
zen_image(DIR_WS_IMAGES . 'icon_status_yellow.gif') . ' ' . WHOS_ONLINE_INACTIVE_TEXT . ' ' .
zen_image(DIR_WS_IMAGES . 'icon_status_red.gif') . ' ' . WHOS_ONLINE_ACTIVE_NO_CART_TEXT . ' ' .
zen_image(DIR_WS_IMAGES . 'icon_status_red_light.gif') . ' ' . WHOS_ONLINE_INACTIVE_NO_CART_TEXT . ' ' .
WHOS_ONLINE_INACTIVE_LAST_CLICK_TEXT . ' ' . WHOIS_TIMER_INACTIVE . 's' .
' || ' . WHOS_ONLINE_INACTIVE_ARRIVAL_TEXT . ' ' .
WHOIS_TIMER_DEAD . 's ' . WHOS_ONLINE_REMOVED_TEXT;
?>
|
Execute("select customer_id, full_name, ip_address, time_entry, time_last_click,
last_page_url, session_id, host_address, user_agent
from " . TABLE_WHOS_ONLINE . "
order by $order");
$total_sess = $whos_online->RecordCount();
echo sprintf(TEXT_NUMBER_OF_CUSTOMERS, $total_sess);
?>
|
|
|
|
'' . TABLE_HEADING_SHOPPING_CART . '');
$tag = 0;
$session_data = '';
if (STORE_SESSIONS == 'db') {
$session_data = $db->Execute("select value from " . TABLE_SESSIONS . "
WHERE sesskey = '" . $info . "'");
$session_data = trim($session_data->fields['value']);
} else {
if ( (file_exists(zen_session_save_path() . '/sess_' . $info)) && (filesize(zen_session_save_path() . '/sess_' . $info) > 0) ) {
$session_data = file(zen_session_save_path() . '/sess_' . $info);
$session_data = trim(implode('', $session_data));
}
}
$hardenedStatus = FALSE;
$suhosinExtension = extension_loaded('suhosin');
$suhosinSetting = strtoupper(@ini_get('suhosin.session.encrypt'));
// if (!$suhosinExtension) {
if (strpos($session_data, 'cart|O') == 0) $session_data = base64_decode($session_data);
if (strpos($session_data, 'cart|O') == 0) $session_data = '';
// }
// uncomment the following line if you have suhosin enabled and see errors on the cart-contents sidebar
//$hardenedStatus = ($suhosinExtension == TRUE || $suhosinSetting == 'On' || $suhosinSetting == 1) ? TRUE : FALSE;
if ($session_data != '' && $hardenedStatus == TRUE) $session_data = '';
if ($length = strlen($session_data)) {
$start_id = (int)strpos($session_data, 'customer_id|s');
$start_currency = (int)strpos($session_data, 'currency|s');
$start_country = (int)strpos($session_data, 'customer_country_id|s');
$start_zone = (int)strpos($session_data, 'customer_zone_id|s');
$start_cart = (int)strpos($session_data, 'cart|O');
$end_cart = (int)strpos($session_data, '|', $start_cart+6);
$end_cart = (int)strrpos(substr($session_data, 0, $end_cart), ';}');
$session_data_id = substr($session_data, $start_id, (strpos($session_data, ';', $start_id) - $start_id + 1));
$session_data_cart = substr($session_data, $start_cart, ($end_cart - $start_cart+2));
$session_data_currency = substr($session_data, $start_currency, (strpos($session_data, ';', $start_currency) - $start_currency + 1));
$session_data_country = substr($session_data, $start_country, (strpos($session_data, ';', $start_country) - $start_country + 1));
$session_data_zone = substr($session_data, $start_zone, (strpos($session_data, ';', $start_zone) - $start_zone + 1));
session_decode($session_data_id);
session_decode($session_data_currency);
session_decode($session_data_country);
session_decode($session_data_zone);
session_decode($session_data_cart);
if (is_object($_SESSION['cart'])) {
$contents[] = array('text' => $full_name . ' - ' . $ip_address . ' ' . $info);
$products = $_SESSION['cart']->get_products();
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' => zen_draw_separator('pixel_black.gif', '100%', '1'));
$contents[] = array('align' => 'right', 'text' => TEXT_SHOPPING_CART_SUBTOTAL . ' ' . $currencies->format($_SESSION['cart']->show_total(), true, $_SESSION['currency']));
} else {
$contents[] = array('text' => TEXT_EMPTY_CART);
}
}
}
}
if ( (zen_not_null($heading)) && (zen_not_null($contents)) ) {
echo ' ' . "\n";
$box = new box;
echo $box->infoBox($heading, $contents);
echo ' | ' . "\n";
}
?>
|
|