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

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

WebIf:

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