<?
define("BX_USE_MYSQLI", true);
define("DBPersistent", false);
$DBType = "mysql";
$DBHost = "localhost";
$DBLogin = "root";
// $DBPassword = '!OUS+A{R%8ep-=tQrIEj';
$DBPassword = 'qwerty';
$DBName = "sitemanager";
$DBDebug = true;
$DBDebugToFile = false;
define("DELAY_DB_CONNECT", true);
define("CACHED_b_file", 3600);
define("CACHED_b_file_bucket_size", 10);
define("CACHED_b_lang", 3600);
define("CACHED_b_option", 3600);
define("CACHED_b_lang_domain", 3600);
define("CACHED_b_site_template", 3600);
define("CACHED_b_event", 600);
define("CACHED_menu", 3600);
define("BX_UTF", true);
define("BX_FILE_PERMISSIONS", 0644);
define("BX_DIR_PERMISSIONS", 0755);
@umask(~BX_DIR_PERMISSIONS);
define("BX_DISABLE_INDEX_PAGE", true);
define("MYSQL_TABLE_TYPE", "InnoDB");
if(!(defined("CHK_EVENT") && CHK_EVENT===true)) define("BX_CRONTAB_SUPPORT", true);
define("LOG_FILENAME", $_SERVER["DOCUMENT_ROOT"]."/cru-log.txt");
define("BX_CACHE_TYPE", "memcache");
define("BX_CACHE_SID", $_SERVER["DOCUMENT_ROOT"]."#01");
define("BX_MEMCACHE_HOST", "127.0.0.1");
define("BX_MEMCACHE_PORT", "11211");
<?php
return array (
'utf_mode' =>
array (
'value' => true,
'readonly' => true,
),
'cache_flags' =>
array (
'value' =>
array (
'config_options' => 3600.0,
'site_domain' => 3600.0,
),
'readonly' => false,
),
'cookies' =>
array (
'value' =>
array (
'secure' => false,
'http_only' => true,
),
'readonly' => false,
),
'exception_handling' =>
array (
'value' =>
array (
'debug' => true,
'handled_errors_types' => 4437,
'exception_errors_types' => 4437,
'ignore_silence' => false,
'assertion_throws_exception' => false,
'assertion_error_type' => 256,
'log' => NULL,
),
'readonly' => false,
),
'connections' =>
array (
'value' =>
array (
'default' =>
array (
'className' => '\\Bitrix\\Main\\DB\\MysqliConnection',
'host' => 'localhost',
'database' => 'sitemanager',
'login' => 'root',
// 'password' => '!OUS+A{R%8ep-=tQrIEj',
'password' => 'qwerty',
'options' => 2.0,
),
),
'readonly' => true,
),
'cache' =>
array (
'value' =>
array (
'type' => 'memcache',
'memcache' =>
array (
'host' => '127.0.0.1',
'port' => '11211',
),
'sid' => '/home/bitrix/www#01',
),
'readonly' => true,
),
);
$arFields = Array(
"NAME" => $name,
"ACTIVE" => "Y",
"SORT" => "500",
"CODE" => $code,
"PROPERTY_TYPE" => "S",
"IBLOCK_ID" => 17
);
CModule::IncludeModule("iblock");
$ibp = new CIBlockProperty;
$PropID = $ibp->Add($arFields);
return $PropID;