-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
145 lines (130 loc) · 5.83 KB
/
Copy pathindex.php
File metadata and controls
145 lines (130 loc) · 5.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<?php session_start(); ?>
<!DOCTYPE html>
<?php
$fp = fopen("count.txt", "r+");
$count = (int)fgets($fp);
?>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="../../favicon.ico">
<title>清华版教务系统课表导出到日历 - moonsn</title>
<!-- Bootstrap core CSS -->
<link href="./assets/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="signin.css" rel="stylesheet">
<!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
<script src="./assets/js/ie-emulation-modes-warning.js"></script>
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="http://cdn.bootcss.com/html5shiv/3.7.0/html5shiv.js"></script>
<script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<form class="form-signin" action="./login.php" role="form" method="post">
<h2>导出教务在线的课表到日历^_^</h2><blockquote><p class="lead">累计导出<span class="label label-success "><?php echo $count;?></span>次</p></blockquote>
<h2 class="form-signin-heading">教务在线 信息:</h2>
<div class="form-group">
<div class="input-group">
<span class="input-group-addon">用户</span>
<input type="text" name="j_username" id="username" class="form-control" placeholder="教务在线账号" value="" required autofocus>
</div>
</div>
<div class="form-group">
<div class="input-group">
<span class="input-group-addon">密码</span>
<input type="password" name="j_password" class="form-control" placeholder="密码" value="" required>
</div>
</div>
<br>
<div class="form-group">
<label>
验证码:<img name="jcaptcha" id="jcaptcha" onclick="refresh_jcaptcha(this)"
src="./get.php"
alt="点击刷新验证码"
title="点击刷新验证码"
style="cursor:pointer;"/>
<script language="Javascript">
function refresh_jcaptcha(obj) {
var username = document.getElementById('username').value;
if(username == '') {
alert('请先填写用户名,再获取验证码!');
}
obj.src = "./getcaptcha.php?t=" + Math.random() + "&u=" + username;
}
</script>
</label>
<label>
</label>
<input type="text" name="j_captcha" class="form-control" placeholder="验证码">
</div>
<div class="alert alert-error" role="alert">
请先填写账号后再获取验证码。
</div>
<div class="form-group">
学年:
<select class="form-control" name="year">
<option value="2016">2016</option>
</select>
学期:
<select class="form-control" name="term">
<option value="1">春季</option>
<option value="2">秋季</option>
</select>
</div>
<br/>
<div class="form-group">
是否提前提醒:(分钟)
<div class="input-group">
<span class="input-group-addon">
<input type="checkbox" name="r">
</span>
<input type="numbler" class="form-control" name="rt">
</div>
</div>
<br/>
<div class="alert alert-info" role="alert">
你的教务在线信息只会使用一次,本程序不会记录你的任何信息,下次使用还需要教务在线信息,请放心使用。
如果你遇到问题或者BUG,欢迎吐槽~moonsn1994@gmail.com
</div>
<br/>
<button class="btn btn-lg btn-primary btn-block" type="submit">导出</button>
</form>
<div class="form-signin">
<div id="disqus_thread"></div>
<script>
/**
* RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS.
* LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables
*/
/*
var disqus_config = function () {
this.page.url = PAGE_URL; // Replace PAGE_URL with your page's canonical URL variable
this.page.identifier = PAGE_IDENTIFIER; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
};
*/
(function() { // DON'T EDIT BELOW THIS LINE
var d = document, s = d.createElement('script');
s.src = '//moonsn.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
</div>
</div> <!-- /container -->
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="./assets/js/ie10-viewport-bug-workaround.js"></script>
</body>
</html>
<script>
iobj = document.getElementById("j_captcha");
refresh_jcaptcha(iobj);
</script>