} else {
                    $codename = 'py??' . $row['type'] . '??';
                }
            }
        }
    }
}
$r .= $codename;
foreach ($args as $field => $value) {
    $r .= "\n";
    $r .= $field;
    $r .= '=';
    if (substr($field, 0, 6) == 'solver' || substr($field, 0, 6) == 'answer' || substr($field, 0, 5) == 'right' || substr($field, 0, 5) == 'wrong') {
        $r .= "REDACTED";
    } else {
        $r .= embed_atfile_links(quote_it(htmlspecialchars($value, ENT_NOQUOTES)));
    }
}
$r .= "\n]\n";
$r .= htmlspecialchars($row['content'], ENT_NOQUOTES);
$r .= "\n[/{$codename}]";
$page_src_url = UPAGESOURCE . '?' . http_build_query(array("page" => $row['postid']));
$content = get_post($row['postid'])->post_content;
$found = preg_match("_\\[authorship.*info=\\s*(.*)/(authorship)?\\]_s", $content, $match);
if ($found > 0) {
    $authorshipmsg = 'The <a href="' . $page_src_url . '">containing page source</a> has authorship info: <i>' . $match[1] . '</i>';
} else {
    $authorshipmsg = 'See also the <a href="' . $page_src_url . '">containing page source</a>.';
}
?>
<html>
} else {
    if (array_key_exists("slug", $_GET)) {
        $page = get_page_by_path($_GET["slug"]);
    }
}
if ($page == NULL) {
    echo "Page not found";
    return;
}
$content = $page->post_content;
$content = preg_replace("_(solver|answer|right|wrong)\\s*=\\s*" . "(" . '"' . '(\\\\.|""|[^\\\\"])*' . '"(?!")' . "|" . "'" . "(\\\\.|''|[^\\\\'])*" . "'(?!')" . ")_s", "\$1=REDACTED", $content);
?>
<html>
The following is the source code for the page <b><a href="<?php 
echo get_permalink($page->ID);
?>
"><?php 
echo $page->post_title;
?>
</a></b> that you clicked on.
<br>
<?php 
echo open_source_preamble();
?>
<hr>
<pre style="white-space:pre-wrap"><?php 
echo embed_atfile_links(htmlspecialchars($content));
?>
</pre>
</html>