uawdijnntqw1x1x1
IP : 216.73.216.46
Hostname : webm002.cluster123.gra.hosting.ovh.net
Kernel : Linux webm002.cluster123.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
OS : Linux
PATH:
/
home
/
megadansyp
/
www
/
eace8
/
..
/
modules
/
mod_jevents_switchview
/
mod_jevents_switchview.php
/
/
<?php /** * JEvents Component for Joomla! 3.x * * @version $Id: mod_jevents_switchview.php 941 2010-05-20 13:21:57Z geraintedwards $ * @package JEvents * @subpackage Module JEvents Switch View * @copyright Copyright (C) 2006-2008 JEvents Project Group * @license GNU/GPLv2, see http://www.gnu.org/licenses/gpl-2.0.html * @link http://joomlacode.org/gf/project/jevents */ defined('_JEXEC') or die('Restricted access'); use Joomla\CMS\Language\Text; use Joomla\CMS\Factory; use Joomla\CMS\Uri\Uri; use Joomla\CMS\Router\Route; use Joomla\CMS\HTML\HTMLHelper; // CHECK EVENTS COMPONENT $file = JPATH_SITE . '/components/com_jevents/mod.defines.php'; if (file_exists($file)) { include_once($file); include_once(JEV_LIBS . "/modfunctions.php"); } else { die ("JEvents Layout Switcher\n<br />This module needs the JEvents component"); } // record what is running - used by the filters $registry = JevRegistry::getInstance("jevents"); $registry->set("jevents.activeprocess", "mod_jevents_switchview"); $registry->set("jevents.moduleid", $module->id); $registry->set("jevents.moduleparams", $params); $document = Factory::getDocument(); $style = "select#jos_change_view {width:100%;}"; $document->addStyleDeclaration($style); // load language constants JEVHelper::loadLanguage('modswitchview'); // existing values $cfg = JEVConfig::getInstance(); // priority of view setting is url, cookie, config, $jEventsView = $cfg->get('com_calViewName', "default"); $cur_view = JEV_CommonFunctions::getJEventsViewName(); // paramaters $preview_height = $params->get('preview_height', 90); $preview_width = $params->get('preview_width', 140); $show_preview = $params->get('show_preview', 1); // get views names from template directory $darray = array(); foreach (JEV_CommonFunctions::getJEventsViewList() as $viewfile) { $darray[] = HTMLHelper::_('select.option', $viewfile, $viewfile); } sort($darray); // Show the preview image // Set up JavaScript for nd cookie based switching $onchange = ""; if ($show_preview) { $onchange = "showimage();"; ?> <img src="<?php echo Uri::root() . "components/com_jevents/views/$cur_view/assets/images/view_thumbnail.png"; ?>" name="preview" border="1" width="<?php echo $preview_width; ?>" height="<?php echo $preview_height; ?>" alt="<?php echo $cur_view; ?>"/> <?php } ?> <script type='text/javascript'> <!-- function showimage() { //if (!document.images) return; document.images.preview.src = '<?php echo Uri::root();?>components/com_jevents/views/' + getSelectedValue('jeventviewform', 'jos_change_view') + '/assets/images/view_thumbnail.png'; } function setJViewcookie(index) { value = getSelectedValue("jeventviewform", "jos_change_view"); document.cookie = "jevents_view=" + value + ";path=/"; alert("JEvents View changed to " + value); } function getSelectedValue(frmName, srcListName) { var form = eval('document.' + frmName); var srcList = eval('form.' + srcListName); i = srcList.selectedIndex; if (i != null && i > -1) { return srcList.options[i].value; } else { return null; } } --> </script> <?php $catidsOut = null; $modcatids = null; $catidList = null; global $option, $Itemid; if ($option == "com_jevents" && $Itemid != 0) { $myItemid = $Itemid; } else { $myItemid = $params->get("target_itemid", JEVHelper::getItemid()); } $target = Route::_("index.php?option=com_jevents&Itemid=" . $myItemid); ?> <form action="<?php echo $target; ?>" name="jeventviewform" method="post"> <?php echo HTMLHelper::_('select.genericlist', $darray, 'jos_change_view', " class=\"button\" onchange=\"$onchange\"", 'value', 'text', $cur_view); ?> <input class="button" type="submit" value="<?php echo Text::_('JEV_CMN_SELECT'); ?>" onclick="setJViewcookie(this.selectedIndex);"/> </form>
/home/megadansyp/www/eace8/../modules/mod_jevents_switchview/mod_jevents_switchview.php