2 Star 2 Fork 1

深圳市赛雅科技有限公司 / 壹写作出版商开放平台

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
login.php 3.00 KB
一键复制 编辑 Web IDE 原始数据 按行查看 历史
Rain 提交于 2019-03-19 09:30 . 添加signture验证环节,添加登录页
<?php
// for test 直接跳到回调路径,实际流程应到用户库进行身份验证
define('APP_ID', 'msnwTbRIUL');
define('APP_SECREAT', '9Hd1bK6J8Tiyvo4G');
$params["appid"] = APP_ID;
$params["code"] = 1;
$params["accesstoken"] = 'accesstoken';
$params["openid"] = 'openid';
$params['timestamp'] = time();
$params["uid"] = 28;
$params['signture'] = md5($params["appid"] . APP_SECREAT . $params['timestamp']);
$callbackurl="http://appchina.1xiezuo.com/thirdapi/logincallback.php?". http_build_query($params);
?>
<!DOCTYPE html>
<head>
<title>登录 EWPub</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="assets/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href="assets/bootstrap.min.css" rel="stylesheet" type="text/css">
<link href="assets/bootstrap.theme.min.css" rel="stylesheet" type="text/css">
<link href="assets/main.css" rel="stylesheet" type="text/css">
</head>
<body class="templatemo-bg-gray">
<div class="container">
<div class="col-md-12">
<h1 class="margin-bottom-15">EWPub</h1>
<form class="form-horizontal templatemo-container templatemo-login-form-1 margin-bottom-30" role="form" action="<?php echo($callbackurl); ?>" method="post">
<div class="form-group">
<div class="col-xs-12">
<div class="control-wrapper">
<label for="username" class="control-label fa-label"><i class="fa fa-user fa-medium"></i></label>
<input type="text" class="form-control" id="username" placeholder="用户名称">
</div>
</div>
</div>
<div class="form-group">
<div class="col-md-12">
<div class="control-wrapper">
<label for="password" class="control-label fa-label"><i class="fa fa-lock fa-medium"></i></label>
<input type="password" class="form-control" id="password" placeholder="密码">
</div>
</div>
</div>
<!-- <div class="form-group">
<div class="col-md-12">
<div class="checkbox control-wrapper">
<label>
<input type="checkbox"> Remember me
</label>
</div>
</div>
</div> -->
<div class="form-group">
<div class="col-md-12">
<div class="control-wrapper">
<input type="submit" value="登 录" class="btn btn-info">
<!-- <a href="forgot-password.html" class="text-right pull-right">Forgot password?</a>
--> </div>
</div>
</div>
<hr>
</form>
<!-- <div class="text-center">
<a href="create-account.html" class="templatemo-create-new">Create new account <i class="fa fa-arrow-circle-o-right"></i></a>
</div> -->
</div>
</div>
</body>
</html>
PHP
1
https://gitee.com/xiezuo/ewpub.git
git@gitee.com:xiezuo/ewpub.git
xiezuo
ewpub
壹写作出版商开放平台
master

搜索帮助

14c37bed 8189591 565d56ea 8189591