|
|
@@ -28,84 +28,85 @@ |
|
|
|
<div class="container install-box"> |
|
|
|
<div class="row"> |
|
|
|
<div class="col-md-12"> |
|
|
|
<?php |
|
|
|
if (count($arrMsg) > 0) { |
|
|
|
foreach($arrMsg as $msg){ |
|
|
|
?> |
|
|
|
<div class="alert alert-warning"><?php echo $msg ?></div> |
|
|
|
<?php }}?> |
|
|
|
<div class="alert alert-warning">请先阅读<a href="https://www.dedebiz.com/license?from=install" target="_blank" class="text-primary">《站点授权协议》</a></div> |
|
|
|
<div class="card shadow-sm mb-3"> |
|
|
|
<div class="card-header bg-success"> |
|
|
|
<h2 class="text-center text-white my-0">安装DedeV<?php echo $cfg_version_detail;?></h2> |
|
|
|
</div> |
|
|
|
<div class="card-body"> |
|
|
|
<form action="../install/index.php" method="post" name="form1"> |
|
|
|
<input type="hidden" name="step" value="2"> |
|
|
|
<input type="hidden" name="cookieencode" value="<?php echo $rnd_cookieEncode;?>"> |
|
|
|
<input type="hidden" name="adminmail" value="admin@dedebiz.com"> |
|
|
|
<legend class="text-success">数据库设置</legend> |
|
|
|
<hr> |
|
|
|
<div class="form-group"> |
|
|
|
<label for="dbtype" class="form-label">数据库类型<i class="fa fa-question-circle text-warning ml-2" data-toggle="tooltip" title="数据库类型一般为MySQL,类型SQLite用于开发调试,不建议生产中使用"></i></label> |
|
|
|
<select id="dbtype" name="dbtype" class="form-control form-select"> |
|
|
|
<option value="mysql" selected>MySQL</option> |
|
|
|
<?php if (extension_loaded("sqlite3")) {;?><option value="sqlite">SQLite</option><?php }?> |
|
|
|
</select> |
|
|
|
</div> |
|
|
|
<div class="form-group server"> |
|
|
|
<label for="dbhost" class="form-label">数据库地址</label> |
|
|
|
<input type="text" name="dbhost" id="dbhost" class="form-control" placeholder="localhost"> |
|
|
|
</div> |
|
|
|
<div class="form-group server"> |
|
|
|
<label for="dbuser" class="form-label">数据库用户名</label> |
|
|
|
<input type="text" name="dbuser" id="dbuser" class="form-control" placeholder="root"> |
|
|
|
</div> |
|
|
|
<div class="form-group server"> |
|
|
|
<label for="exampleInputPassword1" class="form-label">数据库密码</label> |
|
|
|
<input type="text" name="dbpwd" id="dbpwd" class="form-control" placeholder="请输入数据库密码"> |
|
|
|
</div> |
|
|
|
<div class="form-group"> |
|
|
|
<label for="dbprefix" class="form-label">数据表前缀<i class="fa fa-exclamation-circle text-danger ml-2" data-toggle="tooltip" data-html="true" title="请注意DedeV6数据表前缀默认为<span class='text-danger'>biz_</span>"></i></label> |
|
|
|
<input type="text" name="dbprefix" id="dbprefix" class="form-control" placeholder="biz_"> |
|
|
|
</div> |
|
|
|
<div class="form-group"> |
|
|
|
<label for="dbname" class="form-label">数据库名称</label> |
|
|
|
<div class="input-group"> |
|
|
|
<input id="dbname" name="dbname" type="text" class="form-control" placeholder="DedeBIZ"> |
|
|
|
<div class="input-group-append"><button type="button" id="btnCheckConnect" class="btn btn-success btn-md">检查</button></div> |
|
|
|
<?php |
|
|
|
if (count($arrMsg) > 0) { |
|
|
|
foreach($arrMsg as $msg){ |
|
|
|
?> |
|
|
|
<div class="alert alert-warning"><?php echo $msg ?></div> |
|
|
|
<?php }}?> |
|
|
|
<div class="alert alert-warning">请先阅读<a href="https://www.dedebiz.com/license?from=install" target="_blank" class="text-primary">《站点授权协议》</a></div> |
|
|
|
<div class="card shadow-sm mb-3"> |
|
|
|
<div class="card-header bg-success"> |
|
|
|
<h2 class="text-center text-white my-0">安装DedeV<?php echo $cfg_version_detail;?></h2> |
|
|
|
</div> |
|
|
|
<div class="card-body"> |
|
|
|
<form action="../install/index.php" method="post" name="form1"> |
|
|
|
<input type="hidden" name="step" value="2"> |
|
|
|
<input type="hidden" name="cookieencode" value="<?php echo $rnd_cookieEncode;?>"> |
|
|
|
<input type="hidden" name="adminmail" value="admin@dedebiz.com"> |
|
|
|
<legend class="text-success">数据库设置</legend> |
|
|
|
<hr> |
|
|
|
<div class="form-group"> |
|
|
|
<label for="dbtype" class="form-label">数据库类型<i class="fa fa-question-circle text-warning ml-2" data-toggle="tooltip" title="数据库类型一般为MySQL,类型SQLite用于开发调试,不建议生产中使用"></i></label> |
|
|
|
<select id="dbtype" name="dbtype" class="form-control form-select"> |
|
|
|
<option value="mysql" selected>MySQL</option> |
|
|
|
<?php if (extension_loaded("sqlite3")) {;?><option value="sqlite">SQLite</option><?php }?> |
|
|
|
</select> |
|
|
|
</div> |
|
|
|
<div class="form-group server"> |
|
|
|
<label for="dbhost" class="form-label">数据库地址</label> |
|
|
|
<input type="text" name="dbhost" id="dbhost" class="form-control" placeholder="localhost"> |
|
|
|
</div> |
|
|
|
<div class="form-group server"> |
|
|
|
<label for="dbuser" class="form-label">数据库用户名</label> |
|
|
|
<input type="text" name="dbuser" id="dbuser" class="form-control" placeholder="root"> |
|
|
|
</div> |
|
|
|
<div class="form-group server"> |
|
|
|
<label for="exampleInputPassword1" class="form-label">数据库密码</label> |
|
|
|
<input type="text" name="dbpwd" id="dbpwd" class="form-control" placeholder="请输入数据库密码"> |
|
|
|
</div> |
|
|
|
<div class="form-group"> |
|
|
|
<label for="dbprefix" class="form-label">数据表前缀<i class="fa fa-exclamation-circle text-danger ml-2" data-toggle="tooltip" data-html="true" title="请注意DedeV6数据表前缀默认为<span class='text-danger'>biz_</span>"></i></label> |
|
|
|
<input type="text" name="dbprefix" id="dbprefix" class="form-control" placeholder="biz_"> |
|
|
|
</div> |
|
|
|
<div class="form-group"> |
|
|
|
<label for="dbname" class="form-label">数据库名称</label> |
|
|
|
<div class="input-group"> |
|
|
|
<input id="dbname" name="dbname" type="text" class="form-control" placeholder="DedeBIZ"> |
|
|
|
<div class="input-group-append"><button type="button" id="btnCheckConnect" class="btn btn-success btn-md">检查</button></div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div id="alertConnect"></div> |
|
|
|
<legend class="text-success">站点设置</legend> |
|
|
|
<hr> |
|
|
|
<div class="form-group"> |
|
|
|
<label for="baseurl" class="form-label">网站网址</label> |
|
|
|
<input type="text" name="baseurl" id="baseurl" class="form-control" placeholder="<?php echo $baseurl;?>"> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div id="alertConnect"></div> |
|
|
|
<legend class="text-success">站点设置</legend> |
|
|
|
<hr> |
|
|
|
<div class="form-group"> |
|
|
|
<label for="baseurl" class="form-label">网站网址</label> |
|
|
|
<input type="text" name="baseurl" id="baseurl" class="form-control" placeholder="<?php echo $baseurl;?>"> |
|
|
|
</div> |
|
|
|
<div class="form-group"> |
|
|
|
<label for="webname" class="form-label">网站名称</label> |
|
|
|
<input type="text" name="webname" id="webname" class="form-control" placeholder="我的网站"> |
|
|
|
</div> |
|
|
|
<div class="form-group"> |
|
|
|
<label for="adminuser" class="form-label">管理员账号<i class="fa fa-question-circle text-warning ml-2" data-toggle="tooltip" title="只能用[0-9a-zA-Z_@!.-]以内范围的字符"></i></label> |
|
|
|
<input type="text" name="adminuser" id="adminuser" class="form-control" placeholder="admin"> |
|
|
|
</div> |
|
|
|
<div class="form-group"> |
|
|
|
<label for="adminpwd" class="form-label">管理员密码</label> |
|
|
|
<input type="text" name="adminpwd" id="adminpwd" class="form-control" placeholder="admin"> |
|
|
|
</div> |
|
|
|
<div class="form-group"> |
|
|
|
<label for="cmspath" class="form-label">安装目录<i class="fa fa-question-circle text-warning ml-2" data-toggle="tooltip" title="根目录安装时不必理会"></i></label> |
|
|
|
<input type="text" name="cmspath" id="cmspath" class="form-control" value="<?php echo $basepath;?>" placeholder="<?php echo $basepath;?>"> |
|
|
|
</div> |
|
|
|
<div class="text-right"><button type="submit" class="btn btn-success btn-md">安装</button></div> |
|
|
|
</form> |
|
|
|
<div class="form-group"> |
|
|
|
<label for="webname" class="form-label">网站名称</label> |
|
|
|
<input type="text" name="webname" id="webname" class="form-control" placeholder="我的网站"> |
|
|
|
</div> |
|
|
|
<div class="form-group"> |
|
|
|
<label for="adminuser" class="form-label">管理员账号<i class="fa fa-question-circle text-warning ml-2" data-toggle="tooltip" title="只能用[0-9a-zA-Z_@!.-]以内范围的字符"></i></label> |
|
|
|
<input type="text" name="adminuser" id="adminuser" class="form-control" placeholder="admin"> |
|
|
|
</div> |
|
|
|
<div class="form-group"> |
|
|
|
<label for="adminpwd" class="form-label">管理员密码</label> |
|
|
|
<input type="text" name="adminpwd" id="adminpwd" class="form-control" placeholder="admin"> |
|
|
|
</div> |
|
|
|
<div class="form-group"> |
|
|
|
<label for="cmspath" class="form-label">安装目录<i class="fa fa-question-circle text-warning ml-2" data-toggle="tooltip" title="根目录安装时不必理会"></i></label> |
|
|
|
<input type="text" name="cmspath" id="cmspath" class="form-control" value="<?php echo $basepath;?>" placeholder="<?php echo $basepath;?>"> |
|
|
|
</div> |
|
|
|
<div class="text-right"><button type="submit" class="btn btn-success btn-md">安装</button></div> |
|
|
|
</form> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="col-md-12"> |
|
|
|
<p><a href="https://www.dedebiz.com" target="_blank">Powered by DedeBIZ开发团队</a></p> |
|
|
|
<div class="col-md-12"> |
|
|
|
<p><a href="https://www.dedebiz.com" target="_blank">Powered by DedeBIZ开发团队</a></p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<script> |
|
|
|