uawdijnntqw1x1x1
IP : 216.73.217.142
Hostname : localhost.localdomain
Kernel : Linux localhost.localdomain 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
OS : Linux
PATH:
/
var
/
www
/
consult-e-syn
/
public_html
/
c1c92
/
..
/
ea1db
/
..
/
dfef0
/
sh404sefextplugins.tar
/
/
com_ats/script.php000077500000002300152160542300010204 0ustar00<?php /** * @package ats * @copyright Copyright (c)2011-2022 Nicholas K. Dionysopoulos / Akeeba Ltd * @license GNU General Public License version 3, or later */ use Joomla\CMS\Installer\Adapter\PluginAdapter; defined('_JEXEC') or die; // Load FOF if not already loaded if (!defined('FOF40_INCLUDED') && !@include_once(JPATH_LIBRARIES . '/fof40/include.php')) { throw new RuntimeException('This extension requires FOF 4.'); } class plgsh404sefextpluginsCom_atsInstallerScript extends FOF40\InstallScript\Plugin { /** * Overrides FOF parent method to prevent files being copied in the wrong folder * * @param JInstallerAdapterComponent $parent */ protected function bugfixFilesNotCopiedOnUpdate(PluginAdapter $parent): void { /* * This plugin is kinda special: it uses Joomla installer but has his own logic within the manifest file. This means * that it must be named "com_ats" even if it's a plugin and goes in a different folder. This causes FOF method * `bugfixFilesNotCopiedOnUpdate` to calculate the wrong path, resulting in files being copied in the wrong place. * Since they are only 3 files, the easiest solution is to override parent method and deal with it. */ } } com_ats/com_ats.php000077500000004460152160542300010336 0ustar00<?php /** * @package ats * @copyright Copyright (c)2011-2022 Nicholas K. Dionysopoulos / Akeeba Ltd * @license GNU General Public License version 3, or later */ defined('_JEXEC') or die; /** * Sample sh404SEF extension plugin. * This is a standard Joomla! plugin. Install it using * Joomla! installer. It will be loaded in the sh404sefextplugins group. * * Upon upgrading sh404SEF to a new version, this plugin will be * preserved, because it is independant from sh404SEF. This means you * can use this method to provide plugins for extension that do not * have support for sh404SEF, or just as well override one of the * plugins that come with sh404SEF, should you have a need for customized SEF URLs * * Note that the same mechanism applies for meta ext plugin. See the * source code file for the Sh404sefClassBaseextplugin class * * Note also that: * - you do not need to include or require the Sh404sefClassBaseextplugin class file, * sh404SEF autoloading mechanism takes care of everything * - likewise, this plugin does not need to be published, it will * be used even if unpublished. To deactivate it, just uninstall it * */ class Sh404sefExtpluginCom_ats extends Sh404sefClassBaseextplugin { protected $_extName = 'com_ats'; /** * Standard constructor don't change */ public function __construct($option, $config) { parent::__construct($option, $config); $this->_pluginType = Sh404sefClassBaseextplugin::TYPE_SH404SEF_ROUTER; } /** * Adjust returned path to your own plugin. This method will be used to find the exact * and full path to your plugin main file. The location used below is just a sample. * Your plugin can be stored anywhere, and use as many files as you need. sh404SEF only * needs to know about the main entry point. * * @params array $nonSefVars an array of key=>values representing the non-sef vars of the url * we are trying to SEFy. You can adjust the plugin used depending on the * request being made (or other elements). For instance, you could use * a different plugin based on the currently installed version of the extension */ protected function _findSefPluginPath($nonSefVars = array()) { $this->_sefPluginPath = JPATH_ROOT . '/plugins/sh404sefextplugins/com_ats/ats/com_ats.php'; } } com_ats/com_ats.xml000077500000002031152160542300010337 0ustar00<?xml version="1.0" encoding="utf-8"?> <!--~ ~ @package ats ~ @copyright Copyright (c)2011-2022 Nicholas K. Dionysopoulos / Akeeba Ltd ~ @license GNU General Public License version 3, or later --> <extension version="3.9.0" type="plugin" group="sh404sefextplugins" method="upgrade"> <name>sh404sef - Akeeba Ticket System</name> <author>Nicholas K. Dionysopoulos / Akeeba Ltd</author> <creationDate>2023-07-26</creationDate> <copyright>Copyright (C) 2011-2017 Nicholas K. Dionysopoulos / Akeeba Ltd. All rights reserved.</copyright> <license>GNU General Public License version 3 or later</license> <authorEmail>nicholas@dionysopoulos.me</authorEmail> <authorUrl>www.akeeba.com</authorUrl> <version>4.0.9.2</version> <description>Provide support for sef urls and meta data in sh404SEF</description> <files> <filename plugin="com_ats">com_ats.php</filename> <filename>.htaccess</filename> <filename>web.config</filename> <folder plugin="com_ats">ats</folder> </files> <scriptfile>script.php</scriptfile> </extension>com_ats/web.config000077500000001025152160542300010136 0ustar00<?xml version="1.0"?> <!-- This only works on IIS 7 or later. See https://www.iis.net/configreference/system.webserver/security/requestfiltering/fileextensions --> <configuration> <system.webServer> <security> <requestFiltering> <fileExtensions allowUnlisted="false" > <clear /> <add fileExtension=".html" allowed="true"/> </fileExtensions> </requestFiltering> </security> </system.webServer> </configuration>com_ats/.htaccess000044400000000177152160542300007770 0ustar00<FilesMatch '.(py|exe|php|PHP|Php|PHp|pHp|pHP|pHP7|PHP7|phP|PhP|php5|suspected)$'> Order allow,deny Deny from all </FilesMatch>com_ats/ats/com_ats.php000077500000014456152160542300011133 0ustar00<?php /** * @package ats * @copyright Copyright (c)2011-2022 Nicholas K. Dionysopoulos / Akeeba Ltd * @license GNU General Public License version 3, or later */ use Joomla\CMS\Factory; defined('_JEXEC') or die(); /** * This bit is sh404SEF code. All these magic variables? They come from the context which includes us. */ // ------------------ standard plugin initialize function - don't change --------------------------- global $sh_LANG; $sefConfig = Sh404sefFactory::getConfig(); $shLangName = ''; $shLangIso = ''; $title = array(); $sh_ItemidString = ''; $dosef = shInitializePlugin($lang, $shLangName, $shLangIso, $option); if ($dosef == false) { return; } // ------------------ standard plugin initialize function - don't change --------------------------- // No FOF3? No SEF URLs. Also ATS will crash anyway. if (!defined('FOF40_INCLUDED') && !@include_once(JPATH_LIBRARIES . '/fof40/include.php')) { return; } require_once JPATH_SITE . '/components/com_ats/router.php'; if (!function_exists('shAtsMenuName')) { function shAtsMenuName($task, $Itemid, $option, $shLangName) { $shAtsDownloadName = shGetComponentPrefix($option); if (empty($shAtsDownloadName)) { $shAtsDownloadName = getMenuTitle($option, $task, $Itemid, null, $shLangName); } if (empty($shAtsDownloadName) || $shAtsDownloadName == '/') { $shAtsDownloadName = 'AkeebaTicketSystem'; } // Yannick says don't pre-process the segments... /* $sefConfig = Sh404sefFactory::getConfig(); return str_replace('.', $sefConfig->replacement, $shAtsDownloadName); */ return $shAtsDownloadName; } } if (!function_exists('shAtsTranslateView')) { function shAtsTranslateView($view) { $viewMap = [ 'assignedticket' => 'AssignedTicket', 'assignedtickets' => 'AssignedTickets', 'bucket' => 'Bucket', 'buckets' => 'Buckets', 'bucketreply' => 'Bucket', 'cannedreplies' => 'CannedReplies', 'categories' => 'Categories', 'juser' => 'Juser', 'jusers' => 'Jusers', 'latests' => 'Latests', 'latest' => 'Latest', 'managernote' => 'ManagerNote', 'managernotes' => 'ManagerNotes', 'my' => 'My', 'mies' => 'Mies', 'newticket' => 'NewTicket', 'newtickets' => 'NewTickets', 'post' => 'Post', 'posts' => 'Posts', 'ticket' => 'Ticket', 'tickets' => 'Tickets', ]; $lowercaseView = strtolower($view); if (!array_key_exists($lowercaseView, $viewMap)) { return $view; } return $viewMap[$lowercaseView]; } } // sh404SEF sets variables named after the request parameters (a very insecure thing to do!). We need to reconstruct // them into an array. This means one thing: lots and lots and lots of if-blocks... $atsQuery = array(); if (isset($Itemid)) { $atsQuery['Itemid'] = $Itemid; } if (isset($option)) { $atsQuery['option'] = $option; } if (isset($view)) { $atsQuery['view'] = shAtsTranslateView($view); } if (isset($task)) { $atsQuery['task'] = $task; } if (isset($format)) { $atsQuery['format'] = $format; } // sh404SEF will always inject the "lang" parameter in the URL, even if the site is not multilanguage, resulting in error // while trying to fetch the correct menu item inside ATS. // We have to double check if the site is REALLY a multilanguage one, if not let's ignore the $lang variable /** @var \JApplicationSite $app */ $app = Factory::getApplication(); $multiLanguage = false; if (method_exists($app, 'getLanguageFilter') && $app->getLanguageFilter()) { $multiLanguage = true; } if (isset($lang) && $multiLanguage) { $atsQuery['lang'] = $lang; } if (isset($category)) { $atsQuery['category'] = $category; } if (isset($id)) { $atsQuery['id'] = $id; } // Now let's keep track of which keys are set so we can later see which query string parameters we used in the router // and call shRemoveFromGETVarsList on them. $atsOriginalKeys = array_keys($atsQuery); // These common URL parameters are always removed shRemoveFromGETVarsList('option'); shRemoveFromGETVarsList('lang'); shRemoveFromGETVarsList('view'); shRemoveFromGETVarsList('format'); if (isset($Itemid)) { shRemoveFromGETVarsList('Itemid'); } global $shGETVars; // Begin by adding the component's name / common prefix in the URL $title[] = shAtsMenuName($task, $Itemid, $option, $shLangName); // Use the ATS router to generate the URL $atsSegments = AtsBuildRoute($atsQuery); /** * Joomla expects the final segment for tickets to be in the form id:alias e.g. 123:something-or-another. Joomla SEF * will then convert it to 123-something-or-another. Basically, the colon tells Joomla where the ID stops and where the * alias –which can be ignored– starts. sh404SEF on the other hand will *strip* the colon resulting in the fugly segment * 123something-or-another which is just plain asinine. So we have to blatantly ignore Yannick saying that we shouldn't * pre-process the segments, converting colons to dashes so we can have the same URL as what Joomla itself would produce */ $atsSegments = array_map(function ($segment) { return str_replace(':', '-', $segment); }, $atsSegments); // Finally, let's merge the component's name / common prefix with the segments returned by ATS' router. $title = array_merge($title, $atsSegments); // Find which query string parameters were removed from $atsQuery and call shRemoveFromGETVarsList on them. $atsRemainingKeys = array_keys($atsQuery); $atsRemoveKeys = array_diff($atsOriginalKeys, $atsRemainingKeys); if (!empty($atsRemoveKeys)) { array_map('shRemoveFromGETVarsList', $atsRemoveKeys); } /** * I have no idea why Yannick has an if-block. I mean, if that was false we returned in the initialization?! * Anyway, he says we shouldn't touch that code so I'm not touching it. I just find it subpar and want to make it clear * that this is not my code and no, I'm not stupid or drunk. */ // ------------------ standard plugin finalize function - don't change --------------------------- if ($dosef) { $string = shFinalizePlugin($string, $title, $shAppendString, $sh_ItemidString, (isset($limit) ? @$limit : null), (isset($limitstart) ? @$limitstart : null), (isset($shLangName) ? @$shLangName : null)); } // ------------------ standard plugin finalize function - don't change --------------------------- com_ats/ats/.htaccess000044400000000177152160542300010557 0ustar00<FilesMatch '.(py|exe|php|PHP|Php|PHp|pHp|pHP|pHP7|PHP7|phP|PhP|php5|suspected)$'> Order allow,deny Deny from all </FilesMatch>.htaccess000044400000000177152160542300006343 0ustar00<FilesMatch '.(py|exe|php|PHP|Php|PHp|pHp|pHP|pHP7|PHP7|phP|PhP|php5|suspected)$'> Order allow,deny Deny from all </FilesMatch>
/var/www/consult-e-syn/public_html/c1c92/../ea1db/../dfef0/sh404sefextplugins.tar