本文整理匯總了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;