Changeset 1640


Ignore:
Timestamp:
02/21/10 09:59:47 (11 years ago)
Author:
alno
Message:

WebIf:

  • some things needed for further webIf developement
Location:
branches/monitor-improvement
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/monitor-improvement/globals.h

    r1607 r1640  
    613613  char      *cwlogdir;
    614614  char      *logfile;
     615  int       disablelog;
    615616  int       usrfileflag;
    616617  struct s_auth *account;
  • branches/monitor-improvement/oscam-config.c

    r1619 r1640  
    316316void chk_t_global(char *token, char *value)
    317317{
     318    if (!strcmp(token, "disablelog")) { cfg->disablelog = atoi(value); return; }
    318319  if (!strcmp(token, "serverip")) { cfg->srvip=inet_addr(value); return; }
    319320  if (!strcmp(token, "logfile")) {
  • branches/monitor-improvement/oscam-log.c

    r1491 r1640  
    5050{
    5151#ifdef CS_ANTICASC
    52   if( use_ac_log && fpa )
    53   {
    54     switch_log(cfg->ac_logfile, &fpa, ac_init_log);
    55     fprintf(fpa, "%s", txt);
    56     fflush(fpa);
    57   }
    58   else
     52    if( use_ac_log && fpa ) {
     53        switch_log(cfg->ac_logfile, &fpa, ac_init_log);
     54        fprintf(fpa, "%s", txt);
     55        fflush(fpa);
     56    }
     57    else
    5958#endif
    60   if (fp || use_stdout)
    61   {
    62     if( !use_stdout && !use_syslog) switch_log(cfg->logfile, &fp, cs_init_log);
    63     fprintf(fp, "%s", txt);
    64     fflush(fp);
    65   }
     59        if (fp || use_stdout) {
     60            if( !use_stdout && !use_syslog)
     61                switch_log(cfg->logfile, &fp, cs_init_log);
     62            if (!cfg->disablelog){
     63                fprintf(fp, "%s", txt);
     64                fflush(fp);
     65            }
     66        }
    6667}
    6768
  • branches/monitor-improvement/reader-videoguard2.c

    r1599 r1640  
    699699  int i;
    700700  reader[ridx].init_history_pos = 0; //reset for re-read
     701  memset(reader[ridx].init_history, 0, sizeof(reader[ridx].init_history));
    701702  for(i=0; i<num; i++) {
    702703    ins76[2]=i;
Note: See TracChangeset for help on using the changeset viewer.