source: branches/monitor-improvement/oscam-http.h@ 1244

Last change on this file since 1244 was 1244, checked in by alno, 11 years ago

WebIF:

  • Templates: separate style added for configuration submenu "configmenu"
File size: 54.4 KB
Line 
1#include "globals.h"
2
3#define SERVER "webserver/1.0"
4#define PROTOCOL "HTTP/1.0"
5#define RFC1123FMT "%a, %d %b %Y %H:%M:%S GMT"
6#define AUTHREALM "OScam"
7#define AUTHNONCEVALIDSECS 15
8#define MAXGETPARAMS 100
9
10#define CSS "\
11body {background-color: grey; font-family: Arial; font-size: 12px;}\n\
12A:link {text-decoration: none; color:#660000}\n\
13A:visited {text-decoration: none; color:#660000}\n\
14A:active {text-decoration: none; color:white}\n\
15A:hover {text-decoration: none; color: red;}\n\
16p {color: white; }\n\
17h2 {color: orange; font-family: Arial; font-size: 14px; line-height: 12px;}\n\
18h4 {color: black; font-family: Arial; font-size: 12px; line-height: 9px; }\n\
19TABLE{background-color:#66CCFF;}\n\
20TD{height:10px; border:1px solid gray; font-family: Arial; font-size: 11px; padding:5px; background-color:#6666FF;}\n\
21TH{height:10px; border:1px solid gray; font-family: Arial; font-size: 12px; padding:5px; background-color:#330033;color:#FFFF00;}\n\
22TR.s TD{background-color:#6666FF;}\n\
23TR.r TD{background-color:orange;}\n\
24TR.p TD{background-color:yellow;}\n\
25TR.c TD{background-color:green;}\n\
26TR.online TD{background-color:#009900;}\n\
27TR.expired TD{background-color:orange;}\n\
28DIV.log{border:1px solid black;background-color: black; font-family:\"Courier New\", monospace ; color:yellow; font-size: 11px; word-wrap:break-word;}\n\
29DIV.sidlist{background-color: #FFFF99; padding:2; text-align:left; font-family:\"Courier New\", monospace ; color:black; font-size: 10px; word-wrap:break-word;}\n\
30TABLE.menu{background-color:black; align:center; font-size: 10px;}\n\
31TABLE.menu TD{border:2px outset lightgrey; background-color:silver; font-color:black; font-family: Arial;}\n\
32TD.menu {border:2px outset lightgrey; background-color:silver; font-color:black; font-family: Arial; font-size:11px;}\n\
33TABLE.configmenu{background-color:black; align:center; font-size: 10px;}\n\
34TABLE.configmenu TD{border:2px outset lightgrey; background-color:silver; font-color:black; font-family: Arial;}\n\
35TD.configmenu {border:2px outset lightgrey; background-color:silver; font-color:black; font-family: Arial; font-size:11px;}\n\
36TABLE.status{background-color:#66CCFF;empty-cells:show;}\n\
37TABLE.config{width:750px;}\n\
38TABLE.invisible TD {border:0px; font-family: Arial; font-size: 12px; padding:5px; background-color:#6666FF;}}\n\
39DIV.message{float:right}"
40
41#define TPLHEADER "\
42<HTML>\n\
43 <HEAD>\n\
44 <TITLE>OSCAM ##CS_VERSION## build ###CS_SVN_VERSION##</TITLE>\n\
45 <link rel=\"stylesheet\" type=\"text/css\" href=\"site.css\">\n\
46 ##REFRESH##\
47 </HEAD>\n\
48 <BODY>\n\
49 <H2>OSCAM ##CS_VERSION## build ###CS_SVN_VERSION##</H2>"
50
51#define TPLFOOTER "\
52 <HR/><H4>OSCAM Webinterface - ##CURDATE## ##CURTIME## | Access from ##CURIP##</H4>\
53 </BODY>\
54</HTML>"
55
56#define TPLREFRESH "\
57<meta http-equiv=\"refresh\" content=\"##REFRESHTIME##\"; URL=/status.html\" />\n"
58
59#define TPLMENU "\
60 <TABLE border=0 class=\"menu\">\n\
61 <TR>\n\
62 <TD CLASS=\"menu\"><A HREF=\"status.html\">STATUS</TD>\n\
63 <TD CLASS=\"menu\"><A HREF=\"config.html\">CONFIGURATION</TD>\n\
64 <TD CLASS=\"menu\"><A HREF=\"readers.html\">READERS</TD>\n\
65 <TD CLASS=\"menu\"><A HREF=\"userconfig.html\">USERS</TD>\n\
66 <TD CLASS=\"menu\"><A HREF=\"services.html\">SERVICES</TD>\n\
67 </TR>\n\
68 </TABLE>"
69
70#define TPLCONFIGMENU "\
71 <BR><BR>\n\
72 <TABLE border=0 class=\"configmenu\">\n\
73 <TR>\n\
74 <TD CLASS=\"configmenu\"><A HREF=\"config.html?part=global\">Global</TD>\n\
75 <TD CLASS=\"configmenu\"><A HREF=\"config.html?part=camd33\">Camd3.3</TD>\n\
76 <TD CLASS=\"configmenu\"><A HREF=\"config.html?part=camd35\">Camd3.5</TD>\n\
77 <TD CLASS=\"configmenu\"><A HREF=\"config.html?part=camd35tcp\">Camd3.5 TCP</TD>\n\
78 <TD CLASS=\"configmenu\"><A HREF=\"config.html?part=newcamd\">Newcamd</TD>\n\
79 <TD CLASS=\"configmenu\"><A HREF=\"config.html?part=radegast\">Radegast</TD>\n\
80 <TD CLASS=\"configmenu\"><A HREF=\"config.html?part=cccam\">Cccam</TD>\n\
81 ##TPLCONFIGMENUGBOX##\
82 ##TPLCONFIGMENUANTICASC##\
83 <TD CLASS=\"configmenu\"><A HREF=\"config.html?part=monitor\">Monitor</TD>\n\
84 <TD CLASS=\"configmenu\"><A HREF=\"config.html?part=serial\">Serial</TD>\n\
85 ##TPLCONFIGMENUDVBAPI##\
86 </TR>\n\
87 </TABLE>"
88
89#ifdef CS_ANTICASC
90#define TPLCONFIGMENUANTICASC "<TD CLASS=\"configmenu\"><A HREF=\"config.html?part=anticasc\">Anticascading</TD>\n"
91#endif
92
93#ifdef HAVE_DVBAPI
94#define TPLCONFIGMENUDVBAPI "<TD CLASS=\"configmenu\"><A HREF=\"config.html?part=dvbapi\">DVB-Api</TD>\n"
95#endif
96
97#ifdef CS_WITH_GBOX
98#define TPLCONFIGMENUGBOX "<TD CLASS=\"configmenu\"><A HREF=\"config.html?part=gbox\">Gbox</TD>\n"
99#endif
100
101#define TPLSTATUS "\
102 ##TPLHEADER##\
103 ##TPLMENU##\n\
104 <BR><BR>\n\
105 <form action=\"status.html\" method=\"get\">\n\
106 <select name=\"hideidle\">\n\
107 <option value=\"0\" ##HIDEIDLECLIENTSSELECTED0##>Show idle clients</option>\n\
108 <option value=\"1\" ##HIDEIDLECLIENTSSELECTED1##>Hide idle clients</option>\n\
109 </select>\n\
110 <input type=\"submit\" value=\"Update\">\n\
111 </form>\n\
112 <TABLE WIDTH=\"100%\" cellspacing=\"0\" class=\"status\">\n\
113 <TR>\n\
114 <TH>PID</TH>\n\
115 <TH>Typ</TH>\n\
116 <TH>ID</TH>\n\
117 <TH>Label</TH>\n\
118 <TH>AU</TH>\n\
119 <TH>Crypted</TH>\n\
120 <TH>Address</TH>\n\
121 <TH>Port</TH>\n\
122 <TH>Protocol</TH>\n\
123 <TH>Login</TH>\n\
124 <TH>Login</TH>\n\
125 <TH>Time</TH>\n\
126 <TH>caid:srvid</TH>\n\
127 <TH>Last Channel</TH>\n\
128 <TH>Idle</TH>\n\
129 <TH>CWOK</TH>\n\
130 <TH>CWNOK</TH>\n\
131 <TH>Status</TH>\n\
132 </TR>\n\
133 ##CLIENTSTATUS##\
134 </TABLE><BR>\n\
135 <DIV class=\"log\">\n\
136 ##LOGHISTORY##\
137 </DIV>\n\
138 ##TPLFOOTER##"
139
140#define TPLCLIENTSTATUSBIT "\
141 <TR class=\"##CLIENTTYPE##\">\n\
142 <TD>##CLIENTPID##</TD>\n\
143 <TD>##CLIENTTYPE##</TD>\n\
144 <TD>##CLIENTCNR##</TD>\n\
145 <TD>##CLIENTUSER##</TD>\n\
146 <TD>##CLIENTCAU##</TD>\n\
147 <TD>##CLIENTCRYPTED##</TD>\n\
148 <TD>##CLIENTIP##</TD>\n\
149 <TD>##CLIENTPORT##</TD>\n\
150 <TD>##CLIENTPROTO##</TD>\n\
151 <TD>##CLIENTLOGINDATE##</TD>\n\
152 <TD>##CLIENTLOGINTIME##</TD>\n\
153 <TD>##CLIENTLOGINSECS##</TD>\n\
154 <TD>##CLIENTCAID##:##CLIENTSRVID##</TD>\n\
155 <TD>##CLIENTSRVPROVIDER####CLIENTSRVNAME##</TD>\n\
156 <TD>##CLIENTIDLESECS##</TD>\n\
157 <TD>##CWOK##</TD>\n\
158 <TD>##CWNOK##</TD>\n\
159 <TD>##CLIENTCON##</TD>\n\
160 </TR>\n"
161
162#define TPLUSERCONFIGLIST "\
163 ##TPLHEADER##\
164 ##TPLMENU##\n\
165 ##MESSAGE##\
166 <BR><BR>\
167 <TABLE cellspacing=\"0\" cellpadding=\"10\">\n\
168 <TR>\n\
169 <TH>Label</TH>\n\
170 <TH>Status</TH>\n\
171 <TH>Last Channel</TH>\n\
172 <TH>Idle</TH>\n\
173 <TH colspan=\"2\" align=\"center\">Action</TH>\n\
174 </TR>\n\
175 ##USERCONFIGS##\
176 <TR>\n\
177 <FORM action=\"user_edit.html\" method=\"get\">\n\
178 <TD>New User:</TD>\n\
179 <TD colspan=\"2\"><input name=\"user\" type=\"text\"></TD>\n\
180 <TD colspan=\"3\" align=\"center\"><input type=\"submit\" value=\"Add User\"></TD>\n\
181 </FORM>\n\
182 <TR>\n\
183 </TABLE>\n\
184 ##TPLFOOTER##"
185
186#define TPLUSERCONFIGLISTBIT "\
187 <TR class=\"##CLASSNAME##\">\n\
188 <TD>##USER##</TD>\n\
189 <TD>##STATUS####EXPIRED##</TD>\n\
190 <TD>##LASTCHANNEL##</TD>\n\
191 <TD>##IDLESECS##</TD>\n\
192 <TD><A HREF=\"user_edit.html?user=##USERENC##\">Edit Settings</A></TD>\n\
193 <TD><A HREF=\"userconfig.html?user=##USERENC##&action=delete\">Delete User</A></TD>\n\
194 </TR>\n"
195
196#define TPLUSEREDIT "\
197##TPLHEADER##\
198##TPLMENU##\n\
199<DIV CLASS=\"message\">##MESSAGE##</DIV>\
200<BR><BR>\n\
201 <form action=\"user_edit.html\" method=\"get\">\n\
202 <input name=\"user\" type=\"hidden\" value=\"##USERNAME##\">\n\
203 <TABLE cellspacing=\"0\">\n\
204 <TR>\n\
205 <TH>&nbsp;</TH>\n\
206 <TH>Edit User ##USERNAME##</TH>\n\
207 <TR>\n\
208 <TD>Password:</TD>\n\
209 <TD><input name=\"pwd\" type=\"text\" size=\"30\" maxlength=\"30\" value=\"##PASSWORD##\"></TD>\n\
210 </TR>\n\
211 <TR>\n\
212 <TD>Exp. Date:</TD>\n\
213 <TD><input name=\"expdate\" type=\"text\" size=\"30\" maxlength=\"30\" value=\"##EXPDATE##\"></TD>\n\
214 </TR>\n\
215 <TR>\n\
216 <TD>Group:</TD>\n\
217 <TD><input name=\"group\" type=\"text\" size=\"10\" maxlength=\"10\" value=\"##GROUPS##\"></TD>\n\
218 </TR>\n\
219 <TR>\n\
220 <TD>Hostname:</TD>\n\
221 <TD><input name=\"hostname\" type=\"text\" size=\"30\" maxlength=\"30\" value=\"##DYNDNS##\"></TD>\n\
222 </TR>\n\
223 <TR>\n\
224 <TD>Uniq:</TD>\n\
225 <TD><select name=\"uniq\">\n\
226 <option value=\"0\" ##UNIQSELECTED0##>0 - none</option>\n\
227 <option value=\"1\" ##UNIQSELECTED1##>1 - strict first</option>\n\
228 <option value=\"2\" ##UNIQSELECTED2##>2 - per IP</option>\n\
229 <option value=\"3\" ##UNIQSELECTED3##>3 - strict last</option>\n\
230 </SELECT></TD>\n\
231 </TR>\n\
232 <TR>\n\
233 <TD>Sleep:</TD>\n\
234 <TD><input name=\"sleep\" type=\"text\" size=\"4\" maxlength=\"4\" value=\"##SLEEP##\"></TD>\n\
235 </TR>\n\
236 <TR>\n\
237 <TD>Monlevel:</TD>\n\
238 <TD><select name=\"monlevel\">\n\
239 <option value=\"0\" ##MONSELECTED0##>0 - no access to monitor</option>\n\
240 <option value=\"1\" ##MONSELECTED1##>1 - only server and own procs</option>\n\
241 <option value=\"2\" ##MONSELECTED2##>2 - all procs, but viewing only, default</option>\n\
242 <option value=\"3\" ##MONSELECTED3##>3 - all procs, reload of oscam.user possible</option>\n\
243 <option value=\"4\" ##MONSELECTED4##>4 - complete access</option>\n\
244 </select></TD>\n\
245 </TR>\n\
246 <TR>\n\
247 <TD>AU:</TD>\n\
248 <TD><select name=\"au\">\n\
249 <option value=\" \" ##AUSELECTED##>none</option>\n\
250 <option value=\"1\" ##AUTOAUSELECTED##>auto</option>\n\
251 ##RDROPTION##\
252 </select></TD>\n\
253 </TR>\n\
254 <TR>\n\
255 <TD>Services:</TD>\n\
256 <TD>\n\
257 <TABLE cellspacing=\"0\" class=\"invisible\">##SIDS##\
258 </TD>\n\
259 </TR>\n\
260 </TABLE>\n\
261 <TR>\n\
262 <TD>CAID:</TD>\n\
263 <TD><input name=\"caid\" type=\"text\" size=\"50\" maxlength=\"50\" value=\"##CAIDS##\"></TD>\n\
264 </TR>\n\
265 <TR>\n\
266 <TD>Ident:</TD>\n\
267 <TD><input name=\"ident\" type=\"text\" size=\"50\" maxlength=\"50\" value=\"##IDENTS##\"></TD>\n\
268 </TR>\n\
269 <TR>\n\
270 <TD>Betatunnel:</TD>\n\
271 <TD><input name=\"betatunnel\" type=\"text\" size=\"50\" maxlength=\"50\" value=\"##BETATUNNELS##\"></TD>\n\
272 </TR>\n\
273 ##TPLUSEREDITANTICASC##\
274 <TR>\n\
275 <TD align=\"center\"><input type=\"submit\" name=\"action\" value=\"Save\" title=\"Save settings and reload users\"></TD>\n\
276 <TD align=\"center\"><input name=\"newuser\" type=\"text\" size=\"20\" maxlength=\"20\" title=\"Enter new username if you want to clone this user\">&nbsp;&nbsp;&nbsp;<input type=\"submit\" name=\"action\" value=\"Save As\" title=\"Save as new user and reload users\"></TD>\n\
277 </TR>\n\
278 </TABLE>\n\
279</form>\n\
280##TPLFOOTER##"
281
282#define TPLUSEREDITRDRSELECTED "\t<option value=\"##READERNAME##\" ##SELECTED##>##READERNAME##</option>"
283
284#define TPLUSEREDITSIDOKBIT "\
285 <TR>\n\
286 <TD><INPUT NAME=\"services\" TYPE=\"CHECKBOX\" VALUE=\"##SIDLABEL##\" ##CHECKED##> ##SIDLABEL##</TD>\n"
287
288#define TPLUSEREDITSIDNOBIT "\
289 <TD><INPUT NAME=\"services\" TYPE=\"CHECKBOX\" VALUE=\"!##SIDLABEL##\" ##CHECKED##> !##SIDLABEL##</TD>\n\
290 </TR>\n"
291
292#ifdef CS_ANTICASC
293# define TPLUSEREDITANTICASC "\
294 <TR>\n\
295 <TD>Anticascading numusers:</TD>\n\
296 <TD><input name=\"numusers\" type=\"text\" size=\"3\" maxlength=\"3\" value=\"##AC_USERS##\"></TD>\n\
297 </TR>\n\
298 <TR>\n\
299 <TD>Anticascading penalty:</TD>\n\
300 <TD><input name=\"penalty\" type=\"text\" size=\"3\" maxlength=\"3\" value=\"##AC_PENALTY##\"></TD>\n\
301 </TR>\n"
302#endif
303
304#define TPLSIDTAB "\
305 ##TPLHEADER##\
306 ##TPLMENU##\n\
307 <BR><BR><DIV class=\"log\">\n\
308 ##SIDTABS##\
309 </DIV>\n\
310 ##TPLFOOTER##"
311
312#define TPLSIDTABBIT "\
313label=##LABEL##<BR>\n\
314caid(##CAIDNUM##)=##CAIDS##<BR>\n\
315provider(##PROVIDNUM##)=##PROVIDS##<BR>\n\
316services(##SRVIDNUM##)=##SRVIDS##<BR><BR>\n"
317
318#define TPLREADERS "\
319##TPLHEADER##\
320##TPLMENU##\n\
321<BR><BR>\n\
322 <TABLE cellspacing=\"0\" cellpadding=\"10\">\n\
323 <TR>\n\
324 <TH>Reader</TH>\n\
325 <TH>Protocol</TH>\n\
326 <TH>Action</TH>\n\
327 </TR>\n\
328 ##READERLIST##\
329 </TABLE>\n\
330##TPLFOOTER##"
331
332#define TPLREADERSBIT "\
333 <TR>\n\
334 <TD>##READERNAME##</TD>\n\
335 <TD>##CTYP##</TD>\n\
336 <TD><A HREF=\"readerconfig.html?reader=##READERNAMEENC##\">Edit Settings</A> &nbsp;|&nbsp; <A HREF=\"entitlements.html?reader=##READERNAME##\">Show Entitlements</A></TD>\n\
337 </TR>\n"
338
339#define TPLENTITLEMENTS "\
340##TPLHEADER##\
341##TPLMENU##\n\
342<BR><BR>Entitlements for ##READERNAME##<BR><BR>\n\n\
343<DIV class=\"log\">\n\
344 ##LOGHISTORY##\
345</DIV>\n\
346##TPLFOOTER##"
347
348#define TPLREADERCONFIG "\
349##TPLHEADER##\
350##TPLMENU##\n\
351<BR><BR>\n\
352##MESSAGE##\
353 <form action=\"readerconfig.html?action=execute\" method=\"get\"><input name=\"reader\" type=\"hidden\" value=\"##READERNAME##\">\n\
354 <TABLE cellspacing=\"0\">\n\
355 <TR><TH>&nbsp;</TH><TH>Edit Reader ##READERNAME##</TH></TR>\n\
356 ##READERDEPENDINGCONFIG##\
357 <TR><TD colspan=\"2\" align=\"right\"><input type=\"submit\" value=\"OK\">\n</TD></TR>\n\
358 </TABLE>\n\
359<BR><BR>Saving not yet implemented - Nothing changes on click<BR><BR>\n\
360##TPLFOOTER##"
361#define TPLSAVETEMPLATES "##TPLHEADER##\
362##TPLMENU##\n\
363<br><b>Saved ##CNT## templates to ##PATH##</b><br>\n\
364##TPLFOOTER##"
365#define TPLREADERCONFIGSIDOKBIT "\
366 <TR>\n\
367 <TD><INPUT NAME=\"services\" TYPE=\"CHECKBOX\" VALUE=\"##SIDLABEL##\" ##CHECKED##> ##SIDLABEL##</TD>\n"
368
369#define TPLREADERCONFIGSIDNOBIT "\
370 <TD><INPUT NAME=\"services\" TYPE=\"CHECKBOX\" VALUE=\"!##SIDLABEL##\" ##CHECKED##> !##SIDLABEL##</TD>\n\
371 </TR>\n"
372
373#define TPLREADERCONFIGMOUSEBIT "\
374 <TR><TD>Device:</TD><TD><input name=\"device\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##DEVICE####R_PORT####L_PORT##\"></TD></TR>\n\
375 <TR><TD>Group:</TD><TD><input name=\"grp\" type=\"text\" size=\"10\" maxlength=\"10\" value=\"##GRP##\"></TD></TR>\n\
376 <TR><TD>Key:</TD><TD><input name=\"key\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##NCD_KEY##\"></TD></TR>\n\
377 <TR><TD>Pincode:</TD><TD><input name=\"pincode\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##PINCODE##\"></TD></TR>\n\
378 <TR><TD>Readnano:</TD><TD><input name=\"readnano\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##EMMFILE##\"></TD></TR>\n\
379 <TR><TD>Services:</TD><TD>\n<TABLE cellspacing=\"0\" class=\"invisible\">##SIDS##</TD>\n</TR>\n</TABLE>\n\
380 <TR><TD>Inactivitytimeout:</TD><TD><input name=\"inactivitytimeout\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##INACTIVITYTIMEOUT##\"></TD></TR>\n\
381 <TR><TD>Reconnecttimeout:</TD><TD><input name=\"reconnecttimeout\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##RECEIVETIMEOUT##\"></TD></TR>\n\
382 <TR><TD>Disableserverfilter:</TD><TD><input name=\"disableserverfilter\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##DISABLESERVERFILTER##\"></TD></TR>\n\
383 <TR><TD>Fallback:</TD><TD><input name=\"fallback\" type=\"text\" size=\"3\" maxlength=\"3\" value=\"##FALLBACK##\"></TD></TR>\n\
384 <TR><TD>CAID:</TD><TD><input name=\"caid\" type=\"text\" size=\"50\" maxlength=\"50\" value=\"##CAIDS##\"></TD></TR>\n\
385 <TR><TD>Boxid:</TD><TD><input name=\"boxid\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##BOXID##\"></TD></TR>\n\
386 <TR><TD>Detect:</TD><TD><input name=\"detect\" type=\"text\" size=\"5\" maxlength=\"5\" value=\"##DETECT##\"></TD></TR>\n\
387 <TR><TD>Mhz:</TD><TD><input name=\"mhz\" type=\"text\" size=\"5\" maxlength=\"5\" value=\"##MHZ##\"></TD></TR>\n\
388 <TR><TD>Cardmhz:</TD><TD><input name=\"cardmhz\" type=\"text\" size=\"5\" maxlength=\"5\" value=\"##CARDMHZ##\"></TD></TR>\n\
389 <TR><TD>Blocknano:</TD><TD><input name=\"blocknano\" type=\"text\" size=\"50\" maxlength=\"50\" value=\"##BLOCKNANO##\"></TD></TR>\n\
390 <TR><TD>Savenano:</TD><TD><input name=\"savenano\" type=\"text\" size=\"50\" maxlength=\"50\" value=\"##SAVENANO##\"></TD></TR>\n"
391#define TPLREADERCONFIGSMARTBIT "\
392 <TR><TD>Device:</TD><TD><input name=\"device\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##DEVICE####R_PORT####L_PORT##\"></TD></TR>\n\
393 <TR><TD>Group:</TD><TD><input name=\"grp\" type=\"text\" size=\"10\" maxlength=\"10\" value=\"##GRP##\"></TD></TR>\n\
394 <TR><TD>Key:</TD><TD><input name=\"key\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##NCD_KEY##\"></TD></TR>\n\
395 <TR><TD>Pincode:</TD><TD><input name=\"pincode\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##PINCODE##\"></TD></TR>\n\
396 <TR><TD>Readnano:</TD><TD><input name=\"readnano\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##EMMFILE##\"></TD></TR>\n\
397 <TR><TD>Services:</TD><TD>\n<TABLE cellspacing=\"0\" class=\"invisible\">##SIDS##</TD>\n</TR>\n</TABLE>\n\
398 <TR><TD>Inactivitytimeout:</TD><TD><input name=\"inactivitytimeout\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##INACTIVITYTIMEOUT##\"></TD></TR>\n\
399 <TR><TD>Reconnecttimeout:</TD><TD><input name=\"reconnecttimeout\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##RECEIVETIMEOUT##\"></TD></TR>\n\
400 <TR><TD>Disableserverfilter:</TD><TD><input name=\"disableserverfilter\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##DISABLESERVERFILTER##\"></TD></TR>\n\
401 <TR><TD>Fallback:</TD><TD><input name=\"fallback\" type=\"text\" size=\"3\" maxlength=\"3\" value=\"##FALLBACK##\"></TD></TR>\n\
402 <TR><TD>CAID:</TD><TD><input name=\"caid\" type=\"text\" size=\"50\" maxlength=\"50\" value=\"##CAIDS##\"></TD></TR>\n\
403 <TR><TD>Boxid:</TD><TD><input name=\"boxid\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##BOXID##\"></TD></TR>\n"
404#define TPLREADERCONFIGINTERNALBIT "\
405 <TR><TD>Device:</TD><TD><input name=\"device\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##DEVICE####R_PORT####L_PORT##\"></TD></TR>\n\
406 <TR><TD>Group:</TD><TD><input name=\"grp\" type=\"text\" size=\"10\" maxlength=\"10\" value=\"##GRP##\"></TD></TR>\n\
407 <TR><TD>Key:</TD><TD><input name=\"key\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##NCD_KEY##\"></TD></TR>\n\
408 <TR><TD>Pincode:</TD><TD><input name=\"pincode\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##PINCODE##\"></TD></TR>\n\
409 <TR><TD>Readnano:</TD><TD><input name=\"readnano\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##EMMFILE##\"></TD></TR>\n\
410 <TR><TD>Services:</TD><TD>\n<TABLE cellspacing=\"0\" class=\"invisible\">##SIDS##</TD>\n</TR>\n</TABLE>\n\
411 <TR><TD>Inactivitytimeout:</TD><TD><input name=\"inactivitytimeout\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##INACTIVITYTIMEOUT##\"></TD></TR>\n\
412 <TR><TD>Reconnecttimeout:</TD><TD><input name=\"reconnecttimeout\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##RECEIVETIMEOUT##\"></TD></TR>\n\
413 <TR><TD>Disableserverfilter:</TD><TD><input name=\"disableserverfilter\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##DISABLESERVERFILTER##\"></TD></TR>\n\
414 <TR><TD>Fallback:</TD><TD><input name=\"fallback\" type=\"text\" size=\"3\" maxlength=\"3\" value=\"##FALLBACK##\"></TD></TR>\n\
415 <TR><TD>CAID:</TD><TD><input name=\"caid\" type=\"text\" size=\"50\" maxlength=\"50\" value=\"##CAIDS##\"></TD></TR>\n\
416 <TR><TD>Boxid:</TD><TD><input name=\"boxid\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##BOXID##\"></TD></TR>\n"
417#define TPLREADERCONFIGSERIALBIT "\
418 <TR><TD>Device:</TD><TD><input name=\"device\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##DEVICE####R_PORT####L_PORT##\"></TD></TR>\n\
419 <TR><TD>Group:</TD><TD><input name=\"grp\" type=\"text\" size=\"10\" maxlength=\"10\" value=\"##GRP##\"></TD></TR>\n\
420 <TR><TD>Key:</TD><TD><input name=\"key\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##NCD_KEY##\"></TD></TR>\n\
421 <TR><TD>Pincode:</TD><TD><input name=\"pincode\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##PINCODE##\"></TD></TR>\n\
422 <TR><TD>Readnano:</TD><TD><input name=\"readnano\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##EMMFILE##\"></TD></TR>\n\
423 <TR><TD>Services:</TD><TD>\n<TABLE cellspacing=\"0\" class=\"invisible\">##SIDS##</TD>\n</TR>\n</TABLE>\n\
424 <TR><TD>Inactivitytimeout:</TD><TD><input name=\"inactivitytimeout\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##INACTIVITYTIMEOUT##\"></TD></TR>\n\
425 <TR><TD>Reconnecttimeout:</TD><TD><input name=\"reconnecttimeout\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##RECEIVETIMEOUT##\"></TD></TR>\n\
426 <TR><TD>Disableserverfilter:</TD><TD><input name=\"disableserverfilter\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##DISABLESERVERFILTER##\"></TD></TR>\n\
427 <TR><TD>Fallback:</TD><TD><input name=\"fallback\" type=\"text\" size=\"3\" maxlength=\"3\" value=\"##FALLBACK##\"></TD></TR>\n\
428 <TR><TD>CAID:</TD><TD><input name=\"caid\" type=\"text\" size=\"50\" maxlength=\"50\" value=\"##CAIDS##\"></TD></TR>\n\
429 <TR><TD>Boxid:</TD><TD><input name=\"boxid\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##BOXID##\"></TD></TR>\n"
430#define TPLREADERCONFIGCAMD35BIT "\
431 <TR><TD>Device:</TD><TD><input name=\"device\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##DEVICE####R_PORT####L_PORT##\"></TD></TR>\n\
432 <TR><TD>Account:</TD><TD><input name=\"account\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##USER##,##PASS##\"></TD></TR>\n\
433 <TR><TD>Group:</TD><TD><input name=\"grp\" type=\"text\" size=\"10\" maxlength=\"10\" value=\"##GRP##\"></TD></TR>\n\
434 <TR><TD>Key:</TD><TD><input name=\"key\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##NCD_KEY##\"></TD></TR>\n\
435 <TR><TD>Pincode:</TD><TD><input name=\"pincode\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##PINCODE##\"></TD></TR>\n\
436 <TR><TD>Readnano:</TD><TD><input name=\"readnano\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##EMMFILE##\"></TD></TR>\n\
437 <TR><TD>Services:</TD><TD>\n<TABLE cellspacing=\"0\" class=\"invisible\">##SIDS##</TD>\n</TR>\n</TABLE>\n\
438 <TR><TD>Inactivitytimeout:</TD><TD><input name=\"inactivitytimeout\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##INACTIVITYTIMEOUT##\"></TD></TR>\n\
439 <TR><TD>Reconnecttimeout:</TD><TD><input name=\"reconnecttimeout\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##RECEIVETIMEOUT##\"></TD></TR>\n\
440 <TR><TD>Disableserverfilter:</TD><TD><input name=\"disableserverfilter\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##DISABLESERVERFILTER##\"></TD></TR>\n\
441 <TR><TD>Fallback:</TD><TD><input name=\"fallback\" type=\"text\" size=\"3\" maxlength=\"3\" value=\"##FALLBACK##\"></TD></TR>\n\
442 <TR><TD>CAID:</TD><TD><input name=\"caid\" type=\"text\" size=\"50\" maxlength=\"50\" value=\"##CAIDS##\"></TD></TR>\n\
443 <TR><TD>Boxid:</TD><TD><input name=\"boxid\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##BOXID##\"></TD></TR>\n"
444#define TPLREADERCONFIGCS378XBIT "\
445 <TR><TD>Device:</TD><TD><input name=\"device\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##DEVICE####R_PORT####L_PORT##\"></TD></TR>\n\
446 <TR><TD>Group:</TD><TD><input name=\"grp\" type=\"text\" size=\"10\" maxlength=\"10\" value=\"##GRP##\"></TD></TR>\n\
447 <TR><TD>Key:</TD><TD><input name=\"key\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##NCD_KEY##\"></TD></TR>\n\
448 <TR><TD>Pincode:</TD><TD><input name=\"pincode\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##PINCODE##\"></TD></TR>\n\
449 <TR><TD>Readnano:</TD><TD><input name=\"readnano\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##EMMFILE##\"></TD></TR>\n\
450 <TR><TD>Services:</TD><TD>\n<TABLE cellspacing=\"0\" class=\"invisible\">##SIDS##</TD>\n</TR>\n</TABLE>\n\
451 <TR><TD>Inactivitytimeout:</TD><TD><input name=\"inactivitytimeout\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##INACTIVITYTIMEOUT##\"></TD></TR>\n\
452 <TR><TD>Reconnecttimeout:</TD><TD><input name=\"reconnecttimeout\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##RECEIVETIMEOUT##\"></TD></TR>\n\
453 <TR><TD>Disableserverfilter:</TD><TD><input name=\"disableserverfilter\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##DISABLESERVERFILTER##\"></TD></TR>\n\
454 <TR><TD>Fallback:</TD><TD><input name=\"fallback\" type=\"text\" size=\"3\" maxlength=\"3\" value=\"##FALLBACK##\"></TD></TR>\n\
455 <TR><TD>CAID:</TD><TD><input name=\"caid\" type=\"text\" size=\"50\" maxlength=\"50\" value=\"##CAIDS##\"></TD></TR>\n\
456 <TR><TD>Boxid:</TD><TD><input name=\"boxid\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##BOXID##\"></TD></TR>\n"
457#define TPLREADERCONFIGRADEGASTBIT "\
458 <TR><TD>Device:</TD><TD><input name=\"device\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##DEVICE####R_PORT####L_PORT##\"></TD></TR>\n\
459 <TR><TD>Group:</TD><TD><input name=\"grp\" type=\"text\" size=\"10\" maxlength=\"10\" value=\"##GRP##\"></TD></TR>\n\
460 <TR><TD>Key:</TD><TD><input name=\"key\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##NCD_KEY##\"></TD></TR>\n\
461 <TR><TD>Pincode:</TD><TD><input name=\"pincode\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##PINCODE##\"></TD></TR>\n\
462 <TR><TD>Readnano:</TD><TD><input name=\"readnano\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##EMMFILE##\"></TD></TR>\n\
463 <TR><TD>Services:</TD><TD>\n<TABLE cellspacing=\"0\" class=\"invisible\">##SIDS##</TD>\n</TR>\n</TABLE>\n\
464 <TR><TD>Inactivitytimeout:</TD><TD><input name=\"inactivitytimeout\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##INACTIVITYTIMEOUT##\"></TD></TR>\n\
465 <TR><TD>Reconnecttimeout:</TD><TD><input name=\"reconnecttimeout\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##RECEIVETIMEOUT##\"></TD></TR>\n\
466 <TR><TD>Disableserverfilter:</TD><TD><input name=\"disableserverfilter\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##DISABLESERVERFILTER##\"></TD></TR>\n\
467 <TR><TD>Fallback:</TD><TD><input name=\"fallback\" type=\"text\" size=\"3\" maxlength=\"3\" value=\"##FALLBACK##\"></TD></TR>\n\
468 <TR><TD>CAID:</TD><TD><input name=\"caid\" type=\"text\" size=\"50\" maxlength=\"50\" value=\"##CAIDS##\"></TD></TR>\n\
469 <TR><TD>Boxid:</TD><TD><input name=\"boxid\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##BOXID##\"></TD></TR>\n"
470#define TPLREADERCONFIGNCD525BIT "\
471 <TR><TD>Device:</TD><TD><input name=\"device\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##DEVICE####R_PORT####L_PORT##\"></TD></TR>\n\
472 <TR><TD>Group:</TD><TD><input name=\"grp\" type=\"text\" size=\"10\" maxlength=\"10\" value=\"##GRP##\"></TD></TR>\n\
473 <TR><TD>Key:</TD><TD><input name=\"key\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##NCD_KEY##\"></TD></TR>\n\
474 <TR><TD>Pincode:</TD><TD><input name=\"pincode\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##PINCODE##\"></TD></TR>\n\
475 <TR><TD>Readnano:</TD><TD><input name=\"readnano\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##EMMFILE##\"></TD></TR>\n\
476 <TR><TD>Services:</TD><TD>\n<TABLE cellspacing=\"0\" class=\"invisible\">##SIDS##</TD>\n</TR>\n</TABLE>\n\
477 <TR><TD>Inactivitytimeout:</TD><TD><input name=\"inactivitytimeout\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##INACTIVITYTIMEOUT##\"></TD></TR>\n\
478 <TR><TD>Reconnecttimeout:</TD><TD><input name=\"reconnecttimeout\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##RECEIVETIMEOUT##\"></TD></TR>\n\
479 <TR><TD>Disableserverfilter:</TD><TD><input name=\"disableserverfilter\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##DISABLESERVERFILTER##\"></TD></TR>\n\
480 <TR><TD>Fallback:</TD><TD><input name=\"fallback\" type=\"text\" size=\"3\" maxlength=\"3\" value=\"##FALLBACK##\"></TD></TR>\n\
481 <TR><TD>CAID:</TD><TD><input name=\"caid\" type=\"text\" size=\"50\" maxlength=\"50\" value=\"##CAIDS##\"></TD></TR>\n\
482 <TR><TD>Boxid:</TD><TD><input name=\"boxid\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##BOXID##\"></TD></TR>\n"
483#define TPLREADERCONFIGNCD524BIT "\
484 <TR><TD>Device:</TD><TD><input name=\"device\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##DEVICE####R_PORT####L_PORT##\"></TD></TR>\n\
485 <TR><TD>Group:</TD><TD><input name=\"grp\" type=\"text\" size=\"10\" maxlength=\"10\" value=\"##GRP##\"></TD></TR>\n\
486 <TR><TD>Key:</TD><TD><input name=\"key\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##NCD_KEY##\"></TD></TR>\n\
487 <TR><TD>Pincode:</TD><TD><input name=\"pincode\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##PINCODE##\"></TD></TR>\n\
488 <TR><TD>Readnano:</TD><TD><input name=\"readnano\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##EMMFILE##\"></TD></TR>\n\
489 <TR><TD>Services:</TD><TD>\n<TABLE cellspacing=\"0\" class=\"invisible\">##SIDS##</TD>\n</TR>\n</TABLE>\n\
490 <TR><TD>Inactivitytimeout:</TD><TD><input name=\"inactivitytimeout\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##INACTIVITYTIMEOUT##\"></TD></TR>\n\
491 <TR><TD>Reconnecttimeout:</TD><TD><input name=\"reconnecttimeout\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##RECEIVETIMEOUT##\"></TD></TR>\n\
492 <TR><TD>Disableserverfilter:</TD><TD><input name=\"disableserverfilter\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##DISABLESERVERFILTER##\"></TD></TR>\n\
493 <TR><TD>Fallback:</TD><TD><input name=\"fallback\" type=\"text\" size=\"3\" maxlength=\"3\" value=\"##FALLBACK##\"></TD></TR>\n\
494 <TR><TD>CAID:</TD><TD><input name=\"caid\" type=\"text\" size=\"50\" maxlength=\"50\" value=\"##CAIDS##\"></TD></TR>\n\
495 <TR><TD>Boxid:</TD><TD><input name=\"boxid\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##BOXID##\"></TD></TR>\n"
496#ifdef CS_WITH_GBOX
497#define TPLREADERCONFIGGBOXBIT "\
498 <TR><TD>Device:</TD><TD><input name=\"device\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##DEVICE####R_PORT####L_PORT##\"></TD></TR>\n\
499 <TR><TD>Group:</TD><TD><input name=\"grp\" type=\"text\" size=\"10\" maxlength=\"10\" value=\"##GRP##\"></TD></TR>\n\
500 <TR><TD>Key:</TD><TD><input name=\"key\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##NCD_KEY##\"></TD></TR>\n\
501 <TR><TD>Pincode:</TD><TD><input name=\"pincode\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##PINCODE##\"></TD></TR>\n\
502 <TR><TD>Readnano:</TD><TD><input name=\"readnano\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##EMMFILE##\"></TD></TR>\n\
503 <TR><TD>Services:</TD><TD>\n<TABLE cellspacing=\"0\" class=\"invisible\">##SIDS##</TD>\n</TR>\n</TABLE>\n\
504 <TR><TD>Inactivitytimeout:</TD><TD><input name=\"inactivitytimeout\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##INACTIVITYTIMEOUT##\"></TD></TR>\n\
505 <TR><TD>Reconnecttimeout:</TD><TD><input name=\"reconnecttimeout\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##RECEIVETIMEOUT##\"></TD></TR>\n\
506 <TR><TD>Disableserverfilter:</TD><TD><input name=\"disableserverfilter\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##DISABLESERVERFILTER##\"></TD></TR>\n\
507 <TR><TD>Fallback:</TD><TD><input name=\"fallback\" type=\"text\" size=\"3\" maxlength=\"3\" value=\"##FALLBACK##\"></TD></TR>\n\
508 <TR><TD>CAID:</TD><TD><input name=\"caid\" type=\"text\" size=\"50\" maxlength=\"50\" value=\"##CAIDS##\"></TD></TR>\n\
509 <TR><TD>Boxid:</TD><TD><input name=\"boxid\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##BOXID##\"></TD></TR>\n"
510#endif
511#ifdef HAVE_PCSC
512#define TPLREADERCONFIGPCSCBIT "\
513 <TR><TD>Device:</TD><TD><input name=\"device\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##DEVICE####R_PORT####L_PORT##\"></TD></TR>\n\
514 <TR><TD>Group:</TD><TD><input name=\"grp\" type=\"text\" size=\"10\" maxlength=\"10\" value=\"##GRP##\"></TD></TR>\n\
515 <TR><TD>Key:</TD><TD><input name=\"key\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##NCD_KEY##\"></TD></TR>\n\
516 <TR><TD>Pincode:</TD><TD><input name=\"pincode\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##PINCODE##\"></TD></TR>\n\
517 <TR><TD>Readnano:</TD><TD><input name=\"readnano\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##EMMFILE##\"></TD></TR>\n\
518 <TR><TD>Services:</TD><TD>\n<TABLE cellspacing=\"0\" class=\"invisible\">##SIDS##</TD>\n</TR>\n</TABLE>\n\
519 <TR><TD>Inactivitytimeout:</TD><TD><input name=\"inactivitytimeout\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##INACTIVITYTIMEOUT##\"></TD></TR>\n\
520 <TR><TD>Reconnecttimeout:</TD><TD><input name=\"reconnecttimeout\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##RECEIVETIMEOUT##\"></TD></TR>\n\
521 <TR><TD>Disableserverfilter:</TD><TD><input name=\"disableserverfilter\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##DISABLESERVERFILTER##\"></TD></TR>\n\
522 <TR><TD>Fallback:</TD><TD><input name=\"fallback\" type=\"text\" size=\"3\" maxlength=\"3\" value=\"##FALLBACK##\"></TD></TR>\n\
523 <TR><TD>CAID:</TD><TD><input name=\"caid\" type=\"text\" size=\"50\" maxlength=\"50\" value=\"##CAIDS##\"></TD></TR>\n\
524 <TR><TD>Boxid:</TD><TD><input name=\"boxid\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##BOXID##\"></TD></TR>\n"
525#endif
526#define TPLCONFIGGBOX "\
527##TPLHEADER##\
528##TPLMENU##\n\
529##TPLCONFIGMENU##\n\
530<BR><BR>\n\
531<DIV CLASS=\"message\">##MESSAGE##</DIV>\
532<form action=\"config.html\" method=\"get\">\n\
533 <input name=\"part\" type=\"hidden\" value=\"gbox\">\n\
534 <input name=\"action\" type=\"hidden\" value=\"execute\">\n\
535 <TABLE class=\"config\" cellspacing=\"0\">\n\
536 <TR><TH>&nbsp;</TH><TH>Edit Gbox Config </TH></TR>\n\
537 <TR><TD>Password:</TD><TD><input name=\"password\" type=\"text\" size=\"10\" maxlength=\"8\" value=\"##PASSWORD##\"></TD></TR>\n\
538 <TR><TD>Maxdist:</TD><TD><input name=\"maxdist\" type=\"text\" size=\"5\" maxlength=\"2\" value=\"##MAXDIST##\"></TD></TR>\n\
539 <TR><TD>Ignorelist:</TD><TD><input name=\"ignorelist\" type=\"text\" size=\"50\" maxlength=\"50\" value=\"##IGNORELIST##\"></TD></TR>\n\
540 <TR><TD>Onlineinfos:</TD><TD><input name=\"onlineinfos\" type=\"text\" size=\"50\" maxlength=\"50\" value=\"##ONLINEINFOS##\"></TD></TR>\n\
541 <TR><TD>Cardinfos:</TD><TD><input name=\"cardinfos\" type=\"text\" size=\"50\" maxlength=\"50\" value=\"##CARDINFOS##\"></TD></TR>\n\
542 <TR><TD>Locals:</TD><TD><input name=\"locals\" type=\"text\" size=\"50\" maxlength=\"50\" value=\"##LOCALS##\"></TD></TR>\n\
543 <TR><TD colspan=\"2\" align=\"right\"><input type=\"submit\" value=\"OK\">\n</TD></TR>\n\
544 </TABLE>\n\
545##TPLFOOTER##"
546
547#ifdef CS_ANTICASC
548#define TPLCONFIGANTICASC "\
549##TPLHEADER##\
550##TPLMENU##\n\
551##TPLCONFIGMENU##\n\
552<BR><BR>\n\
553##MESSAGE##\
554<form action=\"config.html\" method=\"get\">\n\
555 <input name=\"part\" type=\"hidden\" value=\"anticasc\">\n\
556 <input name=\"action\" type=\"hidden\" value=\"execute\">\n\
557 <TABLE class=\"config\" cellspacing=\"0\">\n\
558 <TR><TH>&nbsp;</TH><TH>Edit Anticascading Config</TH></TR>\n\
559 <TR><TD>Enabled:</TD><TD><input name=\"enabled\" type=\"checkbox\" value=\"1\" ##CHECKED##>\n\
560 <TR><TD>Numusers:</TD><TD><input name=\"numusers\" type=\"text\" size=\"5\" maxlength=\"5\" value=\"##NUMUSERS##\"></TD></TR>\n\
561 <TR><TD>Sampletime:</TD><TD><input name=\"sampletime\" type=\"text\" size=\"5\" maxlength=\"5\" value=\"##SAMPLETIME##\"></TD></TR>\n\
562 <TR><TD>Samples:</TD><TD><input name=\"samples\" type=\"text\" size=\"5\" maxlength=\"5\" value=\"##SAMPLES##\"></TD></TR>\n\
563 <TR><TD>Penalty:</TD><TD><input name=\"penalty\" type=\"text\" size=\"5\" maxlength=\"5\" value=\"##PENALTY##\"></TD></TR>\n\
564 <TR><TD>AClogfile:</TD><TD><input name=\"aclogfile\" type=\"text\" size=\"50\" maxlength=\"50\" value=\"##ACLOGFILE##\"></TD></TR>\n\
565 <TR><TD>Fakedelay:</TD><TD><input name=\"fakedelay\" type=\"text\" size=\"5\" maxlength=\"5\" value=\"##FAKEDELAY##\"></TD></TR>\n\
566 <TR><TD>Denysamples:</TD><TD><input name=\"denysamples\" type=\"text\" size=\"5\" maxlength=\"5\" value=\"##DENYSAMPLES##\"></TD></TR>\n\
567 <TR><TD colspan=\"2\" align=\"right\"><input type=\"submit\" value=\"OK\">\n</TD></TR>\n\
568 </TABLE>\n\
569</form>\n\
570##TPLFOOTER##"
571#endif
572
573#define TPLCONFIGCCCAM "\
574##TPLHEADER##\
575##TPLMENU##\n\
576##TPLCONFIGMENU##\n\
577<BR><BR>\n\
578##MESSAGE##\
579<form action=\"config.html\" method=\"get\">\n\
580 <input name=\"part\" type=\"hidden\" value=\"cccam\">\n\
581 <input name=\"action\" type=\"hidden\" value=\"execute\">\n\
582 <TABLE class=\"config\" cellspacing=\"0\">\n\
583 <TR><TH>&nbsp;</TH><TH>Edit Cccam Config</TH></TR>\n\
584 <TR><TD colspan=\"2\" align=\"right\"><input type=\"submit\" value=\"OK\">\n</TD></TR>\n\
585 </TABLE>\n\
586</form>\n\
587<BR><BR>Configuration Cccam not yet implemented<BR><BR>\n\
588##TPLFOOTER##"
589
590#define TPLCONFIGMONITOR "\
591##TPLHEADER##\
592##TPLMENU##\n\
593##TPLCONFIGMENU##\n\
594<BR><BR>\n\
595##MESSAGE##\
596<form action=\"config.html\" method=\"get\">\n\
597 <input name=\"part\" type=\"hidden\" value=\"monitor\">\n\
598 <input name=\"action\" type=\"hidden\" value=\"execute\">\n\
599 <input name=\"httphideidleclients\" type=\"hidden\" value=\"0\">\n\
600 <TABLE class=\"config\" cellspacing=\"0\">\n\
601 <TR><TH>&nbsp;</TH><TH>Edit Monitor Config</TH></TR>\n\
602 <TR><TD>Port:</TD><TD><input name=\"port\" type=\"text\" size=\"5\" maxlength=\"5\" value=\"##MONPORT##\"></TD></TR>\n\
603 <TR><TD>Serverip:</TD><TD><input name=\"serverip\" type=\"text\" size=\"30\" maxlength=\"30\" value=\"##SERVERIP##\"></TD></TR>\n\
604 <TR><TD>Nocrypt:</TD><TD><input name=\"nocrypt\" type=\"text\" size=\"100\" maxlength=\"200\" value=\"##NOCRYPT##\"></TD></TR>\n\
605 <TR><TD>Aulow:</TD><TD><input name=\"aulow\" type=\"text\" size=\"5\" maxlength=\"1\" value=\"##AULOW##\"> min</TD></TR>\n\
606 <TR>\n\
607 <TD>Monlevel:</TD>\n\
608 <TD><select name=\"monlevel\">\n\
609 <option value=\"0\" ##MONSELECTED0##>0 - no access to monitor</option>\n\
610 <option value=\"1\" ##MONSELECTED1##>1 - only server and own procs</option>\n\
611 <option value=\"2\" ##MONSELECTED2##>2 - all procs, but viewing only, default</option>\n\
612 <option value=\"3\" ##MONSELECTED3##>3 - all procs, reload of oscam.user possible</option>\n\
613 <option value=\"4\" ##MONSELECTED4##>4 - complete access</option>\n\
614 </select></TD>\n\
615 </TR>\n\
616 <TR><TD>Hideclientto:</TD><TD><input name=\"hideclient_to\" type=\"text\" size=\"5\" maxlength=\"5\" value=\"##HIDECLIENTTO##\"> s</TD></TR>\n\
617 <TR><TD>Httpport:</TD><TD><input name=\"httpport\" type=\"text\" size=\"5\" maxlength=\"5\" value=\"##HTTPPORT##\"></TD></TR>\n\
618 <TR><TD>Httpuser:</TD><TD><input name=\"httpuser\" type=\"text\" size=\"20\" maxlength=\"20\" value=\"##HTTPUSER##\"></TD></TR>\n\
619 <TR><TD>Httppwd:</TD><TD><input name=\"httppwd\" type=\"text\" size=\"20\" maxlength=\"20\" value=\"##HTTPPASSWORD##\"></TD></TR>\n\
620 <TR><TD>Httpcss:</TD><TD><input name=\"httpcss\" type=\"text\" size=\"50\" maxlength=\"50\" value=\"##HTTPCSS##\"></TD></TR>\n\
621 <TR><TD>Httprefresh:</TD><TD><input name=\"httprefresh\" type=\"text\" size=\"5\" maxlength=\"5\" value=\"##HTTPREFRESH##\"> s</TD></TR>\n\
622 <TR><TD>Httptpl:</TD><TD><input name=\"httptpl\" type=\"text\" size=\"50\" maxlength=\"100\" value=\"##HTTPTPL##\"></TD></TR>\n\
623 <TR><TD>HttpHideIdleClients:</TD><TD><input name=\"httphideidleclients\" type=\"checkbox\" value=\"1\" ##CHECKED##>\n\
624 <TR><TD colspan=\"2\" align=\"right\"><input type=\"submit\" value=\"OK\">\n</TD></TR>\n\
625 </TABLE>\n\
626</form>\n\
627##TPLFOOTER##"
628
629#define TPLCONFIGRADEGAST "\
630##TPLHEADER##\
631##TPLMENU##\n\
632##TPLCONFIGMENU##\n\
633<BR><BR>\n\
634##MESSAGE##\
635<form action=\"config.html\" method=\"get\">\n\
636 <input name=\"part\" type=\"hidden\" value=\"radegast\">\n\
637 <input name=\"action\" type=\"hidden\" value=\"execute\">\n\
638 <TABLE class=\"config\" cellspacing=\"0\">\n\
639 <TR><TH>&nbsp;</TH><TH>Edit Radegast Config</TH></TR>\n\
640 <TR><TD>Port:</TD><TD><input name=\"port\" type=\"text\" size=\"5\" maxlength=\"5\" value=\"##PORT##\"></TD></TR>\n\
641 <TR><TD>Serverip:</TD><TD><input name=\"serverip\" type=\"text\" size=\"30\" maxlength=\"30\" value=\"##SERVERIP##\"></TD></TR>\n\
642 <TR><TD>Allowed:</TD><TD><input name=\"allowed\" type=\"text\" size=\"100\" maxlength=\"200\" value=\"##ALLOWED##\"></TD></TR>\n\
643 <TR><TD>User:</TD><TD><input name=\"user\" type=\"text\" size=\"30\" maxlength=\"30\" value=\"##USER##\"></TD></TR>\n\
644 <TR><TD colspan=\"2\" align=\"right\"><input type=\"submit\" value=\"OK\">\n</TD></TR>\n\
645 </TABLE>\n\
646</form>\n\
647##TPLFOOTER##"
648
649#define TPLCONFIGNEWCAMD "\
650##TPLHEADER##\
651##TPLMENU##\n\
652##TPLCONFIGMENU##\n\
653<BR><BR>\n\
654##MESSAGE##\
655<form action=\"config.html\" method=\"get\">\n\
656 <input name=\"part\" type=\"hidden\" value=\"newcamd\">\n\
657 <input name=\"action\" type=\"hidden\" value=\"execute\">\n\
658 <TABLE class=\"config\" cellspacing=\"0\">\n\
659 <TR><TH>&nbsp;</TH><TH>Edit Newcamd Config</TH></TR>\n\
660 <TR><TD>Port:</TD><TD><input name=\"port\" type=\"text\" size=\"100\" maxlength=\"200\" value=\"##PORT##\"></TD></TR>\n\
661 <TR><TD>Serverip:</TD><TD><input name=\"serverip\" type=\"text\" size=\"30\" maxlength=\"30\" value=\"##SERVERIP##\"></TD></TR>\n\
662 <TR><TD>Key:</TD><TD><input name=\"key\" type=\"text\" size=\"35\" maxlength=\"28\" value=\"##KEY##\"></TD></TR>\n\
663 <TR><TD colspan=\"2\" align=\"right\"><input type=\"submit\" value=\"OK\">\n</TD></TR>\n\
664 </TABLE>\n\
665</form>\n\
666##TPLFOOTER##"
667
668#define TPLCONFIGGLOBAL "\
669##TPLHEADER##\
670##TPLMENU##\n\
671##TPLCONFIGMENU##\n\
672<BR><BR>\n\
673##MESSAGE##\
674<form action=\"config.html\" method=\"get\">\n\
675 <input name=\"part\" type=\"hidden\" value=\"global\">\n\
676 <input name=\"action\" type=\"hidden\" value=\"execute\">\n\
677 <TABLE class=\"config\" cellspacing=\"0\">\n\
678 <TR><TH>&nbsp;</TH><TH>Edit Global Config</TH></TR>\n\
679 <TR><TD>Serverip:</TD><TD><input name=\"serverip\" type=\"text\" size=\"30\" maxlength=\"30\" value=\"##SERVERIP##\"></TD></TR>\n\
680 <TR><TD>Logfile:</TD><TD><input name=\"logfile\" type=\"text\" size=\"30\" maxlength=\"30\" value=\"##LOGFILE##\"></TD></TR>\n\
681 <TR><TD>PID File:</TD><TD><input name=\"pidfile\" type=\"text\" size=\"30\" maxlength=\"30\" value=\"##PIDFILE##\"></TD></TR>\n\
682 <TR><TD>Usrfile:</TD><TD><input name=\"usrfile\" type=\"text\" size=\"30\" maxlength=\"30\" value=\"##USERFILE##\"></TD></TR>\n\
683 <TR><TD>CWlogdir:</TD><TD><input name=\"cwlogdir\" type=\"text\" size=\"30\" maxlength=\"30\" value=\"##CWLOGDIR##\"></TD></TR>\n\
684 <TR><TD>Clienttimeout:</TD><TD><input name=\"clienttimeout\" type=\"text\" size=\"5\" maxlength=\"5\" value=\"##CLIENTTIMEOUT##\"> s</TD></TR>\n\
685 <TR><TD>Fallbacktimeout:</TD><TD><input name=\"fallbacktimeout\" type=\"text\" size=\"5\" maxlength=\"5\" value=\"##FALLBACKTIMEOUT##\"> s</TD></TR>\n\
686 <TR><TD>Clientmaxidle:</TD><TD><input name=\"clientmaxidle\" type=\"text\" size=\"5\" maxlength=\"5\" value=\"##CLIENTMAXIDLE##\"> s</TD></TR>\n\
687 <TR><TD>Cachedelay:</TD><TD><input name=\"cachedelay\" type=\"text\" size=\"5\" maxlength=\"5\" value=\"##CACHEDELAY##\"> ms</TD></TR>\n\
688 <TR><TD>Bindwait:</TD><TD><input name=\"bindwait\" type=\"text\" size=\"5\" maxlength=\"5\" value=\"##BINDWAIT##\"> s</TD></TR>\n\
689 <TR><TD>Netprio:</TD><TD><input name=\"netprio\" type=\"text\" size=\"5\" maxlength=\"5\" value=\"##NETPRIO##\"></TD></TR>\n\
690 <TR><TD>Resolvedelay:</TD><TD><input name=\"resolvedelay\" type=\"text\" size=\"5\" maxlength=\"5\" value=\"##RESOLVEDELAY##\"> ms</TD></TR>\n\
691 <TR><TD>Sleep:</TD><TD><input name=\"sleep\" type=\"text\" size=\"5\" maxlength=\"5\" value=\"##SLEEP##\"> min</TD></TR>\n\
692 <TR><TD>Unlockparental:</TD><TD><input name=\"unlockparental\" type=\"text\" size=\"5\" maxlength=\"5\" value=\"##UNLOCKPARENTAL##\"></TD></TR>\n\
693 <TR><TD>Nice:</TD><TD><input name=\"nice\" type=\"text\" size=\"5\" maxlength=\"5\" value=\"##NICE##\"></TD></TR>\n\
694 <TR><TD>Serialreadertimeout:</TD><TD><input name=\"serialreadertimeout\" type=\"text\" size=\"5\" maxlength=\"5\" value=\"##SERIALTIMEOUT##\"> ms</TD></TR>\n\
695 <TR><TD>Maxlogsize:</TD><TD><input name=\"maxlogsize\" type=\"text\" size=\"5\" maxlength=\"5\" value=\"##MAXLOGSIZE##\"></TD></TR>\n\
696 <TR><TD>Showecmdw:</TD><TD><input name=\"showecmdw\" type=\"text\" size=\"5\" maxlength=\"5\" value=\"##SHOWECMDW##\"></TD></TR>\n\
697 <TR><TD>Waitforcards:</TD><TD><input name=\"waitforcards\" type=\"text\" size=\"5\" maxlength=\"5\" value=\"##WAITFORCARDS##\"></TD></TR>\n\
698 <TR><TD>Preferlocalcards:</TD><TD><input name=\"preferlocalcards\" type=\"text\" size=\"5\" maxlength=\"5\" value=\"##PREFERLOCALCARDS##\"></TD></TR>\n\
699 <TR><TD colspan=\"2\" align=\"right\"><input type=\"submit\" value=\"OK\">\n</TD></TR>\n\
700 </TABLE>\n\
701</form>\n\
702<BR><BR>Configuration Global not yet implemented changings havn't any effect<BR><BR>\n\
703##TPLFOOTER##"
704
705#define TPLCONFIGCAMD33 "\
706##TPLHEADER##\
707##TPLMENU##\n\
708##TPLCONFIGMENU##\n\
709<BR><BR>\n\
710##MESSAGE##\
711<form action=\"config.html\" method=\"get\">\n\
712 <input name=\"part\" type=\"hidden\" value=\"camd33\">\n\
713 <input name=\"action\" type=\"hidden\" value=\"execute\">\n\
714 <TABLE class=\"config\" cellspacing=\"0\">\n\
715 <TR><TH>&nbsp;</TH><TH>Edit Camd33 Config</TH></TR>\n\
716 <TR><TD>Port:</TD><TD><input name=\"port\" type=\"text\" size=\"5\" maxlength=\"5\" value=\"##PORT##\"></TD></TR>\n\
717 <TR><TD>Serverip:</TD><TD><input name=\"serverip\" type=\"text\" size=\"30\" maxlength=\"30\" value=\"##SERVERIP##\"></TD></TR>\n\
718 <TR><TD>Key:</TD><TD><input name=\"key\" type=\"text\" size=\"35\" maxlength=\"28\" value=\"##KEY##\"></TD></TR>\n\
719 <TR><TD>Passive:</TD><TD><input name=\"passive\" type=\"text\" size=\"3\" maxlength=\"1\" value=\"##PASSIVE##\"></TD></TR>\n\
720 <TR><TD>Nocrypt:</TD><TD><input name=\"nocrypt\" type=\"text\" size=\"100\" maxlength=\"200\" value=\"##NOCRYPT##\"></TD></TR>\n\
721 <TR><TD colspan=\"2\" align=\"right\"><input type=\"submit\" value=\"OK\">\n</TD></TR>\n\
722 </TABLE>\n\
723</form>\n\
724<BR><BR>Configuration camd33 not yet implemented<BR><BR>\n\
725##TPLFOOTER##"
726
727#define TPLCONFIGCAMD35 "\
728##TPLHEADER##\
729##TPLMENU##\n\
730##TPLCONFIGMENU##\n\
731<BR><BR>\n\
732##MESSAGE##\
733<form action=\"config.html\" method=\"get\">\n\
734 <input name=\"part\" type=\"hidden\" value=\"camd35\">\n\
735 <input name=\"action\" type=\"hidden\" value=\"execute\">\n\
736 <TABLE class=\"config\" cellspacing=\"0\">\n\
737 <TR><TH>&nbsp;</TH><TH>Edit Camd35 Config</TH></TR>\n\
738 <TR><TD>Port:</TD><TD><input name=\"port\" type=\"text\" size=\"5\" maxlength=\"5\" value=\"##PORT##\"></TD></TR>\n\
739 <TR><TD>Serverip:</TD><TD><input name=\"serverip\" type=\"text\" size=\"30\" maxlength=\"30\" value=\"##SERVERIP##\"></TD></TR>\n\
740 <TR><TD colspan=\"2\" align=\"right\"><input type=\"submit\" value=\"OK\">\n</TD></TR>\n\
741 </TABLE>\n\
742</form>\n\
743<BR><BR>Configuration camd35 not yet implemented<BR><BR>\n\
744##TPLFOOTER##"
745
746#define TPLCONFIGCAMD35TCP "\
747##TPLHEADER##\
748##TPLMENU##\n\
749##TPLCONFIGMENU##\n\
750<BR><BR>\n\
751##MESSAGE##\
752<form action=\"config.html\" method=\"get\">\n\
753 <input name=\"part\" type=\"hidden\" value=\"camd35tcp\">\n\
754 <input name=\"action\" type=\"hidden\" value=\"execute\">\n\
755 <TABLE class=\"config\" cellspacing=\"0\">\n\
756 <TR><TH>&nbsp;</TH><TH>Edit Camd35 TCP Config</TH></TR>\n\
757 <TR><TD>Port:</TD><TD><input name=\"port\" type=\"text\" size=\"100\" maxlength=\"200\" value=\"##PORT##\"></TD></TR>\n\
758 <TR><TD>Serverip:</TD><TD><input name=\"serverip\" type=\"text\" size=\"30\" maxlength=\"30\" value=\"##SERVERIP##\"></TD></TR>\n\
759 <TR><TD colspan=\"2\" align=\"right\"><input type=\"submit\" value=\"OK\">\n</TD></TR>\n\
760 </TABLE>\n\
761</form>\n\
762<BR><BR>Configuration camd35 TCP not yet implemented<BR><BR>\n\
763##TPLFOOTER##"
764
765#define TPLCONFIGSERIAL "\
766##TPLHEADER##\
767##TPLMENU##\n\
768##TPLCONFIGMENU##\n\
769<BR><BR>\n\
770##MESSAGE##\
771<form action=\"config.html\" method=\"get\">\n\
772 <input name=\"part\" type=\"hidden\" value=\"serial\">\n\
773 <input name=\"action\" type=\"hidden\" value=\"execute\">\n\
774 <TABLE class=\"config\" cellspacing=\"0\">\n\
775 <TR><TH>&nbsp;</TH><TH>Edit Serial Config</TH></TR>\n\
776 <TR><TD>Device:</TD><TD><input name=\"device\" type=\"text\" size=\"50\" maxlength=\"50\" value=\"##SERIALDEVICE##\"></TD></TR>\n\
777 <TR><TD colspan=\"2\" align=\"right\"><input type=\"submit\" value=\"OK\">\n</TD></TR>\n\
778 </TABLE>\n\
779</form>\n\
780<BR><BR>Configuration Serial not yet implemented<BR><BR>\n\
781##TPLFOOTER##"
782
783#ifdef HAVE_DVBAPI
784#define TPLCONFIGDVBAPI "\
785##TPLHEADER##\
786##TPLMENU##\n\
787##TPLCONFIGMENU##\n\
788<BR><BR>\n\
789##MESSAGE##\
790<form action=\"config.html\" method=\"get\">\n\
791 <input name=\"part\" type=\"hidden\" value=\"dvbapi\">\n\
792 <input name=\"action\" type=\"hidden\" value=\"execute\">\n\
793 <input name=\"enabled\" type=\"hidden\" value=\"0\">\n\
794 <input name=\"au\" type=\"hidden\" value=\"0\">\n\
795 <TABLE class=\"config\" cellspacing=\"0\">\n\
796 <TR><TH>&nbsp;</TH><TH>Edit DVB Api Config</TH></TR>\n\
797 <TR><TD>Enabled:</TD><TD><input name=\"enabled\" type=\"checkbox\" value=\"1\" ##ENABLEDCHECKED##>\n\
798 <TR><TD>AU:</TD><TD><input name=\"au\" type=\"checkbox\" value=\"1\" ##AUCHECKED##>\n\
799 <TR><TD>Boxtype:</TD><TD><input name=\"boxtype\" type=\"text\" size=\"50\" maxlength=\"50\" value=\"##BOXTYPE##\"></TD></TR>\n\
800 <TR><TD>User:</TD><TD><input name=\"user\" type=\"text\" size=\"20\" maxlength=\"20\" value=\"##USER##\"></TD></TR>\n\
801 <TR><TD colspan=\"2\" align=\"right\"><input type=\"submit\" value=\"OK\">\n</TD></TR>\n\
802 </TABLE>\n\
803</form>\n\
804<BR><BR>Configuration DVB Api not yet implemented<BR><BR>\n\
805##TPLFOOTER##"
806#endif
807
808#define TPLSERVICECONFIGLIST "\
809 ##TPLHEADER##\
810 ##TPLMENU##\n\
811 ##MESSAGE##\
812 <BR><BR>\
813 <TABLE cellspacing=\"0\" cellpadding=\"10\">\n\
814 <TR>\n\
815 <TH>Label</TH>\n\
816 <TH colspan=\"3\" align=\"center\">Action</TH>\n\
817 </TR>\n\
818 ##SERVICETABS##\
819 <TR>\n\
820 <FORM action=\"services_edit.html\" method=\"get\"><INPUT TYPE=\"hidden\" NAME=\"action\" VALUE=\"add\">\n\
821 <TD>New Service:</TD>\n\
822 <TD colspan=\"2\"><input name=\"service\" type=\"text\"></TD>\n\
823 <TD align=\"center\"><input type=\"submit\" value=\"Add Service\"></TD>\n\
824 </FORM>\n\
825 <TR>\n\
826 </TABLE>\n\
827 ##TPLFOOTER##"
828
829#define TPLSERVICECONFIGLISTBIT "\
830 <TR>\n\
831 <TD>##LABEL##</TD>\n\
832 <TD width =\"200\" align=\"center\">##SIDLIST##</TD>\n\
833 <TD><A HREF=\"services_edit.html?service=##LABELENC##&action=edit\">Edit Settings</A></TD>\n\
834 <TD><A HREF=\"services.html?service=##LABELENC##&action=delete\">Delete Service</A></TD>\n\
835 </TR>\n"
836
837#define TPLSERVICECONFIGSIDBIT "\
838 <DIV class=\"##SIDCLASS##\">##SID##</DIV>"
839
840#define TPLSERVICEEDIT "\
841##TPLHEADER##\
842##TPLMENU##\n\
843<DIV CLASS=\"message\">##MESSAGE##</DIV>\
844<BR><BR>\n\
845 <form action=\"services_edit.html\" method=\"get\">\n\
846 <input name=\"service\" type=\"hidden\" value=\"##LABELENC##\">\n\
847 <TABLE cellspacing=\"0\">\n\
848 <TR>\n<TH>&nbsp;</TH>\n<TH>Edit Service ##LABEL##</TH>\n</TR>\n\
849 <TR>\n<TD>caid: </TD><TD><input name=\"caid\" type=\"text\" size=\"50\" maxlength=\"50\" value=\"##CAIDS##\"></TD></TR>\
850 <TR>\n<TD>provid: </TD><TD><input name=\"provid\" type=\"text\" size=\"50\" maxlength=\"50\" value=\"##PROVIDS##\"></TD></TR>\
851 <TR>\n<TD>srvid: </TD><TD><textarea name=\"srvid\" cols=\"80\" rows=\"5\">##SRVIDS##</textarea></TD></TR>\
852 <TR>\n<TD>&nbsp;</TD><TD align=\"right\"><input type=\"submit\" name=\"action\" value=\"Save\" title=\"Save service and reload services\"></TD>\n\
853 </TABLE>\n\
854</form>\n\
855##TPLFOOTER##"
856
857enum refreshtypes {REFR_ACCOUNTS, REFR_READERS, REFR_SERVER, REFR_ANTICASC, REFR_SERVICES};
858
859char *tpl[]={
860 "HEADER",
861 "FOOTER",
862 "MENU",
863 "REFRESH",
864 "STATUS",
865 "CLIENTSTATUSBIT",
866 "USERCONFIGLIST",
867 "USERCONFIGLISTBIT",
868 "SIDTAB",
869 "SIDTABBIT",
870 "READERS",
871 "READERSBIT",
872 "ENTITLEMENTS",
873 "READERCONFIG",
874 "READERCONFIGSIDOKBIT",
875 "READERCONFIGSIDNOBIT",
876 "READERCONFIGMOUSEBIT",
877 "READERCONFIGSMARTBIT",
878 "READERCONFIGINTERNALBIT",
879 "READERCONFIGSERIALBIT",
880 "READERCONFIGCAMD35BIT",
881 "READERCONFIGCS378XBIT",
882 "READERCONFIGRADEGASTBIT",
883 "READERCONFIGNCD525BIT",
884 "READERCONFIGNCD524BIT",
885 "USEREDIT",
886 "USEREDITRDRSELECTED",
887 "USEREDITSIDOKBIT",
888 "USEREDITSIDNOBIT",
889 "SAVETEMPLATES",
890 "CONFIGMENU",
891 "CONFIGGBOX",
892 "CONFIGCCCAM",
893 "CONFIGMONITOR",
894 "CONFIGRADEGAST",
895 "CONFIGNEWCAMD",
896 "CONFIGGLOBAL",
897 "CONFIGCAMD33",
898 "CONFIGCAMD35",
899 "CONFIGCAMD35TCP",
900 "CONFIGSERIAL",
901 "SERVICECONFIGLIST",
902 "SERVICECONFIGLISTBIT",
903 "SERVICECONFIGSIDBIT",
904 "SERVICEEDIT"
905#ifdef HAVE_DVBAPI
906 ,"CONFIGDVBAPI"
907 ,"CONFIGMENUDVBAPI"
908#endif
909#ifdef CS_ANTICASC
910 ,"USEREDITANTICASC"
911 ,"CONFIGANTICASC"
912 ,"CONFIGMENUANTICASC"
913#endif
914#ifdef CS_WITH_GBOX
915 ,"CONFIGMENUGBOX"
916 ,"READERCONFIGGBOXBIT"
917#endif
918#ifdef HAVE_PCSC
919 ,"READERCONFIGPCSCBIT"
920#endif
921};
922
923char *tplmap[]={
924 TPLHEADER,
925 TPLFOOTER,
926 TPLMENU,
927 TPLREFRESH,
928 TPLSTATUS,
929 TPLCLIENTSTATUSBIT,
930 TPLUSERCONFIGLIST,
931 TPLUSERCONFIGLISTBIT,
932 TPLSIDTAB,
933 TPLSIDTABBIT,
934 TPLREADERS,
935 TPLREADERSBIT,
936 TPLENTITLEMENTS,
937 TPLREADERCONFIG,
938 TPLREADERCONFIGSIDOKBIT,
939 TPLREADERCONFIGSIDNOBIT,
940 TPLREADERCONFIGMOUSEBIT,
941 TPLREADERCONFIGSMARTBIT,
942 TPLREADERCONFIGINTERNALBIT,
943 TPLREADERCONFIGSERIALBIT,
944 TPLREADERCONFIGCAMD35BIT,
945 TPLREADERCONFIGCS378XBIT,
946 TPLREADERCONFIGRADEGASTBIT,
947 TPLREADERCONFIGNCD525BIT,
948 TPLREADERCONFIGNCD524BIT,
949 TPLUSEREDIT,
950 TPLUSEREDITRDRSELECTED,
951 TPLUSEREDITSIDOKBIT,
952 TPLUSEREDITSIDNOBIT,
953 TPLSAVETEMPLATES,
954 TPLCONFIGMENU,
955 TPLCONFIGGBOX,
956 TPLCONFIGCCCAM,
957 TPLCONFIGMONITOR,
958 TPLCONFIGRADEGAST,
959 TPLCONFIGNEWCAMD,
960 TPLCONFIGGLOBAL,
961 TPLCONFIGCAMD33,
962 TPLCONFIGCAMD35,
963 TPLCONFIGCAMD35TCP,
964 TPLCONFIGSERIAL,
965 TPLSERVICECONFIGLIST,
966 TPLSERVICECONFIGLISTBIT,
967 TPLSERVICECONFIGSIDBIT,
968 TPLSERVICEEDIT
969#ifdef HAVE_DVBAPI
970 ,TPLCONFIGDVBAPI
971 ,TPLCONFIGMENUDVBAPI
972#endif
973#ifdef CS_ANTICASC
974 ,TPLUSEREDITANTICASC
975 ,TPLCONFIGANTICASC
976 ,TPLCONFIGMENUANTICASC
977#endif
978#ifdef CS_WITH_GBOX
979 ,TPLCONFIGMENUGBOX
980 ,TPLREADERCONFIGGBOXBIT
981#endif
982#ifdef HAVE_PCSC
983 ,TPLREADERCONFIGPCSCBIT
984#endif
985};
986
987struct templatevars {
988 int varscnt;
989 int varsalloc;
990 int tmpcnt;
991 int tmpalloc;
992 char **names;
993 char **values;
994 char **tmp;
995};
996
997struct uriparams {
998 int paramcount;
999 char *params[MAXGETPARAMS];
1000 char *values[MAXGETPARAMS];
1001};
1002
1003static char hex2ascii[256][2];
1004static char noncekey[33];
1005
1006
1007char *tpl_addVar(struct templatevars *vars, int append, char *name, char *value);
1008char *tpl_addTmp(struct templatevars *vars, char *value);
1009char *tpl_printf(struct templatevars *vars, int append, char *varname, char *fmtstring, ...);
1010char *tpl_getVar(struct templatevars *vars, char *name);
1011struct templatevars *tpl_create();
1012void tpl_clear(struct templatevars *vars);
1013char *tpl_getUnparsedTpl(const char* name);
1014char *tpl_getTpl(struct templatevars *vars, const char* name);
1015char *parse_auth_value(char *value);
1016void calculate_nonce(char *result, int resultlen);
1017int check_auth(char *authstring, char *method, char *path, char *expectednonce);
1018void send_headers(FILE *f, int status, char *title, char *extra, char *mime);
1019void send_css(FILE *f);
1020char *getParam(struct uriparams *params, char *name);
1021int tpl_saveIncludedTpls(const char *path);
Note: See TracBrowser for help on using the repository browser.