function showlogin() { global $islogin, $isadmin, $row; if ($islogin == 1) { echo '<div class="panel panel-primary"><div class="panel-heading"><h3 class="panel-title" align="center">用户中心</h3></div> <table class="table table-bordered"> <tbody>'; echo '<tr height=50> <td><b>用户名/UID</b></td> <td align="center">' . $row['user'] . '/[' . $row['userid'] . ']<br/>(' . usergroup() . ')</td> <td align="center"><a href="index.php?mod=userinfo"class="btn btn-block btn-info">用户资料</a></td> </tr>'; if (OPEN_CRON == 1) { echo '<tr height=50> <td><b>任务数量</b></td> <td align="center">' . $row['num'] . '个</td> <td align="center"><a href="index.php?mod=user" class="btn btn-block btn-primary">任务管理</a></td> </tr>'; } if (OPEN_QQOL == 1) { echo '<tr height=50> <td><b>QQ数量</b></td> <td align="center">' . $row['qqnum'] . '个</td> <td align="center"><a href="index.php?mod=qqlist" class="btn btn-block btn-success">QQ管理</a></td> </tr>'; } echo '<tr height=50> <td><b>用户操作</b></td> <td align="center"><a href="index.php?mod=wall" class="btn btn-block btn-warning">QQ墙</a></td> <td align="center"><a href="./?my=loginout" class="btn btn-block btn-danger">安全退出</a></td> </tr>'; echo '</tbody> </table> </div>'; } else { ?> <div class="panel panel-primary"><div class="panel-heading"><h3 class="panel-title">登录你的账号:</h3></div> <div class="panel-body"> <form action="?" method="get"> <input type="hidden" name="my" value="login"> <div class="input-group"> <span class="input-group-addon">账号</span> <input type="text" class="form-control" name="user" value=""> </div><br/> <div class="input-group"> <span class="input-group-addon">密码</span> <input type="password" class="form-control" name="pass" value=""> </div><br/> <div class="login-button"> <input type="checkbox" name="ctime" id="ctime" checked="checked" value="2592000" > <label for="ctime">下次自动登录</label><br/><br/> <button type="submit" class="btn btn-primary btn-block">马上登录</button><br/></form> <a href="index.php?mod=reg" class="btn btn-success btn-block">注册用户</a> </div> </div> </div> <?php } }
/* * 用户资料文件 */ if (!defined('IN_CRONLITE')) { exit; } $title = "用户资料"; include_once TEMPLATE_ROOT . "head.php"; navi(); echo '<div class="panel panel-primary"> <div class="panel-heading w h"><h3 class="panel-title">用户资料</h3></div>'; echo '<div class="panel-body box">'; echo '<li class="list-group-item"><b>UID:</b>' . $row['userid'] . '</li> <li class="list-group-item"><b>用户名:</b>' . $row['user'] . '</li> <li class="list-group-item"><b>用户组:</b>' . usergroup() . '</li> <li class="list-group-item"><b>注册日期:</b>' . $row['date'] . '</li> <li class="list-group-item"><b>邮箱:</b><font color="blue">' . $row['email'] . '</font> [<a href="index.php?mod=set&my=mail">修改邮箱</a>]</li> <li class="list-group-item"><b>密码:</b>********* [<a href="index.php?mod=set&my=mm">修改密码</a>]</li> </div>'; echo '</div>'; echo '<div class="panel panel-primary"><div class="panel-body box" style="text-align: center;">'; echo date("Y年m月d日 H:i:s"); include ROOT . 'includes/foot.php'; echo '</div>'; if ($conf['sjyl'] == 1) { $txt = file(ROOT . 'includes/content/content.db'); shuffle($txt); echo "{$txt['0']}"; } echo '</div>