本文整理匯總了PHP中func::read_db_config方法的典型用法代碼示例。如果您正苦於以下問題:PHP func::read_db_config方法的具體用法?PHP func::read_db_config怎麽用?PHP func::read_db_config使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類func
的用法示例。
在下文中一共展示了func::read_db_config方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1:
if ($config['environment']['configured'] == 0) {
$translation->load_trans('xml', 'install');
// Filemode on Installation
### Prepare install
// Force installwizard if LS not configured
$_GET['mod'] = 'install';
$_GET['action'] = 'wizard';
// Silent connect
$db->connect(1);
$IsAboutToInstall = 1;
// Force Adminrights for installing User
$auth["type"] = 3;
$auth["login"] = 1;
// Load DB-Data after installwizard step 3
if ($_GET["action"] == "wizard" and $_GET["step"] > 3) {
$cfg = $func->read_db_config();
// read Configtable
}
} else {
### Normal auth cycle and Database-init
$db->connect(0);
$IsAboutToInstall = 0;
$translation->load_trans('db', $_GET['mod']);
// DB-Mode on Running System
// FIX : Add function to scan DB for correkt config and Tables (prefix etc.)
// Reset DB-Success in Setup if no Adm.-Account was found, because a connection could work, but prefix is wrong
if (!$func->admin_exists() and ($_GET["action"] == "wizard" and $_GET["step"] <= 3 or $_GET["action"] == "ls_conf")) {
$db->success = 0;
}
$cfg = $func->read_db_config();
// Config-Tabelle aulesen