global $template, $config; function get_portal_name() { 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 PortalName FROM SystemConfiguration", "PortalName"); } $template->assign_var('S_CWIS_URL',$config['cwis_url']); $template->assign_var('S_CWIS_NAME', get_portal_name());
{META}You are logged in.
Welcome, {S_USERNAME}