-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathedit.html
118 lines (115 loc) · 5.1 KB
/
edit.html
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>rproxy - Add/Edit rules</title>
<link href="/static/styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="content">
<div id="intro">
<h2>Please Edit your rule</h2>
</div>
<form method="POST" action="edit">
<table id="mytable" cellspacing="0" summary="">
<caption>Table : Rule</caption>
<tr>
<th scope="col" width="100px" abbr="Option" class="nobg">Option</th>
<th scope="col" width="50px" abbr="Value">Value</th>
<th scope="col" abbr="Description">Description</th>
</tr>
<tr>
<th scope="row" abbr="tt" class="spec">Target</th>
<td><input type="text" size=10 name="target" value="${cfg[0]}"/></td>
<td align=left>Target website address, DONOT put http or www before domain name</td>
</tr>
<tr>
<th scope="row" abbr="tt" class="specalt">Alias</th>
<td class="alt"><input type="text" size=5 name="alias" value="${cfg[1]}" /></td>
<td class="alt" align=left>Alias name for target website</td>
</tr>
<tr>
<th scope="row" abbr="tt" class="spec">HTML Replace?</th>
<td>
%if cfg[2]=="Y":
Y<input type="radio" size=1 name="html" value="Y" checked/>/
N<input type="radio" size=1 name="html" value="N"/>
%else:
Y<input type="radio" size=1 name="html" value="Y"/>/
N<input type="radio" size=1 name="html" value="N" checked/>
%endif
</td>
<td align=left>Y/N, define whether to let rproxy replace html content</td>
</tr>
<tr>
<th scope="row" abbr="tt" class="specalt">CSS Replace?</th>
<td class="alt">
%if cfg[3]=="Y":
Y<input type="radio" size=1 name="css" value="Y" checked/>/
N<input type="radio" size=1 name="css" value="N"/>
%else:
Y<input type="radio" size=1 name="css" value="Y"/>/
N<input type="radio" size=1 name="css" value="N" checked/>
%endif
</td>
<td class="alt" align=left>Y/N, define whether to let rproxy replace css content</td>
</tr>
<tr>
<th scope="row" abbr="tt" class="spec">Javascript Replace?</th>
<td >
%if cfg[4]=="Y":
Y<input type="radio" size=1 name="js" value="Y" checked/>/
N<input type="radio" size=1 name="js" value="N"/>
%else:
Y<input type="radio" size=1 name="js" value="Y"/>/
N<input type="radio" size=1 name="js" value="N" checked/>
%endif
</td>
<td align=left>Y/N, define whether to let rproxy replace javscript content, for a bypass-GFW purpose, html,css,js are all recommended to be set to Y</td>
</tr>
<tr>
<th scope="row" abbr="tt" class="specalt">Flash Replace?</th>
<td class="alt" >
%if cfg[5]=="Y":
Y<input type="radio" size=1 name="flash" value="Y" checked/>/
N<input type="radio" size=1 name="flash" value="N"/>
%else:
Y<input type="radio" size=1 name="flash" value="Y"/>/
N<input type="radio" size=1 name="flash" value="N" checked/>
%endif
</td>
<td class="alt" align=left>Y/N, not implemented, this attr is aimed to let youtube working</td>
</tr>
<tr>
<th scope="row" abbr="tt" class="spec">Make this alias "global"?</th>
<td>
%if cfg[6]=="Y":
Y<input type="radio" size=1 name="global" value="Y" checked/>/
N<input type="radio" size=1 name="global" value="N"/>
%else:
Y<input type="radio" size=1 name="global" value="Y"/>/
N<input type="radio" size=1 name="global" value="N" checked/>
%endif
</td>
<td align=left>Y/N, "global" aliases will work all together to ensure an aliased environment. For example, when you have facebook and twitter both aliased and "global"ed, the twitter links in your facebook page will be automatically translated to use rproxy.</td>
</tr>
<tr>
<th scope="row" abbr="tt" class="specalt">Use SSL on http visiting</th>
<td class="alt">
%if cfg[7]=="Y":
Y<input type="radio" size=1 name="sslonhttp" value="Y" checked/>/
N<input type="radio" size=1 name="sslonhttp" value="N"/>
%else:
Y<input type="radio" size=1 name="sslonhttp" value="Y"/>/
N<input type="radio" size=1 name="sslonhttp" value="N" checked/>
%endif
</td>
<td class="alt" align=left>Y/N, when set to Y, https://alias.rproxydomain will behave like http://alias.rproxydomain, this enables content-protection even when your target website does not support https. Warning: you SHOULD ONLY set to Y if your target website doesn't support https, if your target is https enabled, just set to N, and https://alias.rproxydomain will automatically communicates in SSL</td>
</tr>
</table>
<input type="image" src="/static/submit.jpg" name="submit" value="Submit" />
</form>
</div>
</body>
</html>