本文整理汇总了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