* finish the install module.
This commit is contained in:
@@ -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';?>
|
||||
|
||||
Reference in New Issue
Block a user