HEX
Server: LiteSpeed
System: Linux lp015.web24.net.au 2.6.32-954.3.5.lve1.4.93.el6.x86_64 #1 SMP Wed Oct 4 17:04:29 UTC 2023 x86_64
User: pgkdistr (10190)
PHP: 8.1.32
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/pgkdistribution.com.au/citisolar.com.au/components/com_fst/fst.php
<?php
/**
 * @package Freestyle Joomla
 * @author Freestyle Joomla
 * @copyright (C) 2013 Freestyle Joomla
 * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
**/
defined('_JEXEC') or die;

if (!function_exists("print_p"))
{
	function print_p($var)
	{
		echo "<pre>";
		print_r($var);
		echo "</pre>";	
	}
}

if (!defined("DS")) define('DS', DIRECTORY_SEPARATOR);

if (!JDEBUG)
{
	error_reporting(E_ALL & ~E_STRICT & ~E_NOTICE & ~E_WARNING);
}

require_once( JPATH_COMPONENT.DS.'helper'.DS.'j3helper.php' );

// Require the base controller
 
require_once( JPATH_COMPONENT.DS.'controller.php' );
require_once( JPATH_COMPONENT.DS.'helper'.DS.'helper.php' );
require_once( JPATH_COMPONENT.DS.'helper'.DS.'settings.php' );

// Require specific controller if requested
if($controller = JRequest::getWord('controller')) {
    $path = JPATH_COMPONENT.DS.'controllers'.DS.$controller.'.php';
    if (file_exists($path)) {
        require_once $path;
    } else {
        $controller = '';
    }
}

// Create the controller
$classname    = 'FstController'.$controller;
$controller   = new $classname( );

$css = FSTRoute::x( "index.php?option=com_fst&view=css&layout=default" );
$document = JFactory::getDocument();
$document->addStyleSheet($css); 
FST_Helper::IncludeJQuery();

// Perform the Request task
$task = JRequest::getVar( 'task' );
if ($task == "captcha_image")
{
	ob_clean();
	require_once (JPATH_SITE.DS.'components'.DS.'com_fst'.DS.'helper'.DS.'captcha.php');
	$cap = new FST_Captcha();
	$cap->GetImage();
	exit;
} else {
	$controller->execute( $task );

	// Redirect if set by the controller
	$controller->redirect();
}
?>