function checkCB() { $xf = new xonfig(); if (!file_exists(ACA_JPATH_ROOT . '/administrator/components/com_comprofiler/admin.comprofiler.php')) { $xf->update('cb_integration', '0'); return false; } $xf->update('cb_integration', '1'); $xf->update('integration', '1'); acajoom::checkCBPlugin(); return true; }
function checkCB() { $xf = new xonfig(); if (!file_exists($GLOBALS['mosConfig_absolute_path'] . '/administrator/components/com_comprofiler/admin.comprofiler.php')) { $xf->update('cb_integration', '0'); return false; } $xf->update('cb_integration', '1'); $xf->update('integration', '1'); acajoom::checkCBPlugin(); return true; }
function cbSettings() { if (ACA_CMSTYPE) { $lists['cb_plugin'] = JHTML::_('select.booleanlist', "config['cb_plugin']", 'class="inputbox"', $GLOBALS[ACA . 'cb_plugin']); $lists['cb_showname'] = JHTML::_('select.booleanlist', "config['cb_showname']", 'class="inputbox"', $GLOBALS[ACA . 'cb_showname']); $lists['cb_checkLists'] = JHTML::_('select.booleanlist', "config['cb_checkLists']", 'class="inputbox"', $GLOBALS[ACA . 'cb_checkLists']); $lists['cb_showHTML'] = JHTML::_('select.booleanlist', "config['cb_showHTML']", 'class="inputbox"', $GLOBALS[ACA . 'cb_showHTML']); $lists['cb_defaultHTML'] = JHTML::_('select.booleanlist', "config['cb_defaultHTML']", 'class="inputbox"', $GLOBALS[ACA . 'cb_defaultHTML']); } else { $lists['cb_plugin'] = mosHTML::yesnoRadioList("config['cb_plugin']", 'class="inputbox"', $GLOBALS[ACA . 'cb_plugin']); $lists['cb_showname'] = mosHTML::yesnoRadioList("config['cb_showname']", 'class="inputbox"', $GLOBALS[ACA . 'cb_showname']); $lists['cb_checkLists'] = mosHTML::yesnoRadioList("config['cb_checkLists']", 'class="inputbox"', $GLOBALS[ACA . 'cb_checkLists']); $lists['cb_showHTML'] = mosHTML::yesnoRadioList("config['cb_showHTML']", 'class="inputbox"', $GLOBALS[ACA . 'cb_showHTML']); $lists['cb_defaultHTML'] = mosHTML::yesnoRadioList("config['cb_defaultHTML']", 'class="inputbox"', $GLOBALS[ACA . 'cb_defaultHTML']); } //endif ?> <fieldset class="acajoomcss"> <legend><?php echo _ACA_CB_INTEGRATION; ?> </legend> <?php acajoom::beginingOfTable('acajoomtable'); if ($GLOBALS[ACA . 'cb_pluginInstalled'] == 0) { if (!acajoom::checkCBPlugin()) { acajoom::miseEnPage(acajoom::WarningIcon(_ACA_CB_PLUGIN_NOT_INSTALLED), ' ', '<span style="color: rgb(255, 0, 0);">' . _ACA_CB_PLUGIN_NOT_INSTALLED . '</span>'); } } acajoom::miseEnPage(_ACA_CB_PLUGIN, _ACA_CB_PLUGIN_TIPS, $lists['cb_plugin']); acajoom::miseEnPage(_ACA_CB_LISTS, _ACA_CB_LISTS_TIPS, "<input class=\"inputbox\" type=\"text\" name=\"config['cb_listIds']\" size=\"30\" value=\"" . $GLOBALS[ACA . 'cb_listIds'] . "\" >"); acajoom::miseEnPage(_ACA_CB_INTRO, _ACA_CB_INTRO_TIPS, "<textarea name=\"config['cb_intro']\" rows=\"3\" cols=\"40\" >" . $GLOBALS[ACA . 'cb_intro'] . "</textarea>"); acajoom::miseEnPage(_ACA_CB_SHOW_NAME, _ACA_CB_SHOW_NAME_TIPS, $lists['cb_showname']); acajoom::miseEnPage(_ACA_CB_LIST_DEFAULT, _ACA_CB_LIST_DEFAULT_TIPS, $lists['cb_checkLists']); acajoom::miseEnPage(_ACA_CB_HTML_SHOW, _ACA_CB_HTML_SHOW_TIPS, $lists['cb_showHTML']); acajoom::miseEnPage(_ACA_CB_HTML_DEFAULT, _ACA_CB_HTML_DEFAULT_TIPS, $lists['cb_defaultHTML']); acajoom::endOfTable(); echo '</fieldset>'; }