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

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

WebIf:

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