403Webshell
Server IP : 85.158.181.41  /  Your IP : 216.73.217.12
Web Server : Apache
System : Linux cloud9-vm129 6.1.178+1-ph #ph SMP PREEMPT_DYNAMIC Wed Jul 29 09:00:54 UTC 2026 x86_64
User : moncbefd ( 1024)
PHP Version : 7.3.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/moncbefd/www.moneta.at/gm/inc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/moncbefd/www.moneta.at/gm/inc/gm_get_content.inc.php
<?php
/* --------------------------------------------------------------
   gm_get_content.inc.php 2008-03-17 gambio
   Gambio OHG
   http://www.gambio.de
   Copyright (c) 2008 Gambio OHG
   Released under the GNU General Public License (Version 2)
   [http://www.gnu.org/licenses/gpl-2.0.html]
   --------------------------------------------------------------

gm_get_content.inc.php 2008-01-30 mb
	Gambio OHG
	http://www.gambio.de
	Copyright (c) 2008 Gambio OHG
   Released under the GNU General Public License (Version 2)
   [http://www.gnu.org/licenses/gpl-2.0.html]
	--------------------------------------------------------------
*/
	
	/*
		-> function to get content values
	*/
	
	function gm_get_content($gm_key, $languages_id, $result_type = 'ASSOC') {
		$gm_values = false;
		if($result_type == 'ASSOC' || $result_type == 'NUMERIC'){
			if(is_array($gm_key)){
				foreach($gm_key as $key){
					$gm_query = xtc_db_query("
											SELECT
												gm_value
											FROM
												gm_contents
											WHERE
												gm_key = '" . xtc_db_input($key) . "'
												AND languages_id = '" . (int)$languages_id . "'
												LIMIT 1
											"); 

					if(xtc_db_num_rows($gm_query) == 1){
						if($gm_values == false) $gm_values = array();
						$gm_row = xtc_db_fetch_array($gm_query);
						if($result_type == 'ASSOC') {
							$gm_values[$key] = $gm_row['gm_value'];
						} else {
							$gm_values[] = $gm_row['gm_value'];				
						}					
					}
				}
			} 
			else {
				$gm_query = xtc_db_query("
										SELECT
											gm_value
										FROM
											gm_contents
										WHERE
											gm_key = '" . xtc_db_input($gm_key) . "'
											AND languages_id = '" . (int)$languages_id . "'
											LIMIT 1
										"); 
				if(xtc_db_num_rows($gm_query) == 1){
					if($gm_values == false) $gm_values = '';
					$gm_row = xtc_db_fetch_array($gm_query);
					$gm_values = $gm_row['gm_value'];
				}
			}
		}
		
		return $gm_values;
	}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit