File: UserPage.tmpl

package info (click to toggle)
znc 0.045-3%2Betch3
  • links: PTS
  • area: main
  • in suites: etch
  • size: 1,120 kB
  • ctags: 2,324
  • sloc: cpp: 17,406; sh: 2,380; perl: 448; makefile: 134
file content (212 lines) | stat: -rw-r--r-- 7,700 bytes parent folder | download | duplicates (2)
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
<? INC Header.tmpl ?>

<form action="<? IF Edit ?>/edituser<? ELSE ?>/adduser<? ENDIF ?>" method="post">
	<div class="section">
		<input type="hidden" name="submitted" value="1" />

		<div class="sectiontitle">Authentication</div>
		<div class="sectionbg">
			<div class="sectionbody">
				<div class="subsection">
					<div class="inputlabel">Username:</div>
					<div>
						<? IF Edit ?>
						<input type="hidden" name="user" value="<? VAR Username ESC=HTML ?>" />
						<input type="text" name="newuser" value="<? VAR Username ESC=HTML ?>" size="32" maxlength="12" disabled="disabled" />
						<? ELSE ?>
						<input type="text" name="user" value="<? VAR Username ESC=HTML ?>" size="32" maxlength="12" />
						<? ENDIF ?>
					</div>

					<div class="inputlabel">Password:</div>
					<div><input type="password" name="password" size="32" maxlength="16" /></div>
					<div class="inputlabel">Confirm Password:</div>
					<div><input type="password" name="password2" size="32" maxlength="16" /></div>
				</div>
				<div>
					<div class="inputlabel">Allowed IPs:</div>
					<textarea name="allowedips" cols="40" rows="5"><? LOOP AllowedHostLoop ?><? VAR Host ESC=HTML ?>
<? ENDLOOP ?>
</textarea>
					<? IF OwnIP ?>
						<div class="subsection">
							<span style="white-space: nowrap;"><input type="checkbox" name="ownip" id="ownip" value="<? VAR OwnIP ESC=HTML ?>" checked="checked" /><label for="ownip"> <? VAR OwnIP ESC=HTML ?> (your current ip)</label></span>&nbsp;&nbsp;
						</div>
					<? ENDIF ?>
				</div>
				<div style="clear: both;"></div>
			</div>
		</div>
	</div>

	<div class="section">
		<div class="sectiontitle">IRC Information</div>
		<div class="sectionbg">
			<div class="sectionbody">
				<div class="subsection">
					<div class="inputlabel">Nick:</div>
					<div><input type="text" name="nick" value="<? VAR Nick ESC=HTML ?>" size="22" maxlength="128" /></div>
				</div>
				<div class="subsection">
					<div class="inputlabel">AltNick:</div>
					<div><input type="text" name="altnick" value="<? VAR AltNick ESC=HTML ?>" size="22" maxlength="128" /></div>
				</div>
				<div class="subsection">
					<div class="inputlabel">AwaySuffix:</div>
					<div><input type="text" name="awaysuffix" value="<? VAR AwaySuffix ESC=HTML ?>" size="18" maxlength="128" /></div>
				</div>
				<div class="subsection">
					<div class="inputlabel">StatusPrefix:</div>
					<div><input type="text" name="statusprefix" value="<? VAR StatusPrefix ESC=HTML ?>" size="16" maxlength="5" /></div>
				</div>
				<div style="clear: both;"></div>
				<div class="subsection">
					<div class="inputlabel">Ident:</div>
					<div><input type="text" name="ident" value="<? VAR Ident ESC=HTML ?>" size="22" maxlength="128" /></div>
				</div>
				<div class="subsection">
					<div class="inputlabel">RealName:</div>
					<div><input type="text" name="realname" value="<? VAR RealName ESC=HTML ?>" size="68" maxlength="256" /></div>
				</div>
				<div style="clear: both;"></div>

				<div class="subsection">
			<? IF VHostLoop ?>
					<div class="inputlabel">VHost:</div>
					<select name="vhost">
						<option value="">- Default -</option>
						<? LOOP VHostLoop ?><option value="<? VAR VHost ESC=HTML ?>"<? IF Checked ?> selected="selected"<? ENDIF ?>><? VAR VHost ESC=HTML ?></option><? ENDLOOP ?>
					</select>
			<? ENDIF ?>
				</div>
				<div style="clear: both;"></div>

				<div class="subsection">
					<div class="inputlabel">QuitMsg:</div>
					<div><input type="text" name="quitmsg" value="<? VAR QuitMsg ESC=HTML ?>" size="96" maxlength="256" /></div>
				</div>
				<div style="clear: both;"></div>

				<div class="subsection">
					<div class="inputlabel">Servers:</div>
					<div><textarea name="servers" cols="40" rows="5"><? LOOP ServerLoop ?><? VAR Server ESC=HTML ?>
<? ENDLOOP ?>
</textarea></div>
				</div>
				<div style="clear: both;"></div>
			</div>
		</div>
	</div>

	<div class="section">
		<div class="sectiontitle">Modules</div>
		<div class="sectionbg">
			<div class="sectionbody">
				<table>
					<thead>
					<tr>
						<td>Name</td>
						<td>Arguments</td>
						<td>Description</td>
					</tr>
					</thead>

				<? LOOP ModuleLoop ?>
					<tr class="<? IF __EVEN__ ?>evenrow<? ELSE ?>oddrow<? ENDIF ?>">
						<td>
							<input type="checkbox" name="loadmod" id="lm_<? VAR Name ESC=HTML ?>" value="<? VAR Name ESC=HTML ?>"<? IF Checked ?> checked="checked"<? ENDIF ?><? IF Disabled ?> disabled="disabled"<? ENDIF ?> /><label for="lm_<? VAR Name ESC=HTML ?>"> <? VAR Name ESC=HTML ?></label>
						</td>
						<td>
							<? IF Disabled ?><? VAR Args ESC=HTML ?><? ELSE ?><input type="text" name="modargs_<? VAR Name ESC=HTML ?>" value="<? VAR Args ESC=HTML ?>" /><? ENDIF ?>
						</td>
						<td><? VAR Description ESC=HTML ?></td>
					</tr>
				<? ENDLOOP ?>

				</table>
			</div>
		</div>
	</div>

	<div class="section">
		<div class="sectiontitle">Channels</div>
		<div class="sectionbg">
			<div class="sectionbody">
				<div class="subsection">
					<div class="inputlabel">Default Modes:</div>
					<div><input type="text" name="chanmodes" value="<? VAR DefaultChanModes ESC=HTML ?>" size="32" maxlength="32" /></div>
				</div>
				<div style="clear: both;"></div>

			<? IF Edit ?>
				<table>
					<thead>
					<tr>
						<td>[<a href="/addchan?user=<? VAR Username ESC=URL ?>">Add</a>]</td>
				<? IF ChannelLoop ?>
						<td>Save</td>
						<td>Name</td>
						<td>CurModes</td>
						<td>DefModes</td>
						<td>BufferCount</td>
						<td>Options</td>
				<? ELSE ?>
						<td>&nbsp;&nbsp;&lt;- Add a channel (opens in same page)&nbsp;&nbsp;</td>
				<? ENDIF ?>
					</tr>
					</thead>

			<? LOOP ChannelLoop ?>
					<tr class="<? IF __EVEN__ ?>evenrow<? ELSE ?>oddrow<? ENDIF ?>">
						<td>
							<input type="hidden" name="channel" value="<? VAR Name ESC=HTML ?>" />
							[<a href="/editchan?user=<? VAR Username ESC=URL ?>&amp;name=<? VAR Name ESC=URL ?>">Edit</a>] [<a href="/delchan?user=<? VAR Username ESC=URL ?>&amp;name=<? VAR Name ESC=URL ?>">Del</a>]
						</td>
						<td><input type="checkbox" name="save_<? VAR Name ESC=HTML ?>"<? IF InConfig ?> checked="checked"<? ENDIF ?> /></td>
						<td><? VAR Name ESC=HTML ?></td>
						<td><? VAR CurModes ESC=HTML ?></td>
						<td><? VAR DefModes ESC=HTML ?></td>
						<td><? VAR BufferCount ESC=HTML ?></td>
						<td><? VAR Options ESC=HTML ?></td>
					</tr>
			<? ENDLOOP ?>
				</table>
			<? ENDIF ?>
			</div>
		</div>
	</div>

	<div class="section">
		<div class="sectiontitle">ZNC Behavior</div>
		<div class="sectionbg">
			<div class="sectionbody">
				<div class="subsection">
					<div class="inputlabel">Playback Buffer Size:</div>
					<div><input type="text" name="bufsize" value="<? VAR BufferCount ESC=HTML ?>" size="32" maxlength="9" /></div>
				</div>
				<div style="clear: both;"></div>

				<div style="margin-bottom: 10px;">
					<div class="inputlabel">Options:</div>
					<? LOOP OptionLoop ?>
					<span style="white-space: nowrap;"><input type="checkbox" name="<? VAR Name ESC=HTML?>" id="opt_<? VAR Name ESC=HTML ?>" value="1"<? IF Checked ?> checked="checked"<? ENDIF ?><? IF Disabled ?> disabled="disabled"<? ENDIF ?> /><label for="opt_<? VAR Name ESC=HTML ?>"><? VAR DisplayName ESC=HTML ?></label></span>&nbsp;&nbsp;
					<? ENDLOOP ?>
				</div>

				<div class="subsection">
					<div class="inputlabel">CTCP Replies:</div>
					<div><textarea name="ctcpreplies" cols="40" rows="5"><? LOOP CTCPLoop ?><? VAR CTCP ESC=HTML ?>
<? ENDLOOP ?>
</textarea></div>
				</div>
				<div style="clear: both;"></div>
			</div>
		</div>
	</div>

	<div>
		<input type="submit" value="Submit" />
	</div>
</form>

<? INC Footer.tmpl ?>