WPZ

/ web / 1 / 000 / 076 / 129 / 313906 / htdocs / styroporzuschnitte24_shop / gm / inc / [dxwrx-rx-r]
berkas terminal database massal sistem
/web/1/000/076/129/313906/htdocs/styroporzuschnitte24_shop/gm/inc/gm_create_corner.inc.php (5.88 KB)
<?php
/* --------------------------------------------------------------
   gm_create_corner.inc.php 2009-11-23 pt
   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]
   --------------------------------------------------------------

*
	*	function to install the corner in db/css
	*/
	function gm_install_corner() 
	{
		
		$t_gm_bg = xtc_db_query("
											SELECT 
													gm_css_style_id 
												AS 
													id
											FROM
												gm_css_style gcs
											WHERE
												gcs.style_name	= '#topmenu_block'
											LIMIT 1
						");

		if(xtc_db_num_rows($t_gm_bg) == 1)
		{

			$t_row = xtc_db_fetch_array($t_gm_bg);

			$t_gm_bg_query = xtc_db_query("
											SELECT
												*
											FROM
												gm_css_style_content	
											WHERE
												gm_css_style_id = '" . $t_row['id'] . "'
											AND 
												style_attribute = 'background-image'
											LIMIT 1
						");

			if(xtc_db_num_rows($t_gm_bg_query) == 0)
			{
				xtc_db_query("
											INSERT
											INTO
												gm_css_style_content
											SET
												style_attribute = 'background-image',
												style_value		= 'url(" . DIR_WS_CATALOG . DIR_WS_IMAGES . "logos/gm_corner.gif)',
												gm_css_style_id = '" . $t_row['id'] . "'
							");

				xtc_db_query("
											INSERT
											INTO
												gm_css_style_content
											SET
												style_attribute = 'background-repeat',
												style_value		= 'no-repeat',
												gm_css_style_id = '" . $t_row['id'] . "'
							");
			}
			else 
			{

				/* delete existing file */
				$t_row_old_img		= xtc_db_fetch_array($t_gm_bg_query);
				$t_old_file_array	= @explode('/', $t_row_old_img['style_value']);
				$t_old_file			= $t_old_file_array[sizeof($t_old_file_array) - 1];
				$t_old_file			= trim(substr($t_old_file, 0, strlen($t_old_file) - 1));

				if(!empty($t_old_file))
				{				
					@unlink(DIR_FS_CATALOG . 'templates/' . CURRENT_TEMPLATE . '/backgrounds/' . $t_old_file);						
				}

				xtc_db_query("
											UPDATE 
												gm_css_style_content
											SET
												style_value = 'url(" . DIR_WS_CATALOG . DIR_WS_IMAGES . "logos/gm_corner.gif)'
											WHERE
												gm_css_style_id = '" . $t_row['id'] . "'
											AND 
												style_attribute = 'background-image'
											LIMIT 1
				");

				xtc_db_query("
											UPDATE 
												gm_css_style_content
											SET
												style_value = 'no-repeat'
											WHERE
												gm_css_style_id = '" . $t_row['id'] . "'
											AND 
												style_attribute = 'background-repeat'
											LIMIT 1
				");
			}

			@unlink(DIR_FS_CATALOG . 'cache/__dynamics.css');
		}

		return;
	}


	/**
	*	function to remove the corner in db/css
	*/
	function gm_delete_corner() 
	{
	
		$t_gm_bg = xtc_db_query("
											SELECT 
													gm_css_style_id 
												AS 
													id
											FROM
												gm_css_style gcs
											WHERE
												gcs.style_name	= '#topmenu_block'
											LIMIT 1
						");

		if(xtc_db_num_rows($t_gm_bg) == 1)
		{
			$t_row = xtc_db_fetch_array($t_gm_bg);

			xtc_db_query("
											UPDATE
												gm_css_style_content
											SET
												style_value = 'none'
											WHERE
												gm_css_style_id = '" . $t_row['id'] . "'
											AND style_attribute = 'background-image'
						");
			
			xtc_db_query("
											UPDATE
												gm_css_style_content
											SET
												style_value = 'repeat'
											WHERE
												gm_css_style_id = '" . $t_row['id'] . "'
											AND style_attribute = 'background-repeat'
						");
			
			@unlink(DIR_FS_CATALOG . 'cache/__dynamics.css');
		}

		return;
	}


	/**
	*	helper function to convert hex to rgb 
	*/
	function gm_corner_get_rgb($p_style_name)
	{	
		$t_gm_color = xtc_db_query("
											SELECT 
													gcsc.style_value 
												AS 
													color
											FROM
												gm_css_style gcs,
												gm_css_style_content gcsc
											WHERE
												gcs.gm_css_style_id			= gcsc.gm_css_style_id
											AND
												gcs.style_name				= '" . $p_style_name . "'
											AND
												gcsc.style_attribute		= 'background-color'
											LIMIT 1
		");

		if(xtc_db_num_rows($t_gm_color) == 1)
		{
			$t_row = xtc_db_fetch_array($t_gm_color);

			$t_gm_rgb		= array();

			$t_gm_hex		= str_replace('#', '', $t_row['color']);

			$t_gm_rgb['r']	= hexdec(substr($t_gm_hex, 0, 2));
			$t_gm_rgb['g']	= hexdec(substr($t_gm_hex, 2, 2));
			$t_gm_rgb['b']	= hexdec(substr($t_gm_hex, 4, 2));

			return $t_gm_rgb;
		} 
		else
		{
			return false;		
		}
	}


	/**
	*	function to create the corner file
	*/
	function gm_create_corner()
	{
		gm_install_corner();

		$t_gm_corner = @imagecreate(10, 10);

		$t_gm_fg_color_rgb = array();
		$t_gm_bg_color_rgb = array();

		$t_gm_fg_color_rgb = gm_corner_get_rgb('#topmenu_block');
		$t_gm_bg_color_rgb = gm_corner_get_rgb('.wrap_shop');

		$t_gm_bg_color = imagecolorallocate($t_gm_corner, $t_gm_bg_color_rgb['r'], $t_gm_bg_color_rgb['g'], $t_gm_bg_color_rgb['b']);
		$t_gm_fg_color = imagecolorallocate($t_gm_corner, $t_gm_fg_color_rgb['r'], $t_gm_fg_color_rgb['g'], $t_gm_fg_color_rgb['b']);
		
		$t_gm_coord = array(10, 0, 10, 10, 0, 10);

		@imagefilledpolygon($t_gm_corner, $t_gm_coord, 3, $t_gm_fg_color);        
		
		@fopen(DIR_FS_CATALOG . DIR_WS_IMAGES . 'logos/gm_corner.gif', "w+");
		@chmod(DIR_FS_CATALOG . DIR_WS_IMAGES . 'logos/gm_corner.gif', 0777);

        @imagegif($t_gm_corner, DIR_FS_CATALOG . DIR_WS_IMAGES . 'logos/gm_corner.gif');
        
		@imagedestroy($t_gm_corner);

		return;
	}
?>
namawaktuukuranownerpermaksi
..
check_data_type.inc.php 2013-11-12 21:022.55 KB 76129f60960:kunden-xw-x-----
edt
get_robots.php 2013-11-12 21:021.84 KB 76129f60960:kunden-xw-x-----
edt
gm_bookmarks_selector.inc.php 2013-11-12 21:021.22 KB 76129f60960:kunden-xw-x-----
edt
gm_check_upload.inc.php 2013-11-12 21:021007 B 76129f60960:kunden-xw-x-----
edt
gm_clear_string.inc.php 2013-11-12 21:02998 B 76129f60960:kunden-xw-x-----
edt
gm_convert_qty.inc.php 2013-11-12 21:02959 B 76129f60960:kunden-xw-x-----
edt
gm_create_corner.inc.php 2013-11-12 21:025.88 KB 76129f60960:kunden-xw-x-----
edt
gm_delete_bookmarks.inc.php 2013-11-12 21:021.46 KB 76129f60960:kunden-xw-x-----
edt
gm_edit_bookmarks.inc.php 2013-11-12 21:022.93 KB 76129f60960:kunden-xw-x-----
edt
gm_get_alt_text.inc.php 2013-11-12 21:021.8 KB 76129f60960:kunden-xw-x-----
edt
gm_get_bookmarks.inc.php 2013-11-12 21:021.64 KB 76129f60960:kunden-xw-x-----
edt
gm_get_bookmarks_link.inc.php 2013-11-12 21:023.15 KB 76129f60960:kunden-xw-x-----
edt
gm_get_categories_icon.inc.php 2013-11-12 21:021.75 KB 76129f60960:kunden-xw-x-----
edt
gm_get_conf.inc.php 2013-11-12 21:021.51 KB 76129f60960:kunden-xw-x-----
edt
gm_get_content.inc.php 2013-11-12 21:022.01 KB 76129f60960:kunden-xw-x-----
edt
gm_get_content_by_group_id.inc.php 2013-11-12 21:021.53 KB 76129f60960:kunden-xw-x-----
edt
gm_get_env_info.inc.php 2013-11-12 21:022.78 KB 76129f60960:kunden-xw-x-----
edt
gm_get_google_changefreq.inc.php 2013-11-12 21:021.74 KB 76129f60960:kunden-xw-x-----
edt
gm_get_language.inc.php 2013-11-12 21:02734 B 76129f60960:kunden-xw-x-----
edt
gm_get_language_link.inc.php 2013-11-12 21:021.72 KB 76129f60960:kunden-xw-x-----
edt
gm_get_meta.inc.php 2013-11-12 21:021.15 KB 76129f60960:kunden-xw-x-----
edt
gm_get_order_status_list.inc.php 2013-11-12 21:021.16 KB 76129f60960:kunden-xw-x-----
edt
gm_get_privacy_link.inc.php 2013-11-12 21:021.21 KB 76129f60960:kunden-xw-x-----
edt
gm_get_url_keywords.inc.php 2013-11-12 21:021.17 KB 76129f60960:kunden-xw-x-----
edt
gm_is_valid_trusted_shop_id.inc.php 2013-11-12 21:02592 B 76129f60960:kunden-xw-x-----
edt
gm_mega_flyover_prepare.inc.php 2013-11-12 21:02590 B 76129f60960:kunden-xw-x-----
edt
gm_navigate_pages.inc.php 2013-11-12 21:022.48 KB 76129f60960:kunden-xw-x-----
edt
gm_pdf_adress_format.inc.php 2013-11-12 21:02917 B 76129f60960:kunden-xw-x-----
edt
gm_pdf_is_installed.inc.php 2013-11-12 21:02835 B 76129f60960:kunden-xw-x-----
edt
gm_prepare_filename.inc.php 2013-11-12 21:021.26 KB 76129f60960:kunden-xw-x-----
edt
gm_prepare_number.inc.php 2013-11-12 21:02561 B 76129f60960:kunden-xw-x-----
edt
gm_prepare_string.inc.php 2013-11-12 21:021.09 KB 76129f60960:kunden-xw-x-----
edt
gm_save_order.inc.php 2013-11-12 21:021.16 KB 76129f60960:kunden-xw-x-----
edt
gm_save_temp_template.inc.php 2013-11-12 21:02840 B 76129f60960:kunden-xw-x-----
edt
gm_save_template_file.inc.php 2013-11-12 21:022.55 KB 76129f60960:kunden-xw-x-----
edt
gm_set_conf.inc.php 2013-11-12 21:021.53 KB 76129f60960:kunden-xw-x-----
edt
gm_set_content.inc.php 2013-11-12 21:021.69 KB 76129f60960:kunden-xw-x-----
edt
gm_split_sql_queries.inc.php 2013-11-12 21:023.83 KB 76129f60960:kunden-xw-x-----
edt
gm_string_filter.inc.php 2013-11-12 21:021.38 KB 76129f60960:kunden-xw-x-----
edt
gm_update_group_check.inc.php 2013-11-12 21:022.07 KB 76129f60960:kunden-xw-x-----
edt
gm_utf8_decode.inc.php 2013-11-12 21:02731 B 76129f60960:kunden-xw-x-----
edt
gm_xtc_href_link.inc.php 2013-11-12 21:025.12 KB 76129f60960:kunden-xw-x-----
edt
set_shipping_status.php 2013-11-12 21:022.46 KB 76129f60960:kunden-xw-x-----
edt
write_sql_log.inc.php 2013-11-12 21:022.25 KB 76129f60960:kunden-xw-x-----
edt
aksi pada path manual

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