HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/confeduphaar/backip-old-files/components/com_acym/controllers/frontmails.php
<?php
defined('_JEXEC') or die('Restricted access');
?><?php
include ACYM_CONTROLLER.'mails.php';

class FrontmailsController extends MailsController
{
    public function __construct()
    {
        $this->authorizedFrontTasks = ['autoSave', 'setNewIconShare', 'edit', 'setNewThumbnail', 'getTemplateAjax', 'apply', 'saveAjax', 'save', 'sendTest'];
        $this->loadScripts = [
            'edit' => ['editor-wysid'],
        ];
        parent::__construct();
    }

    protected function setFrontEndParamsForTemplateChoose()
    {
        return acym_currentUserId();
    }

    public function setNewIconShare()
    {
        $menuFront = acym_loadObject('SELECT * FROM #__menu WHERE link LIKE "%index.php?option=com_acym&view=frontcampaigns%"');
        if (empty($menuFront)) return;

        parent::setNewIconShare();
    }
}