Beispiel #1
0
    public static function showConfigEdit()
    {
        $mailOpt = array();
        $mailOpt[] = jnews::HTML_SelectOption('mail', 'PHP mail function');
        $mailOpt[] = jnews::HTML_SelectOption('sendmail', 'Sendmail');
        $mailOpt[] = jnews::HTML_SelectOption('smtp', 'SMTP Server');
        $logFormat = array();
        $logFormat[] = jnews::HTML_SelectOption('0', _JNEWS_DETAILED);
        $logFormat[] = jnews::HTML_SelectOption('1', _JNEWS_SIMPLE);
        $themeOption = array();
        $themeOption[] = jnews::HTML_SelectOption('joobilist', 'jNews Look');
        $themeOption[] = jnews::HTML_SelectOption('adminlist', 'Joomla look');
        $lists = array();
        $lists['component_theme'] = jnews::HTML_GenericList($themeOption, "config['component_theme']", 'class="inputbox" size="1"', 'value', 'text', jnews::myTheme());
        $lists['mailermethod'] = jnews::HTML_GenericList($mailOpt, "config['emailmethod']", 'class="inputbox" size="1"', 'value', 'text', $GLOBALS[JNEWS . 'emailmethod']);
        $lists['send_log_simple'] = jnews::HTML_GenericList($logFormat, "config['send_log_simple']", 'class="inputbox" size="1"', 'value', 'text', $GLOBALS[JNEWS . 'send_log_simple']);
        $lists['save_log_simple'] = jnews::HTML_GenericList($logFormat, "config['save_log_simple']", 'class="inputbox" size="1"', 'value', 'text', $GLOBALS[JNEWS . 'save_log_simple']);
        $mailSecure[] = jnews::HTML_SelectOption('', '---');
        $mailSecure[] = jnews::HTML_SelectOption('ssl', 'SSL');
        $mailSecure[] = jnews::HTML_SelectOption('tls', 'TLS');
        $lists['smtp_secure'] = jnews::HTML_GenericList($mailSecure, "config['smtp_secure']", 'class="inputbox" size="1"', 'value', 'text', $GLOBALS[JNEWS . 'smtp_secure']);
        $lists['auth_required'] = jnews::HTML_BooleanList("config['smtp_auth_required']", 'class="inputbox"', $GLOBALS[JNEWS . 'smtp_auth_required']);
        $lists['allow_unregistered'] = jnews::HTML_BooleanList("config['allow_unregistered']", 'class="inputbox"', $GLOBALS[JNEWS . 'allow_unregistered']);
        $lists['require_confirmation'] = jnews::HTML_BooleanList("config['require_confirmation']", 'class="inputbox"', $GLOBALS[JNEWS . 'require_confirmation']);
        // DKIM code addition by Amod begins
        $GLOBALS[JNEWS . 'dkim_activated'] = !empty($GLOBALS[JNEWS . 'dkim_activated']) ? $GLOBALS[JNEWS . 'dkim_activated'] : null;
        $lists['dkim_activated'] = jnews::HTML_BooleanList("config['dkim_activated']", 'class="inputbox"', $GLOBALS[JNEWS . 'dkim_activated']);
        // DKIM code addition by Amod ends
        //These options are transfered from lists to configuration
        $lists['show_unsubscribelink'] = jnews::HTML_BooleanList("config['show_unsubscribelink']", 'class="inputbox"', $GLOBALS[JNEWS . 'show_unsubscribelink']);
        $lists['show_subscriptionlink'] = jnews::HTML_BooleanList("config['show_subscriptionlink']", 'class="inputbox"', $GLOBALS[JNEWS . 'show_subscriptionlink']);
        //Queue Settings for queue status
        $queuestatus = array();
        $queuestatus[] = jnews::HTML_SelectOption('1', _JNEWS_QUEUESTATS_ON);
        $queuestatus[] = jnews::HTML_SelectOption('0', _JNEWS_QUEUESTATS_OF);
        $lists['queue_status'] = jnews::HTML_RadioList($queuestatus, "config['queue_status']", 'class="inputbox" size="1"', 'value', 'text', $GLOBALS[JNEWS . 'queue_status']);
        $archiveLink = array();
        $archiveLink[] = jnews::HTML_SelectOption('standard', _JNEWS_ARCHIVELINK_STANDARD);
        $archiveLink[] = jnews::HTML_SelectOption('popup', _JNEWS_ARCHIVELINK_POPUP);
        $archiveLink[] = jnews::HTML_SelectOption('newpage', _JNEWS_ARCHIVELINK_PAGE);
        $lists['archive_link'] = jnews::HTML_RadioList($archiveLink, "config['archive_link']", 'class="inputbox" size="1"', 'value', 'text', @$GLOBALS[JNEWS . 'archive_link']);
        $joobicron = array();
        $joobicron[] = jnews::HTML_SelectOption('1', _JNEWS_JOOBICRON_NO);
        $joobicron[] = jnews::HTML_SelectOption('2', _JNEWS_JOOBICRON_YES);
        if ($GLOBALS[JNEWS . 'j_cron'] != 2) {
            $GLOBALS[JNEWS . 'j_cron'] = 1;
        }
        //set to no
        $lists['j_cron'] = jnews::HTML_RadioList($joobicron, "config['j_cron']", 'class="inputbox" size="1"', 'value', 'text', @$GLOBALS[JNEWS . 'j_cron']);
        //Queue Settings for Queue Process
        //$queueprocess=array();
        //$queueprocess[]=jnews::HTML_SelectOption('1', _JNEWS_QUEUESTATS_ON);
        //$queueprocess[]=jnews::HTML_SelectOption('0', _JNEWS_QUEUESTATS_OF);
        //$lists['queue_process'] = jnews::HTML_RadioList( $queueprocess, "config['queue_process']" , 'class="inputbox" size="1"', 'value', 'text', $GLOBALS[JNEWS.'queue_process'] );
        //Queue Settings for Smart Queue
        $smartqueue = array();
        $smartqueue[] = jnews::HTML_SelectOption('1', _JNEWS_SMARTQ_ON);
        $smartqueue[] = jnews::HTML_SelectOption('0', _JNEWS_SMARTQ_OF);
        $lists['smart_queue'] = jnews::HTML_RadioList($smartqueue, "config['smart_queue']", 'class="inputbox" size="1"', 'value', 'text', $GLOBALS[JNEWS . 'smart_queue']);
        $lists['show_login'] = jnews::HTML_BooleanList("config['show_login']", 'class="inputbox"', $GLOBALS[JNEWS . 'show_login']);
        $lists['show_logout'] = jnews::HTML_BooleanList("config['show_logout']", 'class="inputbox"', $GLOBALS[JNEWS . 'show_logout']);
        $lists['confirm_html'] = jnews::HTML_BooleanList("config['confirm_html']", 'class="inputbox"', $GLOBALS[JNEWS . 'confirm_html']);
        $lists['time_zone'] = jnews::HTML_BooleanList("config['time_zone']", 'class="inputbox"', $GLOBALS[JNEWS . 'time_zone']);
        $lists['sub_info_fields'] = jnews::HTML_BooleanList("config['sub_info_fields']", 'class="inputbox"', $GLOBALS[JNEWS . 'sub_info_fields']);
        $lists['show_archive'] = jnews::HTML_BooleanList("config['show_archive']", 'class="inputbox"', $GLOBALS[JNEWS . 'show_archive']);
        $lists['enable_statistics'] = jnews::HTML_BooleanList("config['enable_statistics']", 'class="inputbox"', $GLOBALS[JNEWS . 'enable_statistics']);
        $lists['statistics_per_subscriber'] = jnews::HTML_BooleanList("config['statistics_per_subscriber']", 'class="inputbox"', $GLOBALS[JNEWS . 'statistics_per_subscriber']);
        //Send only HTML Mailin
        $lists['forced_html'] = jnews::HTML_BooleanList("config['forced_html']", 'class="inputbox"', $GLOBALS[JNEWS . 'forced_html']);
        $lists['wait_for_user'] = jnews::HTML_BooleanList("config['wait_for_user']", 'class="inputbox"', $GLOBALS[JNEWS . 'wait_for_user']);
        $lists['display_trace'] = jnews::HTML_BooleanList("config['display_trace']", 'class="inputbox"', $GLOBALS[JNEWS . 'display_trace']);
        $lists['send_data'] = jnews::HTML_BooleanList("config['send_data']", 'class="inputbox"', $GLOBALS[JNEWS . 'send_data']);
        $lists['send_auto_log'] = jnews::HTML_BooleanList("config['send_auto_log']", 'class="inputbox"', $GLOBALS[JNEWS . 'send_auto_log']);
        $lists['send_log'] = jnews::HTML_BooleanList("config['send_log']", 'class="inputbox"', $GLOBALS[JNEWS . 'send_log']);
        $lists['save_log'] = jnews::HTML_BooleanList("config['save_log']", 'class="inputbox"', $GLOBALS[JNEWS . 'save_log']);
        $lists['send_log_closed'] = jnews::HTML_BooleanList("config['send_log_closed']", 'class="inputbox"', $GLOBALS[JNEWS . 'send_log_closed']);
        $lists['clear_log'] = jnews::HTML_BooleanList("clear_log", 'class="inputbox"', 0);
        $lists['show_footer'] = jnews::HTML_BooleanList("config['show_footer']", 'class="inputbox"', $GLOBALS[JNEWS . 'show_footer']);
        $lists['show_jcalpro'] = jnews::HTML_BooleanList("config['show_jcalpro']", 'class="inputbox"', $GLOBALS[JNEWS . 'show_jcalpro']);
        $lists['show_jlinks'] = jnews::HTML_BooleanList("config['show_jlinks']", 'class="inputbox"', $GLOBALS[JNEWS . 'show_jlinks']);
        // $lists['enable_jsub'] = jnews::HTML_BooleanList( "config['enable_jsub']" , 'class="inputbox"', $GLOBALS[JNEWS.'enable_jsub'] );
        $lists['allow_sn'] = jnews::HTML_BooleanList("config['allow_sn']", 'class="inputbox"', $GLOBALS[JNEWS . 'allow_sn']);
        $lists['sntag_norequired'] = jnews::HTML_BooleanList("config['sntag_norequired']", 'class="inputbox"', $GLOBALS[JNEWS . 'sntag_norequired']);
        $lists['show_unsubscribe_all'] = jnews::HTML_BooleanList("config['show_unsubscribe_all']", 'class="inputbox"', $GLOBALS[JNEWS . 'show_unsubscribe_all']);
        $lists['show_terms'] = jnews::HTML_BooleanList("config['show_terms']", 'class="inputbox"', @$GLOBALS[JNEWS . 'show_terms']);
        $lists['check_terms'] = jnews::HTML_BooleanList("config['check_terms']", 'class="inputbox"', @$GLOBALS[JNEWS . 'check_terms']);
        //column1
        $lists['show_column1'] = jnews::HTML_BooleanList("config['show_column1']", 'class="inputbox"', $GLOBALS[JNEWS . 'show_column1']);
        $lists['show_column2'] = jnews::HTML_BooleanList("config['show_column2']", 'class="inputbox"', $GLOBALS[JNEWS . 'show_column2']);
        $lists['show_column3'] = jnews::HTML_BooleanList("config['show_column3']", 'class="inputbox"', $GLOBALS[JNEWS . 'show_column3']);
        $lists['show_column4'] = jnews::HTML_BooleanList("config['show_column4']", 'class="inputbox"', $GLOBALS[JNEWS . 'show_column4']);
        $lists['show_column5'] = jnews::HTML_BooleanList("config['show_column5']", 'class="inputbox"', $GLOBALS[JNEWS . 'show_column5']);
        //end of columns
        //captcha
        //			 $lists['enable_captcha'] = jnews::HTML_BooleanList( "config['enable_captcha']" , 'class="inputbox"', $GLOBALS[JNEWS.'enable_captcha'] );
        //$lists['use_cron_pass'] = jnews::HTML_BooleanList( "config['use_cron_pass']" , 'class="inputbox"', $GLOBALS[JNEWS.'use_cron_pass'] );
        $lists['show_signature'] = jnews::HTML_BooleanList("config['show_signature']", 'class="inputbox"', $GLOBALS[JNEWS . 'show_signature']);
        $lists['show_lists'] = jnews::HTML_BooleanList("config['show_lists']", 'class="inputbox"', $GLOBALS[JNEWS . 'show_lists']);
        $lists['embed_images'] = jnews::HTML_BooleanList("config['embed_images']", 'class="inputbox"', $GLOBALS[JNEWS . 'embed_images']);
        $lists['use_tags'] = jnews::HTML_BooleanList("config['use_tags']", 'class="inputbox"', $GLOBALS[JNEWS . 'use_tags']);
        $lists['show_guide'] = jnews::HTML_BooleanList("config['show_guide']", 'class="inputbox"', $GLOBALS[JNEWS . 'show_guide']);
        $lists['show_author'] = jnews::HTML_BooleanList("config['show_author']", 'class="inputbox"', $GLOBALS[JNEWS . 'show_author']);
        $lists['show_tips'] = jnews::HTML_BooleanList("config['show_tips']", 'class="inputbox"', $GLOBALS[JNEWS . 'show_tips']);
        //$lists['update_notification'] = jnews::HTML_BooleanList( "config['update_notification']" , 'class="inputbox"', $GLOBALS[JNEWS.'update_notification'] );
        $lists['use_sef'] = jnews::HTML_BooleanList("config['use_sef']", 'class="inputbox"', $GLOBALS[JNEWS . 'use_sef']);
        $lists['listype1'] = jnews::HTML_BooleanList("config['listype1']", 'class="inputbox"', $GLOBALS[JNEWS . 'listype1']);
        $lists['listype2'] = jnews::HTML_BooleanList("config['listype2']", 'class="inputbox"', $GLOBALS[JNEWS . 'listype2']);
        $lists['listHTMLeditor'] = jnews::HTML_BooleanList("config['listHTMLeditor']", 'class="inputbox"', $GLOBALS[JNEWS . 'listHTMLeditor']);
        //for social version
        if ($GLOBALS[JNEWS . 'level'] > 2) {
            if (@(include_once JNEWSPATH_ADMIN . 'social' . DS . 'class.social.php')) {
                if (class_exists('jNews_Social')) {
                    $lists['use_masterlists'] = jnews::HTML_BooleanList("config['use_masterlists']", 'class="inputbox"', $GLOBALS[JNEWS . 'use_masterlists']);
                    $lists['allow_fe_autoresponder'] = jnews::HTML_BooleanList("config['allow_fe_autoresponder']", 'class="inputbox"', $GLOBALS[JNEWS . 'allow_fe_autoresponder']);
                }
            }
        }
        if (empty($lists['allow_fe_autoresponder'])) {
            $lists['allow_fe_autoresponder'] = 'jNews Social Only';
        }
        $lists['send_error'] = jnews::HTML_BooleanList("config['send_error']", 'class="inputbox"', $GLOBALS[JNEWS . 'send_error']);
        $lists['report_error'] = jnews::HTML_BooleanList("config['report_error']", 'class="inputbox"', $GLOBALS[JNEWS . 'report_error']);
        $lists['fullcheck'] = jnews::HTML_BooleanList("config['fullcheck']", 'class="inputbox"', $GLOBALS[JNEWS . 'fullcheck']);
        $lists['addEmailRedLink'] = jnews::HTML_BooleanList("config['addEmailRedLink']", 'class="inputbox"', $GLOBALS[JNEWS . 'addEmailRedLink']);
        $lists['disabletooltip'] = jnews::HTML_BooleanList("config['disabletooltip']", 'class="inputbox"', $GLOBALS[JNEWS . 'disabletooltip']);
        $lists['minisendmail'] = jnews::HTML_BooleanList("config['minisendmail']", 'class="inputbox"', $GLOBALS[JNEWS . 'minisendmail']);
        //<!-- content ordering -->
        $sortContent[] = jnews::HTML_SelectOption('0', _JNEWS_SORT_DATE);
        $sortContent[] = jnews::HTML_SelectOption('1', _JNEWS_SORT_SECTION);
        $sortContent[] = jnews::HTML_SelectOption('2', _JNEWS_SORT_CATEGORY);
        //$lists['content_order'] = jnews::HTML_GenericList( $sortContent, "config['content_order']" , 'class="inputbox" size="1"', 'value', 'text', $GLOBALS[JNEWS.'content_order'] );
        $schedPrior = array();
        $schedPrior[] = jnews::HTML_SelectOption('1', '1');
        $schedPrior[] = jnews::HTML_SelectOption('2', '2');
        $schedPrior[] = jnews::HTML_SelectOption('3', '3');
        $enable_jsub = array();
        $enable_jsub[] = jnews::HTML_SelectOption('0', _JNEWS_LIST_ACESS);
        $enable_jsub[] = jnews::HTML_SelectOption('1', _JNEWS_BYOWNER);
        $lists['enable_jsub'] = jnews::HTML_RadioList($enable_jsub, "config['enable_jsub']", 'class="inputbox" size="1"', 'value', 'text', $GLOBALS[JNEWS . 'enable_jsub']);
        $GLOBALS[JNEWS . 'sched_prior'] = isset($GLOBALS[JNEWS . 'sched_prior']) ? $GLOBALS[JNEWS . 'sched_prior'] : 3;
        $lists['sched_prior'] = jnews::HTML_RadioList($schedPrior, "config['sched_prior']", 'class="inputbox" size="1"', 'value', 'text', $GLOBALS[JNEWS . 'sched_prior']);
        $arPrior = array();
        $arPrior[] = jnews::HTML_SelectOption('1', '1');
        $arPrior[] = jnews::HTML_SelectOption('2', '2');
        $arPrior[] = jnews::HTML_SelectOption('3', '3');
        $GLOBALS[JNEWS . 'ar_prior'] = isset($GLOBALS[JNEWS . 'ar_prior']) ? $GLOBALS[JNEWS . 'ar_prior'] : '';
        $lists['ar_prior'] = jnews::HTML_RadioList($arPrior, "config['ar_prior']", 'class="inputbox" size="1"', 'value', 'text', $GLOBALS[JNEWS . 'ar_prior']);
        $smPrior = array();
        $smPrior[] = jnews::HTML_SelectOption('1', '1');
        $smPrior[] = jnews::HTML_SelectOption('2', '2');
        $smPrior[] = jnews::HTML_SelectOption('3', '3');
        $GLOBALS[JNEWS . 'sm_prior'] = isset($GLOBALS[JNEWS . 'sm_prior']) ? $GLOBALS[JNEWS . 'sm_prior'] : '';
        $lists['sm_prior'] = jnews::HTML_RadioList($arPrior, "config['sm_prior']", 'class="inputbox" size="1"', 'value', 'text', $GLOBALS[JNEWS . 'sm_prior']);
        $priord_list = array();
        $priord_list[] = jnews::HTML_SelectOption('0', _JNEWS_AUTORESP);
        $priord_list[] = jnews::HTML_SelectOption('1', _JNEWS_LIST);
        $GLOBALS[JNEWS . 'priord_list'] = isset($GLOBALS[JNEWS . 'priord_list']) ? $GLOBALS[JNEWS . 'priord_list'] : '';
        $lists['priord_list'] = jnews::HTML_RadioList($priord_list, "config['priord_list']", 'class="inputbox" size="1"', 'value', 'text', $GLOBALS[JNEWS . 'priord_list']);
        $priord_subs = array();
        $priord_subs[] = jnews::HTML_SelectOption('0', _JNEWS_REMAIN_SUBS);
        $priord_subs[] = jnews::HTML_SelectOption('1', _JNEWS_LIST_T_SUBSCRIPTION);
        $priord_subs[] = jnews::HTML_SelectOption('2', _JNEWS_UNSUBS);
        $GLOBALS[JNEWS . 'priord_subs'] = isset($GLOBALS[JNEWS . 'priord_subs']) ? $GLOBALS[JNEWS . 'priord_subs'] : '';
        $lists['priord_subs'] = jnews::HTML_RadioList($priord_subs, "config['priord_subs']", 'class="inputbox" size="1"', 'value', 'text', $GLOBALS[JNEWS . 'priord_subs']);
        if (class_exists('jNews_Social')) {
            $lists['list_creatorfe'] = jnews::displayAccessRoles('list_creatorfe', $GLOBALS[JNEWS . 'list_creatorfe']);
            //since 6.1.0
            $lists['use_backendview'] = jnews::HTML_BooleanList("config['use_backendview']", 'class="inputbox"', $GLOBALS[JNEWS . 'use_backendview']);
        }
        if (class_exists('aca_archive')) {
            $jour = array();
            $jour[] = jnews::HTML_SelectOption('0', _JNEWS_FREQ_OPT_0);
            $jour[] = jnews::HTML_SelectOption('1', _JNEWS_FREQ_OPT_1);
            $jour[] = jnews::HTML_SelectOption('2', _JNEWS_FREQ_OPT_2);
            $jour[] = jnews::HTML_SelectOption('3', _JNEWS_FREQ_OPT_3);
            $jour[] = jnews::HTML_SelectOption('4', _JNEWS_FREQ_OPT_4);
            $jour[] = jnews::HTML_SelectOption('5', _JNEWS_FREQ_OPT_5);
            $jour[] = jnews::HTML_SelectOption('6', _JNEWS_FREQ_OPT_6);
            $dateType = array();
            $dateType[] = jnews::HTML_SelectOption('1', _JNEWS_DATE_OPT_1);
            $dateType[] = jnews::HTML_SelectOption('2', _JNEWS_DATE_OPT_2);
            $lists['frequency'] = jnews::HTML_GenericList($jour, "config['frequency']", 'class="inputbox" size="1"', 'value', 'text', $GLOBALS[JNEWS . 'frequency']);
            $lists['date_type'] = jnews::HTML_GenericList($dateType, "config['date_type']", 'class="inputbox" size="1"', 'value', 'text', $GLOBALS[JNEWS . 'date_type']);
        }
        //encoding format
        $mail_format[] = jnews::HTML_SelectOption('0', 'Text (8bit)');
        $mail_format[] = jnews::HTML_SelectOption('1', 'MIME (base64)');
        $lists['mail_format'] = jnews::HTML_RadioList($mail_format, "config['mail_format']", 'class="inputbox"', 'value', 'text', $GLOBALS[JNEWS . 'mail_format']);
        //encoding formart
        $mail_encoding[] = jnews::HTML_SelectOption('0', 'UTF-8');
        $mail_encoding[] = jnews::HTML_SelectOption('1', 'ISO-8859-2');
        $lists['mail_encoding'] = jnews::HTML_RadioList($mail_encoding, "config['mail_encoding']", 'class="inputbox"', 'value', 'text', $GLOBALS[JNEWS . 'mail_encoding']);
        backHTML::formStart('configpanel', 0, '');
        ?>
	<table style="width: 100%;" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td>
	<form action="index.php" method="post" name="adminForm" id="adminForm">
	<?php 
        $config_tabs = new MosTabsjNews(1);
        $config_tabs->startPane('acaConfig');
        $config_tabs->startTab(_JNEWS_MAIL_CONFIG, 'mail');
        jNews_ConfigHTML::mailSettings($lists);
        $config_tabs->endTab();
        $config_tabs->startTab(_JNEWS_SUBSCRIBER_CONFIG, 'subscribers');
        jNews_ConfigHTML::subcriberSettings($lists);
        $config_tabs->endTab();
        if (class_exists('jNews_Auto')) {
            $config_tabs->startTab(_JNEWS_SCHEDULER, 'scheduler');
            jNews_ConfigHTML::cronSettings($lists);
            $config_tabs->endTab();
        }
        $config_tabs->startTab(_JNEWS_LOGGING_CONFIG, 'logging');
        jNews_ConfigHTML::logsSettings($lists);
        $config_tabs->endTab();
        if ($GLOBALS[JNEWS . 'integration'] and ($GLOBALS[JNEWS . 'cb_integration'] or class_exists('aca_virtuemart') && $GLOBALS[JNEWS . 'virtuemart'])) {
            $config_tabs->startTab(_JNEWS_CONFIG_INTEGRATION, 'integration');
            if ($GLOBALS[JNEWS . 'cb_integration']) {
                jNews_ConfigHTML::cbSettings();
            }
            if (class_exists('aca_virtuemart') && isset($GLOBALS[JNEWS . 'virtuemart']) && $GLOBALS[JNEWS . 'virtuemart']) {
                aca_virtuemart::tab();
            }
            $config_tabs->endTab();
        }
        $config_tabs->startTab(_JNEWS_MISC_CONFIG, 'misc');
        jNews_ConfigHTML::miscSettings($lists);
        $config_tabs->endTab();
        if (class_exists('jNews_Auto')) {
            $config_tabs->startTab(_JNEWS_LICENSE_CONFIG, 'licence');
            jNews_Auto::licenseSettings($lists);
            $config_tabs->endTab();
        }
        $config_tabs->endPane();
        if (version_compare(JVERSION, '3.0.0', '<')) {
            echo JHTML::_('form.token');
        } else {
            echo JHtml::_('form.token');
        }
        ?>
		<input type="hidden" name="option" value="<?php 
        echo JNEWS_OPTION;
        ?>
" />
		<input type="hidden" name="act" value="configuration" />
    	<input type="hidden" name="boxchecked" value="0" />
    	<input type="hidden" name="task" value="" />
	</form>
	</td></tr></tbody></table>
	<?php 
    }
    function showConfigEdit($GLOBALS)
    {
        if (ACA_CMSTYPE) {
            // joomla 15
            $mailOpt[] = JHTML::_('select.option', 'mail', 'PHP mail function');
            $mailOpt[] = JHTML::_('select.option', 'sendmail', 'Sendmail');
            $mailOpt[] = JHTML::_('select.option', 'smtp', 'SMTP Server');
            $logFormat[] = JHTML::_('select.option', '0', _ACA_DETAILED);
            $logFormat[] = JHTML::_('select.option', '1', _ACA_SIMPLE);
            $lists['mailermethod'] = JHTML::_('select.genericlist', $mailOpt, "config['emailmethod']", 'class="inputbox" size="1"', 'value', 'text', $GLOBALS[ACA . 'emailmethod']);
            $lists['send_log_simple'] = JHTML::_('select.genericlist', $logFormat, "config['send_log_simple']", 'class="inputbox" size="1"', 'value', 'text', $GLOBALS[ACA . 'send_log_simple']);
            $lists['save_log_simple'] = JHTML::_('select.genericlist', $logFormat, "config['save_log_simple']", 'class="inputbox" size="1"', 'value', 'text', $GLOBALS[ACA . 'save_log_simple']);
            $lists['auth_required'] = JHTML::_('select.booleanlist', "config['smtp_auth_required']", 'class="inputbox"', $GLOBALS[ACA . 'smtp_auth_required']);
            $lists['allow_unregistered'] = JHTML::_('select.booleanlist', "config['allow_unregistered']", 'class="inputbox"', $GLOBALS[ACA . 'allow_unregistered']);
            $lists['require_confirmation'] = JHTML::_('select.booleanlist', "config['require_confirmation']", 'class="inputbox"', $GLOBALS[ACA . 'require_confirmation']);
            $lists['show_login'] = JHTML::_('select.booleanlist', "config['show_login']", 'class="inputbox"', $GLOBALS[ACA . 'show_login']);
            $lists['show_logout'] = JHTML::_('select.booleanlist', "config['show_logout']", 'class="inputbox"', $GLOBALS[ACA . 'show_logout']);
            $lists['confirm_html'] = JHTML::_('select.booleanlist', "config['confirm_html']", 'class="inputbox"', $GLOBALS[ACA . 'confirm_html']);
            $lists['time_zone'] = JHTML::_('select.booleanlist', "config['time_zone']", 'class="inputbox"', $GLOBALS[ACA . 'time_zone']);
            $lists['show_archive'] = JHTML::_('select.booleanlist', "config['show_archive']", 'class="inputbox"', $GLOBALS[ACA . 'show_archive']);
            $lists['enable_statistics'] = JHTML::_('select.booleanlist', "config['enable_statistics']", 'class="inputbox"', $GLOBALS[ACA . 'enable_statistics']);
            $lists['statistics_per_subscriber'] = JHTML::_('select.booleanlist', "config['statistics_per_subscriber']", 'class="inputbox"', $GLOBALS[ACA . 'statistics_per_subscriber']);
            $lists['wait_for_user'] = JHTML::_('select.booleanlist', "config['wait_for_user']", 'class="inputbox"', $GLOBALS[ACA . 'wait_for_user']);
            $lists['display_trace'] = JHTML::_('select.booleanlist', "config['display_trace']", 'class="inputbox"', $GLOBALS[ACA . 'display_trace']);
            $lists['send_data'] = JHTML::_('select.booleanlist', "config['send_data']", 'class="inputbox"', $GLOBALS[ACA . 'send_data']);
            $lists['send_auto_log'] = JHTML::_('select.booleanlist', "config['send_auto_log']", 'class="inputbox"', $GLOBALS[ACA . 'send_auto_log']);
            $lists['send_log'] = JHTML::_('select.booleanlist', "config['send_log']", 'class="inputbox"', $GLOBALS[ACA . 'send_log']);
            $lists['save_log'] = JHTML::_('select.booleanlist', "config['save_log']", 'class="inputbox"', $GLOBALS[ACA . 'save_log']);
            $lists['send_log_closed'] = JHTML::_('select.booleanlist', "config['send_log_closed']", 'class="inputbox"', $GLOBALS[ACA . 'send_log_closed']);
            $lists['clear_log'] = JHTML::_('select.booleanlist', "clear_log", 'class="inputbox"', 0);
            $lists['show_footer'] = JHTML::_('select.booleanlist', "config['show_footer']", 'class="inputbox"', $GLOBALS[ACA . 'show_footer']);
            $lists['show_jcalpro'] = JHTML::_('select.booleanlist', "config['show_jcalpro']", 'class="inputbox"', $GLOBALS[ACA . 'show_jcalpro']);
            $lists['show_signature'] = JHTML::_('select.booleanlist', "config['show_signature']", 'class="inputbox"', $GLOBALS[ACA . 'show_signature']);
            $lists['show_lists'] = JHTML::_('select.booleanlist', "config['show_lists']", 'class="inputbox"', $GLOBALS[ACA . 'show_lists']);
            $lists['embed_images'] = JHTML::_('select.booleanlist', "config['embed_images']", 'class="inputbox"', $GLOBALS[ACA . 'embed_images']);
            $lists['show_guide'] = JHTML::_('select.booleanlist', "config['show_guide']", 'class="inputbox"', $GLOBALS[ACA . 'show_guide']);
            $lists['show_author'] = JHTML::_('select.booleanlist', "config['show_author']", 'class="inputbox"', $GLOBALS[ACA . 'show_author']);
            $lists['show_tips'] = JHTML::_('select.booleanlist', "config['show_tips']", 'class="inputbox"', $GLOBALS[ACA . 'show_tips']);
            //$lists['update_notification'] = JHTML::_('select.booleanlist', "config['update_notification']" , 'class="inputbox"', $GLOBALS[ACA.'update_notification'] );
            $lists['use_sef'] = JHTML::_('select.booleanlist', "config['use_sef']", 'class="inputbox"', $GLOBALS[ACA . 'use_sef']);
            $lists['listype1'] = JHTML::_('select.booleanlist', "config['listype1']", 'class="inputbox"', $GLOBALS[ACA . 'listype1']);
            $lists['listype2'] = JHTML::_('select.booleanlist', "config['listype2']", 'class="inputbox"', $GLOBALS[ACA . 'listype2']);
            $lists['listHTMLeditor'] = JHTML::_('select.booleanlist', "config['listHTMLeditor']", 'class="inputbox"', $GLOBALS[ACA . 'listHTMLeditor']);
            $lists['send_error'] = JHTML::_('select.booleanlist', "config['send_error']", 'class="inputbox"', $GLOBALS[ACA . 'send_error']);
            $lists['report_error'] = JHTML::_('select.booleanlist', "config['report_error']", 'class="inputbox"', $GLOBALS[ACA . 'report_error']);
            $lists['fullcheck'] = JHTML::_('select.booleanlist', "config['fullcheck']", 'class="inputbox"', $GLOBALS[ACA . 'fullcheck']);
            $lists['addEmailRedLink'] = JHTML::_('select.booleanlist', "config['addEmailRedLink']", 'class="inputbox"', $GLOBALS[ACA . 'addEmailRedLink']);
            $lists['disabletooltip'] = JHTML::_('select.booleanlist', "config['disabletooltip']", 'class="inputbox"', $GLOBALS[ACA . 'disabletooltip']);
            $lists['minisendmail'] = JHTML::_('select.booleanlist', "config['minisendmail']", 'class="inputbox"', $GLOBALS[ACA . 'minisendmail']);
        } else {
            //joomla 1x
            $mailOpt[] = mosHTML::makeOption('mail', 'PHP mail function');
            $mailOpt[] = mosHTML::makeOption('sendmail', 'Sendmail');
            $mailOpt[] = mosHTML::makeOption('smtp', 'SMTP Server');
            $logFormat[] = mosHTML::makeOption('0', _ACA_DETAILED);
            $logFormat[] = mosHTML::makeOption('1', _ACA_SIMPLE);
            $lists['mailermethod'] = mosHTML::selectList($mailOpt, "config['emailmethod']", 'class="inputbox" size="1"', 'value', 'text', $GLOBALS[ACA . 'emailmethod']);
            $lists['send_log_simple'] = mosHTML::selectList($logFormat, "config['send_log_simple']", 'class="inputbox" size="1"', 'value', 'text', $GLOBALS[ACA . 'send_log_simple']);
            $lists['save_log_simple'] = mosHTML::selectList($logFormat, "config['save_log_simple']", 'class="inputbox" size="1"', 'value', 'text', $GLOBALS[ACA . 'save_log_simple']);
            $lists['auth_required'] = mosHTML::yesnoRadioList("config['smtp_auth_required']", 'class="inputbox"', $GLOBALS[ACA . 'smtp_auth_required']);
            $lists['allow_unregistered'] = mosHTML::yesnoRadioList("config['allow_unregistered']", 'class="inputbox"', $GLOBALS[ACA . 'allow_unregistered']);
            $lists['require_confirmation'] = mosHTML::yesnoRadioList("config['require_confirmation']", 'class="inputbox"', $GLOBALS[ACA . 'require_confirmation']);
            $lists['show_login'] = mosHTML::yesnoRadioList("config['show_login']", 'class="inputbox"', $GLOBALS[ACA . 'show_login']);
            $lists['show_logout'] = mosHTML::yesnoRadioList("config['show_logout']", 'class="inputbox"', $GLOBALS[ACA . 'show_logout']);
            $lists['confirm_html'] = mosHTML::yesnoRadioList("config['confirm_html']", 'class="inputbox"', $GLOBALS[ACA . 'confirm_html']);
            $lists['time_zone'] = mosHTML::yesnoRadioList("config['time_zone']", 'class="inputbox"', $GLOBALS[ACA . 'time_zone']);
            $lists['show_archive'] = mosHTML::yesnoRadioList("config['show_archive']", 'class="inputbox"', $GLOBALS[ACA . 'show_archive']);
            $lists['enable_statistics'] = mosHTML::yesnoRadioList("config['enable_statistics']", 'class="inputbox"', $GLOBALS[ACA . 'enable_statistics']);
            $lists['statistics_per_subscriber'] = mosHTML::yesnoRadioList("config['statistics_per_subscriber']", 'class="inputbox"', $GLOBALS[ACA . 'statistics_per_subscriber']);
            $lists['wait_for_user'] = mosHTML::yesnoRadioList("config['wait_for_user']", 'class="inputbox"', $GLOBALS[ACA . 'wait_for_user']);
            $lists['display_trace'] = mosHTML::yesnoRadioList("config['display_trace']", 'class="inputbox"', $GLOBALS[ACA . 'display_trace']);
            $lists['send_data'] = mosHTML::yesnoRadioList("config['send_data']", 'class="inputbox"', $GLOBALS[ACA . 'send_data']);
            $lists['send_auto_log'] = mosHTML::yesnoRadioList("config['send_auto_log']", 'class="inputbox"', $GLOBALS[ACA . 'send_auto_log']);
            $lists['send_log'] = mosHTML::yesnoRadioList("config['send_log']", 'class="inputbox"', $GLOBALS[ACA . 'send_log']);
            $lists['save_log'] = mosHTML::yesnoRadioList("config['save_log']", 'class="inputbox"', $GLOBALS[ACA . 'save_log']);
            $lists['send_log_closed'] = mosHTML::yesnoRadioList("config['send_log_closed']", 'class="inputbox"', $GLOBALS[ACA . 'send_log_closed']);
            $lists['clear_log'] = mosHTML::yesnoRadioList("clear_log", 'class="inputbox"', 0);
            $lists['show_footer'] = mosHTML::yesnoRadioList("config['show_footer']", 'class="inputbox"', $GLOBALS[ACA . 'show_footer']);
            $lists['show_jcalpro'] = mosHTML::yesnoRadioList("config['show_jcalpro']", 'class="inputbox"', $GLOBALS[ACA . 'show_jcalpro']);
            $lists['show_signature'] = mosHTML::yesnoRadioList("config['show_signature']", 'class="inputbox"', $GLOBALS[ACA . 'show_signature']);
            $lists['show_lists'] = mosHTML::yesnoRadioList("config['show_lists']", 'class="inputbox"', $GLOBALS[ACA . 'show_lists']);
            $lists['embed_images'] = mosHTML::yesnoRadioList("config['embed_images']", 'class="inputbox"', $GLOBALS[ACA . 'embed_images']);
            $lists['show_guide'] = mosHTML::yesnoRadioList("config['show_guide']", 'class="inputbox"', $GLOBALS[ACA . 'show_guide']);
            $lists['show_author'] = mosHTML::yesnoRadioList("config['show_author']", 'class="inputbox"', $GLOBALS[ACA . 'show_author']);
            $lists['show_tips'] = mosHTML::yesnoRadioList("config['show_tips']", 'class="inputbox"', $GLOBALS[ACA . 'show_tips']);
            //$lists['update_notification'] = mosHTML::yesnoRadioList( "config['update_notification']" , 'class="inputbox"', $GLOBALS[ACA.'update_notification'] );
            $lists['use_sef'] = mosHTML::yesnoRadioList("config['use_sef']", 'class="inputbox"', $GLOBALS[ACA . 'use_sef']);
            $lists['listype1'] = mosHTML::yesnoRadioList("config['listype1']", 'class="inputbox"', $GLOBALS[ACA . 'listype1']);
            $lists['listype2'] = mosHTML::yesnoRadioList("config['listype2']", 'class="inputbox"', $GLOBALS[ACA . 'listype2']);
            $lists['listHTMLeditor'] = mosHTML::yesnoRadioList("config['listHTMLeditor']", 'class="inputbox"', $GLOBALS[ACA . 'listHTMLeditor']);
            $lists['send_error'] = mosHTML::yesnoRadioList("config['send_error']", 'class="inputbox"', $GLOBALS[ACA . 'send_error']);
            $lists['report_error'] = mosHTML::yesnoRadioList("config['report_error']", 'class="inputbox"', $GLOBALS[ACA . 'report_error']);
            $lists['fullcheck'] = mosHTML::yesnoRadioList("config['fullcheck']", 'class="inputbox"', $GLOBALS[ACA . 'fullcheck']);
            $lists['addEmailRedLink'] = mosHTML::yesnoRadioList("config['addEmailRedLink']", 'class="inputbox"', $GLOBALS[ACA . 'addEmailRedLink']);
            $lists['disabletooltip'] = mosHTML::yesnoRadioList("config['disabletooltip']", 'class="inputbox"', $GLOBALS[ACA . 'disabletooltip']);
            $lists['minisendmail'] = mosHTML::yesnoRadioList("config['minisendmail']", 'class="inputbox"', $GLOBALS[ACA . 'minisendmail']);
        }
        //endif
        if (class_exists('aca_archive')) {
            if (ACA_CMSTYPE) {
                // joomla 15
                $jour = array();
                $jour[] = JHTML::_('select.option', '0', _FREQ_OPT_0);
                $jour[] = JHTML::_('select.option', '1', _FREQ_OPT_1);
                $jour[] = JHTML::_('select.option', '2', _FREQ_OPT_2);
                $jour[] = JHTML::_('select.option', '3', _FREQ_OPT_3);
                $jour[] = JHTML::_('select.option', '4', _FREQ_OPT_4);
                $jour[] = JHTML::_('select.option', '5', _FREQ_OPT_5);
                $jour[] = JHTML::_('select.option', '6', _FREQ_OPT_6);
                $dateType = array();
                $dateType[] = JHTML::_('select.option', '1', _DATE_OPT_1);
                $dateType[] = JHTML::_('select.option', '2', _DATE_OPT_2);
                $lists['frequency'] = JHTML::_('select.genericlist', $jour, "config['frequency']", 'class="inputbox" size="1"', 'value', 'text', $GLOBALS[ACA . 'frequency']);
                $lists['date_type'] = JHTML::_('select.genericlist', $dateType, "config['date_type']", 'class="inputbox" size="1"', 'value', 'text', $GLOBALS[ACA . 'date_type']);
            } else {
                //joomla 1x
                $jour = array();
                $jour[] = mosHTML::makeOption('0', _FREQ_OPT_0);
                $jour[] = mosHTML::makeOption('1', _FREQ_OPT_1);
                $jour[] = mosHTML::makeOption('2', _FREQ_OPT_2);
                $jour[] = mosHTML::makeOption('3', _FREQ_OPT_3);
                $jour[] = mosHTML::makeOption('4', _FREQ_OPT_4);
                $jour[] = mosHTML::makeOption('5', _FREQ_OPT_5);
                $jour[] = mosHTML::makeOption('6', _FREQ_OPT_6);
                $dateType = array();
                $dateType[] = mosHTML::makeOption('1', _DATE_OPT_1);
                $dateType[] = mosHTML::makeOption('2', _DATE_OPT_2);
                $lists['frequency'] = mosHTML::selectList($jour, "config['frequency']", 'class="inputbox" size="1"', 'value', 'text', $GLOBALS[ACA . 'frequency']);
                $lists['date_type'] = mosHTML::selectList($dateType, "config['date_type']", 'class="inputbox" size="1"', 'value', 'text', $GLOBALS[ACA . 'date_type']);
            }
            //endif
        }
        if (ACA_CMSTYPE) {
            $mail_format[] = JHTML::_('select.option', '0', 'Text (8bit)');
            $mail_format[] = JHTML::_('select.option', '1', 'MIME (base64)');
            $lists['mail_format'] = JHTML::_('select.radiolist', $mail_format, "config['mail_format']", 'class="inputbox"', 'value', 'text', $GLOBALS[ACA . 'mail_format']);
        } else {
            $mail_format[] = mosHTML::makeOption('0', 'Text (8bit)');
            $mail_format[] = mosHTML::makeOption('1', 'MIME (base64)');
            $lists['mail_format'] = mosHTML::radioList($mail_format, "config['mail_format']", 'class="inputbox"', $GLOBALS[ACA . 'mail_format']);
        }
        //endif
        backHTML::formStart('configpanel', 0, '');
        ?>
	<table style="width: 100%;" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td>
	<form action="index2.php" method="post" name="adminForm">
	<?php 
        if (ACA_CMSTYPE) {
            $config_tabs = new mosTabs15(1);
        } else {
            $config_tabs = new mosTabs(1);
        }
        //endif
        $config_tabs->startPane('acaConfig');
        $config_tabs->startTab(_ACA_MAIL_CONFIG, 'mail');
        configHTML::mailSettings($lists);
        $config_tabs->endTab();
        $config_tabs->startTab(_ACA_SUBSCRIBER_CONFIG, 'subscribers');
        configHTML::subcriberSettings($lists);
        $config_tabs->endTab();
        if (class_exists('auto')) {
            $flag = auto::viewCron();
        } else {
            $flag = false;
        }
        if ($flag) {
            $config_tabs->startTab(_ACA_SCHEDULER, 'scheduler');
            configHTML::cronSettings($lists);
            $config_tabs->endTab();
        }
        $config_tabs->startTab(_ACA_LOGGING_CONFIG, 'logging');
        configHTML::logsSettings($lists);
        $config_tabs->endTab();
        if ($GLOBALS[ACA . 'integration'] and ($GLOBALS[ACA . 'cb_integration'] or class_exists('aca_virtuemart') && $GLOBALS[ACA . 'virtuemart'])) {
            $config_tabs->startTab(_ACA_CONFIG_INTEGRATION, 'integration');
            if ($GLOBALS[ACA . 'cb_integration']) {
                configHTML::cbSettings();
            }
            if (class_exists('aca_virtuemart') && isset($GLOBALS[ACA . 'virtuemart']) && $GLOBALS[ACA . 'virtuemart']) {
                aca_virtuemart::tab();
            }
            $config_tabs->endTab();
        }
        if (class_exists('aca_archive')) {
            $config_tabs->startTab(_ACA_MENU_TAB_ARCHIVE, 'archive');
            aca_archive::showArchive($lists);
            $config_tabs->endTab();
        }
        $config_tabs->startTab(_ACA_MISC_CONFIG, 'misc');
        configHTML::miscSettings($lists);
        $config_tabs->endTab();
        if (class_exists('auto')) {
            $config_tabs->startTab(_ACA_LICENSE_CONFIG, 'licence');
            auto::licenseSettings($lists);
            $config_tabs->endTab();
        }
        $config_tabs->endPane();
        ?>
		<input type="hidden" name="option" value="com_acajoom" />
		<input type="hidden" name="act" value="configuration" />
    	<input type="hidden" name="boxchecked" value="0" />
    	<input type="hidden" name="task" value="" />
	</form>
	</td></tr></tbody></table>
	<?php 
    }