<!DOCTYPE html>
<html lang="zh-cn">
<head>
  <meta charset="utf-8"/>
  <meta name="viewport" content="width=device-width, initial-scale=1"/>
  <title>柯林SID提取工具</title>
  <link href="//cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>
  <script src="//cdn.staticfile.org/jquery/1.12.4/jquery.min.js"></script>
  <script src="//cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
  <script src="//cdn.staticfile.org/layer/2.3/layer.js"></script>
  <script src="//cdn.staticfile.org/clipboard.js/1.7.1/clipboard.min.js"></script>
  <!--[if lt IE 9]>
    <script src="//cdn.staticfile.org/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="//cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
  <![endif]-->
</head>
<body>
<div class="container">
<div class="col-xs-12 col-sm-10 col-md-8 col-lg-6 center-block" style="float: none;">
<?php
if(!defined('IN_CRONLITE'))exit();
if(!$islogin==1)showmsg('登录失败，可能是密码错误或者身份失效了，请<a href="index.php?mod=login">重新登录</a>！',3);

$url = isset($_GET['url'])?htmlspecialchars(trim($_GET['url'])):null;
?>
<script>
var siteurl='<?php echo $apiserver ?>';
</script>
<div class="panel panel-success">
	<div class="panel-heading"><h3 class="panel-title text-center">
		柯林SID提取工具
	</div>
	<div class="panel-body">
		<div class="tab-pane active">
			<div class="list-group-item list-group-item-info text-center" style="font-weight: bold;display:none;" id="load"></div>
			<div id="login" class="list-group-item">
			<div class="form-group">
				<label>首页网址：</label><br/>
				<input type="text" id="url" value="<?php echo $url?>" class="form-control" onkeydown="if(event.keyCode==13){submitlogin.click()}" placeholder="填写示例：http://kelink.com/"/>
			</div>
			<div class="form-group">
				<label>用户名：</label><br/>
				<input type="text" id="user" value="" class="form-control" onkeydown="if(event.keyCode==13){submitlogin.click()}"/>
			</div>
			<div class="form-group" id="pwdForm">
				<label>密码：</label><br/>
				<input type="text" id="pwd" value="" class="form-control" onkeydown="if(event.keyCode==13){submitlogin.click()}"/>
			</div>
			<button type="button" id="submitlogin" class="btn btn-primary btn-block">提交</button>
			<div id="resultForm" style="display:none;">
				<div class="form-group">
					<label>siteid：</label><br/>
					<div class="input-group"><input type="text" id="siteid" value="" class="form-control"/><span class="input-group-btn"><a href="javascript:;" id="copy-siteid" data-clipboard-text="" class="btn btn-warning" title="点此复制">复制</a></span></div>
				</div>
				<div class="form-group">
					<label>以下是你的SID：</label><br/>
					<div class="input-group"><input type="text" id="sid" value="" class="form-control"/><span class="input-group-btn"><a href="javascript:;" id="copy-sid" data-clipboard-text="" class="btn btn-warning" title="点此复制">复制</a></span></div>
				</div>
			</div>
			</div>
			<br/><a href="javascript:window.location.reload()">点此重新登录</a>
		</div>
	</div>
</div>
</div>
</div>
<script src="sign/getcookie/kelinksid.js?v=<?php echo VERSION?>"></script>
</body>
</html>