<?php
/* -----------------------------------------------------------------------------------------
$Id: navigation_history.php 899 2005-04-29 02:40:57Z hhgag $
XT-Commerce - community made shopping
http://www.xt-commerce.com
Copyright (c) 2003 XT-Commerce
-----------------------------------------------------------------------------------------
based on:
(c) 2000-2001 The Exchange Project (earlier name of osCommerce)
(c) 2002-2003 osCommerce(navigation_history.php,v 1.5 2003/02/12); www.oscommerce.com
(c) 2003 nextcommerce (navigation_history.php,v 1.6 2003/08/13); www.nextcommerce.org
Released under the GNU General Public License
---------------------------------------------------------------------------------------*/
class navigationHistory_ORIGIN {
var $path, $snapshot;
function navigationHistory_ORIGIN() {
$this->reset();
}
function reset() {
$this->path = array();
$this->snapshot = array();
}
function add_current_page() {
global $PHP_SELF, $cPath;
$set = 'true';
for ($i=0, $n=sizeof($this->path); $i<$n; $i++) {
if ( ($this->path[$i]['page'] == basename($PHP_SELF)) ) {
if (isset($cPath)) {
if (!isset($this->path[$i]['get']['cPath'])) {
continue;
} else {
if ($this->path[$i]['get']['cPath'] == $cPath) {
array_splice($this->path, ($i+1));
$set = 'false';
break;
} else {
$old_cPath = explode('_', $this->path[$i]['get']['cPath']);
$new_cPath = explode('_', $cPath);
for ($j=0, $n2=sizeof($old_cPath); $j<$n2; $j++) {
if ($old_cPath[$j] != $new_cPath[$j]) {
array_splice($this->path, ($i));
$set = 'true';
break 2;
}
}
}
}
} else {
array_splice($this->path, ($i));
$set = 'true';
break;
}
}
}
if ($set == 'true') {
$this->path[] = array('page' => basename($PHP_SELF),
'mode' => (($_SERVER['HTTPS'] == 'on') ? 'SSL' : 'NONSSL'),
'get' => $_GET,
'post' => $_POST);
}
}
function remove_current_page() {
global $PHP_SELF;
$last_entry_position = sizeof($this->path) - 1;
if ($this->path[$last_entry_position]['page'] == basename($PHP_SELF)) {
unset($this->path[$last_entry_position]);
}
}
function set_snapshot($page = '') {
global $PHP_SELF;
if (is_array($page)) {
$this->snapshot = array('page' => $page['page'],
'mode' => $page['mode'],
'get' => $page['get'],
'post' => $page['post']);
} else {
$this->snapshot = array('page' => basename($PHP_SELF),
'mode' => (($_SERVER['HTTPS'] == 'on') ? 'SSL' : 'NONSSL'),
'get' => $_GET,
'post' => $_POST);
}
}
function clear_snapshot() {
$this->snapshot = array();
}
function set_path_as_snapshot($history = 0) {
$pos = (sizeof($this->path)-1-$history);
$this->snapshot = array('page' => $this->path[$pos]['page'],
'mode' => $this->path[$pos]['mode'],
'get' => $this->path[$pos]['get'],
'post' => $this->path[$pos]['post']);
}
function debug() {
for ($i=0, $n=sizeof($this->path); $i<$n; $i++) {
echo $this->path[$i]['page'] . '?';
while (list($key, $value) = each($this->path[$i]['get'])) {
echo $key . '=' . $value . '&';
}
if (sizeof($this->path[$i]['post']) > 0) {
echo '<br />';
while (list($key, $value) = each($this->path[$i]['post'])) {
echo ' <b>' . $key . '=' . $value . '</b><br />';
}
}
echo '<br />';
}
if (sizeof($this->snapshot) > 0) {
echo '<br /><br />';
echo $this->snapshot['mode'] . ' ' . $this->snapshot['page'] . '?' . xtc_array_to_string($this->snapshot['get'], array(xtc_session_name())) . '<br />';
}
}
function unserialize($broken) {
for(reset($broken);$kv=each($broken);) {
$key=$kv['key'];
if (gettype($this->$key)!="user function")
$this->$key=$kv['value'];
}
}
}
?>| nama | waktu | ukuran | owner | perm | aksi |
|---|---|---|---|---|---|
| .. | |||||
| Smarty/ | 2013-11-12 21:07 | 343.97 KB | 76129f60960:kunden | dxwrx-rx-r | |
| billsafe_2/ | 2013-11-12 21:07 | 21.38 KB | 76129f60960:kunden | dxwrx-rx-r | |
| afterbuy.php | 2013-11-12 21:06 | 31.51 KB | 76129f60960:kunden | -xw-x----- | |
| banktransfer_validation.php | 2013-11-12 21:06 | 82.12 KB | 76129f60960:kunden | -xw-x----- | |
| boxes.php | 2013-11-12 21:06 | 8.36 KB | 76129f60960:kunden | -xw-x----- | |
| boxes_old.php | 2013-11-12 21:06 | 366 B | 76129f60960:kunden | -xw-x----- | |
| breadcrumb.php | 2013-11-12 21:06 | 2.02 KB | 76129f60960:kunden | -xw-x----- | |
| cc_validation.php | 2013-11-12 21:06 | 3.42 KB | 76129f60960:kunden | -xw-x----- | |
| class.heidelpay.php | 2013-11-12 21:06 | 25.39 KB | 76129f60960:kunden | -xw-x----- | |
| class.inputfilter.php | 2013-11-12 21:06 | 13.32 KB | 76129f60960:kunden | -xw-x----- | |
| class.moneybookers.php | 2013-11-12 21:06 | 12.02 KB | 76129f60960:kunden | -xw-x----- | |
| class.phpmailer.php | 2013-11-12 21:06 | 46.01 KB | 76129f60960:kunden | -xw-x----- | |
| class.smtp.php | 2013-11-12 21:06 | 33.77 KB | 76129f60960:kunden | -xw-x----- | |
| http_client.php | 2013-11-12 21:06 | 13.32 KB | 76129f60960:kunden | -xw-x----- | |
| language.php | 2013-11-12 21:06 | 6.31 KB | 76129f60960:kunden | -xw-x----- | |
| main.php | 2013-11-12 21:06 | 5.58 KB | 76129f60960:kunden | -xw-x----- | |
| message_stack.php | 2013-11-12 21:06 | 3.29 KB | 76129f60960:kunden | -xw-x----- | |
| navigation_history.php | 2013-11-12 21:06 | 4.71 KB | 76129f60960:kunden | -xw-x----- | |
| order.php | 2013-11-12 21:06 | 29.55 KB | 76129f60960:kunden | -xw-x----- | |
| order_total.php | 2013-11-12 21:06 | 11.43 KB | 76129f60960:kunden | -xw-x----- | |
| payment.php | 2013-11-12 21:06 | 13.57 KB | 76129f60960:kunden | -xw-x----- | |
| paypal_checkout.php | 2013-11-12 21:06 | 72.2 KB | 76129f60960:kunden | -xw-x----- | |
| phpmailer.lang-de.php | 2013-11-12 21:06 | 1.21 KB | 76129f60960:kunden | -xw-x----- | |
| phpmailer.lang-en.php | 2013-11-12 21:06 | 1.04 KB | 76129f60960:kunden | -xw-x----- | |
| product.php | 2013-11-12 21:06 | 25.61 KB | 76129f60960:kunden | -xw-x----- | |
| sessions.php | 2013-11-12 21:06 | 13.23 KB | 76129f60960:kunden | -xw-x----- | |
| shipping.php | 2013-11-12 21:06 | 5.95 KB | 76129f60960:kunden | -xw-x----- | |
| shopping_cart.php | 2013-11-12 21:06 | 26.02 KB | 76129f60960:kunden | -xw-x----- | |
| split_page_results.php | 2013-11-12 21:06 | 8.15 KB | 76129f60960:kunden | -xw-x----- | |
| vat_validation.php | 2013-11-12 21:06 | 30.28 KB | 76129f60960:kunden | -xw-x----- | |
| wish_list.php | 2013-11-12 21:06 | 20.18 KB | 76129f60960:kunden | -xw-x----- | |
| xmlparserv4.php | 2013-11-12 21:06 | 4.24 KB | 76129f60960:kunden | -xw-x----- | |
| xtbooster.php | 2013-11-12 21:06 | 2.8 KB | 76129f60960:kunden | -xw-x----- | |
| xtcPrice.php | 2013-11-12 21:06 | 20.16 KB | 76129f60960:kunden | -xw-x----- | |