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

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

WebIf:

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