<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;"># Copyright 1999-2015. Parallels IP Holdings GmbH. All Rights Reserved.
import sys
import os
import re

def print_environ(environ=os.environ):
    """Dump the shell environment as HTML."""
    keys = environ.keys()
    keys.sort()
    i = 0
    for key in keys:
        if not re.search("^HTTP_|^REQUEST_", key):
			continue
        if i == 0:
            print """&lt;tr class="normal"&gt;&lt;td&gt;""", escape(key), "&lt;/td&gt;&lt;td&gt;", escape(environ[key]), "&lt;/td&gt;&lt;/tr&gt;"
            i = 1
        else:
            print """&lt;tr class="alt"&gt;&lt;td&gt;""", escape(key), "&lt;/td&gt;&lt;td&gt;", escape(environ[key]), "&lt;/td&gt;&lt;/tr&gt;"
            i = 0

def escape(s, quote=None):
    """Replace special characters '&amp;', '&lt;' and '&gt;' by SGML entities."""
    s = s.replace("&amp;", "&amp;amp;") # Must be done first!
    s = s.replace("&lt;", "&amp;lt;")
    s = s.replace("&gt;", "&amp;gt;")
    if quote:
        s = s.replace('"', "&amp;quot;")
    return s


print """Content-type: text/html

&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt;
&lt;head&gt;
&lt;title&gt;&lt;/title&gt;
&lt;link rel="stylesheet" type="text/css" href="../../css/style.css" /&gt;
&lt;/head&gt;
&lt;body class="test-data"&gt;
&lt;table cellspacing="0" cellpadding="0" border="0"&gt;
&lt;tr class="subhead" align="Left"&gt;&lt;th&gt;Name&lt;/th&gt;&lt;th&gt;Value&lt;/th&gt;&lt;/tr&gt;"""
print_environ()
print """&lt;/table&gt;
&lt;/body&gt;
&lt;/html&gt;"""
</pre></body></html>