'; $source='Native
'.$form.'
'; foreach(['/index.php','/open.php','/tickets.php','/view.php','/login.php','/alpha-signup.php','/appeal.php','/scp/tickets.php','/scp/settings.php','/scp/login.php'] as $path){ $out=dune_support_workspace($source,$path); check(str_contains($out,$form),'Native form changed: '.$path); check(substr_count($out,'
PJAX fragment','/scp/tickets.php')==='
PJAX fragment
','PJAX fragment rewritten'); check(dune_support_workspace('{"error":"private"}','/ajax.php')==='{"error":"private"}','JSON changed'); check(str_contains(dune_support_workspace($source,'/appeal.php'),'department-ban-appeals-150.png'),'Appeal artwork missing'); check(str_contains(dune_support_workspace($source,'/alpha-signup.php'),'news-community.webp'),'Alpha artwork missing'); check(str_contains(dune_support_workspace(str_replace(' class="native"','',$source),'/index.php'),'class="dune-support-workspace dune-support-client"'),'Unclassed body failed'); echo "$checks presentation checks passed; forms, CSRF, attachments, native classes, PJAX and JSON preserved.\n";