| Server IP : 46.105.57.169 / Your IP : 216.73.216.67 Web Server : Apache System : Linux webm002.cluster120.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : verseaumee ( 152031) PHP Version : 8.5.7 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/verseaumee/www/components/com_acymailing/controllers/ |
Upload File : |
<?php
/**
* @package AcyMailing for Joomla!
* @version 5.5.0
* @author acyba.com
* @copyright (C) 2009-2016 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 ArchiveController extends acymailingController{
function view(){
$statsClass = acymailing_get('class.stats');
$statsClass->countReturn = false;
$statsClass->saveStats();
$printEnabled = JRequest::getVar('print', 0);
if($printEnabled){
$js = "setTimeout(function(){
if(document.getElementById('iframepreview')){
document.getElementById('iframepreview').contentWindow.focus();
document.getElementById('iframepreview').contentWindow.print();
}else{
window.print();
}
},2000);";
$doc = JFactory::getDocument();
$doc->addScriptDeclaration($js);
}
JRequest::setVar('layout', 'view');
return parent::display();
}
}