| Current Path : /home/smartconb/www/armencom33/modules/mod_jmailalerts/ |
| Current File : /home/smartconb/www/armencom33/modules/mod_jmailalerts/mod_jmailalerts.php |
<?php
/**
* User: zaven
* Date: 23.09.2019
* Time: 12:26
* Project: dev.armencom.be
**/
// No direct access
defined('_JEXEC') or die;
// Include the syndicate functions only once
require_once dirname(__FILE__) . '/helper.php';
if (!defined('JMAILALERTS_WRAPPER_CLASS')) {
if (JVERSION < '3.0') {
// Define wrapper class
define('JMAILALERTS_WRAPPER_CLASS', "jmailalerts-wrapper techjoomla-bootstrap");
} else {
// Define wrapper class
define('JMAILALERTS_WRAPPER_CLASS', "jmailalerts-wrapper");
}
}
$japp = JFactory::getApplication();
//print_r($japp->input->get('mod_jmailalerts_user_name'));
//print_r($japp->input->get('mod_jmailalerts_user_email'));
//print_r($japp->input->get('mod_jmailalerts_alt'));
if ($japp->input->get('mod_jmailalerts_action') === 'unsubscribe' || $japp->input->get('mod_jmailalerts_action') === 'subscribe') {
print_r($japp->input->get('mod_jmailalerts_action'));
modJMailAlertsHelper::doTask($japp->input);
}
//$tfchoice = $params->get('textfieldchoice'); //Parametereingaben
//$formtext = modFormularHelper::getFormText($params); //Daten aus helper.php
$cntalert = modJMailAlertsHelper::gettotalalertcount();
$altid = modJMailAlertsHelper::get_all_alertid();
$user = JFactory::getUser();
require JModuleHelper::getLayoutPath('mod_jmailalerts');