[Snyk] Sanitize and bind "common/common-Func" queries (#11256)
[Snyk] Sanitize and bind "common/common-Func" queries (#11256)

* Sanitize and bind "common/common-Func" queries

* apply requested changed and remove all unsed function

* Apply requested changes

* fix error : Expected 1 newline at end of file; 0 found trigged by centreon-bot

* queries sanitized

still i need to check for id's type in mariaDb

* all queries in common-func are sanitized , needs a final check for primary key type

* Fixing centreon-bot warnings in pr and sanitized extra queries

checked the type of id's in database

* fix centreon-bot reviews

* fix review

* fix unresolved conversations

* centreon-bot spaces found fix

* optimize querry

* restore deleted functions

isNotEmptyAfterStringSanitize($test).
function slash($elem = null)

* remove :field from querry

* move query outside the while loopÃ

* fix tamaz's suggestionsÃ

* Update www/include/common/common-Func.php

* Apply suggestions from code review

Co-authored-by: Ayoub TAGHZOUT <15907133c97b74cddb5a0cd1ad43dc2dd46f9649@goandev.net>
Co-authored-by: taghzout <88da8bfa4a317f05231fc1df2b359a8a4ed4824c@gmail.com>
Co-authored-by: elmahdiabbassi <33d71cf5c68781b3b8478c9bc828da5e4e991cad@centreon.com>
Co-authored-by: Kevin Duret <13e1841ece2c34908d3f0ecef478e845bd3fefe5@centreon.com>
centreon/centreon,centreon/centreon,centreon/centreon,centreon/centreon,centreon/centreon,centreon/centreon,centreon/centreon