function _AllLibInstalled() { if ( ShopVKTEST::_iscurlinstalled() && ShopVKTEST::_isiconvinstalled() ) { return true; } else{ return false; } }
if(!$USER->IsAdmin()) return; require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/kreattika.shopvk/classes/general/autotest.php"); $module_id = "kreattika.shopvk"; $strWarning = ""; $vk_app_id = COption::GetOptionString($module_id, "shop_vk_app_id", "N"); $all_lib_installed = false; $not_installed_lib_name = ''; if ($curl_lib_installed = ShopVKTEST::_iscurlinstalled()): else: $not_installed_lib_name .= ' curl'; endif; if ($iconv_lib_installed = ShopVKTEST::_isiconvinstalled()): else: $not_installed_lib_name .= ' iconv'; endif; if( $curl_lib_installed && $iconv_lib_installed ): $all_lib_installed = true; else: $all_lib_installed = false; endif; $IBList = array(); if(CModule::IncludeModule("iblock")): $resIB = CIBlock::GetList(Array(), Array('ACTIVE'=>'Y'), false); while($arIB = $resIB->Fetch()): $IBList[$arIB['ID']] = '[ '.$arIB['ID'].' ] '.$arIB['NAME']; endwhile;