WIP removing globals

Signed-off-by: emanuele <emanuele45@gmail.com>
WIP removing globals

Signed-off-by: emanuele <emanuele45@gmail.com>
$smcFunc['db_query'] => $db->query

Signed-off-by: emanuele <emanuele45@gmail.com>
$smcFunc['db_num_rows'] => $db->num_rows

Signed-off-by: emanuele <emanuele45@gmail.com>
$smcFunc['db_free_result'] => $db->free_result

Signed-off-by: emanuele <emanuele45@gmail.com>
$smcFunc['db_insert_id'] => $db->insert_id

Signed-off-by: emanuele <emanuele45@gmail.com>
$smcFunc['db_fetch_row'] => $db->fetch_row

Signed-off-by: emanuele <emanuele45@gmail.com>
$smcFunc['db_fetch_assoc'] => $db->fetch_assoc

Signed-off-by: emanuele <emanuele45@gmail.com>
$smcFunc['db_insert'] => $db->insert

Signed-off-by: emanuele <emanuele45@gmail.com>
$smcFunc['db_affected_rows'] => $db->affected_rows

Signed-off-by: emanuele <emanuele45@gmail.com>
$smcFunc['db_quote'] => $db->quote

Signed-off-by: emanuele <emanuele45@gmail.com>
$smcFunc['db_escape_string'] => $db->escape_string

Signed-off-by: emanuele <emanuele45@gmail.com>
$smcFunc['db_case_sensitive'] => $db->db_case_sensitive

Signed-off-by: emanuele <emanuele45@gmail.com>
$smcFunc['db_unescape_string'] => $db->unescape_string

Signed-off-by: emanuele <emanuele45@gmail.com>
Some make-up

Signed-off-by: emanuele <emanuele45@gmail.com>
Last bits of $smcFunc restored and some $db removed

Signed-off-by: emanuele <emanuele45@gmail.com>
Merge pull request #435 from emanuele45/database_snr

Database search and replace!