update
This commit is contained in:
parent
468566f766
commit
f995fc07c5
|
|
@ -104,7 +104,7 @@
|
||||||
</ul>
|
</ul>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<h1 class="ciy-title lang">CiyDAO 总控台</h1>
|
<h1 class="ciy-title lang">Ciyon SaaS 总控台</h1>
|
||||||
<div class="cmain">
|
<div class="cmain">
|
||||||
<fieldset class="tips">
|
<fieldset class="tips">
|
||||||
<legend class="lang">管理员登录</legend>
|
<legend class="lang">管理员登录</legend>
|
||||||
|
|
@ -128,6 +128,14 @@
|
||||||
<button type="submit" class="lang btn lg">登录</button>
|
<button type="submit" class="lang btn lg">登录</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="ciy-tip">
|
||||||
|
演示账号: 12345678901<br>
|
||||||
|
密码: 123654<br>
|
||||||
|
<div class="txt-center">
|
||||||
|
移动端演示<br>
|
||||||
|
<img src="/ud/img/xcxdemo.png" style="width: 8em;">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@
|
||||||
|
|
||||||
.c_tag span {
|
.c_tag span {
|
||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
font-weight: 100;
|
font-weight: 300;
|
||||||
line-height: 2em;
|
line-height: 2em;
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
height: 7em;
|
height: 7em;
|
||||||
|
|
@ -356,18 +356,20 @@
|
||||||
<a title="返回顶部" class="btn-totop" href="#"></a>
|
<a title="返回顶部" class="btn-totop" href="#"></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="bgbtm"></div>
|
<div class="bgbtm"></div>
|
||||||
|
<div id="id_install" style="display:none;position: fixed;padding:1em;top:5em;left:calc(50% - 14em);width:28em;z-index: 10;background:#ffffff;border-radius: 1em;box-shadow: 0 0 30px -10px #000000;">
|
||||||
|
<div onclick="document.getElementById('id_install').style.display='none';" style="position: absolute;top:0.5em;right:0.5em;font-size:1.5em;cursor:pointer;color:#000000;line-height: 1em;">×</div>
|
||||||
|
<div>nginx配置成功且加载正常</div>
|
||||||
|
<div>显示日期时间,则PHP运行正常</div>
|
||||||
|
<div><iframe src="install.php?act=time" style="width:100%;border:none;"></iframe></div>
|
||||||
|
<div><iframe src="install.php?act=db" style="width:100%;height:100%;border:none;"></iframe></div>
|
||||||
|
</div>
|
||||||
<script src="jscss/web.js"></script>
|
<script src="jscss/web.js"></script>
|
||||||
<script>
|
<script>
|
||||||
// var _hmt = _hmt || [];
|
|
||||||
// (function () {
|
|
||||||
// var hm = document.createElement("script");
|
|
||||||
// hm.src = "https://hm.baidu.com/hm.js?67ed5441e805704672f3db1b504dc86e";
|
|
||||||
// var s = document.getElementsByTagName("script")[0];
|
|
||||||
// s.parentNode.insertBefore(hm, s);
|
|
||||||
// })();
|
|
||||||
|
|
||||||
document.addEventListener('DOMContentLoaded', function () {
|
document.addEventListener('DOMContentLoaded', function () {
|
||||||
ciy_lazyimg(true);
|
ciy_lazyimg(true);
|
||||||
|
if (document.location.host.indexOf('.local.ciy.cn') > -1) {
|
||||||
|
document.getElementById('id_install').style.display = 'block';
|
||||||
|
}
|
||||||
});
|
});
|
||||||
function mbmenu_toggle(bopen) {
|
function mbmenu_toggle(bopen) {
|
||||||
if (bopen)
|
if (bopen)
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,44 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
|
||||||
|
<head>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<?php
|
||||||
|
// 正式部署删除该文件。
|
||||||
|
$act = @$_GET['act'] . '';
|
||||||
|
if ($act == 'time')
|
||||||
|
echo date('Y-m-d H:i:s') . ' v' . phpversion();
|
||||||
|
if ($act == 'db') {
|
||||||
|
require '../zciyphp/comm.php';
|
||||||
|
$db = new \ciy\db();
|
||||||
|
$ret = $db->connect();
|
||||||
|
if (!$ret->isconnected)
|
||||||
|
die($ret->error);
|
||||||
|
$cfg = webini('db');
|
||||||
|
$dbname = $cfg['name'];
|
||||||
|
$schema = $db->getraw('SELECT SCHEMA_NAME FROM information_schema.SCHEMATA WHERE SCHEMA_NAME = ?', array($dbname));
|
||||||
|
if (count($schema) == 0)
|
||||||
|
die('应建立' . $dbname . '数据库实例');
|
||||||
|
$csql = new \ciy\sql('zc_admin');
|
||||||
|
$userrow = $db->getone($csql);
|
||||||
|
if ($userrow === false) {
|
||||||
|
if (strpos($db->error, 'exist') !== false)
|
||||||
|
die('数据表没导入,需在' . $dbname . '中执行c5_ciyon.sql建立表');
|
||||||
|
else
|
||||||
|
die($db->error);
|
||||||
|
}
|
||||||
|
$ver = $db->getraw('SELECT VERSION() as ver');
|
||||||
|
echo '数据库连接成功 v' . $ver[0]['ver'];
|
||||||
|
echo '<br/>登录账号: ' . $userrow['mobile'];
|
||||||
|
echo '<br/>初始密码: 123654';
|
||||||
|
echo '<br/><a href="/admin/" target="_blank">前往登录</a>';
|
||||||
|
echo '<br/><a href="?act=phpinfo" target="_blank">显示PHPInfo</a>';
|
||||||
|
}
|
||||||
|
if ($act == 'phpinfo')
|
||||||
|
echo phpinfo();
|
||||||
|
?>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
||||||
|
|
@ -954,7 +954,7 @@ footer {
|
||||||
column-gap: 2em;
|
column-gap: 2em;
|
||||||
row-gap: 0.5em;
|
row-gap: 0.5em;
|
||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
font-weight: 100;
|
font-weight: 300;
|
||||||
padding: 1em 0;
|
padding: 1em 0;
|
||||||
border-top: 1px solid var(--c-border-1);
|
border-top: 1px solid var(--c-border-1);
|
||||||
background: var(--c-bg-2);
|
background: var(--c-bg-2);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user