classic-ui: Added "Select All" checkbox to cmd.cgi host/service list #2697

refs: #2697

* Added "Select All" checkbox
* Added title to checkboxes (active / passive)
classic-ui: Added JSON parser for testing #2997

refs: #2997

Now some test need to be written.
generate new docs once (utf8)
draft of new docs style, requires special procedure from git submodule

1. get the special docbook revision
cd docbook ; git fetch --all ; git checkout mfriedrich/style

2. generate new makefiles
./configure ...

3. create new docs
make create-docs

3. install it like normal
make install-html
idoutils: replace insert on duplicate foo with update/insert strategy

mysql sucks. rot in hell.

refs #3008
idoutils: explicitely set 0 time values to NULL as from_unixtime only supports that

refs #3008
idoutils: fix faulty timestamp from #905 on oracle

refs #905
icinga.soec: drop unsupported configure flags #3037

fixes #3037
icinga.spec: fix build with jquery-ui new files #3009 #2576

refs #3009
refs #2576
Merge branch 'test/cgis' into next

Conflicts:
	t/610cgistatus.t

we both fixed the tests.
Merge branch 'next'
classic ui: add passive icon to scheduled checks on cmd.cgi, table header new background #2697

refs #2697
add host_has_been_acknowledged and service_has_been_acknowledged to extinfo.cgi jsonoutput #3000

refs #3000

Signed-off-by: Michael Friedrich <michael.friedrich@gmail.com>
core: add new callback NEBTYPE_CONTACTNOTIFICATIONMETHOD_EXECUTE to allow override of sending notifications #2041

this callback can be overridden just before the call to my_system_r()
happens, so we call it 'execute' (afterwards, we already got 'end',
but preserve 'executeD' for a future callback. though, i guess that
noone will use that one.

hopefully this adds a little benefit to neb authors, if not, it just
solves a long lasting issue for now.

refs #2041
Merge branch 'mfriedrich/core' of git.icinga.org:icinga-core into mfriedrich/core
selinux: import policy files for fc17 from #2921

refs #2921
idoutils: add --with-libdbi-driver-dir to configure, libdbi_driver_dir to ido2db.cfg to pass the driver location instead of NULL by default #2691

we just replace the previous hardcoded NULL value with new variable,
which can optionally be read as config option. configure allows to
set that value too, even if commented out by default.

refs #2691
idoutils: fix sla_downtime_select query and result handle; scheduled downtime merge statement #2780

refs #2780
idoutils: flag clean*_table_on_startup in ido2db.cfg as experimental
idoutils: go on with mysql insert-on-duplicate-key replacement, add safety SELECT before INSERTS (libdbd-mysql seems broken)

 i guess the faulty return of "affected rows" is just plain mysql dbi driver specific.
because in doing so on a mysql shell, it works - everything changed, and affected is
also 1. in doing so with postgresql, it also works.

probably the driver handlers affected and matched differently within the driver layer
itsself. on debian wheezy i got

ii  libdbd-mysql 0.8.2-1-4.1+b1

need to recheck on wheezy/sid if the error is consistent.

i don't have time to debug the shitty dbd driver though.

in order to stay safe, and not to lose too much performance (because status UPDATES
happen n-1 of the time, while the initial insert only happens once on initial startup
- since we do not clean any *status tables at all), we'll double check this for sanity.

- run the UPDATE
- check if num_rows_affected turns out to be 0 (for whatever reasons later on)
- if it is really 0, do a SELECT on the unique constraint
- the the select is 0, INSERT a new row

this will move the SELECT (which is another performance killing query) out of the
standard-to-be-executed queries, and adds it as safety check before inserting anything
into the table which would violate the unique constraints.

currently done for

- comments
- commenthistory
- hoststatus
- servicestatus
- programstatus

though there might be more tables and queries affected by that, so we should possibly add
safety calls to each query former known as "insert-on-duplicate-key-update-mysql-foobar".

MySQL, you are teh suxx!

refs #3008