1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
|
<?php
session_start();
include "sessionheader.inc.php";
include "../database.inc.php";
//if ($_SESSION[login] == "true" && $_SESSION[name] != "Gast") {
if ($_SESSION[site] == "vrh") {
echo "
<!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
http://www.w3.org/TR/html4/loose.dtd>
<html>
<head>
<meta http-equiv=Content-Type content=text/html; charset=iso-8859-1>
<title>Gut Greifenstein</title>
<link rel=stylesheet type=text/css href=gg.css>
</head>
";
}
else if ($_SESSION[site] == "rpg") {
echo "
<!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
http://www.w3.org/TR/html4/loose.dtd>
<html>
<head>
<meta http-equiv=Content-Type content=text/html; charset=iso-8859-1>
<title>Greifenstein</title>
<link rel=stylesheet type=text/css href=gs.css>
</head>
";
}
//}
?>
<body>
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td height="97" colspan="2"><div align="center">
<?php
if ($_SESSION[site] == "vrh") {
echo "<p> <b>Gut Greifenstein</b><br>
<a href=index.php?site=$_SESSION[site]&login=$_SESSION[login]&name=$_SESSION[name]><img src=../Bilder/banner.png alt=LogoGutGreifenstein border=0></a><br>
Beschreibung usw....</p>";
}
?>
</td>
</tr>
<tr>
<td colspan="2">
<?php
if ($_GET[show] = "cat") {
$id = $_GET[kid];
$selectdaten = "SELECT * FROM `kategorien` WHERE `id` = '$_GET[kid]'";
$datenres = mysql_query($selectdaten);
$daten = mysql_fetch_assoc($datenres);
echo "<b><a href=show.php?show=cat&kid=$daten[id]>$daten[name]</a></b><br>
$daten[beschreibung]<br>";
$findunterorte = "SELECT * FROM `kategorien` WHERE `supid`='$daten[id]'";
$unterorte = mysql_query($findunterorte);
while ($sub = mysql_fetch_assoc($unterorte)) {
if ($sub[site] == "$_SESSION[site]" OR $sub[site] == "both") {
echo "<a href=show.php?show=cat&kid=$sub[id]>$sub[name]</a>";
}
}
echo "</td>
</tr>";
$selectthreads = "SELECT * FROM `threads` WHERE `katid`='$daten[id]'";
$threadres = mysql_query($selectthreads);
while ($thread = mysql_fetch_assoc($threadres)) {
echo "<tr><td><a href=show.php?show=thread&tid=$thread[id]>$thread[titel]</a></td><td>Erstellt von $thread[by] am $thread[date]</td></tr>";
}
}
[B]if ($_GET[show] = "thread" && isset($_GET[tid])) {
echo "Test";
}
if (!isset($_GET[show])) {
header('Location:index.php');
}
?>
</table>
</body>
</html>
|