本文整理汇总了PHP中bx_instance函数的典型用法代码示例。如果您正苦于以下问题:PHP bx_instance函数的具体用法?PHP bx_instance怎么用?PHP bx_instance使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了bx_instance函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setUp
protected function setUp()
{
bx_import('BxDolModule');
$oModule = BxDolModule::getInstance('bx_antispam');
$this->_oDNSBlacklists = bx_instance('BxAntispamDNSBlacklists', array(), $oModule->_aModule);
$this->_oDNSURIBlacklists = bx_instance('BxAntispamDNSURIBlacklists', array(), $oModule->_aModule);
}
示例2: _performAction
protected function _performAction($sAction, $sDisplay, $iId = 0)
{
bx_import('BxDolForm');
$oForm = BxDolForm::getObjectInstance('bx_antispam_ip_table_form', $sDisplay);
// get form instance for specified form object and display
if (!$oForm) {
$this->_echoResultJson(array('msg' => _t('_sys_txt_error_occured')), true);
exit;
}
$oForm->addMarkers(array('grid_object' => $this->_sObject, 'grid_action' => $sAction));
$aIpTableDirective = array();
if ($iId) {
bx_import('BxDolModule');
$oModule = BxDolModule::getInstance('bx_antispam');
$oAntispamIp = bx_instance('BxAntispamIP', array(), $oModule->_aModule);
$aIpTableDirective = $oAntispamIp->getIpTableDirective($iId);
$aIpTableDirective['From'] = long2ip($aIpTableDirective['From']);
$aIpTableDirective['To'] = long2ip($aIpTableDirective['To']);
}
$oForm->initChecker($aIpTableDirective);
if ($oForm->isSubmittedAndValid()) {
// if form is submitted and all fields are valid
$aCustomValues = array('From' => sprintf("%u", ip2long($oForm->getCleanValue('From'))), 'To' => sprintf("%u", ip2long($oForm->getCleanValue('To'))));
if ($iId) {
if ($oForm->update($iId, $aCustomValues)) {
// update record
$iRecentId = $iId;
}
} else {
$iRecentId = $oForm->insert($aCustomValues, true);
// insert new record
}
if ($iRecentId) {
$aRes = array('grid' => $this->getCode(false), 'blink' => $iRecentId);
} else {
$aRes = array('msg' => _t('_sys_txt_error_occured'));
}
// if record adding failed, display error message
$this->_echoResultJson($aRes, true);
} else {
// if form is not submitted or some fields are invalid, display popup with form
bx_import('BxTemplFunctions');
$s = BxTemplFunctions::getInstance()->popupBox($oForm->getId() . '_form', _t('_bx_antispam_form_ip_table_add'), $oForm->getCode() . '
<script>
$(document).ready(function () {
$("#' . $oForm->getId() . '").ajaxForm({
dataType: "json",
beforeSubmit: function (formData, jqForm, options) {
bx_loading($("#' . $oForm->getId() . '"), true);
},
success: function (data) {
$(".bx-popup-applied:visible").dolPopupHide();
glGrids.' . $this->_sObject . '.processJson(data, "' . $sAction . '");
}
});
});
</script>');
$this->_echoResultJson(array('popup' => array('html' => $s, 'options' => array('closeOnOuterClick' => false))), true);
}
}
示例3: processing
public function processing()
{
$oController = new BxDolUpgradeController();
if ($oController->setMaintenanceMode(true)) {
// if upgrade was successful
if (($sFolder = $oController->getAvailableUpgrade()) && $oController->runUpgrade($sFolder)) {
// write upgrade log
$oController->writeLog();
// send email notification
bx_import('BxDolLanguages');
sendMailTemplateSystem('t_UpgradeSuccess', array('new_version' => bx_get_ver(true), 'conclusion' => $oController->getConclusion() ? _t('_sys_upgrade_conclusion', $oController->getConclusion()) : ''));
// if next upgrade is available (in case of bulk upgrade) then schedule to run it upon next cron run
$sUpgradeDir = pathinfo(__FILE__, PATHINFO_DIRNAME);
if ($oController->getAvailableUpgrade()) {
$oUpgrader = bx_instance('BxDolUpgrader');
$oUpgrader->setTransientUpgradeCronJob($sUpgradeDir);
} elseif (0 === strpos($sUpgradeDir, BX_DIRECTORY_PATH_TMP)) {
@bx_rrmdir($sUpgradeDir);
}
}
$oController->setMaintenanceMode(false);
}
// if something went grong during upgrade
if ($sErrorMsg = $oController->getErrorMsg()) {
// write upgrade log
$oController->writeLog();
// send email notification
sendMailTemplateSystem('t_UpgradeFailed', array('error_msg' => $sErrorMsg));
// disable auto-upgrade if it is failed
setParam('sys_autoupdate_system', '');
}
}
示例4: __construct
function __construct($aConfig)
{
parent::__construct();
$this->oDb = bx_instance('BxDolStudioInstallerQuery');
$this->_aConfig = $aConfig;
$this->_sBasePath = BX_DIRECTORY_PATH_MODULES;
$this->_sHomePath = $this->_sBasePath . $aConfig['home_dir'];
$this->_sModulePath = $this->_sBasePath . $aConfig['home_dir'];
$this->_bUseFtp = BX_FORCE_USE_FTP_FILE_TRANSFER;
$this->_aActions = array('perform_install' => array('title' => '', 'success' => _t('_adm_msg_modules_success_install'), 'failed' => ''), 'perform_uninstall' => array('title' => '', 'success' => _t('_adm_msg_modules_success_uninstall'), 'failed' => ''), 'perform_enable' => array('title' => '', 'success' => _t('_adm_msg_modules_success_enable'), 'failed' => ''), 'perform_disable' => array('title' => '', 'success' => _t('_adm_msg_modules_success_disable'), 'failed' => ''), 'check_script_version' => array('title' => _t('_adm_txt_modules_check_script_version')), 'check_dependencies' => array('title' => _t('_adm_txt_modules_check_dependencies')), 'show_introduction' => array('title' => _t('_adm_txt_modules_show_introduction')), 'move_sources' => array('title' => _t('_adm_txt_modules_move_sources')), 'execute_sql' => array('title' => _t('_adm_txt_modules_execute_sql')), 'install_language' => array('title' => _t('_adm_txt_modules_install_language')), 'update_languages' => array('title' => _t('_adm_txt_modules_update_languages')), 'update_relations' => array('title' => _t('_adm_txt_modules_update_relations')), 'process_connections' => array('title' => _t('_adm_txt_modules_process_connections')), 'process_deleted_profiles' => array('title' => _t('_adm_txt_modules_process_deleted_profiles')), 'process_menu_triggers' => array('title' => _t('_adm_txt_modules_process_menu_triggers')), 'process_page_triggers' => array('title' => _t('_adm_txt_modules_process_page_triggers')), 'process_storages' => array('title' => _t('_adm_txt_modules_process_storages')), 'register_transcoders' => array('title' => _t('_adm_txt_modules_register_transcoders')), 'unregister_transcoders' => array('title' => _t('_adm_txt_modules_unregister_transcoders')), 'clear_db_cache' => array('title' => _t('_adm_txt_modules_clear_db_cache')), 'show_conclusion' => array('title' => _t('_adm_txt_modules_show_conclusion')));
$this->_aNonHashableFiles = array('install', 'updates');
}
示例5: processing
public function processing()
{
if ('on' != getParam('sys_autoupdate_system')) {
return;
}
$o = bx_instance('BxDolUpgrader');
if (!$o->prepare()) {
sendMailTemplateSystem('t_UpgradeFailed', array('error_msg' => $o->getError()));
setParam('sys_autoupdate_system', '');
// disable auto-update if it is failed
}
}
示例6: hashSystemFiles
public function hashSystemFiles()
{
$aFiles = $this->getSystemFilesHash();
if (!$aFiles) {
return false;
}
$oDb = bx_instance('BxDolStudioInstallerQuery');
foreach ($aFiles as $aFile) {
$oDb->insertModuleTrack(BX_SYSTEM_MODULE_ID, $aFile);
}
return true;
}
示例7: getBlockCode_Calendar
function getBlockCode_Calendar($iBlockID, $sContent)
{
$aDateParams = array(0, 0);
$sDate = bx_get('date');
if ($sDate) {
$aDateParams = explode('/', $sDate);
}
bx_import('Calendar', $this->oMain->_aModule);
$oCalendar = bx_instance($this->oMain->_aModule['class_prefix'] . 'Calendar', array((int) $aDateParams[0], (int) $aDateParams[1], $this->oDb, $this->oConfig, $this->oTemplate));
$oCalendar->setBlockId($iBlockID);
$oCalendar->setDynamicUrl($this->oConfig->getBaseUri() . 'home/');
return $oCalendar->display(true);
}
示例8: getMemberMenuAdsList
function getMemberMenuAdsList($iID)
{
$oMemberMenu = bx_instance('BxDolMemberMenu');
$oModuleDb = new BxDolModuleDb();
$aModule = $oModuleDb->getModuleByUri('ads');
$oAds = new BxAdsModule($aModule);
$sAdsMainLink = $oAds->bUseFriendlyLinks ? BX_DOL_URL_ROOT . 'ads/my_page/' : "{$oAds->sCurrBrowsedFile}?action=my_page";
$iMyAdsCnt = $oAds->_oDb->getMemberAdsCnt($iID);
// language keys;
$aLanguageKeys = array('ads' => _t('_bx_ads_Ads'));
// fill all necessary data;
$aLinkInfo = array('item_img_src' => $oAds->_oTemplate->getIconUrl('ads.png'), 'item_img_alt' => $aLanguageKeys['ads'], 'item_link' => $sAdsMainLink, 'item_onclick' => null, 'item_title' => $aLanguageKeys['ads'], 'extra_info' => $iMyAdsCnt);
return $oMemberMenu->getGetExtraMenuLink($aLinkInfo);
}
示例9: update
public function update($aParams)
{
$bHtmlResponce = isset($aParams['html_response']) && (bool) $aParams['html_response'];
$oDb = bx_instance('BxDolStudioInstallerQuery');
$aResult = array('operation_title' => _t('_adm_txt_modules_operation_update', $this->_aConfig['title'], $this->_aConfig['version_from'], $this->_aConfig['version_to']));
//--- Check for module to update ---//
$aModuleInfo = $oDb->getModulesBy(array('type' => 'path_and_uri', 'path' => $this->_aConfig['module_dir'], 'uri' => $this->_aConfig['module_uri']));
if (!$aModuleInfo) {
return array_merge($aResult, array('message' => $this->_displayResult('check_module_exists', false, '_adm_err_modules_module_not_found', $bHtmlResponce), 'result' => false));
}
if (isset($aParams['updated_module_name']) && strcmp($aParams['updated_module_name'], $aModuleInfo['name']) != 0) {
return array_merge($aResult, array('message' => $this->_displayResult('check_module_matches', false, '_adm_err_modules_module_not_match', $bHtmlResponce), 'result' => false));
}
//--- Check Dolphin version compatibility ---//
if (!$this->_isCompatibleWith()) {
return array('message' => $this->_displayResult('check_script_version', false, _t('_adm_err_modules_wrong_version_script_update', $aModuleInfo['title']), $bHtmlResponce), 'result' => false);
}
//--- Check version ---//
if (version_compare($aModuleInfo['version'], $this->_aConfig['version_from']) != 0) {
return array_merge($aResult, array('message' => $this->_displayResult('check_module_version', false, '_adm_err_modules_wrong_version', $bHtmlResponce), 'result' => false));
}
//--- Check hash ---//
$aFiles = array();
$this->hashFiles(BX_DIRECTORY_PATH_ROOT . 'modules/' . $this->_aConfig['module_dir'], $aFiles);
list($aFilesChanged, $fChangedPercent) = $this->hashCheck($aFiles, $aModuleInfo['id']);
$bAutoupdateForceModifiedFiles = getParam('sys_autoupdate_force_modified_files') == 'on';
if (!empty($aFilesChanged) && !$bAutoupdateForceModifiedFiles) {
return array_merge($aResult, array('message' => $this->_displayResult('check_module_hash', false, '_adm_err_modules_module_was_modified', $bHtmlResponce), 'result' => false));
} else {
if ($fChangedPercent > BX_FORCE_AUTOUPDATE_MAX_CHANGED_FILES_PERCENT && $bAutoupdateForceModifiedFiles) {
return array_merge($aResult, array('message' => $this->_displayResult('check_module_hash', false, _t('_sys_upgrade_files_checksum_failed_too_many', round($fChangedPercent * 100)), $bHtmlResponce), 'result' => false));
}
}
//--- Perform action and check results ---//
$aResult = array_merge($aResult, $this->_perform('install', $aParams));
if ($aResult['result']) {
$oDb->updateModule(array('version' => $this->_aConfig['version_to']), array('id' => $aModuleInfo['id']));
$oDb->deleteModuleTrackFiles($aModuleInfo['id']);
$aFiles = array();
$this->hashFiles(BX_DIRECTORY_PATH_ROOT . 'modules/' . $this->_aConfig['module_dir'], $aFiles);
foreach ($aFiles as $aFile) {
$oDb->insertModuleTrack($aModuleInfo['id'], $aFile);
}
//--- Remove update pckage ---//
$this->delete($aParams);
}
return $aResult;
}
示例10: actionFinish
function actionFinish()
{
require_once BX_INSTALL_PATH_HEADER;
$oHasher = bx_instance('BxDolInstallerHasher');
$oHasher->hashSystemFiles();
$this->_oView->pageStart();
$sPathToPhp = "/replace/it/with/path/to/php/binary";
$a = array('/usr/local/bin/php', '/usr/bin/php', '/opt/local/bin/php');
foreach ($a as $sPath) {
if (file_exists($sPath)) {
$sPathToPhp = $sPath;
}
}
$this->_oView->out('finish.php', compact('sPathToPhp'));
$this->_oView->setToolbarItem('question', 'http://www.boonex.com/trac/dolphin/wiki/DetailedInstall#InstallScript-Step5-CronJobs', _t('_sys_inst_help_finish'), '_blank');
$this->_oView->pageEnd($this->_getTitle());
}
示例11: update
public function update($aParams)
{
$oDb = bx_instance('BxDolStudioInstallerQuery');
$aResult = array('operation_title' => _t('_adm_txt_modules_operation_update', $this->_aConfig['title'], $this->_aConfig['version_from'], $this->_aConfig['version_to']));
//--- Check for module to update ---//
$sQuery = $oDb->prepare("SELECT `id`, `version` FROM `sys_modules` WHERE `path`=? AND `uri`=? LIMIT 1", $this->_aConfig['module_dir'], $this->_aConfig['module_uri']);
$aModuleInfo = $oDb->getRow($sQuery);
if (!$aModuleInfo) {
return array_merge($aResult, array('message' => $this->_displayResult('check_module_exists', false, '_adm_err_modules_module_not_found'), 'result' => false));
}
//--- Check version ---//
if ($aModuleInfo['version'] != $this->_aConfig['version_from']) {
return array_merge($aResult, array('message' => $this->_displayResult('check_module_version', false, '_adm_err_modules_wrong_version'), 'result' => false));
}
//--- Check hash ---//
$aFiles = array();
$this->hashFiles(BX_DIRECTORY_PATH_ROOT . 'modules/' . $this->_aConfig['module_dir'], $aFiles);
list($aFilesChanged, $fChangedPercent) = $this->hashCheck($aFiles, $aModuleInfo['id']);
$bAutoupdateForceModifiedFiles = getParam('sys_autoupdate_force_modified_files') == 'on';
if (!empty($aFilesChanged) && !$bAutoupdateForceModifiedFiles) {
return array_merge($aResult, array('message' => $this->_displayResult('check_module_hash', false, '_adm_err_modules_module_was_modified'), 'result' => false));
} else {
if ($fChangedPercent > BX_FORCE_AUTOUPDATE_MAX_CHANGED_FILES_PERCENT && $bAutoupdateForceModifiedFiles) {
return array_merge($aResult, array('message' => $this->_displayResult('check_module_hash', false, _t('_sys_upgrade_files_checksum_failed_too_many', round($fChangedPercent * 100))), 'result' => false));
}
}
//--- Perform action and check results ---//
$aResult = array_merge($aResult, $this->_perform('install', 'Update'));
if ($aResult['result']) {
$sQuery = $oDb->prepare("UPDATE `sys_modules` SET `version`=? WHERE `id`=?", $this->_aConfig['version_to'], $aModuleInfo['id']);
$oDb->query($sQuery);
$oDb->deleteModuleTrackFiles($aModuleInfo['id']);
$aFiles = array();
$this->hashFiles(BX_DIRECTORY_PATH_ROOT . 'modules/' . $this->_aConfig['module_dir'], $aFiles);
foreach ($aFiles as $aFile) {
$oDb->insertModuleTrack($aModuleInfo['id'], $aFile);
}
//--- Remove update pckage ---//
$this->delete();
}
return $aResult;
}
示例12: actionResetHash
public function actionResetHash($sType)
{
$oDb = bx_instance('BxDolStudioInstallerQuery');
$sResult = '';
switch ($sType) {
case 'system':
$oHasher = bx_instance('BxDolInstallerHasher');
$oDb->deleteModuleTrackFiles(BX_SYSTEM_MODULE_ID);
$sResult = _t('_bx_dev_hash_' . ($oHasher->hashSystemFiles() ? 'msg' : 'err') . '_reset_hash_system');
break;
case 'modules':
bx_import('BxDolInstallerUtils');
bx_import('BxDolModuleQuery');
$aModules = BxDolModuleQuery::getInstance()->getModules();
$aTmplVarsModules = array();
foreach ($aModules as $aModule) {
if ($aModule['name'] == 'system') {
continue;
}
$aConfig = BxDolInstallerUtils::getModuleConfig($aModule);
$sPathInstaller = BX_DIRECTORY_PATH_MODULES . $aModule['path'] . 'install/installer.php';
if (empty($aConfig) || !file_exists($sPathInstaller)) {
continue;
}
require_once $sPathInstaller;
$sClassName = $aConfig['class_prefix'] . 'Installer';
$oInstaller = new $sClassName($aConfig);
$oDb->deleteModuleTrackFiles($aModule['id']);
$aFiles = array();
$oInstaller->hashFiles(BX_DIRECTORY_PATH_ROOT . 'modules/' . $aModule['path'], $aFiles);
foreach ($aFiles as $aFile) {
$oDb->insertModuleTrack($aModule['id'], $aFile);
}
$aTmplVarsModules[] = array('module' => $aModule['title'], 'files' => count($aFiles));
}
$sResult = $this->_oTemplate->parseHtmlByName('hash_modules.html', array('bx_repeat:modules' => $aTmplVarsModules));
break;
}
echo $sResult;
exit;
}
示例13: finalizeCheckout
function finalizeCheckout(&$aData)
{
$this->_logInfo(__METHOD__, $aData);
$iPending = (int) $aData['pendingid'];
$aPending = $this->_oDb->getPending(array('type' => 'id', 'id' => $iPending));
if (!empty($aPending['order']) || !empty($aPending['error_code']) || !empty($aPending['error_msg']) || (int) $aPending['processed'] != 0) {
return array('code' => 0, 'message' => _t($this->_sLangsPrefix . 'err_already_processed'));
}
$sToken = process_db_input($aData['token'], BX_TAGS_STRIP);
$sPayerId = process_db_input($aData['payerid'], BX_TAGS_STRIP);
$sPayerName = process_db_input($aData['payername'], BX_TAGS_STRIP);
$sPayerEmail = process_db_input($aData['payeremail'], BX_TAGS_STRIP);
$sAmt = process_db_input($aData['amt'], BX_TAGS_STRIP);
$this->_doExpressCheckout($sToken, $sPayerId, $sAmt);
$aResponsePay = $this->_executeCall();
if ($aResponsePay === false) {
return array('code' => 0, 'message' => _t($this->_sLangsPrefix . 'err_unknown'));
}
$this->_logInfo(__METHOD__, $aResponsePay);
$iResponseCode = (int) $aResponsePay['RESULT'];
$sResponseMessage = process_db_input($aResponsePay['RESPMSG'], BX_TAGS_STRIP);
$bPaymentAccepted = $iResponseCode == 0;
$aResult = array('code' => $bPaymentAccepted ? 1 : 0, 'message' => $bPaymentAccepted ? _t($this->_sLangsPrefix . 'msg_accepted') : $sResponseMessage, 'pending_id' => $iPending, 'payer_name' => $sPayerName, 'payer_email' => $sPayerEmail);
//--- Update pending transaction ---//
$this->_oDb->updatePending($iPending, array('order' => process_db_input($aResponsePay['PPREF'], BX_TAGS_STRIP), 'order_ref' => process_db_input($aResponsePay['PNREF'], BX_TAGS_STRIP), 'error_code' => $aResult['code'], 'error_msg' => $sResponseMessage));
//--- Establish subscription ---//
if ($bPaymentAccepted && !empty($aResponsePay['BAID'])) {
$sBaid = process_db_input($aResponsePay['BAID'], BX_TAGS_STRIP);
$oMain = bx_instance($this->_oConfig->getClassPrefix() . 'Module');
$aCartInfo = $oMain->_oCart->getInfo((int) $aPending['client_id'], (int) $aPending['seller_id'], $aPending['items']);
$this->_createRecurringBillingProfile($iPending, $aCartInfo, $sBaid);
$aResponseSubscribe = $this->_executeCall();
if ($aResponseSubscribe !== false && (int) $aResponseSubscribe['RESULT'] == 0) {
$this->_logInfo(__METHOD__, $aResponseSubscribe);
$aResult['message'] = _t($this->_sLangsPrefix . 'msg_accepted_subscribed');
$this->_oDb->updatePending($iPending, array('order_profile' => process_db_input($aResponseSubscribe['PROFILEID'], BX_TAGS_STRIP)));
}
}
return $aResult;
}
示例14: getUserInfo
/**
* Gets user's information from database by user's id
* @param $sId - user ID
* @return $aInfo - user info
*/
function getUserInfo($sId, $bNick = false)
{
global $sWomanImageUrl;
global $sManImageUrl;
global $sProfileUrl;
global $sRootURL;
//get info by ID on these fields
$sNick = "";
$sSex = "";
$sAge = "0";
$sDesc = "";
$sPhoto = "";
$sProfile = "";
//You should change this query to retrieve user's data correctly
$sWherePart = ($bNick ? "`NickName`" : "`ID`") . " = '" . $sId . "'";
$aUser = getArray("SELECT * FROM `Profiles` WHERE " . $sWherePart . " LIMIT 1");
/**
* Define photo.
* If this user has a photo you should define it's uri here.
* Otherwise a "no_photo" image is used.
*/
$oBaseFunctions = bx_instance("BxBaseFunctions");
$sSex = !empty($aUser['Sex']) ? $aUser['Sex'] : "male";
$sPhoto = $oBaseFunctions->getMemberAvatar($sId);
if (empty($sPhoto)) {
$sPhoto = $sSex == "male" ? $sManImageUrl : $sWomanImageUrl;
}
$sNick = $aUser['NickName'];
$sAge = isset($aUser['DateOfBirth']) ? getAge($aUser['DateOfBirth']) : "25";
$sDesc = isset($aUser['DescriptionMe']) ? strip_tags($aUser['DescriptionMe']) : "";
$sProfile = getParam('enable_modrewrite') == "on" ? $sRootURL . $sNick : $sProfileUrl . "?ID=" . $sId;
/**
* Return user info.
* NOTE. Do not change the return statement order.
*/
return array("id" => (int) $aUser["ID"], "nick" => $sNick, "sex" => $sSex, "age" => $sAge, "desc" => $sDesc, "photo" => $sPhoto, "profile" => $sProfile);
}
示例15: performActionRecheck
/**
* 'recheck' action handler
*/
public function performActionRecheck()
{
bx_import('BxDolModule');
$oModule = BxDolModule::getInstance('bx_antispam');
$oDNSBlacklists = bx_instance('BxAntispamDNSBlacklists', array(), $oModule->_aModule);
$aForm = array('form_attrs' => array('id' => 'bx_antispam_form_dnsbl_recheck', 'action' => BX_DOL_URL_ROOT . 'grid.php?o=bx_antispam_grid_dnsbl&a=recheck', 'onsubmit' => "return bx_antispam_recheck(\$('#bx_antispam_ip_url').val(), \$('[name=dnsbl_uridnsbl]:checked').val());", 'method' => 'post'), 'params' => array('db' => array('submit_name' => 'do_submit')), 'inputs' => array('ip_url' => array('type' => 'text', 'name' => 'ip_url', 'value' => getVisitorIP(), 'caption' => _t('_bx_antispam_field_ip_url'), 'attrs' => array('id' => 'bx_antispam_ip_url')), 'dnsbl_uridnsbl' => array('type' => 'radio_set', 'name' => 'dnsbl_uridnsbl', 'caption' => _t('_bx_antispam_field_dnsbl_uridnsbl'), 'values' => array('dnsbl' => _t('_bx_antispam_dnsbl'), 'uridnsbl' => _t('_bx_antispam_uri_dnsbl')), 'value' => 'dnsbl'), 'submit' => array('type' => 'input_set', 0 => array('type' => 'submit', 'name' => 'do_submit', 'value' => _t('_sys_submit')), 1 => array('type' => 'reset', 'name' => 'close', 'value' => _t('_sys_close'), 'attrs' => array('class' => 'bx-def-margin-sec-left', 'onclick' => '$(\'.bx-popup-applied:visible\').dolPopupHide();')))));
bx_import('BxTemplFormView');
$oForm = new BxTemplFormView($aForm);
$s = $oModule->_oTemplate->parseHtmlByName('recheck.html', array('form' => $oForm->getCode(), 'url_recheck_item' => BX_DOL_URL_ROOT . 'grid.php?o=bx_antispam_grid_dnsbl&a=recheck_item', 'bx_repeat:items' => $oDNSBlacklists->getRules(array(BX_DOL_DNSBL_CHAIN_SPAMMERS, BX_DOL_DNSBL_CHAIN_WHITELIST, BX_DOL_DNSBL_CHAIN_URIDNS))));
bx_import('BxTemplFunctions');
$s = BxTemplFunctions::getInstance()->popupBox($oForm->getId() . '_form', _t('_bx_antispam_popup_dnsbl_recheck'), $s);
$this->_echoResultJson(array('popup' => array('html' => $s, 'options' => array('closeOnOuterClick' => false))), true);
}