Changeset 4982 for trunk/oscam.c
- Timestamp:
- 04/13/11 03:01:48 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/oscam.c
r4981 r4982 691 691 struct s_client *cl; 692 692 for (cl=first_client->next; cl ; cl=cl->next) 693 if( cl->typ == 'c'&& cl->account ) {693 if( (cl->typ == 'c' || cl->typ == 'm') && cl->account ) { 694 694 for (account = new_accounts; (account) ; account = account->next) 695 695 if (!strcmp(cl->account->usr, account->usr)) 696 696 break; 697 697 698 if (account && cl->pcrc == crc32(0L, MD5((uchar *)account->pwd, strlen(account->pwd), cur_client()->dump), 16)) { 699 cl->account = account; 700 cl->grp = account->grp; 701 cl->aureader_list = account->aureader_list; 702 cl->autoau = account->autoau; 703 cl->expirationdate = account->expirationdate; 704 cl->allowedtimeframe[0] = account->allowedtimeframe[0]; 705 cl->allowedtimeframe[1] = account->allowedtimeframe[1]; 706 cl->ncd_keepalive = account->ncd_keepalive; 707 cl->c35_suppresscmd08 = account->c35_suppresscmd08; 708 cl->tosleep = (60*account->tosleep); 709 cl->c35_sleepsend = account->c35_sleepsend; 710 cl->monlvl = account->monlvl; 711 cl->disabled = account->disabled; 712 cl->fchid = account->fchid; // CHID filters 713 cl->cltab = account->cltab; // Class 714 // newcamd module dosent like ident reloading 715 if(!cl->ncd_server) 716 cl->ftab = account->ftab; // Ident 717 718 cl->sidtabok = account->sidtabok; // services 719 cl->sidtabno = account->sidtabno; // services 720 cl->failban = account->failban; 721 722 memcpy(&cl->ctab, &account->ctab, sizeof(cl->ctab)); 723 memcpy(&cl->ttab, &account->ttab, sizeof(cl->ttab)); 724 725 int i; 726 for(i = 0; i < CS_ECM_RINGBUFFER_MAX; i++) 727 cl->cwlastresptimes[i] = 0; 728 cl->cwlastresptimes_last = 0; 698 if (!account->disabled && (account && cl->pcrc == crc32(0L, MD5((uchar *)account->pwd, strlen(account->pwd), cur_client()->dump), 16))) { 699 cl->account = account; 700 if(cl->typ == 'c'){ 701 cl->grp = account->grp; 702 cl->aureader_list = account->aureader_list; 703 cl->autoau = account->autoau; 704 cl->expirationdate = account->expirationdate; 705 cl->allowedtimeframe[0] = account->allowedtimeframe[0]; 706 cl->allowedtimeframe[1] = account->allowedtimeframe[1]; 707 cl->ncd_keepalive = account->ncd_keepalive; 708 cl->c35_suppresscmd08 = account->c35_suppresscmd08; 709 cl->tosleep = (60*account->tosleep); 710 cl->c35_sleepsend = account->c35_sleepsend; 711 cl->monlvl = account->monlvl; 712 cl->disabled = account->disabled; 713 cl->fchid = account->fchid; // CHID filters 714 cl->cltab = account->cltab; // Class 715 // newcamd module doesn't like ident reloading 716 if(!cl->ncd_server) 717 cl->ftab = account->ftab; // Ident 718 719 cl->sidtabok = account->sidtabok; // services 720 cl->sidtabno = account->sidtabno; // services 721 cl->failban = account->failban; 722 723 memcpy(&cl->ctab, &account->ctab, sizeof(cl->ctab)); 724 memcpy(&cl->ttab, &account->ttab, sizeof(cl->ttab)); 725 726 int i; 727 for(i = 0; i < CS_ECM_RINGBUFFER_MAX; i++) 728 cl->cwlastresptimes[i] = 0; 729 cl->cwlastresptimes_last = 0; 729 730 730 731 #ifdef CS_ANTICASC 731 cl->ac_limit = (account->ac_users * 100 + 80) * cfg.ac_stime; 732 #endif 732 cl->ac_limit = (account->ac_users * 100 + 80) * cfg.ac_stime; 733 #endif 734 } 733 735 } else { 734 736 if (ph[cl->ctyp].type & MOD_CONN_NET) { … … 1343 1345 memset(&client->grp, 0xff, sizeof(uint64)); 1344 1346 //client->grp=0xffffffffffffff; 1347 if (account && account->disabled){ 1348 account = NULL; 1349 } 1345 1350 client->account=first_client->account; 1346 1351 switch((long)account) … … 1369 1374 { 1370 1375 client->dup=0; 1376 if (client->typ=='c' || client->typ=='m') 1377 client->pcrc = crc32(0L, MD5((uchar *)account->pwd, strlen(account->pwd), client->dump), 16); 1371 1378 if (client->typ=='c') 1372 1379 { … … 1393 1400 client->fchid = account->fchid; // CHID filter 1394 1401 client->sidtabok= account->sidtabok; // services 1395 client->sidtabno= account->sidtabno; // services 1396 client->pcrc = crc32(0L, MD5((uchar *)account->pwd, strlen(account->pwd), client->dump), 16); 1402 client->sidtabno= account->sidtabno; // services 1397 1403 memcpy(&client->ttab, &account->ttab, sizeof(client->ttab)); 1398 1404 #ifdef CS_ANTICASC
Note:
See TracChangeset
for help on using the changeset viewer.