<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="code.xsl" ?>
<dns5.nl>
<voorbeeld>
<title>site index php</title>
<verwijzende_link>http://www.dns5.nl/php/site-index-script.html</verwijzende_link>
<programma_code>
<![CDATA[
<!-- de code begint vanaf hier.

<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html;charset=utf-8"><title>site index</title><meta name='keywords' content="site,index" /><meta name='description' content="site-index / alle links van de dns5.nl netjes gesorteerd op een pagina." />
<meta name="author" content="Bobik"><meta name="language" content="nederlands"><style type="text/css" media="screen">html{overflow:scroll}body{color:#E5CC92;background:#020;font-family:Helvetica,Geneva,Arial,sans-serif;font-size:16px}body a{text-decoration:none}a{outline:none}a img,img{border:none}.tekst{color:#bbb;background:#040;text-align:center;padding-bottom:0.5em}ul{margin-left:100px;display:block;width:16em;color:#82B282;background:#030;padding:0.3em;list-style-type:none;border-right:1px solid #004000;border-top:1px solid #004000}p{margin-left:100px}p{margin-right:40%}.css-check{display:none}li a{color:#82B282;background:#003000;padding-left:0.5em}li a:hover{color:#E5CC92;background:#003000}.eenlink,.knop,.tekst{color:#aaa;background:#040;padding-left:0.5em;padding-right:0.5em;border-right:1px solid #050;border-top:1px solid #050}.eenlink:hover,.knop:hover{color:#E5CC92;background:#040}.knop{color:#AABD8C;background:#040;font-weight:bold}.groter{font-size:1.4em}.kleiner{font-size:0.7em}.lager{margin-bottom:5em}#logo{color:#436E00;background:#040;position:absolute;right:1.2em;font-weight:bold}</style>
<style type="text/css">.q{margin-right:80px}body{color:#0a0;background:#002200}a{color:#E5CC92;background:inherit}a:hover{color:#00bb00;background:inherit}a:active,a:focus{color:#00ff00;background:inherit}#uitlijnen{margin-left:100px;line-height:92%}</style>
</head><body><div class="tekst"><div id="logo">www.dns5.nl</div><span class="groter"><strong>site index</strong></span><br /><span class="kleiner"><strong>alle links van de dns5.nl</strong></span>
</div><p class="lager"><a href="http://www.dns5.nl/" rel="nofollow" title=" hoofd pagina "><span class="knop">home</span></a> <a href="http://www.dns5.nl/alle-scripts-en-code.html" rel="nofollow" title=" hoofd-menu "><span class="knop">menu</span></a> <a href="http://www.dns5.nl/help.html" rel="nofollow" title=" help "><span class="knop">help</span></a></p>
<p><a href="http://www.dns5.nl/" rel="nofollow"><span class="eenlink">terug</span></a></p><br />
<?php 
	$deroot=getcwd();
	$voorwerk=explode("/",$REQUEST_URI);
	array_pop($voorwerk);
	$ervoor=join("/",$voorwerk);
	echo "<div id='uitlijnen'>";
	function listdedir($chdir){
		global $deroot,$ervoor,$PHP_SELF;
		unset($sdirs);
		unset($sfiles);
		chdir($chdir);
		$self=basename($PHP_SELF);
		$handle=opendir('.');while ($file=readdir($handle)){
			if(is_dir($file) && $file != "." && $file != ".." && $file != "server" && $file != "help" && $file != "images" && $file != "DIRECTORY_DIE_JE_WIL_UITSLUITEN"){$sdirs[]=$file;}
			elseif(is_file($file) && $file != "FILE_DIE_JE_WIL_UITSLUITEN" && $file != "sitemap.html" && $file != "$self" && ereg("(html)$", $file)){$sfiles[]=$file;}}
		$dir=getcwd();
		$dir1=str_replace($deroot,"",$dir);
		$tellen=substr_count($dir1,"/");
		if(is_array($sdirs)){
			sort($sdirs);
			reset($sdirs);
			for($y=0;$y<sizeof($sdirs);$y++){
				echo "<br />";
				for($z=1;$z<=$tellen;$z++){echo "<tt class='q'>&#9475;</tt>";}
				if(is_array($sfiles)){echo "&#9507;";}
				else{echo "&#9495;";}
				echo "$sdirs[$y]";
				$cwd1[0]=$dir;
				$cwd1[1]=$sdirs[$y];
				$chdir=join("/",$cwd1);
				listdedir($chdir);}}
		chdir($chdir);
		if(is_array($sfiles)){sort($sfiles);reset($sfiles);
		$sizeof=sizeof($sfiles);
		for($y=0;$y<$sizeof;$y++){
			if(ereg("(html)$",$sfiles[$y])){
				echo "<br />";
				for($z=1;$z<=$tellen;$z++){echo "<tt class='q'>&#9475;</tt>";}
				if($y==($sizeof -1)){echo "&#9495;";}else{echo "&#9507;";}
				echo "<a href=$ervoor$dir1/".str_replace('index.html','',$sfiles[$y]).">$sfiles[$y]</a>";}}
		echo "<br />";
		for($z=1;$z<=$tellen;$z++){echo "<tt class='q'>&#9475;</tt>";}}}
	listdedir($deroot);
	echo "</div>";
?>
</body></html>

de code is hier geeindigd.
// -->
]]>
</programma_code>
</voorbeeld>
</dns5.nl>
