Potrebbe bastare un
Codice PHP:
global $DB
Altrimenti è meglio che specifichi meglio la struttura del sito