Ignore:
Timestamp:
01/17/10 19:21:11 (13 years ago)
Author:
alno
Message:

WebIf:

  • Feature "disabled" added for accounts. The Parameter can be set in webinterface and/or in oscam.user. Syntax "disabled=0|1". If parameter is set to 1 the user do not get ecm and in log you see "disabled". A value of 0 gives access back to the user.
  • The user setting table in Webif got a new additional TR Style "disabled"
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/monitor-improvement/oscam.c

    r1256 r1269  
    334334        client[i].autoau  = account->autoau;
    335335        client[i].expirationdate = account->expirationdate;
     336        client[i].disabled = account->disabled;
    336337        client[i].tosleep = (60*account->tosleep);
    337338        client[i].monlvl  = account->monlvl;
     
    15311532  static char *stxt[]={"found", "cache1", "cache2", "emu",
    15321533                       "not found", "timeout", "sleeping",
    1533                        "fake", "invalid", "corrupt", "no card", "expdate"};
     1534                       "fake", "invalid", "corrupt", "no card", "expdate", "disabled"};
    15341535  static char *stxtEx[]={"", "group", "caid", "ident", "class", "chid", "queue", "peer"};
    15351536  static char *stxtWh[]={"", "user ", "reader ", "server ", "lserver "};
     
    18151816    if(client[cs_idx].expirationdate && client[cs_idx].expirationdate<client[cs_idx].lastecm)
    18161817      er->rc=11; //expired
     1818    if(client[cs_idx].disabled != 0)
     1819        er->rc=12; //disabled
    18171820    if ((client[cs_idx].tosleep) &&
    18181821        (now-client[cs_idx].lastswitch>client[cs_idx].tosleep))
Note: See TracChangeset for help on using the changeset viewer.