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

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

WebIf:

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