global $template, $config; function get_legal_notice() { global $config, $phpbb_root_path; require_once($phpbb_root_path.'includes/auth/Axis--Database.php'); $DB = new Database( $config["cwis_db_user"], $config["cwis_db_pass"], $config["cwis_db_database"], $config["cwis_db_server"]); return $DB->Query("SELECT LegalNotice FROM SystemConfiguration", "LegalNotice"); } $template->assign_var('S_CWIS_URL',$config['cwis_url']); $template->assign_var('S_CWIS_LEGAL_NOTICE',get_legal_notice());