|
|
@@ -29,28 +29,28 @@ if ($dopost == "view") { |
|
|
|
//设定dedebiz admin密码 |
|
|
|
if ($dedebiz_admin == "" || $dedebiz_admin !== $re_dedebiz_admin) { |
|
|
|
echo "<link rel=\"stylesheet\" href=\"/static/web/css/bootstrap.min.css\"><style>.modal {position:static}</style>"; |
|
|
|
echo "<div class=\"alert alert-warning\">DedeBIZ操作密码为空或两次指定的密码不符</div><br>"; |
|
|
|
echo "<div class=\"alert alert-warning\">密码不能为空或密码输入错误</div><br>"; |
|
|
|
$client->Close(); |
|
|
|
exit; |
|
|
|
} |
|
|
|
$data = $client->AdminPWDCreate($dedebiz_admin); |
|
|
|
if ($data->data != "ok") { |
|
|
|
echo "<link rel=\"stylesheet\" href=\"/static/web/css/bootstrap.min.css\"><style>.modal {position:static}</style>"; |
|
|
|
echo "<div class=\"alert alert-warning\">DedeBIZ设定操作密码失败:${$data}</div><br>"; |
|
|
|
echo "<div class=\"alert alert-warning\">密码失败:${$data}</div><br>"; |
|
|
|
$client->Close(); |
|
|
|
exit; |
|
|
|
} |
|
|
|
} else { |
|
|
|
if ($dedebiz_admin == "") { |
|
|
|
echo "<link rel=\"stylesheet\" href=\"/static/web/css/bootstrap.min.css\"><style>.modal {position:static}</style>"; |
|
|
|
echo "<div class=\"alert alert-warning\">DedeBIZ操作密码为空</div><br>"; |
|
|
|
echo "<div class=\"alert alert-warning\">密码不能为空</div><br>"; |
|
|
|
$client->Close(); |
|
|
|
exit; |
|
|
|
} |
|
|
|
$data = $client->AdminSetIndexLockState($dedebiz_admin, $lockindex); |
|
|
|
if ($data->data != "ok") { |
|
|
|
echo "<link rel=\"stylesheet\" href=\"/static/web/css/bootstrap.min.css\"><style>.modal {position:static}</style>"; |
|
|
|
echo "<div class=\"alert alert-warning\">DedeBIZ操作密码失败,填写正确的操作密码</div><br>"; |
|
|
|
echo "<div class=\"alert alert-warning\">密码输入错误,请填写正确的密码</div><br>"; |
|
|
|
$client->Close(); |
|
|
|
exit; |
|
|
|
} |
|
|
|