403Webshell
Server IP : 195.130.67.5  /  Your IP : 216.73.217.154
Web Server : Microsoft-IIS/10.0
System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586
User : IUSR ( 0)
PHP Version : 7.4.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/inetpub/wwwroot/icd/administrator/components/com_mobilejoomla/classes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/inetpub/wwwroot/icd/administrator/components/com_mobilejoomla/classes/mjextmanager.php
<?php
/**
 * Mobile Joomla!
 * http://www.mobilejoomla.com
 *
 * @version		1.2.9
 * @license		GNU/GPL v2 - http://www.gnu.org/licenses/gpl-2.0.html
 * @copyright	(C) 2008-2014 Kuneri Ltd.
 * @date		June 2014
 */
defined('_JEXEC') or die('Restricted access');

class MJExtManager
{
	static function changeState($table, $id, $markup)
	{
		$db = JFactory::getDBO();
		
		$query = "SELECT COUNT(*) FROM $table WHERE id=$id AND markup=".$db->Quote($markup);
		$db->setQuery($query);
		$unpublished = $db->loadResult();
		
		if($unpublished)
		{
			$query = "DELETE FROM $table WHERE id=$id AND markup=".$db->Quote($markup);
			$db->setQuery($query);
			$db->query();
			return true;
		}
		else
		{
			$query = "INSERT INTO $table (id, markup) VALUES ($id, ".$db->Quote($markup).")";
			$db->setQuery($query);
			$db->query();
			return false;
		}
	}
	
	static function getImage($published)
	{
		return $published
			? '<img src="components/com_mobilejoomla/images/publ-16.png" width="16" height="16" />'
			: '<img src="components/com_mobilejoomla/images/unpubl-16.png" width="16" height="16" />';
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit