cacheex-matcher fix


git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@7982 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Update example for 'oscam-server'.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@7983 4b0bc96b-bc66-0410-9d44-ebda105a78c1
WebIf: Fix for setting the correct protocol name when editing readers.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@7984 4b0bc96b-bc66-0410-9d44-ebda105a78c1
WebIf: Small code simplification.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@7985 4b0bc96b-bc66-0410-9d44-ebda105a78c1
DVBApi-MCA: Fix compile warning.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@7986 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Tryfix: Send T14 APDU in 1 instead of 3 write sequential transmit commands
- Fix found by szepter for his setup of smargo and sky n3 cards issues
- Tested by Irata on his sc8in1 and found working
- Not tested on old systems


git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@7987 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Set signal handling up for daemon process at startup (and handle some signals different in it). This should fix #2745.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@7988 4b0bc96b-bc66-0410-9d44-ebda105a78c1
WebIf: Add ecmfmt to global config section.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@7989 4b0bc96b-bc66-0410-9d44-ebda105a78c1
7982 break "replaced pushed ECM" in cacheex, when push come from csp er-ecmd5 invalid
(cacheex) backport for 7941 when check ecmd5 befor csp_hash



git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@7990 4b0bc96b-bc66-0410-9d44-ebda105a78c1
forgot {} in 7990, sorry


git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@7991 4b0bc96b-bc66-0410-9d44-ebda105a78c1
DVBApi-MCA: Other try for compiler fix...

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@7992 4b0bc96b-bc66-0410-9d44-ebda105a78c1
DVBApi-MCA: Final fix.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@7993 4b0bc96b-bc66-0410-9d44-ebda105a78c1
WebIf: Update idle time on disconnect so that is visible for how long the reader is already disconnected. Fixes #2759.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@7994 4b0bc96b-bc66-0410-9d44-ebda105a78c1
size to small when use full ecmfmt format (c&p/i/d/s/l:h)

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@7995 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Monitor: Fix wrong au display. Fixes #2930

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@7996 4b0bc96b-bc66-0410-9d44-ebda105a78c1
- Invertbuffer fills up logs -> moved to loglevel D_IFD (was D_ATR)


git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@7997 4b0bc96b-bc66-0410-9d44-ebda105a78c1
a) oscam.c: fixed bad cache answers when different caids use same ecm packets,
b) oscam-chk.c: re-enabled entitlements check with caid-check only to prevent bad requests,
c) dvbapi: fixed buggy try-counter which caused some strange behavior when reading pmt-tables and trying different ecm-pids,
d) dvbapi: fixed preferlocalcards=1 if user has oscam.dvbapi but no p-value(s) in it,
e) dvbapi: prioritize ecm-pids through matching_reader(...); if user has no oscam.dvbapi and preferlocalcards=0,
f) dvbapi:  enabled channel cache for requestmode=0 and prioritize caids which are in cache,
g) dvbapi: removed some duplicate debug output


git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@7998 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Some small fixes due to Gorgones static code analysis. Correct exit in monitor module so that there is no warning on disconnect anymore. Always show the last watched channel on user site in WebIf if user is idle. Save disconnection time in a separate variable as the "last" variable also holds information about keepalives which is bad for display.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@7999 4b0bc96b-bc66-0410-9d44-ebda105a78c1
don't request a cw from original caid if answer from betatunneled caid already failed (and vice versa)

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8000 4b0bc96b-bc66-0410-9d44-ebda105a78c1
- Reiniting user db did not update ac numusers and penaltys. Fixes #2143.
- Time on channel counted further even if user did not request for some time (for example if he uses other reader or switches to fta). Fixes #2922.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8001 4b0bc96b-bc66-0410-9d44-ebda105a78c1