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/system/classes/listing/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/moncbefd/www.moneta.at/system/classes/listing/ListingManager.inc.php
<?php
/* --------------------------------------------------------------
   ListingManager.inc.php 2010-09-20 gambio
   Gambio GmbH
   http://www.gambio.de
   Copyright (c) 2010 Gambio GmbH
   Released under the GNU General Public License (Version 2)
   [http://www.gnu.org/licenses/gpl-2.0.html]
   --------------------------------------------------------------
*/

class ListingManager
{
	function ListingManager()
	{
	}

	function get_sql_sort_part($p_sort_mode)
	{
		$t_output = '';
		$t_desc_mode = false;

		switch($p_sort_mode)
		{
			case 'price_desc':
				$t_desc_mode = true;
			case 'price_asc':
				$t_output = 'p.products_price';
				break;

			case 'name_desc':
				$t_desc_mode = true;
			case 'name_asc':
				$t_output = 'pd.products_name';
				break;

			case 'date_desc':
				$t_desc_mode = true;
			case 'date_asc':
				$t_output = 'p.products_date_added';
				break;

			case 'shipping_desc':
				$t_desc_mode = true;
			case 'shipping_asc':
				$t_output = 'p.products_shippingtime';
				break;

			default:
				break;
		}


		if($t_desc_mode == true)
		{
			# set descending
			$t_output .= ' DESC ';
		}

		# complete orderby-string if sort_mode found
		if(empty($t_output) == false)
		{
			$t_output = ' ORDER BY '.$t_output.', products_sort ASC';
		}
		
		return $t_output;
	}

}

?>

Youez - 2016 - github.com/yon3zu
LinuXploit