begin of thinksaas 3.68

Signed-off-by: kevin <kevin@lmve.net>
This commit is contained in:
2023-06-22 13:33:25 +08:00
commit 963ec1b2ea
2746 changed files with 331806 additions and 0 deletions
+262
View File
@@ -0,0 +1,262 @@
<?php include 'header.html'; ?>
<style>
p, li, dd, dt {
font-size: 12px;
line-height: 18px;
padding-bottom: 2px;
}
.step {
margin: 20px 0 15px;
}
.step, th {
padding: 0;
text-align: left;
}
.submit input, .button, .button-secondary {
-moz-box-sizing: content-box;
border: 1px solid #BBBBBB;
border-radius: 15px 15px 15px 15px;
color: #464646;
cursor: pointer;
font-family: "Lucida Grande",Verdana,Arial,"Bitstream Vera Sans",sans-serif;
font-size: 14px !important;
line-height: 16px;
padding: 6px 12px;
text-decoration: none;
}
.button:hover, .button-secondary:hover, .submit input:hover {
border-color: #666666;
color: #000000;
}
.button, .submit input, .button-secondary {
background:#F2F2F2;
}
.button:active, .submit input:active, .button-secondary:active {
background: #EEEEEE;
}
.form-table {
border-collapse: collapse;
margin-top: 1em;
width: 100%;
}
.form-table td {
border-bottom: 8px solid #FFFFFF;
font-size: 12px;
margin-bottom: 9px;
padding: 10px;
}
.form-table th {
border-bottom: 8px solid #FFFFFF;
font-size: 13px;
padding: 16px 10px 10px;
text-align: left;
vertical-align: top;
width: 130px;
}
.form-table tr {
background: none repeat scroll 0 0 #F3F3F3;
}
.form-table code {
font-size: 18px;
line-height: 18px;
}
.form-table p {
font-size: 11px;
margin: 4px 0 0;
}
.form-table input {
font-size: 15px;
line-height: 20px;
padding: 2px;
}
.form-table th p {
font-weight: normal;
}
#error-page {
margin-top: 50px;
}
#error-page p {
font-size: 12px;
line-height: 18px;
margin: 25px 0 20px;
}
#error-page code, .code {
font-family: Consolas,Monaco,Courier,monospace;
}
#pass-strength-result {
background-color: #EEEEEE;
border-color: #DDDDDD !important;
border-style: solid;
border-width: 1px;
display: none;
margin: 5px 5px 5px 1px;
padding: 5px;
text-align: center;
width: 200px;
}
#pass-strength-result.bad {
background-color: #FFB78C;
border-color: #FF853C !important;
}
#pass-strength-result.good {
background-color: #FFEC8B;
border-color: #FFCC00 !important;
}
#pass-strength-result.short {
background-color: #FFA0A0;
border-color: #F04040 !important;
}
#pass-strength-result.strong {
background-color: #C3FF88;
border-color: #8DFF1C !important;
}
.message {
background-color: #FFFFE0;
border: 1px solid #E6DB55;
margin: 5px 0 15px;
padding: 0.3em 0.6em;
}
</style>
<!--main-->
<div class="container mt-3 mb-3">
<div class="card">
<div class="card-body">
<form action="index.php?install=result" method="post">
<p>请在下方输入数据库相关信息。若您不清楚,请咨询主机提供商。</p>
<table class="form-table">
<tbody><tr>
<th scope="row"><label for="dbname">数据库名</label></th>
<td><input type="text" value="thinksaas" size="25" id="dbname" name="name"></td>
<td>您希望 ThinkSAAS 使用哪个数据库运行?</td>
</tr>
<tr>
<th scope="row"><label for="uname">用户名</label></th>
<td><input type="text" value="root" size="25" id="uname" name="user"></td>
<td>您的 MySQL 用户名</td>
</tr>
<tr>
<th scope="row"><label for="pwd">密码</label></th>
<td><input type="text" value="123456" size="25" id="pwd" name="pwd"></td>
<td>... 以及 MySQL 密码。</td>
</tr>
<tr>
<th scope="row"><label for="dbhost">数据库主机</label></th>
<td><input type="text" value="localhost" size="25" id="dbhost" name="host"></td>
<td>通常情况下,应填写 <code>localhost</code>,若测试连接失败,请联系主机提供商咨询。</td>
</tr>
<tr>
<th scope="row"><label for="dbport">端口</label></th>
<td><input type="text" value="3306" size="25" id="dbport" name="port"></td>
<td>默认3306</td>
</tr>
<tr>
<th scope="row"><label for="prefix">表名前缀</label></th>
<td><input type="text" size="25" value="ts_" id="prefix" name="pre"></td>
<td>若您希望在一个数据库中存放多个 ThinkSAAS 的数据,请修改本项以做区分。</td>
</tr>
</tbody></table>
<p>请在下面输入网站信息</p>
<table class="form-table">
<tbody>
<tr>
<th scope="row"><label for="site_title">网站标题:</label></th>
<td><input type="text" value="ThinkSAAS" size="25" name="site_title"></td>
<td>也是你的网站名称</td>
</tr>
<tr>
<th scope="row"><label for="site_subtitle">网站副标题:</label></th>
<td><input type="text" value="又一个ThinkSAAS社区" size="25" name="site_subtitle"></td>
<td>用于首页副标题,紧跟网站标题之后</td>
</tr>
<tr>
<th scope="row"><label for="site_url">网站URL</label></th>
<td><input id="site-url" type="text" value="<?php echo $site_url; ?>" size="25" name="site_url"></td>
<td>正确填写,http://开头,/结尾 <span style="color:#ff0000;font-size: 12px;">(如果是https开头,请手动改成https)</span></td>
</tr>
</tbody>
</table>
<p>请在下面输入管理员信息</p>
<table class="form-table">
<tbody>
<tr>
<th scope="row"><label for="email">登录Email</label></th>
<td><input type="text" value="admin@admin.com" size="25" name="email"></td>
<td>你用来登录和最高管理的账户</td>
</tr>
<tr>
<th scope="row"><label for="password">登录密码:</label></th>
<td><input type="text" value="123456" size="25" name="password"></td>
<td>您的登录密码</td>
</tr>
<tr>
<th scope="row"><label for="username">用户名:</label></th>
<td><input type="text" value="admin" size="25" name="username"></td>
<td>你的用户名</td>
</tr>
</tbody>
</table>
<p>选择数据库链接方式</p>
<table class="form-table">
<tbody>
<tr>
<th scope="row"><label for="sql">选择连接方式:</label></th>
<td><select name="sql">
<option value="mysqli">MySQLi</option>
<!--
<option value="pdo_mysql">PDO_MySQL</option>
-->
</select></td>
<td><!--选择pdo_mysql需要php支持pdo_mysql扩展--></td>
</tr>
</tbody>
</table>
<p class="step">
<input type="hidden" name="site_pkey" value="<?php echo md5(rand()); ?>" />
<input type="submit" class="button" value="提交" name="submit">
</p>
</form>
</div>
</div>
</div>
<script>
var curWwwPath=window.document.location.href;
var pathName=window.document.location.pathname;
var pos=curWwwPath.indexOf(pathName);
var localhostPaht=curWwwPath.substring(0,pos)+pathName.replace('index.php', '');
var inputUrl = document.getElementById("site-url")
inputUrl.value = localhostPaht;
</script>
<?php include 'footer.html'; ?>