'Start a support request','alpha-signup.php'=>'Become an Alpha tester','appeal.php'=>'Request a ban review'][$page]; $description = 'Complete the form below. Your request is private to you and authorised staff.'; if ($page === 'alpha-signup.php') $art = 'news-community.webp'; if ($page === 'appeal.php') $art = 'seals/department-ban-appeals-150.png'; } elseif ($page === 'view.php') { $title = 'Your ticket conversation'; $description = 'Review the conversation, evidence and updates, then reply below.'; } elseif ($page === 'login.php') { $title = $staff ? 'Staff sign in' : 'Access your support requests'; $description = 'Use the existing secure sign-in options below.'; } $esc = static fn(string $s): string => htmlspecialchars($s, ENT_QUOTES, 'UTF-8'); $hero = '
' .'' .'

DUNEREALMS ยท '.($staff?'STAFF OPERATIONS':'COMMUNITY SUPPORT').'

' .'

'.$esc($title).'

'.$esc($description).'

'; // Only the native content root; forms, messages and navigation are byte-preserved. $html = preg_replace_callback('~]*\bid=["\']content["\'][^>]*>~i', static fn($m) => $m[0].$hero, $html, 1); $html = preg_replace_callback('~]*)>~i', static function($m) use ($staff) { $classes = 'dune-support-workspace '.($staff?'dune-support-staff':'dune-support-client'); $attrs = $m[1]; if (preg_match('~\bclass=(["\'])(.*?)\1~i', $attrs)) $attrs = preg_replace('~\bclass=(["\'])(.*?)\1~i', 'class="$2 '.$classes.'"', $attrs, 1); else $attrs .= ' class="'.$classes.'"'; return ''; }, $html, 1); return str_ireplace('', '', $html); }