Changeset 5341
- Timestamp:
- 05/31/11 21:34:41 (13 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/module-monitor.c
r5309 r5341 244 244 lsec = now - cl->login; 245 245 isec = now - cl->last; 246 usr = cl->account->usr; 247 if ((cl->typ == 'r') || (cl->typ == 'p')) 248 usr = cl->reader->label; 246 usr = username(cl); 249 247 if (cl->dup) 250 248 con = 2; -
trunk/oscam.c
r5309 r5341 350 350 return "NULL"; 351 351 352 if (client->typ == 's' || client->typ == 'h' )352 if (client->typ == 's' || client->typ == 'h' || client->typ == 'a') 353 353 { 354 354 return processUsername?processUsername:"NULL"; … … 360 360 { 361 361 if (acc->usr[0]) 362 return (acc->usr);362 return acc->usr; 363 363 else 364 return ("anonymous");364 return "anonymous"; 365 365 } 366 366 else 367 367 { 368 return("NULL"); 369 } 370 } else { 371 return("NULL"); 372 } 368 return "NULL"; 369 } 370 } else if (client->typ == 'r' || client->typ == 'p'){ 371 struct s_reader *rdr = client->reader; 372 if(rdr) 373 return rdr->label; 374 } 375 return "NULL"; 373 376 } 374 377
Note:
See TracChangeset
for help on using the changeset viewer.