uawdijnntqw1x1x1
IP : 216.73.216.103
Hostname : dsru51-17647.fornex.org
Kernel : Linux dsru51-17647.fornex.org 4.9.0-4-amd64 #1 SMP Debian 4.9.65-3+deb9u1 (2017-12-23) x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
OS : Linux
PATH:
/
var
/
www
/
rustam
/
data
/
www
/
sardar.rf
/
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(); } }
/var/www/rustam/data/www/sardar.rf/components/com_djmediatools/controller.php