Browse Source

调整安装页面提示

tags/6.2.7
叙述、别离 1 year ago
parent
commit
f320405c5c
9 changed files with 17 additions and 16 deletions
  1. +1
    -1
      src/admin/member_toadmin.php
  2. +1
    -1
      src/admin/sys_admin_user_add.php
  3. +1
    -1
      src/admin/sys_admin_user_edit.php
  4. +1
    -1
      src/admin/templets/member_edit.htm
  5. +1
    -1
      src/admin/templets/member_toadmin.htm
  6. +2
    -2
      src/admin/templets/sys_admin_user_add.htm
  7. +1
    -1
      src/admin/templets/sys_admin_user_edit.htm
  8. +8
    -7
      src/install/install.html
  9. +1
    -1
      src/system/memberlogin.class.php

+ 1
- 1
src/admin/member_toadmin.php View File

@@ -18,7 +18,7 @@ $row = array();
if ($dopost == "toadmin") {
$pwd = trim($pwd);
if ($pwd != '' && preg_match("#[^0-9a-zA-Z_@!\.-]#", $pwd)) {
ShowMsg('密码不合法,只能用[0-9a-zA-Z_@!.-]以内范围的字符', '-1', 0, 3000);
ShowMsg('密码不合法,使用[0-9a-zA-Z_@!.-]范围以内字符', '-1', 0, 3000);
exit();
}
$safecodeok = substr(md5($cfg_cookie_encode.$randcode), 0, 24);


+ 1
- 1
src/admin/sys_admin_user_add.php View File

@@ -15,7 +15,7 @@ if (empty($dopost)) $dopost = '';
if ($dopost == 'add') {
CheckCSRF();
if (preg_match("#[^0-9a-zA-Z_@!\.-]#", $pwd) || preg_match("#[^0-9a-zA-Z_@!\.-]#", $userid)) {
ShowMsg('密码或或会员名不合法,只能用[0-9a-zA-Z_@!.-]以内范围的字符', '-1', 0, 3000);
ShowMsg('密码或或会员名不合法,使用[0-9a-zA-Z_@!.-]范围以内字符', '-1', 0, 3000);
exit();
}
$safecodeok = substr(md5($cfg_cookie_encode.$randcode), 0, 24);


+ 1
- 1
src/admin/sys_admin_user_edit.php View File

@@ -17,7 +17,7 @@ if ($dopost == 'saveedit') {
CheckCSRF();
$pwd = trim($pwd);
if ($pwd != '' && preg_match("#[^0-9a-zA-Z_@!\.-]#", $pwd)) {
ShowMsg('密码不合法,只能用[0-9a-zA-Z_@!.-]以内范围的字符', '-1', 0, 3000);
ShowMsg('密码不合法,使用[0-9a-zA-Z_@!.-]范围以内字符', '-1', 0, 3000);
exit();
}
$safecodeok = substr(md5($cfg_cookie_encode.$randcode), 0, 24);


+ 1
- 1
src/admin/templets/member_edit.htm View File

@@ -36,7 +36,7 @@
<td>密码:</td>
<td>
<input type="text" name="pwd" id="pwd" class="admin-input-sm">
<span>(留空则不修改,只能用[0-9a-zA-Z_@!.-]以内范围的字符)</span>
<span>(留空则不修改,使用[0-9a-zA-Z_@!.-]范围以内字符)</span>
</td>
</tr>
<tr>


+ 1
- 1
src/admin/templets/member_toadmin.htm View File

@@ -31,7 +31,7 @@
</tr>
<tr>
<td>密码:</td>
<td><input type="text" name="pwd" id="pwd" class="admin-input-sm">(留空则不修改,只能用[0-9a-zA-Z_@!.-]以内范围的字符)</td>
<td><input type="text" name="pwd" id="pwd" class="admin-input-sm">(留空则不修改,使用[0-9a-zA-Z_@!.-]范围以内字符)</td>
</tr>
<tr>
<td>类型:</td>


+ 2
- 2
src/admin/templets/sys_admin_user_add.htm View File

@@ -23,7 +23,7 @@
<td width="260">会员名:</td>
<td>
<input type="text" name="userid" id="userid" class="admin-input-sm">
<span>(只能用[0-9a-zA-Z_@!.-]以内范围的字符)</span>
<span>(使用[0-9a-zA-Z_@!.-]范围以内字符)</span>
</td>
</tr>
<tr>
@@ -37,7 +37,7 @@
<td>密码:</td>
<td>
<input type="text" name="pwd" id="pwd" class="admin-input-sm">
<span>(只能用[0-9a-zA-Z_@!.-]以内范围的字符)</span>
<span>(使用[0-9a-zA-Z_@!.-]范围以内字符)</span>
</td>
</tr>
<tr>


+ 1
- 1
src/admin/templets/sys_admin_user_edit.htm View File

@@ -33,7 +33,7 @@
<td>密码:</td>
<td>
<input type="text" name="pwd" id="pwd" class="admin-input-sm">
<span>(留空则不修改,只能用[0-9a-zA-Z_@!.-]以内范围的字符)</span>
<span>(留空则不修改,使用[0-9a-zA-Z_@!.-]范围以内字符)</span>
</td>
</tr>
<tr>


+ 8
- 7
src/install/install.html View File

@@ -47,11 +47,12 @@
<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>
<label for="dbtype" class="form-label">数据库类型</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 class="form-text">数据库类型一般为MySQL,则SQLite用于开发调试</div>
</div>
<div class="form-group server">
<label for="dbhost" class="form-label">数据库地址</label>
@@ -66,8 +67,9 @@
<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>
<label for="dbprefix" class="form-label">数据表前缀</label>
<input type="text" name="dbprefix" id="dbprefix" class="form-control" placeholder="biz_">
<div class="form-text text-danger">注意DedeV6数据表前缀默认为biz_</div>
</div>
<div class="form-group">
<label for="dbname" class="form-label">数据库名称</label>
@@ -88,16 +90,18 @@
<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>
<label for="adminuser" class="form-label">管理员账号</label>
<input type="text" name="adminuser" id="adminuser" class="form-control" placeholder="admin">
<div class="form-text">使用[0-9a-zA-Z_@!.-]范围以内字符</div>
</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>
<label for="cmspath" class="form-label">安装目录</label>
<input type="text" name="cmspath" id="cmspath" class="form-control" value="<?php echo $basepath;?>" placeholder="<?php echo $basepath;?>">
<div class="form-text">在根目录安装不需要填写此项</div>
</div>
<div class="text-right"><button type="submit" class="btn btn-success btn-md">安装</button></div>
</form>
@@ -133,9 +137,6 @@
$(".form-group.server").show()
}
});
$(function() {
$('[data-toggle="tooltip"]').tooltip()
});
</script>
</body>
</html>

+ 1
- 1
src/system/memberlogin.class.php View File

@@ -46,7 +46,7 @@ function CheckUserID($uid, $msgtitle = '会员名', $ckhas = TRUE)
}
} else {
if (preg_match("/[^0-9a-z@\.-]/i", $ck_uid[$i])) {
return $msgtitle.'只能用[0-9a-zA-Z_@!.-]以内范围的字符';
return $msgtitle.'使用[0-9a-zA-Z_@!.-]范围以内字符';
}
}
}


Loading…
Cancel
Save