<meta http-equiv="content-type" content="text/html; charset=utf-8" />
		<title></title>
		<link rel="stylesheet" type="text/css" href="style.css"  />
		<meta http-equiv="Content-Script-Type" content="text/javascript" />
		<meta name="keywords" content="" />
		<meta name="description" content="" />
		<meta name="author" content="" />
		<script type="text/javascript">
			  /* <![CDATA[ */


	
		/* ]]> */
	
		</script>
		
	</head>
	<body>

	<?php 
if (isset($_SERVER['QUERY_STRING']) && is_file("../" . $_SERVER['QUERY_STRING']) && !fnmatch("..", $_SERVER['QUERY_STRING'])) {
    echo "<h1>Display of Content</h1>";
    echo "<p class=\"small\"><strong>File:</strong> " . $_SERVER['QUERY_STRING'] . "</p>";
    $File = file("../" . $_SERVER['QUERY_STRING']);
    include_once "PrintCode.php";
    echo printCode($File, 1, 1, 0);
}
?>
	
	</body>
</html>
Example #2
0
    echo "</tr>\n<tr>\n";
    echo "<td colspan='4'><div style='max-height:600px;overflow:auto;'>" . printCode($output, $line_start, $data['error_line']) . "</div>\n</td>\n";
    echo "</tr>\n";
    $thisPageContent = file(BASEDIR . $data['error_page']);
    $output = "";
    for ($i = 0; $i < count($thisPageContent); $i++) {
        $output .= $thisPageContent[$i];
    }
    echo "<tr>\n";
    echo "<td colspan='4' class='tbl1' style='text-align:center;font-weight:bold;'>";
    echo "<hr />\n<a href='#top' title='" . $locale['422'] . "'>" . $locale['422'] . "</a>\n";
    echo "</td>\n";
    echo "</tr>\n<tr>\n";
    echo "<td colspan='4' class='tbl2'><a name='page'></a>\n";
    echo "<strong>" . $locale['411'] . ": " . getMaxFolders($data['error_page'], 2) . "</strong></td>\n";
    echo "</tr>\n<tr>\n";
    echo "<td colspan='4'><div style='max-height:500px;overflow:auto;'>" . printCode($output, "1") . "</div>\n</td>\n";
    echo "</tr>\n";
    echo "</table>\n";
    echo "<div style='margin-top:5px;text-align:center;font-weight:bold;'>\n";
    echo "<a href='#top' title='" . $locale['422'] . "'>" . $locale['422'] . "</a>\n";
    echo "</div>";
    closetable();
}
// Show the "Apply"-button only when javascript is disabled"
echo "<script language='JavaScript' type='text/javascript'>\n";
echo "/* <![CDATA[ */\n";
echo "jQuery(document).ready(function() {\n\tjQuery('.change_status').hide();\n\n\tjQuery('a[href=#top]').click(function(){\n\t\tjQuery('html, body').animate({scrollTop:0}, 'slow');\n\t\treturn false;\n\t});\n});";
echo "/* ]]>*/\n";
echo "</script>\n";
require_once THEMES . "templates/footer.php";
Example #3
0
        $Klammernebene++;
    }
    if (strstr($Line, "}")) {
        $Klammernebene--;
    }
    // Kommentare ...
    // Es werden alle Kommentare, die mit ## beginnen gesammelt, die sie zwischen den Funktionen stehen.
    $Line = $BckpLine;
    if (fnmatch("##*", $Line)) {
        $Comment .= substr($Line, 2) . "<br />";
    } elseif ($Klammernebene > 0 && strlen(trim($Line)) > 0) {
        $FuncContent[count($FuncContent)] = $Line;
    }
    if ($Klammernebene == 0 && isset($FuncList2[count($FuncList2) - 1]) && count($FuncContent) > 0) {
        $FuncContent[count($FuncContent)] = "}";
        $FuncContent = printCode($FuncContent, 1, 1, $StartLineNr);
        $FuncList2[count($FuncList2) - 1] .= '<div id="' . $StartLineNr . '" class="element atStart">' . $FuncContent . "</div>\n";
        $FuncContent = array();
    }
}
?>
<hr />


<table cellpadding="5" cellspacing="5"><tr><td valign="top" class="FuncListLeft">

<h2>Inhalt</h2>
<?php 
natcasesort($FuncList1);
foreach ($FuncList1 as $Func) {
    echo '<a href="#' . $Func . '">' . $Func . "</a><br />\n";