? GR0V Shell

GR0V shell

Linux www.koreapackagetour.com 2.6.32-042stab145.3 #1 SMP Thu Jun 11 14:05:04 MSK 2020 x86_64

Path : /home/admin/domains/happytokorea.com/public_html_bk/test3/plugins/system/
File Upload :
Current File : /home/admin/domains/happytokorea.com/public_html_bk/test3/plugins/system/azrul.system.php

<?php

(defined('_VALID_MOS') OR defined('_JEXEC')) or die('Direct Access to this location is not allowed.');

global $mosConfig_absolute_path, $mainframe, $_MAMBOTS;

if(!defined('CMSLIB_DEFINED')){
	$cmsfile = (dirname(dirname(dirname(__FILE__)))). '/components/libraries/cmslib/spframework.php';
	if(file_exists($cmsfile))
		include_once ($cmsfile);
	else
		return;
}

if(cmsVersion() == _CMS_JOOMLA10){
    $_MAMBOTS->registerFunction('onAfterStart', 'azrulSysBot');
}else if(cmsVersion() == _CMS_MAMBO){
    $_MAMBOTS->registerFunction('onHeaders', 'azrulSysBot');
}else if(cmsVersion() == _CMS_JOOMLA15){
	$mainframe->registerEvent( 'onAfterRoute', 'azrulSysBot' );
}

$cms =& cmsInstance('CMSCore');
include_once($cms->get_path('plugins') . "/system/pc_includes/template.php");

function azrulSysBot(){
	static $headerAdded = false;
	
	
	// Make sure the header are added only once
	if(!$headerAdded){
		global $option, $database, $mainframe;
		$cms    =& cmsInstance('CMSCore');
		$format = 'html';
		
		// Get the current action. If its PDF in Joomla 1.5 then dont proceed.
		if(cmsVersion() == _CMS_JOOMLA15){
			$format	= JRequest::getWord('format', 'html');

			
			if($format == 'pdf')
				return;
		}
		require_once($cms->get_path('plugins') . '/system/pc_includes/ajax.php');
	
		$jax = new JAX($cms->get_path('plugin-live') . '/system/pc_includes');
		$jax->setReqURI($cms->get_path('live') . '/index.php');
		$jax->process();
	
		// Do not add the ajax header if the document format is not html to 
		// avoid pdf view messed up in Joomla 1.5
		if (!isset ($_POST['no_html']) && $format =='html' ) {
			$mainframe->addCustomHeadTag($jax->getScript());
		}
		$headerAdded = true;
	}
}

T1KUS90T
  root-grov@210.1.60.28:~$