File manager - Edit - /home/capoccitel/www/components/com_acymailing/controllers/moduleloader.php
Back
<?php /** * @package AcyMailing for Joomla! * @version 5.8.0 * @author acyba.com * @copyright (C) 2009-2017 ACYBA S.A.R.L. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */ defined('_JEXEC') or die('Restricted access'); ?><?php class ModuleloaderController extends acymailingController{ function __construct($config = array()) { parent::__construct($config); $this->registerDefaultTask('load'); } function load(){ $timeVar = acymailing_getVar('int', 'time'); $time = time(); if($time < $timeVar OR $time > $timeVar +60) die('Not the right time'); $config = acymailing_config(); if($config->get('security_key') != acymailing_getVar('string', 'seckey')) die('Wrong key'); $moduleId = acymailing_getVar('int', 'id'); if(empty($moduleId)) die('OK! TEST VALID'); $module = acymailing_loadObject('SELECT * FROM #__modules WHERE id = '.intval($moduleId).' LIMIT 1'); if(empty($module)){ echo 'No module found'; exit; } $module->user = substr( $module->module, 0, 4 ) == 'mod_' ? 0 : 1; $module->name = $module->user ? $module->title : substr( $module->module, 4 ); $module->style = null; $module->module = preg_replace('/[^A-Z0-9_\.-]/i', '', $module->module); $params = array(); echo JModuleHelper::renderModule($module, $params); exit; } }
| ver. 1.6 |
Github
|
.
| PHP 7.4.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings