Changeset 2949
- Timestamp:
- 08/23/10 08:45:48 (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/module-cccam.c
r2946 r2949 2090 2090 } 2091 2091 2092 /** 2093 * This function checks for hexserial changes on cards. 2094 * We update the share-list if a card has changed 2095 */ 2092 2096 static ulong get_reader_hexserial_crc() 2093 2097 { 2098 if (!client[cs_idx].au) 2099 return 0; 2100 2094 2101 ulong crc = 0; 2095 2102 int r; 2096 2103 for (r = 0; r < CS_MAXREADER; r++) { 2097 crc += crc32(0, reader[r].hexserial, 8); 2104 if (reader[r].enable && !reader[r].deleted && reader[r].cs_idx && 2105 !reader[r].audisabled) 2106 crc += crc32(0, reader[r].hexserial, 8); 2098 2107 } 2099 2108 return crc; … … 2161 2170 buf[10] = hop; 2162 2171 buf[11] = reshare; 2163 if (!reader[r].audisabled )2172 if (!reader[r].audisabled && client[cs_idx].au) 2164 2173 memcpy(buf + 12, reader[r].hexserial, 8); 2165 2174 buf[20] = reader[r].ftab.filts[j].nprids; … … 2221 2230 buf[10] = hop; 2222 2231 buf[11] = reshare; 2223 if (!reader[r].audisabled )2232 if (!reader[r].audisabled && client[cs_idx].au) 2224 2233 memcpy(buf + 12, reader[r].hexserial, 8); 2225 2234 buf[20] = 1; … … 2258 2267 buf[10] = hop; 2259 2268 buf[11] = reshare; 2260 if (!reader[r].audisabled )2269 if (!reader[r].audisabled && client[cs_idx].au) 2261 2270 memcpy(buf + 12, reader[r].hexserial, 8); 2262 2271 buf[20] = reader[r].nprov; -
trunk/oscam.c
r2947 r2949 1626 1626 time(&t); 1627 1627 timeinfo = localtime(&t); 1628 strftime(date, sizeof(date), "% y%m%d", timeinfo);1628 strftime(date, sizeof(date), "%Y%m%d", timeinfo); 1629 1629 sprintf(buf, "%s/%s_I%04X_%s.cwl", cfg->cwlogdir, date, er->srvid, srvname); 1630 1630
Note:
See TracChangeset
for help on using the changeset viewer.