本文整理汇总了PHP中CDatabase::getAllSupportedDatabases方法的典型用法代码示例。如果您正苦于以下问题:PHP CDatabase::getAllSupportedDatabases方法的具体用法?PHP CDatabase::getAllSupportedDatabases怎么用?PHP CDatabase::getAllSupportedDatabases使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CDatabase
的用法示例。
在下文中一共展示了CDatabase::getAllSupportedDatabases方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: die
$output .= $option['close'];
return $output;
}
if (empty($_POST['submit'])) {
// show the install page
if (file_exists('site.config.php')) {
if (!is_writable('site.config.php')) {
die('make site.config.php writable');
}
} else {
die('create site.config.php first, be sure it is writable');
}
$output = file_get_contents('install.html');
$output = preg_replace('#%(.+?)\\.lang#', '\\1', $output);
$output = preg_replace('#%(.+?)\\.name#', '\\1', $output);
$output = ereg_replace('%database.options', replacedbtypes($database->getAllSupportedDatabases()), $output);
echo $output;
} else {
if ($_POST['submit'] == 'install') {
if (empty($POST['activatemail'])) {
header('install.php');
}
// install config script
$config = '<?php' . NL . TAB;
//$config .= '// general';
$config .= "\$config['general']['servertimezone'] = {$_POST['servertimezone']};" . NL . TAB;
$config .= "\$config['general']['timezone'] = 0;" . NL . TAB;
$config .= "\$config['general']['timeformat'] = 'H:i:s d/m/y';" . NL . TAB;
$config .= "\$config['general']['sitename'] = '{$_POST['sitename']}';" . NL . TAB;
$config .= "\$config['general']['description'] = '{$_POST['description']}';" . NL . TAB;
$config .= "\$config['general']['contentlanguage'] = 'en';" . NL . TAB;