调整 SAE 安装提示

This commit is contained in:
fen 2013-10-19 13:04:48 +08:00
parent a08243ddf0
commit 44bcae603f
4 changed files with 6 additions and 32 deletions

View File

@ -466,15 +466,6 @@ button {
font-size: .92857em; }
/** 增加配置面板内部的错误样式 by 70 */
.typecho-option .message {
padding: 2px 4px;
font-size: 13px;
width: 325px;
margin-top: 5px; }
.typecho-mini-panel .typecho-option .message {
width: 250px; }
/**
* 安装样式
*
@ -806,9 +797,6 @@ a.operate-reply {
.typecho-edit-theme .current a {
color: #444; }
.typecho-edit-theme .submit {
text-align: center; }
.typecho-edit-theme textarea {
font-size: .92857em;
line-height: 1.2;

View File

@ -161,16 +161,6 @@ a.button:hover, a.balloon-button:hover {
}
/** 增加配置面板内部的错误样式 by 70 */
.typecho-option .message {
padding: 2px 4px;
font-size: 13px;
width: 325px;
margin-top: 5px;
}
.typecho-mini-panel .typecho-option .message {
width: 250px;
}
/**
@ -585,10 +575,6 @@ a.operate-reply {
color: #444;
}
.typecho-edit-theme .submit {
text-align: center;
}
.typecho-edit-theme textarea {
font-size: .92857em;
line-height: 1.2;

View File

@ -489,9 +489,9 @@ Typecho_Db::set(\$db);
if (!file_exists('./config.inc.php')) {
?>
<p class="message notice"><?php _e('安装程序无法自动创建 config.inc.php 文件'); ?><br /><?php _e('您可以在网站根目录下手动创建 config.inc.php 文件, 并复制如下代码至其中'); ?><br/><br />
<textarea style="width: 520px; height: 100px" onmouseover="this.select();" readonly><?php echo htmlspecialchars($contents); ?></textarea><br /><br />
<button name="created" value="1" type="submit">创建完毕, 继续安装 &raquo;</button></p>
<div class="message notice"><p><?php _e('安装程序无法自动创建 config.inc.php 文件'); ?><br /><?php _e('您可以在网站根目录下手动创建 config.inc.php 文件, 并复制如下代码至其中'); ?></p>
<p><textarea rows="5" onmouseover="this.select();" readonly><?php echo htmlspecialchars($contents); ?></textarea></p>
<p><button name="created" value="1" type="submit" class="primary">创建完毕, 继续安装 &raquo;</button></p></div>
<?php
} else {
header('Location: ./install.php?start');

View File

@ -2,7 +2,7 @@
<?php if (defined('SAE_MYSQL_DB')): ?>
<!-- SAE -->
<h3><?php _e('系统将为您自动匹配 %s 环境的安装选项', 'SAE'); ?></h3>
<h3 class="warning"><?php _e('系统将为您自动匹配 %s 环境的安装选项', 'SAE'); ?></h3>
<input type="hidden" name="config" value="array (
'host' => SAE_MYSQL_HOST_M,
'user' => SAE_MYSQL_USER,
@ -18,7 +18,7 @@
<input type="hidden" name="dbDatabase" value="<?php echo SAE_MYSQL_DB; ?>" />
<?php elseif (!!getenv('HTTP_BAE_ENV_ADDR_SQL_IP')): ?>
<!-- BAE -->
<h3><?php _e('系统将为您自动匹配 %s 环境的安装选项', 'BAE'); ?></h3>
<h3 class="warning"><?php _e('系统将为您自动匹配 %s 环境的安装选项', 'BAE'); ?></h3>
<li>
<label class="typecho-label" for="dbDatabase"><?php _e('数据库名'); ?></label>
<input type="text" class="text" id="dbDatabase" name="dbDatabase" value="<?php _v('dbDatabase', 'typecho'); ?>" />
@ -38,7 +38,7 @@
<input type="hidden" name="dbPassword" value="<?php echo getenv('HTTP_BAE_ENV_SK'); ?>" />
<?php elseif (isset($_SERVER['SERVER_SOFTWARE']) && strpos($_SERVER['SERVER_SOFTWARE'],'Google App Engine') !== false): ?>
<!-- GAE -->
<h3><?php _e('系统将为您自动匹配 %s 环境的安装选项', 'GAE'); ?></h3>
<h3 class="warning"><?php _e('系统将为您自动匹配 %s 环境的安装选项', 'GAE'); ?></h3>
<li>
<label class="typecho-label" for="dbPort"><?php _e('数据库实例名'); ?></label>
<input type="text" class="text" name="dbPort" id="dbPort" value="<?php _v('dbPort'); ?>"/>