Files
phalapi-pro/public/install/_step2.php
2022-03-21 11:16:38 +08:00

145 lines
6.1 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php defined('PHALAPI_INSTALL') || die('no access'); ?>
<?php include dirname(__FILE__) . DIRECTORY_SEPARATOR . '_header.php'; ?>
<div class="radius bg bouncein window window_big">
<div class="window_title t_normal" >
<span class="icon-circle"> </span>
<span class="icon-circle"></span>
<span class="margin-small-left">安装向导</span>
</div>
<div class="padding-large text-black">
<h1 class="margin-small-bottom" >PhalApi Pro 初始化配置</h1>
<h5 class="margin-big-bottom ">需要您提供必要的系统配置信息,当前域名/IP<?= $_SERVER['HTTP_HOST'] ?><small>(授权后方可用于商业用途,<a href="http://pro.yesapi.cn/index.php?r=site%2Fquery" target="_blank">官方授权查询</a></small></h5>
<hr>
<form class="form-horizontal" action="./?step=3" method="POST" >
<div class="form-group">
<div class="label">
<label for="project"><font color="red">*</font> 当前域名/IP授权后方可用于商业用途</label>
</div>
<div class="field">
<input type="text" class="input" name="auth_host" size="30" placeholder="必填" value="<?= $_SERVER['HTTP_HOST'] ?>" />
</div>
</div>
<div class="form-group">
<div class="label">
<label for="project_name"> 项目名称(安装后的网站名称)</label>
</div>
<div class="field">
<input type="text" class="input" name="project_name" size="30" placeholder="项目名称,设置后仍可通过配置修改" value="果果云" />
</div>
</div>
<hr>
<div class="form-group">
<div class="label">
<label for="host">MySQL数据库服务器</label>
</div>
<div class="field">
<input type="text" class="input" name="host" size="30" placeholder="通常为 localhost或127.0.0.1" value="127.0.0.1" />
</div>
</div>
<div class="form-group">
<div class="label">
<label for="user">MySQL数据库帐号</label>
</div>
<div class="field">
<input type="text" class="input" name="user" size="30" placeholder="通常为 root" value="root" />
</div>
</div>
<div class="form-group">
<div class="label">
<label for="username">MySQL数据库密码</label>
</div>
<div class="field">
<input type="password" class="input" name="password" size="30" placeholder=""/>
</div>
</div>
<div class="form-group">
<div class="label">
<label for="port">MySQL数据库端口</label>
</div>
<div class="field">
<input type="text" class="input" name="port" size="30" placeholder="一般情况下不需要修改" value="3306"/>
</div>
</div>
<div class="form-group">
<div class="label">
<label for="name">MySQL数据库名称 <font color="red">(请注意:开始安装后将会清除旧的数据库表!推荐使用新数据库。)</font></label>
</div>
<div class="field">
<input type="text" class="input" name="name" size="30" placeholder="数据库不存在时需要先创建" value="phalapi_pro"/>
<!-- <small><input type="checkbox" name="is_create_new_db" value="1" checked /> 同时创建新数据库</small> -->
<!-- <small>创建数据库CREATE DATABASE phalapi_pro DEFAULT CHARACTER SET utf8mb4 DEFAULT COLLATE utf8mb4_general_ci;</small> -->
</div>
</div>
<div class="form-group">
<div class="label">
<label for="prefix">MySQL数据库表前缀</label>
</div>
<div class="field">
<input type="text" class="input" name="prefix" size="30" placeholder="同数据库安装多个本程序时需要更改" value="pp_"/>
</div>
</div>
<hr />
<div class="form-group">
<div class="label">
<label for="admin_user"><font color="red">*</font> 管理员账号</label>
</div>
<div class="field">
<input type="text" class="input" name="admin_user" size="30" placeholder="管理后台的管理员账号" value="admin" />
</div>
</div>
<div class="form-group">
<div class="label">
<label for="admin_pass"><font color="red">*</font> 管理员密码默认密码123456</label>
</div>
<div class="field">
<input type="password" class="input" name="admin_pass" size="30" placeholder="管理后台的管理员密码,至少需要6位以上" value="123456" />
</div>
</div>
<!-- <div class="form-group"> -->
<!-- <div class="label"> -->
<!-- <label for="charset">数据库编码</label> -->
<!-- </div> -->
<!-- <div class="field"> -->
<!-- <input type="text" class="input" name="charset" size="30" placeholder="一般情况下不需要修改" value="UTF8"/> -->
<!-- </div> -->
<!-- </div> -->
<!-- <hr>-->
<!-- <div class="form-group">-->
<!-- <div class="label">-->
<!-- <label for="db_engine">接口签名方案</label>-->
<!-- </div>-->
<!-- <div class="field">-->
<!-- <select name="db_engine" class="form-control"><option value="zh_cn">无接口签名验证</option><option value="en">MD5验签</option>><option value="en">自定义难签</option></select>-->
<!-- </div>-->
<!-- </div>-->
<!-- <hr>-->
<!-- <div class="form-group">-->
<!-- <div class="label">-->
<!-- <label for="db_engine">翻译语言</label>-->
<!-- </div>-->
<!-- <div class="field">-->
<!-- <select name="db_engine" class="form-control"><option value="zh_cn">中文</option><option value="en">English</option></select> </div>-->
<!-- </div>-->
<hr>
<div class="margin-big-top" >
<button type="submit" class="button bg-yellow margin-small-right" name="doSubmit" value="ok" > 开始安装 </button>
<a class="button margin-small-right" href="./?step=1" role="button"> 上一步 </a>
</div>
</form>
</div>
</div>
</div>
<?php include dirname(__FILE__) . DIRECTORY_SEPARATOR . '_footer.php'; ?>