Changeset 4916
- Timestamp:
- 04/04/11 20:40:40 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/oscam-http.c
r4915 r4916 1760 1760 if ((strcmp(proto,"newcamd") == 0) && (latestclient->typ == 'c')) 1761 1761 tpl_printf(vars, TPLADDONCE, "CLIENTPROTO","%s (%s)", proto, get_ncd_client_name(latestclient->ncd_client_id)); 1762 else if (( (strcmp(proto,"cccam") == 0) || (strcmp(proto,"cccam ext") == 0))) {1762 else if ((strncmp(proto,"cccam", 5) == 0)) { 1763 1763 struct cc_data *cc = latestclient->cc; 1764 1764 if(cc && cc->remote_version && cc->remote_build) { … … 2249 2249 if ((strcmp(proto,"newcamd") == 0) && (cl->typ == 'c')) 2250 2250 tpl_printf(vars, TPLADD, "CLIENTPROTO","%s (%s)", proto, get_ncd_client_name(cl->ncd_client_id)); 2251 else if (( (strcmp(proto,"cccam") == 0) || (strcmp(proto,"cccam ext") == 0))) {2251 else if ((strncmp(proto,"cccam", 5) == 0)) { 2252 2252 struct cc_data *cc = cl->cc; 2253 2253 if(cc && cc->remote_version && cc->remote_build) { … … 2390 2390 } 2391 2391 tpl_addVar(vars, TPLADD, "CLIENTCON", txt); 2392 if((cl->typ == 'r' || cl->typ == 'p') && strncmp(proto,"cccam", 5) == 0){ 2393 struct cc_data *rcc = cl->cc; 2394 if(cl->cc){ 2395 LLIST *cards = rcc->cards; 2396 if (cards) { 2397 int cnt = ll_count(cards); 2398 if(cnt == 1) tpl_addVar(vars, TPLAPPEND, "CLIENTCON", " (1 card)"); 2399 else if(cnt > 1) tpl_printf(vars, TPLAPPEND, "CLIENTCON", " (%d cards)", cnt); 2400 } 2401 } 2402 } 2392 2403 } 2393 2404 }
Note:
See TracChangeset
for help on using the changeset viewer.