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/GMLogoManager.php (6.78 KB)
<?php
/*
	--------------------------------------------------------------
	GMLogoManager.php 2010-08-12 gm
	Gambio GmbG
	http://www.gambio.de
	Copyright (c) 2010 Gambio GmbG
	Released under the GNU General Public License
	--------------------------------------------------------------

*/
	/*
	*	a class to manage the logo files
	*/
	class GMLogoManager {
		
		var $logo_path;
		var $logo_src;
		var $logo_use;
		var $logo_file;
		var $logo_key;
	
		/*
		* -> constructor
		*/
		function GMLogoManager($logo_key) {

			if(!defined(GM_HTTP_SERVER)) {
				define(GM_HTTP_SERVER, HTTP_SERVER);
			}
			$this->logo_src		= DIR_FS_CATALOG . DIR_WS_IMAGES . 'logos/';		
			$this->logo_path	= GM_HTTP_SERVER . DIR_WS_CATALOG . DIR_WS_IMAGES . 'logos/';		
			$this->logo_use		= gm_get_conf(strtoupper($logo_key) . '_USE');	
			$this->logo_file	= gm_get_conf(strtoupper($logo_key));
			$this->logo_key		= $logo_key;

			return;
		}		
		
		/*
		* -> to get the logo html 
		*/
		function get_logo($gm_alt='logo') {			
			
			$_w = gm_get_conf(strtoupper($this->logo_key) . '_SIZE_W');
			$_h = gm_get_conf(strtoupper($this->logo_key) . '_SIZE_H');

			if($this->logo_key == 'gm_logo_flash') {					
				
				$logo_html = '	<object type="application/x-shockwave-flash" data="' . $this->logo_path . $this->logo_file . '" width="' . $_w . '" height="' . $_h . '" codebase="https://fpdownload.adobe.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0">
									<param name="movie" value="' . $this->logo_path . $this->logo_file . '" />
									<param name="play" value="true" />
									<param name="loop" value="true" />
									<param name="quality" value="high" />
									<param name="wmode" value="transparent" />
								</object>
								';

				return $logo_html;

			} else {					

				if(!empty($_w)) $width='width="' . $_w . '"';
				if(!empty($_h))  $height='height="' . $_h . '"';
				$logo_html = '<img '.$width.' '.$height.' src="' . $this->logo_path . $this->logo_file . '" alt="' . htmlspecialchars(STORE_NAME) . '" title="' . htmlspecialchars(STORE_NAME) . '" />';

				return $logo_html;
			} 		
		}

		
		/*
		* -> file exist
		*/
		function logo_exist() {			
			if(file_exists($this->logo_src . $this->logo_file) && !empty($this->logo_file)) {	
				
				return true;

			} else {

				return false;

			}
		}

		/*
		* -> check upload by mime-type
		*/
		function check_upload($filetype){ 
			
			if($filetype == 'image/x-icon' || $filetype == "image/ico") {	
		
				if($filetype == 'image/x-icon') {	
					return true; 
				} else {					
					return false;
				}					
				
			} else if($this->logo_key == 'gm_logo_flash') {
				
				if($filetype == "application/x-shockwave-flash") { 
				
					return true; 
				} else {
					return false;
				}					

			} else if($this->logo_key == 'gm_logo_overlay') {
				
				if($filetype == "image/gif") { 
				
					return true; 
				} else {
					return false;
				}					

			} else {

				if($filetype == "image/gif" 
				|| $filetype == "image/png"  
				|| $filetype == "image/x-png"  
				|| $filetype == "image/jpg"  
				|| $filetype == "image/jpeg"  
				|| $filetype == "image/gif"  
				|| $filetype == "image/pjpeg") { 
				
					return true; 
				} else {
					return false;
				}					
			}
		}

		/*
		* -> upload manager
		*/
		function upload() {
			
			$this->manage_logos();

			if($_POST['GM_LOGO_DELETE'] == 'on') {
				
				// delete old file if exists
				if(file_exists($this->logo_src . $this->logo_file)) {
					
					unlink($this->logo_src . $this->logo_file);
					gm_set_conf(strtoupper($this->logo_key), '');				
				}
				
				gm_set_conf(strtoupper($this->logo_key) . '_USE', '0');
				$this->logo_use = '0';
				
				return GM_LOGO_FILE_DELETED;

			} else if(!empty($_FILES['GM_LOGO']['name'])) {

				$myparts = pathinfo($_FILES['GM_LOGO']['name']);
				$myextension = strtolower($myparts['extension']);

				if(($this->check_upload($_FILES['GM_LOGO']['type'])	&& $this->logo_key != 'gm_logo_favicon')
					|| ($this->logo_key == 'gm_logo_favicon' && $myextension == 'ico')) {
				
					// prepare filenames
					if($this->logo_key == 'gm_logo_favicon') {
						$new_filename = 'favicon.ico';
					} else if($this->logo_key == 'gm_logo_overlay') { 
						$new_filename = 'overlay.gif';
					} else {
						$new_filename = gm_prepare_filename($_FILES['GM_LOGO']['name']);				
						
					}
					if(!file_exists($this->logo_src . $new_filename) || $this->logo_file == $new_filename) {
						
						// delete old file if exists
						if(file_exists($this->logo_src . $this->logo_file)) {
						
							@unlink($this->logo_src . $this->logo_file);
						}
						@copy($_FILES['GM_LOGO']['tmp_name'], $this->logo_src . $new_filename);					
						@chmod($this->logo_src . $new_filename, 0777);					
						
						// save data to configuration
						gm_set_conf(strtoupper($this->logo_key), $new_filename);
						
						// set size once a time
						$imagesize = @getimagesize($this->logo_src . $new_filename);
						gm_set_conf(strtoupper($this->logo_key) . '_SIZE_W', $imagesize[0]);
						gm_set_conf(strtoupper($this->logo_key) . '_SIZE_H', $imagesize[1]);						
						if(strtoupper($this->logo_key) == 'GM_LOGO_CAT') {
							gm_set_conf(strtoupper($this->logo_key) . '_USE', '1');
						}
						// save data to configuration
						gm_set_conf(strtoupper($this->logo_key), $new_filename);
						
						$this->logo_file	= $new_filename;

						return GM_LOGO_UPLOAD_SUCCEEDED;
					
					// file in use
					} else {
						
						return GM_LOGO_FILE_EXISTS;
					
					}				
				
				// file not allowed
				} else {

					return GM_LOGO_FILETYP_WRONG;

				}			
			}
		}
		
		/*
		* -> manage logos
		*/
		function manage_logos() {
			
			if($this->logo_key == 'gm_logo_flash' && file_exists($this->logo_src . gm_get_conf('GM_LOGO_FLASH')) && $_POST['GM_LOGO_USE'] == 'on') {
				gm_set_conf('GM_LOGO_FLASH_USE',	'1');
				gm_set_conf('GM_LOGO_SHOP_USE',		'0');
				$this->logo_use = '1';
			} else if($this->logo_key == 'gm_logo_shop' && file_exists($this->logo_src . gm_get_conf('GM_LOGO_SHOP')) && $_POST['GM_LOGO_USE'] == 'on') {
				gm_set_conf('GM_LOGO_FLASH_USE',	'0');
				gm_set_conf('GM_LOGO_SHOP_USE',		'1');
				$this->logo_use = '1';
			} else if(($this->logo_key == 'gm_logo_mail' || $this->logo_key == 'gm_logo_ebay' || $this->logo_key == 'gm_logo_favicon' || $this->logo_key == 'gm_logo_pdf') && $this->logo_exist() && $_POST['GM_LOGO_USE'] == 'on') {
				gm_set_conf(strtoupper($this->logo_key) . '_USE', '1');
				$this->logo_use = '1';
			} else if(empty($_POST['GM_LOGO_USE'])) {
				gm_set_conf(strtoupper($this->logo_key) . '_USE', '0');
				$this->logo_use = '0';
			}
			return;
		}
	}

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