* finish the install module.

This commit is contained in:
wangchunsheng
2010-01-01 14:36:09 +00:00
parent 79e09bbd1f
commit c8104f9198
9 changed files with 307 additions and 18 deletions
+12 -1
View File
@@ -23,7 +23,9 @@
?>
<?php include './header.html.php';?>
<?php
$configContent = <<<EOT
if(!isset($error))
{
$configContent = <<<EOT
<?php
\$config->installed = true; //标志是否已经安装。
\$config->debug = true; //是否打开debug功能。
@@ -36,8 +38,16 @@ $configContent = <<<EOT
\$config->db->password = '$dbPassword'; //密码。
\$config->db->prefix = '$dbPrefix'; //表前缀。
EOT;
}
?>
<div class='yui-d0'>
<?php if(isset($error)):?>
<table class='table-6' align='center'>
<caption><?php echo $lang->install->error;?></caption>
<tr><td><?php echo $error;?></td></tr>
<tr><td><?php echo html::commonButton($lang->install->pre, "onclick='javascript:history.back(-1)'");?></td></tr>
</table>
<?php else:?>
<table class='table-6' align='center'>
<caption><?php echo $lang->install->saveConfig;?></caption>
<tr>
@@ -52,5 +62,6 @@ EOT;
</td>
</tr>
</table>
<?php endif;?>
</div>
<?php include './footer.html.php';?>