Changeset 4361
- Timestamp:
- 01/07/11 14:44:32 (13 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/module-cccam.c
r4321 r4361 3832 3832 // pipe won't run full, because we are reading from pipe to 3833 3833 // get the ecm request 3834 return !rdr->cc_keepalive; //Not connected? Connect! 3834 if (rdr->cc_keepalive) 3835 return 0; 3835 3836 } 3836 3837 -
trunk/oscam-http.c
r4358 r4361 2093 2093 tpl_printf(vars, 0, "CLIENTPROTO","%s (%s)", proto, get_ncd_client_name(cl->ncd_client_id)); 2094 2094 else if (((strcmp(proto,"cccam") == 0) || (strcmp(proto,"cccam ext") == 0))) { 2095 //else if ((strcmp(proto,"cccam") == 0) || (strcmp(proto,"cccam ext") == 0)) {2096 2095 struct cc_data *cc = cl->cc; 2097 if(cc ) {2096 if(cc && cc->remote_version && cc->remote_build) { 2098 2097 tpl_printf(vars, 0, "CLIENTPROTO", "%s (%s-%s)", proto, cc->remote_version, cc->remote_build); 2099 if( strcmp(proto,"cccam ext") == 0)2098 if(cc->extended_mode) 2100 2099 tpl_addVar(vars, 0, "CLIENTPROTOTITLE", cc->remote_oscam); 2101 2100 else 2102 2101 tpl_addVar(vars, 0, "CLIENTPROTOTITLE", ""); //unset tpl var 2102 } 2103 else 2104 { 2105 tpl_addVar(vars, 0, "CLIENTPROTO", proto); 2106 tpl_addVar(vars, 0, "CLIENTPROTOTITLE", ""); 2103 2107 } 2104 2108 } -
trunk/oscam.c
r4356 r4361 790 790 cl->login=cl->last=time((time_t *)0); 791 791 //increase cwcache 792 struct s_ecm *ecmc ;792 struct s_ecm *ecmc, *ecmn; 793 793 for (ecmc=cwcache; ecmc->next ; ecmc=ecmc->next); //ends on last cwcache entry 794 ecmc->next = malloc(sizeof(struct s_ecm)); 795 if (ecmc->next) 796 memset(ecmc->next, 0, sizeof(struct s_ecm)); 794 ecmn = malloc(sizeof(struct s_ecm)); 795 if (ecmn) { 796 memset(ecmn, 0, sizeof(struct s_ecm)); 797 ecmc->next = ecmn; 798 } 797 799 798 800 //increase ecmcache 799 801 for (ecmc=ecmcache; ecmc->next ; ecmc=ecmc->next); //ends on last ecmcache entry 800 ecmc->next = malloc(sizeof(struct s_ecm)); 801 if (ecmc->next) 802 memset(ecmc->next, 0, sizeof(struct s_ecm)); 802 ecmn = malloc(sizeof(struct s_ecm)); 803 if (ecmn) { 804 memset(ecmn, 0, sizeof(struct s_ecm)); 805 ecmc->next = ecmn; 806 } 803 807 804 808 //Now add new client to the list:
Note:
See TracChangeset
for help on using the changeset viewer.