Changeset 3648
- Timestamp:
- 10/21/10 00:52:27 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/oscam-http.c
r3639 r3648 1802 1802 tpl_printf(vars, 0, "CLIENTIP", "%s", cs_inet_ntoa(cl->ip)); 1803 1803 tpl_printf(vars, 0, "CLIENTPORT", "%d", cl->port); 1804 tpl_addVar(vars, 0, "CLIENTPROTO", monitor_get_proto(cl)); 1804 1805 char *ctyp=""; 1806 switch(cl->typ) { 1807 case 's' : ctyp = "server"; 1808 break; 1809 case 'p' : 1810 case 'r' : { 1811 1812 int isphysical = (cl->reader->typ & R_IS_NETWORK)?0:1; 1813 1814 static char *typtxt[] = { "unknown", "mouse", "mouse", "sc8in1", "mp35", "mouse", "internal", "smartreader", "pcsc" }; 1815 if (isphysical) 1816 ctyp = typtxt[cl->reader->typ]; 1817 else 1818 ctyp = cl->reader->ph.desc; 1819 1820 if ((cl->reader->typ == R_NEWCAMD) && (cl->reader->ncd_proto == NCD_524)) 1821 ctyp = "newcamd524"; 1822 else if (cl->reader->client && cl->reader->client->cc && ((struct cc_data *)cl->reader->client->cc)->extended_mode) 1823 ctyp = "cccam ext"; 1824 break; 1825 } 1826 1827 default : ctyp = ph[cl->ctyp].desc; 1828 } 1829 1830 tpl_addVar(vars, 0, "CLIENTPROTO", ctyp); 1805 1831 tpl_printf(vars, 0, "CLIENTLOGINDATE", "%02d.%02d.%02d", lt->tm_mday, lt->tm_mon+1, lt->tm_year%100); 1806 1832 tpl_printf(vars, 0, "CLIENTLOGINTIME", "%02d:%02d:%02d", lt->tm_hour, lt->tm_min, lt->tm_sec);
Note:
See TracChangeset
for help on using the changeset viewer.