mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
add srs community
This commit is contained in:
parent
0eb9e0af5b
commit
cf7b6f25f6
10 changed files with 9846 additions and 0 deletions
|
@ -0,0 +1,61 @@
|
|||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta property="qc:admins" content="35453715257630661457637577164165323" />
|
||||
<title>SRS</title>
|
||||
<link href="css/style.css" rel="stylesheet" type="text/css">
|
||||
<link href="css/index_black.css" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<script type="text/javascript" src="js/jquery.js"></script>
|
||||
<script type="text/javascript" src="conf.js"></script>
|
||||
|
||||
<div id="banner">
|
||||
<div id="login" style="padding-top:20px;text-align:center;"></div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
document.title = get_system_title();
|
||||
|
||||
function require_login(){
|
||||
// 应用的APPID
|
||||
var appID = get_qq_oauth_app_id();
|
||||
// 成功授权后的回调地址
|
||||
var redirectURI = get_qq_oauth_redirect_url();
|
||||
// 透传的状态: check, user
|
||||
var state = "check";
|
||||
|
||||
var path = 'https://graph.qq.com/oauth2.0/authorize?';
|
||||
var queryParams = [
|
||||
'response_type=token',
|
||||
'client_id=' + appID,
|
||||
'redirect_uri=' + encodeURI(redirectURI),
|
||||
'state=' + state,
|
||||
'scope=' + 'get_user_info',
|
||||
];
|
||||
|
||||
var query = queryParams.join('&');
|
||||
var url = path + query;
|
||||
//console.log(url);
|
||||
$("#login").empty();
|
||||
$("#login").append("<div style='margin-bottom:40px;margin-top:30px;'>Welcome to " + get_system_title() + "!</div>");
|
||||
$("#login").append("<a href='" + url + "'><img src='images/login.png'/></a>");
|
||||
//window.location.href = url;
|
||||
}
|
||||
|
||||
if(enable_auth()){
|
||||
require_login();
|
||||
}
|
||||
else{
|
||||
$("#login").html("<div style='margin-bottom:20px;'>Welcome to " + get_system_title() + "!</div>");
|
||||
}
|
||||
</script>
|
||||
|
||||
<div id="footer">
|
||||
<span>Copyright © 2013-2014 SRS,保留所有权利</span>
|
||||
Email: winlin@vip.126.com<br/>
|
||||
<span>京ICP备12047633号</span>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue