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

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

WebIf:

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