本文整理汇总了PHP中CDatabase::Connect方法的典型用法代码示例。如果您正苦于以下问题:PHP CDatabase::Connect方法的具体用法?PHP CDatabase::Connect怎么用?PHP CDatabase::Connect使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CDatabase
的用法示例。
在下文中一共展示了CDatabase::Connect方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: GetDBNodeConnection
/**
* @param string $node_id
* @param boolean $bIgnoreErrors
* @param boolean $bCheckStatus
*
* @return boolean|CDatabase
*/
public static function GetDBNodeConnection($node_id, $bIgnoreErrors = false, $bCheckStatus = true)
{
global $DB;
if (!array_key_exists($node_id, self::$arNodes)) {
if (CModule::IncludeModule('cluster')) {
self::$arNodes[$node_id] = CClusterDBNode::GetByID($node_id);
} else {
self::$arNodes[$node_id] = false;
}
}
$node =& self::$arNodes[$node_id];
if (is_array($node) && (!$bCheckStatus || $node["ACTIVE"] == "Y" && ($node["STATUS"] == "ONLINE" || $node["STATUS"] == "READY")) && !isset($node["ONHIT_ERROR"])) {
if (!array_key_exists("DB", $node)) {
$node_DB = new CDatabase();
$node_DB->type = $DB->type;
$node_DB->debug = $DB->debug;
$node_DB->DebugToFile = $DB->DebugToFile;
$node_DB->bNodeConnection = true;
$node_DB->node_id = $node_id;
if ($node_DB->Connect($node["DB_HOST"], $node["DB_NAME"], $node["DB_LOGIN"], $node["DB_PASSWORD"], "node" . $node_id)) {
if (defined("DELAY_DB_CONNECT") && DELAY_DB_CONNECT === true) {
if ($node_DB->DoConnect("node" . $node_id)) {
$node["DB"] = $node_DB;
}
} else {
$node["DB"] = $node_DB;
}
}
}
if (array_key_exists("DB", $node)) {
return $node["DB"];
}
}
if ($bIgnoreErrors) {
return false;
} else {
if (file_exists($_SERVER["DOCUMENT_ROOT"] . BX_PERSONAL_ROOT . "/php_interface/dbconn_error.php")) {
include $_SERVER["DOCUMENT_ROOT"] . BX_PERSONAL_ROOT . "/php_interface/dbconn_error.php";
} else {
include $_SERVER["DOCUMENT_ROOT"] . BX_ROOT . "/modules/main/include/dbconn_error.php";
}
die;
}
}
示例2: InitPureDB
function InitPureDB()
{
if (!function_exists('SendError'))
{
function SendError($str)
{
}
}
global $DB;
/**
* Defined in dbconn.php
* @var $DBType
* @var $DBDebug
* @var $DBDebugToFile
* @var $DBHost
* @var $DBName
* @var $DBLogin
* @var $DBPassword
*/
require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/php_interface/dbconn.php");
if(defined('BX_UTF'))
define('BX_UTF_PCRE_MODIFIER', 'u');
else
define('BX_UTF_PCRE_MODIFIER', '');
require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/classes/".$DBType."/database.php");
$DB = new CDatabase;
$DB->debug = $DBDebug;
$DB->DebugToFile = $DBDebugToFile;
if(!($DB->Connect($DBHost, $DBName, $DBLogin, $DBPassword)) || !($DB->DoConnect()))
{
if(file_exists(($fname = $_SERVER["DOCUMENT_ROOT"]."/bitrix/php_interface/dbconn_error.php")))
include($fname);
else
include($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/dbconn_error.php");
die();
}
if (file_exists($after = $_SERVER["DOCUMENT_ROOT"]."/bitrix/php_interface/after_connect.php"))
include_once($after);
}
示例3: UpdateGetOption
$MESS['PASSWORD_PROMT'] = 'Administrator\'s Password';
$MESS['COUPON_PROMT'] = 'License Key or Coupon';
$MESS['BUTTON_SUBMIT'] = 'Restore';
$MESS['BUTTON_RESET'] = 'Cancel';
$MESS['ERROR_EMPTY_CONTENT'] = 'Server does not respond.';
$MESS['ERROR_INVALID_CONTENT'] = 'Server response is not recognized';
$MESS['ERROR_NOT_ADMIN'] = 'You are not an administrator';
$MESS['ERROR_INVALID_COUPON'] = 'License Key / Coupon is incorrect';
$MESS['ERROR_EMPTY_COUPON'] = 'License Key / Coupon is not specified';
$MESS['SUCCESS_RECOVER'] = "Site restore completed";
$MESS['ERROR_NOT_WRITABLE'] = "Folder is not writable";
$MESS['ERROR_NOT_FOPEN'] = "File open fails";
}
$DB = new CDatabase();
$DB->debug = $DBDebug;
$DB->Connect($DBHost, $DBName, $DBLogin, $DBPassword);
$errorMessage = "";
$successMessage = "";
/**************************************************************************************************************************/
/************************* FUNCTIONS **********************************************************************************/
/**************************************************************************************************************************/
if (!function_exists("file_get_contents")) {
function file_get_contents($filename)
{
$fd = fopen("{$filename}", "rb");
$content = fread($fd, filesize($filename));
fclose($fd);
return $content;
}
}
function UpdateGetOption($name, $default = "")
示例4: OnPostForm
function OnPostForm()
{
$wizard =& $this->GetWizard();
if ($wizard->IsPrevButtonClick()) {
return;
}
$this->dbType = $wizard->GetVar(___125355289(866));
$this->_967147829 = $wizard->GetVar(___125355289(867));
$this->_374022743 = $wizard->GetVar(___125355289(868));
$this->_1780979916 = $wizard->GetVar(___125355289(869));
$this->dbName = $wizard->GetVar(___125355289(870));
$this->_1854226023 = $wizard->GetVar(___125355289(871));
$this->_1854226023 = $this->_1854226023 && $this->_1854226023 == ___125355289(872);
$this->_791152579 = $wizard->GetVar(___125355289(873));
$this->_791152579 = $this->_791152579 && $this->_791152579 == ___125355289(874);
$this->createDBType = $wizard->GetVar(___125355289(875));
$this->_1521371254 = $wizard->GetVar(___125355289(876));
$this->_1232602102 = $wizard->GetVar(___125355289(877));
if ($GLOBALS['____1308158154'][189](___125355289(878), $wizard->GetVar(___125355289(879)), $_1404671193)) {
$this->filePermission = $GLOBALS['____1308158154'][190]($_1404671193[round(0 + 0.2 + 0.2 + 0.2 + 0.2 + 0.2)]);
} else {
$this->filePermission = $wizard->GetDefaultVar(___125355289(880));
}
if ($GLOBALS['____1308158154'][191](___125355289(881), $wizard->GetVar(___125355289(882)), $_1404671193)) {
$this->folderPermission = $GLOBALS['____1308158154'][192]($_1404671193[round(0 + 1)]);
} else {
$this->folderPermission = $wizard->GetDefaultVar(___125355289(883));
}
$this->utf8 = $wizard->GetVar(___125355289(884));
$this->utf8 = $this->utf8 && $this->utf8 == ___125355289(885) && BXInstallServices::IsUTF8Support() && $this->dbType != ___125355289(886);
BXInstallServices::CheckDirPath($_SERVER[___125355289(887)] . ___125355289(888), $GLOBALS['____1308158154'][193]($this->folderPermission));
if (!$GLOBALS['____1308158154'][194]($_SERVER[___125355289(889)] . ___125355289(890)) || !$GLOBALS['____1308158154'][195]($_SERVER[___125355289(891)] . ___125355289(892))) {
$this->SetError(___125355289(893));
return;
}
$_1375504423 = $_SERVER[___125355289(894)] . ___125355289(895);
if ($GLOBALS['____1308158154'][196]($_1375504423)) {
if (!$GLOBALS['____1308158154'][197]($_1375504423) || !$GLOBALS['____1308158154'][198]($_1375504423)) {
$this->SetError(___125355289(896));
return;
}
} else {
$_142195975 = false;
if ($_1318943328 = @$GLOBALS['____1308158154'][199]($_1375504423, ___125355289(897))) {
if ($GLOBALS['____1308158154'][200]($_1318943328, ___125355289(898))) {
$_142195975 = true;
}
@$GLOBALS['____1308158154'][201]($_1318943328);
@$GLOBALS['____1308158154'][202]($_1375504423);
}
if (!$_142195975) {
$this->SetError(___125355289(899));
return;
}
}
$_2098045632 = BXInstallServices::GetDBTypes();
if (!$GLOBALS['____1308158154'][203]($wizard->GetVar(___125355289(900)), $_2098045632) || $_2098045632[$wizard->GetVar(___125355289(901))] === false) {
$this->SetError(InstallGetMessage(___125355289(902)));
return;
}
if ($GLOBALS['____1308158154'][204]($this->_967147829) <= 250 * 2 - 500) {
$this->SetError(InstallGetMessage(___125355289(903)), ___125355289(904));
return;
}
if ($this->dbType == ___125355289(905) && !$this->CreateMySQL()) {
return;
} elseif ($this->dbType == ___125355289(906) && !$this->CreateMSSQLNative()) {
return;
} elseif ($this->dbType == ___125355289(907) && !$this->CreateOracle()) {
return;
}
if (!$this->CreateAfterConnect()) {
return;
}
$_918413367 = \Bitrix\Main\HttpApplication::getInstance();
$_918413367->initializeBasicKernel();
$_573151075 = $_918413367->getConnectionPool();
$DBType = $GLOBALS['____1308158154'][205]($this->dbType);
if ($DBType == ___125355289(908)) {
$_1435877142 = ___125355289(909);
} elseif ($DBType == ___125355289(910)) {
$_1435877142 = ___125355289(911);
} else {
$_1435877142 = ___125355289(912);
}
$_573151075->setConnectionParameters(\Bitrix\Main\Data\ConnectionPool::DEFAULT_CONNECTION_NAME, array(___125355289(913) => $_1435877142, ___125355289(914) => $this->_1780979916, ___125355289(915) => $this->dbName, ___125355289(916) => $this->_967147829, ___125355289(917) => $this->_374022743, ___125355289(918) => ($GLOBALS['____1308158154'][206](___125355289(919)) ? round(0 + 0.5 + 0.5) : 922 - 2 * 461) | round(0 + 0.5 + 0.5 + 0.5 + 0.5)));
require_once $_SERVER[___125355289(920)] . ___125355289(921) . $this->dbType . ___125355289(922);
require_once $_SERVER[___125355289(923)] . ___125355289(924) . $this->dbType . ___125355289(925);
require_once $_SERVER[___125355289(926)] . ___125355289(927);
require_once $_SERVER[___125355289(928)] . ___125355289(929);
$GLOBALS['_____1887280449'][0]($_SERVER[___125355289(930)] . ___125355289(931));
global $DB;
$DB = new CDatabase();
$this->DB =& $DB;
$DB->_1182062408 = false;
if (!$GLOBALS['____1308158154'][207](___125355289(932))) {
$GLOBALS['____1308158154'][208](___125355289(933), false);
}
if (!$DB->Connect($this->_1780979916, $this->dbName, $this->_967147829, $this->_374022743)) {
$this->SetError(InstallGetMessage(___125355289(934)) . ___125355289(935) . $DB->_1020247230);
//.........这里部分代码省略.........
示例5: CheckShortInstall
function CheckShortInstall()
{
global $DB, $DBType, $DBHost, $DBLogin, $DBPassword, $DBName, $DBDebug, $DBSQLServerType;
if (defined("SHORT_INSTALL_CHECK")) {
return true;
}
//PHP
$requireStep = new RequirementStep();
if (!$requireStep->CheckRequirements($DBType)) {
BXInstallServices::ShowStepErrors($requireStep);
}
//UTF-8
if (defined("BX_UTF") && !BXInstallServices::IsUTF8Support()) {
BXInstallServices::ShowStepErrors(InstallGetMessage("INST_UTF8_NOT_SUPPORT"));
} elseif (defined("BX_UTF") && $DBType == "mssql") {
BXInstallServices::ShowStepErrors(InstallGetMessage("INST_UTF8_NOT_SUPPORT"));
}
//Check connection
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/classes/" . $DBType . "/database.php";
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/classes/" . $DBType . "/main.php";
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/tools.php";
IncludeModuleLangFile($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/classes/general/main.php");
$DB = new CDatabase();
if (!$DB->Connect($DBHost, $DBName, $DBLogin, $DBPassword)) {
BXInstallServices::ShowStepErrors(InstallGetMessage("COULD_NOT_CONNECT") . " " . $DB->db_Error);
}
$databaseStep = new CreateDBStep();
$databaseStep->DB =& $DB;
$databaseStep->dbType = $DBType;
$databaseStep->dbName = $DBName;
$databaseStep->filePermission = defined("BX_FILE_PERMISSIONS") ? BX_FILE_PERMISSIONS : 0;
$databaseStep->folderPermission = defined("BX_DIR_PERMISSIONS") ? BX_DIR_PERMISSIONS : 0;
$databaseStep->createDBType = defined("MYSQL_TABLE_TYPE") ? MYSQL_TABLE_TYPE : "";
$databaseStep->utf8 = defined("BX_UTF");
$databaseStep->createCharset = null;
$databaseStep->needCodePage = false;
if ($databaseStep->IsBitrixInstalled()) {
BXInstallServices::ShowStepErrors($databaseStep);
}
//Database check
if ($DBType == "mysql") {
$dbResult = $DB->Query("select VERSION() as ver", true);
if ($dbResult && ($arVersion = $dbResult->Fetch())) {
$mysqlVersion = trim($arVersion["ver"]);
if (!BXInstallServices::VersionCompare($mysqlVersion, "5.0.0")) {
BXInstallServices::ShowStepErrors(InstallGetMessage("SC_DB_VERS_MYSQL_ER"));
}
$databaseStep->needCodePage = true;
if (!$databaseStep->needCodePage && defined("BX_UTF")) {
BXInstallServices::ShowStepErrors(InstallGetMessage("INS_CREATE_DB_CHAR_NOTE"));
}
}
//Code page
if ($databaseStep->needCodePage) {
$codePage = false;
if (LANGUAGE_ID == "ru") {
$codePage = "cp1251";
} elseif ($databaseStep->createCharset != '') {
$codePage = $databaseStep->createCharset;
} else {
$codePage = 'latin1';
}
if ($databaseStep->utf8) {
$DB->Query("ALTER DATABASE `" . $databaseStep->dbName . "` CHARACTER SET UTF8 COLLATE utf8_unicode_ci", true);
} elseif ($codePage) {
$DB->Query("ALTER DATABASE `" . $databaseStep->dbName . "` CHARACTER SET " . $codePage, true);
}
}
if (strlen($databaseStep->createDBType) > 0) {
$DB->Query("SET storage_engine = '" . $databaseStep->createDBType . "'", false);
}
//SQL mode
$dbResult = $DB->Query("SELECT @@sql_mode", true);
if ($dbResult && ($arResult = $dbResult->Fetch())) {
$sqlMode = trim($arResult["@@sql_mode"]);
if (strpos($sqlMode, "STRICT_TRANS_TABLES") !== false) {
$databaseStep->sqlMode = preg_replace("~,?STRICT_TRANS_TABLES~i", "", $sqlMode);
$databaseStep->sqlMode = ltrim($databaseStep->sqlMode, ",");
}
}
} elseif ($DBType == "oracle" && $databaseStep->utf8) {
$query = "SELECT * FROM nls_database_parameters WHERE PARAMETER='NLS_CHARACTERSET' OR PARAMETER='NLS_NCHAR_CHARACTERSET'";
$dbResult = $DB->Query($query, true);
if ($dbResult && ($arResult = $dbResult->Fetch())) {
$arOracleParams = array("NLS_CHARACTERSET" => "", "NLS_NCHAR_CHARACTERSET" => "");
foreach ($arResult as $arParam) {
$arOracleParams[$arParam["PARAMETER"]] = $arParam["VALUE"];
}
if ($arOracleParams["NLS_CHARACTERSET"] != "AL32UTF8" || $arOracleParams["NLS_NCHAR_CHARACTERSET"] != "UTF8") {
BXInstallServices::ShowStepErrors(InstallGetMessage("INST_ORACLE_UTF_ERROR"));
}
} else {
BXInstallServices::ShowStepErrors(InstallGetMessage("INST_ORACLE_CHARSET_ERROR"));
}
}
//Create after_connect.php if not exists
if (!file_exists($_SERVER["DOCUMENT_ROOT"] . BX_PERSONAL_ROOT . "/php_interface/after_connect.php") && $databaseStep->CreateAfterConnect() === false) {
BXInstallServices::ShowStepErrors($databaseStep);
}
if (!$databaseStep->CheckDBOperation()) {
//.........这里部分代码省略.........
示例6: OnPostForm
function OnPostForm()
{
$wizard =& $this->GetWizard();
if ($wizard->IsPrevButtonClick()) {
return;
}
$this->dbType = $wizard->GetVar(___1890932495(881));
$this->_1229651704 = $wizard->GetVar(___1890932495(882));
$this->_1089032747 = $wizard->GetVar(___1890932495(883));
$this->_706664159 = $wizard->GetVar(___1890932495(884));
$this->dbName = $wizard->GetVar(___1890932495(885));
$this->_545881284 = $wizard->GetVar(___1890932495(886));
$this->_545881284 = $this->_545881284 && $this->_545881284 == ___1890932495(887);
$this->_266681215 = $wizard->GetVar(___1890932495(888));
$this->_266681215 = $this->_266681215 && $this->_266681215 == ___1890932495(889);
$this->createDBType = $wizard->GetVar(___1890932495(890));
$this->_1052962756 = $wizard->GetVar(___1890932495(891));
$this->_978207489 = $wizard->GetVar(___1890932495(892));
if ($GLOBALS['____813922723'][190](___1890932495(893), $wizard->GetVar(___1890932495(894)), $_26133748)) {
$this->filePermission = $GLOBALS['____813922723'][191]($_26133748[round(0 + 0.25 + 0.25 + 0.25 + 0.25)]);
} else {
$this->filePermission = $wizard->GetDefaultVar(___1890932495(895));
}
if ($GLOBALS['____813922723'][192](___1890932495(896), $wizard->GetVar(___1890932495(897)), $_26133748)) {
$this->folderPermission = $GLOBALS['____813922723'][193]($_26133748[round(0 + 0.5 + 0.5)]);
} else {
$this->folderPermission = $wizard->GetDefaultVar(___1890932495(898));
}
$this->utf8 = $wizard->GetVar(___1890932495(899));
$this->utf8 = $this->utf8 && $this->utf8 == ___1890932495(900) && BXInstallServices::IsUTF8Support() && $this->dbType != ___1890932495(901);
BXInstallServices::CheckDirPath($_SERVER[___1890932495(902)] . ___1890932495(903), $GLOBALS['____813922723'][194]($this->folderPermission));
if (!$GLOBALS['____813922723'][195]($_SERVER[___1890932495(904)] . ___1890932495(905)) || !$GLOBALS['____813922723'][196]($_SERVER[___1890932495(906)] . ___1890932495(907))) {
$this->SetError(___1890932495(908));
return;
}
$_1286167962 = $_SERVER[___1890932495(909)] . ___1890932495(910);
if ($GLOBALS['____813922723'][197]($_1286167962)) {
if (!$GLOBALS['____813922723'][198]($_1286167962) || !$GLOBALS['____813922723'][199]($_1286167962)) {
$this->SetError(___1890932495(911));
return;
}
} else {
$_918936079 = false;
if ($_395341496 = @$GLOBALS['____813922723'][200]($_1286167962, ___1890932495(912))) {
if ($GLOBALS['____813922723'][201]($_395341496, ___1890932495(913))) {
$_918936079 = true;
}
@$GLOBALS['____813922723'][202]($_395341496);
@$GLOBALS['____813922723'][203]($_1286167962);
}
if (!$_918936079) {
$this->SetError(___1890932495(914));
return;
}
}
$_235820572 = BXInstallServices::GetDBTypes();
if (!$GLOBALS['____813922723'][204]($wizard->GetVar(___1890932495(915)), $_235820572) || $_235820572[$wizard->GetVar(___1890932495(916))] === false) {
$this->SetError(InstallGetMessage(___1890932495(917)));
return;
}
if ($GLOBALS['____813922723'][205]($this->_1229651704) <= min(190, 0, 63.333333333333)) {
$this->SetError(InstallGetMessage(___1890932495(918)), ___1890932495(919));
return;
}
if ($this->dbType == ___1890932495(920) && !$this->CreateMySQL()) {
return;
} elseif ($this->dbType == ___1890932495(921) && !$this->CreateMSSQLNative()) {
return;
} elseif ($this->dbType == ___1890932495(922) && !$this->CreateOracle()) {
return;
}
if (!$this->CreateAfterConnect()) {
return;
}
$_2120128681 = \Bitrix\Main\HttpApplication::getInstance();
$_2120128681->initializeBasicKernel();
$_978098076 = $_2120128681->getConnectionPool();
$DBType = $GLOBALS['____813922723'][206]($this->dbType);
if ($DBType == ___1890932495(923)) {
$_1398830334 = ___1890932495(924);
} elseif ($DBType == ___1890932495(925)) {
$_1398830334 = ___1890932495(926);
} else {
$_1398830334 = ___1890932495(927);
}
$_978098076->setConnectionParameters(\Bitrix\Main\Data\ConnectionPool::DEFAULT_CONNECTION_NAME, array(___1890932495(928) => $_1398830334, ___1890932495(929) => $this->_706664159, ___1890932495(930) => $this->dbName, ___1890932495(931) => $this->_1229651704, ___1890932495(932) => $this->_1089032747, ___1890932495(933) => ($GLOBALS['____813922723'][207](___1890932495(934)) ? round(0 + 0.2 + 0.2 + 0.2 + 0.2 + 0.2) : 1284 / 2 - 642) | round(0 + 0.4 + 0.4 + 0.4 + 0.4 + 0.4)));
require_once $_SERVER[___1890932495(935)] . ___1890932495(936) . $this->dbType . ___1890932495(937);
require_once $_SERVER[___1890932495(938)] . ___1890932495(939) . $this->dbType . ___1890932495(940);
require_once $_SERVER[___1890932495(941)] . ___1890932495(942);
require_once $_SERVER[___1890932495(943)] . ___1890932495(944);
$GLOBALS['_____325538160'][1]($_SERVER[___1890932495(945)] . ___1890932495(946));
global $DB;
$DB = new CDatabase();
$this->DB =& $DB;
$DB->_1455689935 = false;
if (!$GLOBALS['____813922723'][208](___1890932495(947))) {
$GLOBALS['____813922723'][209](___1890932495(948), false);
}
if (!$DB->Connect($this->_706664159, $this->dbName, $this->_1229651704, $this->_1089032747)) {
$this->SetError(InstallGetMessage(___1890932495(949)) . ___1890932495(950) . $DB->_1315778125);
//.........这里部分代码省略.........
示例7: OnPostForm
function OnPostForm()
{
$wizard =& $this->GetWizard();
if ($wizard->IsPrevButtonClick()) {
return;
}
$this->dbType = $wizard->GetVar(___1421401830(866));
$this->_1277026187 = $wizard->GetVar(___1421401830(867));
$this->_765043412 = $wizard->GetVar(___1421401830(868));
$this->_1967217504 = $wizard->GetVar(___1421401830(869));
$this->dbName = $wizard->GetVar(___1421401830(870));
$this->_881569460 = $wizard->GetVar(___1421401830(871));
$this->_881569460 = $this->_881569460 && $this->_881569460 == ___1421401830(872);
$this->_650932509 = $wizard->GetVar(___1421401830(873));
$this->_650932509 = $this->_650932509 && $this->_650932509 == ___1421401830(874);
$this->createDBType = $wizard->GetVar(___1421401830(875));
$this->_1942373225 = $wizard->GetVar(___1421401830(876));
$this->_1814557606 = $wizard->GetVar(___1421401830(877));
if ($GLOBALS['____1026004314'][189](___1421401830(878), $wizard->GetVar(___1421401830(879)), $_1329460691)) {
$this->filePermission = $GLOBALS['____1026004314'][190]($_1329460691[round(0 + 0.33333333333333 + 0.33333333333333 + 0.33333333333333)]);
} else {
$this->filePermission = $wizard->GetDefaultVar(___1421401830(880));
}
if ($GLOBALS['____1026004314'][191](___1421401830(881), $wizard->GetVar(___1421401830(882)), $_1329460691)) {
$this->folderPermission = $GLOBALS['____1026004314'][192]($_1329460691[round(0 + 0.33333333333333 + 0.33333333333333 + 0.33333333333333)]);
} else {
$this->folderPermission = $wizard->GetDefaultVar(___1421401830(883));
}
$this->utf8 = $wizard->GetVar(___1421401830(884));
$this->utf8 = $this->utf8 && $this->utf8 == ___1421401830(885) && BXInstallServices::IsUTF8Support() && $this->dbType != ___1421401830(886);
BXInstallServices::CheckDirPath($_SERVER[___1421401830(887)] . ___1421401830(888), $GLOBALS['____1026004314'][193]($this->folderPermission));
if (!$GLOBALS['____1026004314'][194]($_SERVER[___1421401830(889)] . ___1421401830(890)) || !$GLOBALS['____1026004314'][195]($_SERVER[___1421401830(891)] . ___1421401830(892))) {
$this->SetError(___1421401830(893));
return;
}
$_2057940110 = $_SERVER[___1421401830(894)] . ___1421401830(895);
if ($GLOBALS['____1026004314'][196]($_2057940110)) {
if (!$GLOBALS['____1026004314'][197]($_2057940110) || !$GLOBALS['____1026004314'][198]($_2057940110)) {
$this->SetError(___1421401830(896));
return;
}
} else {
$_1218764529 = false;
if ($_1416103767 = @$GLOBALS['____1026004314'][199]($_2057940110, ___1421401830(897))) {
if ($GLOBALS['____1026004314'][200]($_1416103767, ___1421401830(898))) {
$_1218764529 = true;
}
@$GLOBALS['____1026004314'][201]($_1416103767);
@$GLOBALS['____1026004314'][202]($_2057940110);
}
if (!$_1218764529) {
$this->SetError(___1421401830(899));
return;
}
}
$_903725123 = BXInstallServices::GetDBTypes();
if (!$GLOBALS['____1026004314'][203]($wizard->GetVar(___1421401830(900)), $_903725123) || $_903725123[$wizard->GetVar(___1421401830(901))] === false) {
$this->SetError(InstallGetMessage(___1421401830(902)));
return;
}
if ($GLOBALS['____1026004314'][204]($this->_1277026187) <= min(156, 0, 52)) {
$this->SetError(InstallGetMessage(___1421401830(903)), ___1421401830(904));
return;
}
if ($this->dbType == ___1421401830(905) && !$this->CreateMySQL()) {
return;
} elseif ($this->dbType == ___1421401830(906) && !$this->CreateMSSQLNative()) {
return;
} elseif ($this->dbType == ___1421401830(907) && !$this->CreateOracle()) {
return;
}
if (!$this->CreateAfterConnect()) {
return;
}
$_1842306805 = \Bitrix\Main\HttpApplication::getInstance();
$_1842306805->initializeBasicKernel();
$_2104701093 = $_1842306805->getConnectionPool();
$DBType = $GLOBALS['____1026004314'][205]($this->dbType);
if ($DBType == ___1421401830(908)) {
$_611237463 = ___1421401830(909);
} elseif ($DBType == ___1421401830(910)) {
$_611237463 = ___1421401830(911);
} else {
$_611237463 = ___1421401830(912);
}
$_2104701093->setConnectionParameters(\Bitrix\Main\Data\ConnectionPool::DEFAULT_CONNECTION_NAME, array(___1421401830(913) => $_611237463, ___1421401830(914) => $this->_1967217504, ___1421401830(915) => $this->dbName, ___1421401830(916) => $this->_1277026187, ___1421401830(917) => $this->_765043412, ___1421401830(918) => ($GLOBALS['____1026004314'][206](___1421401830(919)) ? round(0 + 0.2 + 0.2 + 0.2 + 0.2 + 0.2) : 1428 / 2 - 714) | round(0 + 0.66666666666667 + 0.66666666666667 + 0.66666666666667)));
require_once $_SERVER[___1421401830(920)] . ___1421401830(921) . $this->dbType . ___1421401830(922);
require_once $_SERVER[___1421401830(923)] . ___1421401830(924) . $this->dbType . ___1421401830(925);
require_once $_SERVER[___1421401830(926)] . ___1421401830(927);
require_once $_SERVER[___1421401830(928)] . ___1421401830(929);
$GLOBALS['_____610779253'][0]($_SERVER[___1421401830(930)] . ___1421401830(931));
global $DB;
$DB = new CDatabase();
$this->DB =& $DB;
$DB->_999999516 = false;
if (!$GLOBALS['____1026004314'][207](___1421401830(932))) {
$GLOBALS['____1026004314'][208](___1421401830(933), false);
}
if (!$DB->Connect($this->_1967217504, $this->dbName, $this->_1277026187, $this->_765043412)) {
$this->SetError(InstallGetMessage(___1421401830(934)) . ___1421401830(935) . $DB->_541006338);
//.........这里部分代码省略.........
示例8: OnPostForm
function OnPostForm()
{
$wizard =& $this->GetWizard();
if ($wizard->IsPrevButtonClick()) {
return;
}
$this->dbType = $wizard->GetVar(___2112488176(856));
$this->_1001430046 = $wizard->GetVar(___2112488176(857));
$this->_789293080 = $wizard->GetVar(___2112488176(858));
$this->_821481867 = $wizard->GetVar(___2112488176(859));
$this->dbName = $wizard->GetVar(___2112488176(860));
$this->_579415122 = $wizard->GetVar(___2112488176(861));
$this->_579415122 = $this->_579415122 && $this->_579415122 == ___2112488176(862);
$this->_1672294795 = $wizard->GetVar(___2112488176(863));
$this->_1672294795 = $this->_1672294795 && $this->_1672294795 == ___2112488176(864);
$this->createDBType = $wizard->GetVar(___2112488176(865));
$this->_1182984695 = $wizard->GetVar(___2112488176(866));
$this->_1446600725 = $wizard->GetVar(___2112488176(867));
if ($GLOBALS['____913039627'][186](___2112488176(868), $wizard->GetVar(___2112488176(869)), $_742424646)) {
$this->filePermission = $GLOBALS['____913039627'][187]($_742424646[round(0 + 1)]);
} else {
$this->filePermission = $wizard->GetDefaultVar(___2112488176(870));
}
if ($GLOBALS['____913039627'][188](___2112488176(871), $wizard->GetVar(___2112488176(872)), $_742424646)) {
$this->folderPermission = $GLOBALS['____913039627'][189]($_742424646[round(0 + 0.33333333333333 + 0.33333333333333 + 0.33333333333333)]);
} else {
$this->folderPermission = $wizard->GetDefaultVar(___2112488176(873));
}
$this->utf8 = $wizard->GetVar(___2112488176(874));
$this->utf8 = $this->utf8 && $this->utf8 == ___2112488176(875) && BXInstallServices::IsUTF8Support() && $this->dbType != ___2112488176(876);
BXInstallServices::CheckDirPath($_SERVER[___2112488176(877)] . ___2112488176(878), $GLOBALS['____913039627'][190]($this->folderPermission));
if (!$GLOBALS['____913039627'][191]($_SERVER[___2112488176(879)] . ___2112488176(880)) || !$GLOBALS['____913039627'][192]($_SERVER[___2112488176(881)] . ___2112488176(882))) {
$this->SetError(___2112488176(883));
return;
}
$_268175646 = $_SERVER[___2112488176(884)] . ___2112488176(885);
if ($GLOBALS['____913039627'][193]($_268175646)) {
if (!$GLOBALS['____913039627'][194]($_268175646) || !$GLOBALS['____913039627'][195]($_268175646)) {
$this->SetError(___2112488176(886));
return;
}
} else {
$_272818224 = false;
if ($_1348048994 = @$GLOBALS['____913039627'][196]($_268175646, ___2112488176(887))) {
if ($GLOBALS['____913039627'][197]($_1348048994, ___2112488176(888))) {
$_272818224 = true;
}
@$GLOBALS['____913039627'][198]($_1348048994);
@$GLOBALS['____913039627'][199]($_268175646);
}
if (!$_272818224) {
$this->SetError(___2112488176(889));
return;
}
}
$_1367462313 = BXInstallServices::GetDBTypes();
if (!$GLOBALS['____913039627'][200]($wizard->GetVar(___2112488176(890)), $_1367462313) || $_1367462313[$wizard->GetVar(___2112488176(891))] === false) {
$this->SetError(InstallGetMessage(___2112488176(892)));
return;
}
if ($GLOBALS['____913039627'][201]($this->_1001430046) <= 1164 / 2 - 582) {
$this->SetError(InstallGetMessage(___2112488176(893)), ___2112488176(894));
return;
}
if ($this->dbType == ___2112488176(895) && !$this->CreateMySQL()) {
return;
} elseif ($this->dbType == ___2112488176(896) && !$this->CreateMSSQLNative()) {
return;
} elseif ($this->dbType == ___2112488176(897) && !$this->CreateOracle()) {
return;
}
if (!$this->CreateAfterConnect()) {
return;
}
$_2064655644 = \Bitrix\Main\HttpApplication::getInstance();
$_2064655644->initializeBasicKernel();
$_732572622 = $_2064655644->getConnectionPool();
$DBType = $GLOBALS['____913039627'][202]($this->dbType);
if ($DBType == ___2112488176(898)) {
$_969006189 = ___2112488176(899);
} elseif ($DBType == ___2112488176(900)) {
$_969006189 = ___2112488176(901);
} else {
$_969006189 = ___2112488176(902);
}
$_732572622->setConnectionParameters(\Bitrix\Main\Data\ConnectionPool::DEFAULT_CONNECTION_NAME, array(___2112488176(903) => $_969006189, ___2112488176(904) => $this->_821481867, ___2112488176(905) => $this->dbName, ___2112488176(906) => $this->_1001430046, ___2112488176(907) => $this->_789293080, ___2112488176(908) => ($GLOBALS['____913039627'][203](___2112488176(909)) ? round(0 + 0.5 + 0.5) : 870 - 2 * 435) | round(0 + 0.66666666666667 + 0.66666666666667 + 0.66666666666667)));
require_once $_SERVER[___2112488176(910)] . ___2112488176(911) . $this->dbType . ___2112488176(912);
require_once $_SERVER[___2112488176(913)] . ___2112488176(914) . $this->dbType . ___2112488176(915);
require_once $_SERVER[___2112488176(916)] . ___2112488176(917);
require_once $_SERVER[___2112488176(918)] . ___2112488176(919);
$GLOBALS['_____1240614873'][1]($_SERVER[___2112488176(920)] . ___2112488176(921));
global $DB;
$DB = new CDatabase();
$this->DB =& $DB;
$DB->_1761623443 = false;
if (!$GLOBALS['____913039627'][204](___2112488176(922))) {
$GLOBALS['____913039627'][205](___2112488176(923), false);
}
if (!$DB->Connect($this->_821481867, $this->dbName, $this->_1001430046, $this->_789293080)) {
$this->SetError(InstallGetMessage(___2112488176(924)) . ___2112488176(925) . $DB->_1727793231);
//.........这里部分代码省略.........
示例9: OnPostForm
function OnPostForm()
{
$wizard =& $this->GetWizard();
if ($wizard->IsPrevButtonClick()) {
return;
}
if ($wizard->GetVar(___15051529(826)) == ___15051529(827)) {
$this->_1286173751 = ___15051529(828);
$this->dbType = ___15051529(829);
} else {
$this->dbType = $wizard->GetVar(___15051529(830));
}
$this->_1000884252 = $wizard->GetVar(___15051529(831));
$this->_587941691 = $wizard->GetVar(___15051529(832));
$this->_1546492805 = $wizard->GetVar(___15051529(833));
$this->dbName = $wizard->GetVar(___15051529(834));
$this->_594659479 = $wizard->GetVar(___15051529(835));
$this->_594659479 = $this->_594659479 && $this->_594659479 == ___15051529(836);
$this->_2074717333 = $wizard->GetVar(___15051529(837));
$this->_2074717333 = $this->_2074717333 && $this->_2074717333 == ___15051529(838);
$this->createDBType = $wizard->GetVar(___15051529(839));
$this->_533759699 = $wizard->GetVar(___15051529(840));
$this->_398145346 = $wizard->GetVar(___15051529(841));
if ($GLOBALS['____820498681'][171](___15051529(842), $wizard->GetVar(___15051529(843)), $_663882590)) {
$this->filePermission = $GLOBALS['____820498681'][172]($_663882590[round(0 + 0.5 + 0.5)]);
} else {
$this->filePermission = $wizard->GetDefaultVar(___15051529(844));
}
if ($GLOBALS['____820498681'][173](___15051529(845), $wizard->GetVar(___15051529(846)), $_663882590)) {
$this->folderPermission = $GLOBALS['____820498681'][174]($_663882590[round(0 + 0.5 + 0.5)]);
} else {
$this->folderPermission = $wizard->GetDefaultVar(___15051529(847));
}
$this->utf8 = $wizard->GetVar(___15051529(848));
$this->utf8 = $this->utf8 && $this->utf8 == ___15051529(849) && BXInstallServices::IsUTF8Support() && $this->dbType != ___15051529(850);
BXInstallServices::CheckDirPath($_SERVER[___15051529(851)] . ___15051529(852), $GLOBALS['____820498681'][175]($this->folderPermission));
if (!$GLOBALS['____820498681'][176]($_SERVER[___15051529(853)] . ___15051529(854)) || !$GLOBALS['____820498681'][177]($_SERVER[___15051529(855)] . ___15051529(856))) {
$this->SetError(___15051529(857));
return;
}
$_1065036658 = $_SERVER[___15051529(858)] . ___15051529(859);
if ($GLOBALS['____820498681'][178]($_1065036658)) {
if (!$GLOBALS['____820498681'][179]($_1065036658) || !$GLOBALS['____820498681'][180]($_1065036658)) {
$this->SetError(___15051529(860));
return;
}
} else {
$_805344855 = false;
if ($_537844953 = @$GLOBALS['____820498681'][181]($_1065036658, ___15051529(861))) {
if ($GLOBALS['____820498681'][182]($_537844953, ___15051529(862))) {
$_805344855 = true;
}
@$GLOBALS['____820498681'][183]($_537844953);
@$GLOBALS['____820498681'][184]($_1065036658);
}
if (!$_805344855) {
$this->SetError(___15051529(863));
return;
}
}
$_1757409934 = BXInstallServices::GetDBTypes();
if (!$GLOBALS['____820498681'][185]($wizard->GetVar(___15051529(864)), $_1757409934) || $_1757409934[$wizard->GetVar(___15051529(865))] === false) {
$this->SetError(InstallGetMessage(___15051529(866)));
return;
}
if ($GLOBALS['____820498681'][186]($this->_1000884252) <= 1480 / 2 - 740) {
$this->SetError(InstallGetMessage(___15051529(867)), ___15051529(868));
return;
}
if ($this->dbType == ___15051529(869) && !$this->CreateMySQL()) {
return;
} elseif ($this->dbType == ___15051529(870) && !$this->CreateMSSQL()) {
return;
} elseif ($this->dbType == ___15051529(871) && !$this->CreateOracle()) {
return;
}
if (!$this->CreateAfterConnect()) {
return;
}
if ($this->dbType == ___15051529(872) && $this->_1286173751 == ___15051529(873)) {
require_once $_SERVER[___15051529(874)] . ___15051529(875) . $this->dbType . ___15051529(876);
} else {
require_once $_SERVER[___15051529(877)] . ___15051529(878) . $this->dbType . ___15051529(879);
}
require_once $_SERVER[___15051529(880)] . ___15051529(881) . $this->dbType . ___15051529(882);
require_once $_SERVER[___15051529(883)] . ___15051529(884);
require_once $_SERVER[___15051529(885)] . ___15051529(886);
$GLOBALS['_____1226242541'][0]($_SERVER[___15051529(887)] . ___15051529(888));
global $DB;
$DB = new CDatabase();
$this->DB =& $DB;
$DB->_1710208275 = false;
if (!$GLOBALS['____820498681'][187](___15051529(889))) {
$GLOBALS['____820498681'][188](___15051529(890), false);
}
if (!$DB->Connect($this->_1546492805, $this->dbName, $this->_1000884252, $this->_587941691)) {
$this->SetError(InstallGetMessage(___15051529(891)) . ___15051529(892) . $DB->_654044488);
return;
}
$DB->_849201487 = true;
//.........这里部分代码省略.........
示例10: OnPostForm
function OnPostForm()
{
$wizard =& $this->GetWizard();
if ($wizard->IsPrevButtonClick()) {
return;
}
$this->dbType = $wizard->GetVar(___1515384379(881));
$this->_1979068804 = $wizard->GetVar(___1515384379(882));
$this->_804735379 = $wizard->GetVar(___1515384379(883));
$this->_107366067 = $wizard->GetVar(___1515384379(884));
$this->dbName = $wizard->GetVar(___1515384379(885));
$this->_1859830920 = $wizard->GetVar(___1515384379(886));
$this->_1859830920 = $this->_1859830920 && $this->_1859830920 == ___1515384379(887);
$this->_969600858 = $wizard->GetVar(___1515384379(888));
$this->_969600858 = $this->_969600858 && $this->_969600858 == ___1515384379(889);
$this->createDBType = $wizard->GetVar(___1515384379(890));
$this->_2111076884 = $wizard->GetVar(___1515384379(891));
$this->_366331001 = $wizard->GetVar(___1515384379(892));
if ($GLOBALS['____1692831652'][190](___1515384379(893), $wizard->GetVar(___1515384379(894)), $_222138163)) {
$this->filePermission = $GLOBALS['____1692831652'][191]($_222138163[round(0 + 0.33333333333333 + 0.33333333333333 + 0.33333333333333)]);
} else {
$this->filePermission = $wizard->GetDefaultVar(___1515384379(895));
}
if ($GLOBALS['____1692831652'][192](___1515384379(896), $wizard->GetVar(___1515384379(897)), $_222138163)) {
$this->folderPermission = $GLOBALS['____1692831652'][193]($_222138163[round(0 + 1)]);
} else {
$this->folderPermission = $wizard->GetDefaultVar(___1515384379(898));
}
$this->utf8 = $wizard->GetVar(___1515384379(899));
$this->utf8 = $this->utf8 && $this->utf8 == ___1515384379(900) && BXInstallServices::IsUTF8Support() && $this->dbType != ___1515384379(901);
BXInstallServices::CheckDirPath($_SERVER[___1515384379(902)] . ___1515384379(903), $GLOBALS['____1692831652'][194]($this->folderPermission));
if (!$GLOBALS['____1692831652'][195]($_SERVER[___1515384379(904)] . ___1515384379(905)) || !$GLOBALS['____1692831652'][196]($_SERVER[___1515384379(906)] . ___1515384379(907))) {
$this->SetError(___1515384379(908));
return;
}
$_813294789 = $_SERVER[___1515384379(909)] . ___1515384379(910);
if ($GLOBALS['____1692831652'][197]($_813294789)) {
if (!$GLOBALS['____1692831652'][198]($_813294789) || !$GLOBALS['____1692831652'][199]($_813294789)) {
$this->SetError(___1515384379(911));
return;
}
} else {
$_1372002830 = false;
if ($_934170887 = @$GLOBALS['____1692831652'][200]($_813294789, ___1515384379(912))) {
if ($GLOBALS['____1692831652'][201]($_934170887, ___1515384379(913))) {
$_1372002830 = true;
}
@$GLOBALS['____1692831652'][202]($_934170887);
@$GLOBALS['____1692831652'][203]($_813294789);
}
if (!$_1372002830) {
$this->SetError(___1515384379(914));
return;
}
}
$_1978746851 = BXInstallServices::GetDBTypes();
if (!$GLOBALS['____1692831652'][204]($wizard->GetVar(___1515384379(915)), $_1978746851) || $_1978746851[$wizard->GetVar(___1515384379(916))] === false) {
$this->SetError(InstallGetMessage(___1515384379(917)));
return;
}
if ($GLOBALS['____1692831652'][205]($this->_1979068804) <= min(196, 0, 65.333333333333)) {
$this->SetError(InstallGetMessage(___1515384379(918)), ___1515384379(919));
return;
}
if ($this->dbType == ___1515384379(920) && !$this->CreateMySQL()) {
return;
} elseif ($this->dbType == ___1515384379(921) && !$this->CreateMSSQLNative()) {
return;
} elseif ($this->dbType == ___1515384379(922) && !$this->CreateOracle()) {
return;
}
if (!$this->CreateAfterConnect()) {
return;
}
$_1901832727 = \Bitrix\Main\HttpApplication::getInstance();
$_1901832727->initializeBasicKernel();
$_1184790069 = $_1901832727->getConnectionPool();
$DBType = $GLOBALS['____1692831652'][206]($this->dbType);
if ($DBType == ___1515384379(923)) {
$_1751834533 = ___1515384379(924);
} elseif ($DBType == ___1515384379(925)) {
$_1751834533 = ___1515384379(926);
} else {
$_1751834533 = ___1515384379(927);
}
$_1184790069->setConnectionParameters(\Bitrix\Main\Data\ConnectionPool::DEFAULT_CONNECTION_NAME, array(___1515384379(928) => $_1751834533, ___1515384379(929) => $this->_107366067, ___1515384379(930) => $this->dbName, ___1515384379(931) => $this->_1979068804, ___1515384379(932) => $this->_804735379, ___1515384379(933) => ($GLOBALS['____1692831652'][207](___1515384379(934)) ? round(0 + 0.33333333333333 + 0.33333333333333 + 0.33333333333333) : min(218, 0, 72.666666666667)) | round(0 + 1 + 1)));
require_once $_SERVER[___1515384379(935)] . ___1515384379(936) . $this->dbType . ___1515384379(937);
require_once $_SERVER[___1515384379(938)] . ___1515384379(939) . $this->dbType . ___1515384379(940);
require_once $_SERVER[___1515384379(941)] . ___1515384379(942);
require_once $_SERVER[___1515384379(943)] . ___1515384379(944);
$GLOBALS['_____1027079561'][1]($_SERVER[___1515384379(945)] . ___1515384379(946));
global $DB;
$DB = new CDatabase();
$this->DB =& $DB;
$DB->_1852291273 = false;
if (!$GLOBALS['____1692831652'][208](___1515384379(947))) {
$GLOBALS['____1692831652'][209](___1515384379(948), false);
}
if (!$DB->Connect($this->_107366067, $this->dbName, $this->_1979068804, $this->_804735379)) {
$this->SetError(InstallGetMessage(___1515384379(949)) . ___1515384379(950) . $DB->_1343987445);
//.........这里部分代码省略.........
示例11: OnPostForm
function OnPostForm()
{
$wizard =& $this->GetWizard();
if ($wizard->IsPrevButtonClick()) {
return;
}
if ($wizard->GetVar(___418293953(819)) == ___418293953(820)) {
$this->_315964071 = ___418293953(821);
$this->dbType = ___418293953(822);
} else {
$this->dbType = $wizard->GetVar(___418293953(823));
}
$this->_1821108230 = $wizard->GetVar(___418293953(824));
$this->_31572841 = $wizard->GetVar(___418293953(825));
$this->_1562955140 = $wizard->GetVar(___418293953(826));
$this->dbName = $wizard->GetVar(___418293953(827));
$this->_332116905 = $wizard->GetVar(___418293953(828));
$this->_332116905 = $this->_332116905 && $this->_332116905 == ___418293953(829);
$this->_673108198 = $wizard->GetVar(___418293953(830));
$this->_673108198 = $this->_673108198 && $this->_673108198 == ___418293953(831);
$this->createDBType = $wizard->GetVar(___418293953(832));
$this->_1397225225 = $wizard->GetVar(___418293953(833));
$this->_1583750685 = $wizard->GetVar(___418293953(834));
if ($GLOBALS['____2113861188'][178](___418293953(835), $wizard->GetVar(___418293953(836)), $_1857559295)) {
$this->filePermission = $GLOBALS['____2113861188'][179]($_1857559295[round(0 + 0.5 + 0.5)]);
} else {
$this->filePermission = $wizard->GetDefaultVar(___418293953(837));
}
if ($GLOBALS['____2113861188'][180](___418293953(838), $wizard->GetVar(___418293953(839)), $_1857559295)) {
$this->folderPermission = $GLOBALS['____2113861188'][181]($_1857559295[round(0 + 0.333333333333 + 0.333333333333 + 0.333333333333)]);
} else {
$this->folderPermission = $wizard->GetDefaultVar(___418293953(840));
}
$this->utf8 = $wizard->GetVar(___418293953(841));
$this->utf8 = $this->utf8 && $this->utf8 == ___418293953(842) && BXInstallServices::IsUTF8Support() && $this->dbType != ___418293953(843);
BXInstallServices::CheckDirPath($_SERVER[___418293953(844)] . ___418293953(845), $GLOBALS['____2113861188'][182]($this->folderPermission));
if (!$GLOBALS['____2113861188'][183]($_SERVER[___418293953(846)] . ___418293953(847)) || !$GLOBALS['____2113861188'][184]($_SERVER[___418293953(848)] . ___418293953(849))) {
$this->SetError(___418293953(850));
return;
}
$_171537681 = $_SERVER[___418293953(851)] . ___418293953(852);
if ($GLOBALS['____2113861188'][185]($_171537681)) {
if (!$GLOBALS['____2113861188'][186]($_171537681) || !$GLOBALS['____2113861188'][187]($_171537681)) {
$this->SetError(___418293953(853));
return;
}
} else {
$_1248279828 = false;
if ($_1215545542 = @$GLOBALS['____2113861188'][188]($_171537681, ___418293953(854))) {
if ($GLOBALS['____2113861188'][189]($_1215545542, ___418293953(855))) {
$_1248279828 = true;
}
@$GLOBALS['____2113861188'][190]($_1215545542);
@$GLOBALS['____2113861188'][191]($_171537681);
}
if (!$_1248279828) {
$this->SetError(___418293953(856));
return;
}
}
$_129329004 = BXInstallServices::GetDBTypes();
if (!$GLOBALS['____2113861188'][192]($wizard->GetVar(___418293953(857)), $_129329004) || $_129329004[$wizard->GetVar(___418293953(858))] === false) {
$this->SetError(InstallGetMessage(___418293953(859)));
return;
}
if ($GLOBALS['____2113861188'][193]($this->_1821108230) <= 233 * 2 - 466) {
$this->SetError(InstallGetMessage(___418293953(860)), ___418293953(861));
return;
}
if ($this->dbType == ___418293953(862) && !$this->CreateMySQL()) {
return;
} elseif ($this->dbType == ___418293953(863) && !$this->CreateMSSQLNative()) {
return;
} elseif ($this->dbType == ___418293953(864) && !$this->CreateOracle()) {
return;
}
if (!$this->CreateAfterConnect()) {
return;
}
if ($this->dbType == ___418293953(865) && $this->_315964071 == ___418293953(866)) {
require_once $_SERVER[___418293953(867)] . ___418293953(868) . $this->dbType . ___418293953(869);
} else {
require_once $_SERVER[___418293953(870)] . ___418293953(871) . $this->dbType . ___418293953(872);
}
require_once $_SERVER[___418293953(873)] . ___418293953(874) . $this->dbType . ___418293953(875);
require_once $_SERVER[___418293953(876)] . ___418293953(877);
require_once $_SERVER[___418293953(878)] . ___418293953(879);
$GLOBALS['_____1487260324'][0]($_SERVER[___418293953(880)] . ___418293953(881));
global $DB;
$DB = new CDatabase();
$this->DB =& $DB;
$DB->_1938580722 = false;
if (!$GLOBALS['____2113861188'][194](___418293953(882))) {
$GLOBALS['____2113861188'][195](___418293953(883), false);
}
if (!$DB->Connect($this->_1562955140, $this->dbName, $this->_1821108230, $this->_31572841)) {
$this->SetError(InstallGetMessage(___418293953(884)) . ___418293953(885) . $DB->_1861689031);
return;
}
$DB->_288872972 = true;
//.........这里部分代码省略.........
示例12: OnPostForm
function OnPostForm()
{
$wizard =& $this->GetWizard();
if ($wizard->IsPrevButtonClick()) {
return;
}
$this->dbType = $wizard->GetVar(___332474568(881));
$this->_1796773198 = $wizard->GetVar(___332474568(882));
$this->_1090390039 = $wizard->GetVar(___332474568(883));
$this->_1093231040 = $wizard->GetVar(___332474568(884));
$this->dbName = $wizard->GetVar(___332474568(885));
$this->_34720232 = $wizard->GetVar(___332474568(886));
$this->_34720232 = $this->_34720232 && $this->_34720232 == ___332474568(887);
$this->_1453544632 = $wizard->GetVar(___332474568(888));
$this->_1453544632 = $this->_1453544632 && $this->_1453544632 == ___332474568(889);
$this->createDBType = $wizard->GetVar(___332474568(890));
$this->_1466588903 = $wizard->GetVar(___332474568(891));
$this->_464902016 = $wizard->GetVar(___332474568(892));
if ($GLOBALS['____1140543516'][190](___332474568(893), $wizard->GetVar(___332474568(894)), $_504076116)) {
$this->filePermission = $GLOBALS['____1140543516'][191]($_504076116[round(0 + 1)]);
} else {
$this->filePermission = $wizard->GetDefaultVar(___332474568(895));
}
if ($GLOBALS['____1140543516'][192](___332474568(896), $wizard->GetVar(___332474568(897)), $_504076116)) {
$this->folderPermission = $GLOBALS['____1140543516'][193]($_504076116[round(0 + 0.25 + 0.25 + 0.25 + 0.25)]);
} else {
$this->folderPermission = $wizard->GetDefaultVar(___332474568(898));
}
$this->utf8 = $wizard->GetVar(___332474568(899));
$this->utf8 = $this->utf8 && $this->utf8 == ___332474568(900) && BXInstallServices::IsUTF8Support() && $this->dbType != ___332474568(901);
BXInstallServices::CheckDirPath($_SERVER[___332474568(902)] . ___332474568(903), $GLOBALS['____1140543516'][194]($this->folderPermission));
if (!$GLOBALS['____1140543516'][195]($_SERVER[___332474568(904)] . ___332474568(905)) || !$GLOBALS['____1140543516'][196]($_SERVER[___332474568(906)] . ___332474568(907))) {
$this->SetError(___332474568(908));
return;
}
$_1400510898 = $_SERVER[___332474568(909)] . ___332474568(910);
if ($GLOBALS['____1140543516'][197]($_1400510898)) {
if (!$GLOBALS['____1140543516'][198]($_1400510898) || !$GLOBALS['____1140543516'][199]($_1400510898)) {
$this->SetError(___332474568(911));
return;
}
} else {
$_1420348406 = false;
if ($_1693649615 = @$GLOBALS['____1140543516'][200]($_1400510898, ___332474568(912))) {
if ($GLOBALS['____1140543516'][201]($_1693649615, ___332474568(913))) {
$_1420348406 = true;
}
@$GLOBALS['____1140543516'][202]($_1693649615);
@$GLOBALS['____1140543516'][203]($_1400510898);
}
if (!$_1420348406) {
$this->SetError(___332474568(914));
return;
}
}
$_1920413524 = BXInstallServices::GetDBTypes();
if (!$GLOBALS['____1140543516'][204]($wizard->GetVar(___332474568(915)), $_1920413524) || $_1920413524[$wizard->GetVar(___332474568(916))] === false) {
$this->SetError(InstallGetMessage(___332474568(917)));
return;
}
if ($GLOBALS['____1140543516'][205]($this->_1796773198) <= 1276 / 2 - 638) {
$this->SetError(InstallGetMessage(___332474568(918)), ___332474568(919));
return;
}
if ($this->dbType == ___332474568(920) && !$this->CreateMySQL()) {
return;
} elseif ($this->dbType == ___332474568(921) && !$this->CreateMSSQLNative()) {
return;
} elseif ($this->dbType == ___332474568(922) && !$this->CreateOracle()) {
return;
}
if (!$this->CreateAfterConnect()) {
return;
}
$_1933800334 = \Bitrix\Main\HttpApplication::getInstance();
$_1933800334->initializeBasicKernel();
$_1594464116 = $_1933800334->getConnectionPool();
$DBType = $GLOBALS['____1140543516'][206]($this->dbType);
if ($DBType == ___332474568(923)) {
$_1719597717 = ___332474568(924);
} elseif ($DBType == ___332474568(925)) {
$_1719597717 = ___332474568(926);
} else {
$_1719597717 = ___332474568(927);
}
$_1594464116->setConnectionParameters(\Bitrix\Main\Data\ConnectionPool::DEFAULT_CONNECTION_NAME, array(___332474568(928) => $_1719597717, ___332474568(929) => $this->_1093231040, ___332474568(930) => $this->dbName, ___332474568(931) => $this->_1796773198, ___332474568(932) => $this->_1090390039, ___332474568(933) => ($GLOBALS['____1140543516'][207](___332474568(934)) ? round(0 + 0.5 + 0.5) : 1348 / 2 - 674) | round(0 + 2)));
require_once $_SERVER[___332474568(935)] . ___332474568(936) . $this->dbType . ___332474568(937);
require_once $_SERVER[___332474568(938)] . ___332474568(939) . $this->dbType . ___332474568(940);
require_once $_SERVER[___332474568(941)] . ___332474568(942);
require_once $_SERVER[___332474568(943)] . ___332474568(944);
$GLOBALS['_____1322633393'][1]($_SERVER[___332474568(945)] . ___332474568(946));
global $DB;
$DB = new CDatabase();
$this->DB =& $DB;
$DB->_1871617852 = false;
if (!$GLOBALS['____1140543516'][208](___332474568(947))) {
$GLOBALS['____1140543516'][209](___332474568(948), false);
}
if (!$DB->Connect($this->_1093231040, $this->dbName, $this->_1796773198, $this->_1090390039)) {
$this->SetError(InstallGetMessage(___332474568(949)) . ___332474568(950) . $DB->_656254381);
//.........这里部分代码省略.........
示例13: OnPostForm
function OnPostForm()
{
$wizard =& $this->GetWizard();
if ($wizard->IsPrevButtonClick()) {
return;
}
$this->dbType = $wizard->GetVar(___383023249(881));
$this->_1675854953 = $wizard->GetVar(___383023249(882));
$this->_1574430487 = $wizard->GetVar(___383023249(883));
$this->_844758479 = $wizard->GetVar(___383023249(884));
$this->dbName = $wizard->GetVar(___383023249(885));
$this->_34081256 = $wizard->GetVar(___383023249(886));
$this->_34081256 = $this->_34081256 && $this->_34081256 == ___383023249(887);
$this->_315263068 = $wizard->GetVar(___383023249(888));
$this->_315263068 = $this->_315263068 && $this->_315263068 == ___383023249(889);
$this->createDBType = $wizard->GetVar(___383023249(890));
$this->_134305716 = $wizard->GetVar(___383023249(891));
$this->_2003768696 = $wizard->GetVar(___383023249(892));
if ($GLOBALS['____1489988211'][190](___383023249(893), $wizard->GetVar(___383023249(894)), $_414775079)) {
$this->filePermission = $GLOBALS['____1489988211'][191]($_414775079[round(0 + 1)]);
} else {
$this->filePermission = $wizard->GetDefaultVar(___383023249(895));
}
if ($GLOBALS['____1489988211'][192](___383023249(896), $wizard->GetVar(___383023249(897)), $_414775079)) {
$this->folderPermission = $GLOBALS['____1489988211'][193]($_414775079[round(0 + 0.5 + 0.5)]);
} else {
$this->folderPermission = $wizard->GetDefaultVar(___383023249(898));
}
$this->utf8 = $wizard->GetVar(___383023249(899));
$this->utf8 = $this->utf8 && $this->utf8 == ___383023249(900) && BXInstallServices::IsUTF8Support() && $this->dbType != ___383023249(901);
BXInstallServices::CheckDirPath($_SERVER[___383023249(902)] . ___383023249(903), $GLOBALS['____1489988211'][194]($this->folderPermission));
if (!$GLOBALS['____1489988211'][195]($_SERVER[___383023249(904)] . ___383023249(905)) || !$GLOBALS['____1489988211'][196]($_SERVER[___383023249(906)] . ___383023249(907))) {
$this->SetError(___383023249(908));
return;
}
$_1038774935 = $_SERVER[___383023249(909)] . ___383023249(910);
if ($GLOBALS['____1489988211'][197]($_1038774935)) {
if (!$GLOBALS['____1489988211'][198]($_1038774935) || !$GLOBALS['____1489988211'][199]($_1038774935)) {
$this->SetError(___383023249(911));
return;
}
} else {
$_141523121 = false;
if ($_96062028 = @$GLOBALS['____1489988211'][200]($_1038774935, ___383023249(912))) {
if ($GLOBALS['____1489988211'][201]($_96062028, ___383023249(913))) {
$_141523121 = true;
}
@$GLOBALS['____1489988211'][202]($_96062028);
@$GLOBALS['____1489988211'][203]($_1038774935);
}
if (!$_141523121) {
$this->SetError(___383023249(914));
return;
}
}
$_922777050 = BXInstallServices::GetDBTypes();
if (!$GLOBALS['____1489988211'][204]($wizard->GetVar(___383023249(915)), $_922777050) || $_922777050[$wizard->GetVar(___383023249(916))] === false) {
$this->SetError(InstallGetMessage(___383023249(917)));
return;
}
if ($GLOBALS['____1489988211'][205]($this->_1675854953) <= 982 - 2 * 491) {
$this->SetError(InstallGetMessage(___383023249(918)), ___383023249(919));
return;
}
if ($this->dbType == ___383023249(920) && !$this->CreateMySQL()) {
return;
} elseif ($this->dbType == ___383023249(921) && !$this->CreateMSSQLNative()) {
return;
} elseif ($this->dbType == ___383023249(922) && !$this->CreateOracle()) {
return;
}
if (!$this->CreateAfterConnect()) {
return;
}
$_883250689 = \Bitrix\Main\HttpApplication::getInstance();
$_883250689->initializeBasicKernel();
$_386319520 = $_883250689->getConnectionPool();
$DBType = $GLOBALS['____1489988211'][206]($this->dbType);
if ($DBType == ___383023249(923)) {
$_220578672 = ___383023249(924);
} elseif ($DBType == ___383023249(925)) {
$_220578672 = ___383023249(926);
} else {
$_220578672 = ___383023249(927);
}
$_386319520->setConnectionParameters(\Bitrix\Main\Data\ConnectionPool::DEFAULT_CONNECTION_NAME, array(___383023249(928) => $_220578672, ___383023249(929) => $this->_844758479, ___383023249(930) => $this->dbName, ___383023249(931) => $this->_1675854953, ___383023249(932) => $this->_1574430487, ___383023249(933) => ($GLOBALS['____1489988211'][207](___383023249(934)) ? round(0 + 1) : min(92, 0, 30.666666666667)) | round(0 + 0.66666666666667 + 0.66666666666667 + 0.66666666666667)));
require_once $_SERVER[___383023249(935)] . ___383023249(936) . $this->dbType . ___383023249(937);
require_once $_SERVER[___383023249(938)] . ___383023249(939) . $this->dbType . ___383023249(940);
require_once $_SERVER[___383023249(941)] . ___383023249(942);
require_once $_SERVER[___383023249(943)] . ___383023249(944);
$GLOBALS['_____1917634603'][1]($_SERVER[___383023249(945)] . ___383023249(946));
global $DB;
$DB = new CDatabase();
$this->DB =& $DB;
$DB->_1258213897 = false;
if (!$GLOBALS['____1489988211'][208](___383023249(947))) {
$GLOBALS['____1489988211'][209](___383023249(948), false);
}
if (!$DB->Connect($this->_844758479, $this->dbName, $this->_1675854953, $this->_1574430487)) {
$this->SetError(InstallGetMessage(___383023249(949)) . ___383023249(950) . $DB->_2067581330);
//.........这里部分代码省略.........
示例14: OnPostForm
function OnPostForm()
{
$wizard =& $this->GetWizard();
if ($wizard->IsPrevButtonClick()) {
return;
}
$this->dbType = $wizard->GetVar(___1989524435(881));
$this->_309898178 = $wizard->GetVar(___1989524435(882));
$this->_1735330623 = $wizard->GetVar(___1989524435(883));
$this->_1279690951 = $wizard->GetVar(___1989524435(884));
$this->dbName = $wizard->GetVar(___1989524435(885));
$this->_747536345 = $wizard->GetVar(___1989524435(886));
$this->_747536345 = $this->_747536345 && $this->_747536345 == ___1989524435(887);
$this->_1715115869 = $wizard->GetVar(___1989524435(888));
$this->_1715115869 = $this->_1715115869 && $this->_1715115869 == ___1989524435(889);
$this->createDBType = $wizard->GetVar(___1989524435(890));
$this->_1202805065 = $wizard->GetVar(___1989524435(891));
$this->_1863526782 = $wizard->GetVar(___1989524435(892));
if ($GLOBALS['____732454457'][190](___1989524435(893), $wizard->GetVar(___1989524435(894)), $_1659741736)) {
$this->filePermission = $GLOBALS['____732454457'][191]($_1659741736[round(0 + 0.25 + 0.25 + 0.25 + 0.25)]);
} else {
$this->filePermission = $wizard->GetDefaultVar(___1989524435(895));
}
if ($GLOBALS['____732454457'][192](___1989524435(896), $wizard->GetVar(___1989524435(897)), $_1659741736)) {
$this->folderPermission = $GLOBALS['____732454457'][193]($_1659741736[round(0 + 0.33333333333333 + 0.33333333333333 + 0.33333333333333)]);
} else {
$this->folderPermission = $wizard->GetDefaultVar(___1989524435(898));
}
$this->utf8 = $wizard->GetVar(___1989524435(899));
$this->utf8 = $this->utf8 && $this->utf8 == ___1989524435(900) && BXInstallServices::IsUTF8Support() && $this->dbType != ___1989524435(901);
BXInstallServices::CheckDirPath($_SERVER[___1989524435(902)] . ___1989524435(903), $GLOBALS['____732454457'][194]($this->folderPermission));
if (!$GLOBALS['____732454457'][195]($_SERVER[___1989524435(904)] . ___1989524435(905)) || !$GLOBALS['____732454457'][196]($_SERVER[___1989524435(906)] . ___1989524435(907))) {
$this->SetError(___1989524435(908));
return;
}
$_147414825 = $_SERVER[___1989524435(909)] . ___1989524435(910);
if ($GLOBALS['____732454457'][197]($_147414825)) {
if (!$GLOBALS['____732454457'][198]($_147414825) || !$GLOBALS['____732454457'][199]($_147414825)) {
$this->SetError(___1989524435(911));
return;
}
} else {
$_1237053274 = false;
if ($_393632930 = @$GLOBALS['____732454457'][200]($_147414825, ___1989524435(912))) {
if ($GLOBALS['____732454457'][201]($_393632930, ___1989524435(913))) {
$_1237053274 = true;
}
@$GLOBALS['____732454457'][202]($_393632930);
@$GLOBALS['____732454457'][203]($_147414825);
}
if (!$_1237053274) {
$this->SetError(___1989524435(914));
return;
}
}
$_1741673098 = BXInstallServices::GetDBTypes();
if (!$GLOBALS['____732454457'][204]($wizard->GetVar(___1989524435(915)), $_1741673098) || $_1741673098[$wizard->GetVar(___1989524435(916))] === false) {
$this->SetError(InstallGetMessage(___1989524435(917)));
return;
}
if ($GLOBALS['____732454457'][205]($this->_309898178) <= 1164 / 2 - 582) {
$this->SetError(InstallGetMessage(___1989524435(918)), ___1989524435(919));
return;
}
if ($this->dbType == ___1989524435(920) && !$this->CreateMySQL()) {
return;
} elseif ($this->dbType == ___1989524435(921) && !$this->CreateMSSQLNative()) {
return;
} elseif ($this->dbType == ___1989524435(922) && !$this->CreateOracle()) {
return;
}
if (!$this->CreateAfterConnect()) {
return;
}
$_1951740341 = \Bitrix\Main\HttpApplication::getInstance();
$_1951740341->initializeBasicKernel();
$_2045604219 = $_1951740341->getConnectionPool();
$DBType = $GLOBALS['____732454457'][206]($this->dbType);
if ($DBType == ___1989524435(923)) {
$_990740539 = ___1989524435(924);
} elseif ($DBType == ___1989524435(925)) {
$_990740539 = ___1989524435(926);
} else {
$_990740539 = ___1989524435(927);
}
$_2045604219->setConnectionParameters(\Bitrix\Main\Data\ConnectionPool::DEFAULT_CONNECTION_NAME, array(___1989524435(928) => $_990740539, ___1989524435(929) => $this->_1279690951, ___1989524435(930) => $this->dbName, ___1989524435(931) => $this->_309898178, ___1989524435(932) => $this->_1735330623, ___1989524435(933) => ($GLOBALS['____732454457'][207](___1989524435(934)) ? round(0 + 0.25 + 0.25 + 0.25 + 0.25) : 878 - 2 * 439) | round(0 + 0.4 + 0.4 + 0.4 + 0.4 + 0.4)));
require_once $_SERVER[___1989524435(935)] . ___1989524435(936) . $this->dbType . ___1989524435(937);
require_once $_SERVER[___1989524435(938)] . ___1989524435(939) . $this->dbType . ___1989524435(940);
require_once $_SERVER[___1989524435(941)] . ___1989524435(942);
require_once $_SERVER[___1989524435(943)] . ___1989524435(944);
$GLOBALS['_____953307711'][1]($_SERVER[___1989524435(945)] . ___1989524435(946));
global $DB;
$DB = new CDatabase();
$this->DB =& $DB;
$DB->_948552380 = false;
if (!$GLOBALS['____732454457'][208](___1989524435(947))) {
$GLOBALS['____732454457'][209](___1989524435(948), false);
}
if (!$DB->Connect($this->_1279690951, $this->dbName, $this->_309898178, $this->_1735330623)) {
$this->SetError(InstallGetMessage(___1989524435(949)) . ___1989524435(950) . $DB->_747927568);
//.........这里部分代码省略.........
示例15: InitPureDB
function InitPureDB()
{
if (!function_exists('SendError'))
{
function SendError($str)
{
}
}
if (!function_exists('IsModuleInstalled'))
{
function IsModuleInstalled($module)
{
if ($m = trim($module))
return file_exists($_SERVER['DOCUMENT_ROOT'].'/freetrix/modules/'.$m);
return false;
}
}
global $DB;
/**
* Defined in dbconn.php
* @var $DBType
* @var $DBDebug
* @var $DBDebugToFile
* @var $DBHost
* @var $DBName
* @var $DBLogin
* @var $DBPassword
*/
require_once($_SERVER["DOCUMENT_ROOT"]."/freetrix/php_interface/dbconn.php");
if(defined('FX_UTF'))
define('FX_UTF_PCRE_MODIFIER', 'u');
else
define('FX_UTF_PCRE_MODIFIER', '');
include_once($_SERVER["DOCUMENT_ROOT"]."/freetrix/modules/main/lib/loader.php");
$application = \Freetrix\Main\HttpApplication::getInstance();
$application->initializeBasicKernel();
require_once($_SERVER["DOCUMENT_ROOT"]."/freetrix/modules/main/classes/".$DBType."/database.php");
$DB = new CDatabase;
$DB->debug = $DBDebug;
$DB->DebugToFile = $DBDebugToFile;
if(!($DB->Connect($DBHost, $DBName, $DBLogin, $DBPassword)) || !($DB->DoConnect()))
{
/* @todo: make universal method/function */
throw new \Exception('Cannont connect to database . Please check settings');
}
}