Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
3 lars 1
<?
2
	if ($_GET["pass"] != "pickup")
3
	{
4
		exit;
5
	}
6
 
7
	/*	1.	*/
8
	session_start();
9
 
10
	/*	2.	*/
11
	$_SESSION[INI]=parse_ini_file("mediaran.de.ini.php",true);
12
	$_SESSION[INI][TEMPLATE]=parse_ini_file("template.ini.php",true);
13
 
14
	/*	3.	*/
15
	include_once("includes/listFiles.php");
16
 
17
	/*	4.	*/
18
	foreach(listFiles($_SESSION[INI][systemPath],"php") as $file)
19
	{
20
		@include_once($file);
21
	}
22
 
23
	$buffer=getNavTree();
24
?>
25
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
26
<html xmlns="http://www.w3.org/1999/xhtml">
27
<head>
28
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
29
<title>Unbenanntes Dokument</title>
30
<style type="text/css">
31
<!--
32
ul {
33
	list-style-type: none;
34
	list-style-position: outside;
35
	padding-left: 10px;
36
	margin-left: 10px;
37
}
38
li {
39
	margin:0px;
40
	padding:0px;
41
	clear:both;
42
}
43
span
44
{
45
	background-color:#00FF00;
46
}
47
body
48
{
49
	font-family:Arial, Helvetica, sans-serif;
50
}
51
-->
52
</style>
53
</head>
54
 
55
<body>
56
<div style="width:600px;">
57
<?
58
	$query="select Father,Name,Kennung2 from directory where language= 'DE' and Kennung2 = '' and Name != ''";
59
	$result=mysql_query($query);
60
	while($zeile=mysql_fetch_assoc($result))
61
	{
62
		echo "/";
63
		foreach(getPath($zeile["Father"]) as $dir) { echo $dir["Name"]."/"; }
64
		echo $zeile["Name"];
65
		echo "<br />";
66
	}
67
 
68
	//showTree($buffer);
69
 
70
	function showTree($root)
71
	{
72
		foreach($root as $elem)
73
		{
74
?>
75
<ul><li>
76
<hr>
77
		<div style="float:left;"><?=$elem["Name"]; ?></div>
78
		<div style="float:right;"><?=$elem["Kennung2"]; ?></div>
79
<? showTree($elem["childNodes"]); ?>
80
</li></ul>
81
<?
82
		}
83
	}
84
?>
85
</body>
86
</html>