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/eadsa/modules/mod_imagescroll/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Old Sites/eadsa/modules/mod_imagescroll//mod_imagescroll.php
<?php
/**
 * @license        GNU/GPL, see LICENSE.php
 */
 
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

jimport('joomla.filesystem.file');
jimport('joomla.filesystem.folder');

// Include the helper functions only once
require_once( dirname(__FILE__).DS.'helper.php' );

$path_to_thumb_class = JPATH_BASE . DS . 'plugins' . DS . 'content' . DS . 'jdvthumbs' . DS . 'thumb.class.php';
if (!class_exists( 'JdvThumbs' ))
if (is_file($path_to_thumb_class)){
	require_once( $path_to_thumb_class );
}else{
	if (!class_exists('JdvThumbs')){
		require_once( dirname(__FILE__) . DS . 'thumb.class.php' );
	}
}

$document = &Jfactory::getDocument();

 
$directory = $params->get('Directory', '');
$recurseDirectory = $params->get('recurseDirectory', 1);
if ($recurseDirectory){
	$recurseDirectory = true;
} else{
	$recurseDirectory = false;
}

$directory = str_replace( '\\', '/', $directory );

$fs_directory = str_replace( '/', DS, $directory );
$fs_directory = str_replace( '\\', DS, $fs_directory );

$width = $params->get('width', '200px');
$height = $params->get('height', '200px');

$onPointBar = $params->get('onPointBar', 1);
$scrollDirection = $params->get('scrollDirection', 'horizontally');


$thumbWidth = $params->get('thumbWidth', 200);
$thumbHeight = $params->get('thumbHeight', 200);

$boxIdPrefix = $params->get('boxIdPrefix', 'jdv_iscroll0');
$boxWidth = $params->get('boxWidth', 650);
$boxHeight = $params->get('boxHeight', 450);
$boxQuality = $params->get('boxQuality', 70);


$quality = $params->get('quality', 65);
$method = $params->get('method', 'resized');
$sizeon = $params->get('sizeon', 'both');


$animationFun = $params->get('animationFun', 'Fx.Transitions.Quad.easeInOut');
$transDuration = $params->get('transDuration', 1000);

//$title = $params->get('title', 'An Image Slideshow');
$limit = $params->get('limit', 5);
$random = $params->get('random', 0);

$url = $params->get('URL', '#');

$targetLink = $params->get('targetLink', 0);
$typeLink = $params->get('typeLink', 'none');

$autoScroll = $params->get('autoScroll', 0);
$transDelay = $params->get('transDelay', 5000);

$introChars = $params->get('introChars', 100);


$linked = $params->get('Linked', 0);

if ($onPointBar){
	$js_file = 'imagescroll.js';
}else{
	$js_file = 'imagescroll.js';
}



JHTML::_("behavior.mootools");
$js = '
var jdv_iscroll' . $module->id . '_current = null;
window.addEvent("domready", function() {
	$("jdv_iscroll' . $module->id .'_wrap" ).addClass("jdv_load");
	if ($("' . $boxIdPrefix .'_info0")) $("' . $boxIdPrefix .'_info0").style.visibility = "visible";
	if ($("' . $boxIdPrefix .'_intro0")) $("' . $boxIdPrefix .'_intro0").style.visibility = "visible";
';
if ($typeLink == 'box' || $typeLink == 'box_title') {
	$js .= '
		if ($("' . $boxIdPrefix .'_box' . '")){
			$("' . $boxIdPrefix .'_box' . '").addClass("jdv_load");
		}
	';
}
if ($typeLink == 'box' || $typeLink == 'box_title') {
	$js .= '
	opacitypause' . $module->id .' = 0;
		$$("#jdv_iscroll' . $module->id .'_inner img").addEvent("click", function(event) {
			event = new Event(event).stop();
			if (opacitypause' . $module->id .') return true;
			if (jdv_iscroll' . $module->id . '_current != this.id) {
				
				$("' . $boxIdPrefix .'_box' . '").addClass("jdv_load");
								
				start = "jdv_iscroll' . $module->id .'_content".length; 
				end = this.id.length;
				i = this.id.substring(start, end);
				boximg = "' . JURI::base() . 'cache/mod_imagescroll_thumbs/"+jdv_iscroll_boxthumb' . $module->id . '[i];

				$("' . $boxIdPrefix .'_image' . '").style.opacity = 0;
				$("' . $boxIdPrefix .'_image' . '").src = boximg;

				$("' . $boxIdPrefix .'_image' . '").style.visibility = "hidden";
				for (el=0; el<$$(".jdv_iscroll_info").length; el++){
					$$(".jdv_iscroll_info")[el].style.visibility = "hidden";
					$$(".jdv_iscroll_intro")[el].style.visibility = "hidden";
				}
				if ($$(".jdv_iscroll_info")[i]) $$(".jdv_iscroll_info")[i].style.visibility = "visible";
				if ($$(".jdv_iscroll_intro")[i]) $$(".jdv_iscroll_intro")[i].style.visibility = "visible";
			}
			jdv_iscroll' . $module->id . '_current = this.id;
		});
		
		$("' . $boxIdPrefix . '_image").addEvent("load", function(event) {
			event = new Event(event).stop();';
			
			if ($typeLink == 'box_title') {
				$js .= '
				$("' . $boxIdPrefix .'_wrapinfo' . '").style.visibility="visible";
				$("' . $boxIdPrefix .'_wrapinfo' . '").setOpacity(0.45);
				';
			}

			$js .= '$("' . $boxIdPrefix .'_box' . '").removeClass("jdv_load");
			
			fx = new Fx.Styles($("' . $boxIdPrefix .'_image' . '"), {duration:1000, wait:false});
			fx.start({
				"opacity": 1
			});
			
			opacitypause' . $module->id . ' = 1;
			setTimeout("opacitypause' . $module->id . ' = 0", 1000);

		});
		if (jdv_iscroll_boxthumb' . $module->id . '[0]){
			$("' . $boxIdPrefix .'_image' . '").src = "' . JURI::base() . 'cache/mod_imagescroll_thumbs/"+jdv_iscroll_boxthumb' . $module->id . '[0];
		}
	';
}
$js .= '
});
';

$js .= '
window.addEvent("load", function() {
	$("jdv_iscroll' . $module->id .'_wrap" ).removeClass("jdv_load");
';
if ($typeLink == 'box' || $typeLink == 'box_title') {
	$js .= '
		if ($("' . $boxIdPrefix .'_image' . '")){
			$("' . $boxIdPrefix .'_box' . '").removeClass("jdv_load");
			$("' . $boxIdPrefix .'_image' . '").style.display = "inline";
		}
	';
}
$js .= '	
	if (jdvIScrollInstance == null){
		' . ($typeLink == 'articles' ? 'var JTooltips = new Tips($$(".ISTips"), { fixed: false});' : '') . '
		jdvIScrollInstance = new jdvIScroll(' . $module->id . ', \'' . $scrollDirection . '\', ' . $params->get('transDuration',1000) . ', ' . $animationFun . ');
		' . ($autoScroll ? 'setTimeout("jdvIScrollInstance.autoIScroll(' . $module->id . ', ' . $transDelay . ')", ' . $transDelay . ');' : '') . '
				jdvIScrollInstance.auto[idISModules.indexOf(parseInt(' . $module->id .'),0)] = ' . $autoScroll . ';
	} else {
		jdvIScrollInstance.initIScroll(' . $module->id . ', \'' . $scrollDirection . '\', ' . $params->get('transDuration',1000) . ', ' . $animationFun . ');
		' . ($autoScroll ? 'setTimeout("jdvIScrollInstance.autoIScroll(' . $module->id . ', ' . $transDelay . ')", ' . $transDelay . ');' : '') . '
				jdvIScrollInstance.auto[idISModules.indexOf(parseInt(' . $module->id .'),0)] = ' . $autoScroll . ';
	}

});
';


$layout = $params->get('layout', 'default');  

$path = JPATH_BASE . DS . $fs_directory;
$files = JFolder::files($path, 'jpg|png|JPG|PNG', $recurseDirectory, true);


if ($random){
	$files = modImageScrollHelper::getRand( $files, $limit );
}

$thumb_obj = new JdvThumbs;

$thumb_obj->set( 'thumbsdir',  'cache/mod_imagescroll_thumbs' );
$thumb_obj->set( 'width', $thumbWidth );
$thumb_obj->set( 'height', $thumbHeight );
$thumb_obj->set( 'quality', $quality );
$thumb_obj->set( 'method', $method );
$thumb_obj->set( 'sizeon', $sizeon );
$thumb_obj->set( 'prefix', 'thumb' . $module->id );

$galleryfiles = $thumb_obj->doThumbnail( $files, true );


$thumb_obj->set( 'thumbsdir',  'cache/mod_imagescroll_thumbs' );
$thumb_obj->set( 'width', $boxWidth );
$thumb_obj->set( 'height', $boxHeight );
$thumb_obj->set( 'quality', $boxQuality );
$thumb_obj->set( 'method', $method );
$thumb_obj->set( 'sizeon', $sizeon );
$thumb_obj->set( 'prefix', 'box' . $module->id );

$boxfiles = $thumb_obj->doThumbnail( $files, true );



$boxthumb = '';
if ($typeLink == 'box' || $typeLink == 'box_title') {
	$boxthumb = 'var jdv_iscroll_boxthumb' . $module->id . ' = [';
	foreach($boxfiles[0] as $boxthumbname){
		$boxthumbname = basename( $boxthumbname );
		$boxthumb .= "'$boxthumbname',";
	}
	$boxthumb = substr($boxthumb, 0, -1);
	$boxthumb .= ']';
}

$cache =& JFactory::getCache();
$noCache = !$params->get('cache') || !$cache->_options['caching'];
$document = & JFactory::getDocument();


if ($typeLink == 'slimbox') {
	modImageScrollHelper::addSlimboxScript( 'slimbox.js', JURI::base() . 'modules/mod_imagescroll/slimbox/', $noCache, $document );
	modImageScrollHelper::addSlimboxCSS( 'slimbox.css', JURI::base() . 'modules/mod_imagescroll/slimbox/', $noCache );
}

if ($boxthumb) {
	modImageScrollHelper::addScriptDec( $boxthumb, $noCache, $document );
}

modImageScrollHelper::addScript( $js_file, JURI::base() . 'modules/mod_imagescroll/', $noCache );
modImageScrollHelper::addCSS( 'imagescroll.css', JURI::base() . 'modules/mod_imagescroll/', $noCache );
modImageScrollHelper::addScriptDec( $js, $noCache, $document );



	

$files = $galleryfiles[1];

$cachefiles = $galleryfiles[0];

require( JModuleHelper::getLayoutPath( 'mod_imagescroll', $layout ) );

Youez - 2016 - github.com/yon3zu
LinuXploit