]*name=["\'](?:robots|googlebot)["\'][^>]*>~i','',$html); $html=preg_replace('~]*rel=["\']canonical["\'][^>]*>~i','',$html); $metadata=''; if($public){ $targets=$path==='/service-targets.php'; $canonical='https://support.dunerealms.com/'.($targets?'service-targets.php':''); $title=$targets?'Support service targets | DuneRealms':'DuneRealms Support Center | Account and game help'; $description=$targets?'See DuneRealms service targets for support, forum reports, ban appeals, sales and legal enquiries. Find the right department for your request.':'Get help with your DuneRealms account and Minecraft server experience. Open a support request, review service targets or find the ban appeal process.'; $html=preg_replace('~.*?~si',''.htmlspecialchars($title,ENT_QUOTES,'UTF-8').'',$html,1); $html=preg_replace('~]*name=["\'](?:description|keywords)["\'][^>]*>~i','',$html); $metadata.=''; $metadata.=''; $metadata.=''; $structured=['@context'=>'https://schema.org','@type'=>'WebPage','name'=>$title,'description'=>$description,'url'=>$canonical,'isPartOf'=>['@type'=>'WebSite','name'=>'DuneRealms','url'=>'https://www.dunerealms.com/']]; $metadata.=''; } return str_ireplace('',$metadata.'',$html); }