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:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199: | <?php
$session_id = $_GET["PHPSESSID"];
session_start($session_id);
$user = $_SESSION["Benutzername"];
$verbindung = mysql_connect(localhost,user)
or die ("keine Verbindung möglich. Benutzername oder Passwort sind falsch");
mysql_select_db(bloedivz)
or die ("Die Datenbank existiert nicht.
".mysql_error());
$nachricht = "SELECT * FROM `nachrichten` WHERE `gelesen` = '0' AND `Empfaenger` = '$user'";
$nachricht = mysql_query($nachricht);
$nachricht = mysql_num_rows($nachricht);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="author" content="****" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=ASCII" />
<title>gf-connect</title>
<style type="text/css">
<!--
#header {
position:absolute;
text-align: center;
left:0px;
top:0px;
width: 1100px;
width:100%;
height:200px;
z-index:2;
background-color: #000000;
}
#logo {
position:relative;
text-align: center;
top:20px;
width:auto;
height:195px;
z-index:3;
}
#logo img {
max-height:150px;
}
#main_content {
position:absolute;
left:0px;
top:350px;
width:auto;
height:301px;
z-index:4;
background-color: #333333;
}
body {
background-color: #797a7c;
}
#menu {
background-image: url(medien/menu.png);
background-repeat: repeat-y;
position: absolute;
height: 1300px;
left:0px;
top:0px;
width:254px;
z-index:1;
}
#menu2 {
position: absolute;
left: 0px;
top: 200px;
z-index: 10;
}
#menu2 a:visited, :link {
color: #FFFFFF;
text-decoration: none;
}
#menu2 a:hover {
color: white;
text-decoration: underline;
}
#menu2 td.border {
border-bottom: medium solid #CDD400;
}
#menu2 tr {
height: 40px;
vertical-align: bottom;
font-size: 25px;
}
#menu2 tr.profilbild {
height:auto;
width: 120px;
}
#menu2 tr.persoenlich {
height: auto;
font-size: 15px;
}
#menu2 img {
height: 200px;
width: 100px;
border: thick solid white;
}
#logout {
position:absolute;
right:20px;
top:160px;
width:100px;
height:24px;
z-index:5;
}
#logout img {
width: 100px;
}
#pages {
position:absolute;
left: 300px;
top: 205px;
width: 600px;
height: 100%;
z-index:6;
}
</style>
<script type="text/javascript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!xja&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
-->
</script>
</head>
<body onload="MM_preloadImages('medien/button/logout_over.png')">
<div id="header"><div id="logo"><img src="medien/logo.png" alt="logo" /></div></div>
<div id="menu">
<div id="menu2">
<table class="menu">
<tr class="profilbild"> <td><table>
<tr><td valign="bottom" align="right"><a href="home.php?seite=profil_bearbeiten&PHPSESSID=<?php echo $session_id; ?>" ><img src="userbilder/bild.png" alt="Profilbild" /></a></td><td>
<table>
<tr class="persoenlich"><td><a style="color: #C6C7C8;" class="persoenlich" href="home.php?seite=profil&PHPSESSID=<?php echo $session_id; ?>" >Mein Profil</a></td></tr>
<tr class="persoenlich"><td><a style="color: #C6C7C8;" class="persoenlich" href="home.php?seite=einstellungen&PHPSESSID=<?php echo $session_id; ?>" >Einstellungen</a></td></tr>
</table>
</table></td></tr>
</td></tr>
<tr><td height="70px"></td></tr>
<tr><td class="border"> <a href="home.php?seite=pinnwand&PHPSESSID=<?php echo $session_id; ?>" >Pinnwand</a></td></tr>
<tr><td class="border"> <a href="home.php?seite=nachrichten&PHPSESSID=<?php echo $session_id; ?>" >Nachrichten (<?php echo $nachricht; ?>)</a></td></tr>
<tr><td class="border"> <a href="home.php?seite=klasse&PHPSESSID=<?php echo $session_id; ?>" >Meine Klasse</a></td></tr>
<tr><td class="border"> <a href="home.php?seite=suchen&PHPSESSID=<?php echo $session_id; ?>" >Suchen</a></td></tr>
<tr><td class="border"> <a href="home.php?seite=gruppen&PHPSESSID=<?php echo $session_id; ?>" >Gruppen</a></td></tr>
<tr><td class="border"> <a href="home.php?seite=kalender&PHPSESSID=<?php echo $session_id; ?>">Kalender</a></td></tr>
</table>
</div>
</div>
<div id="logout"><a href="home.php?seite=logout" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Log-Out','','medien/button/logout_over.png',1)"><img src="medien/button/logout.png" alt="Log-Out" name="Log-Out" border="0" id="Log-Out" /></a></div>
<div id="pages">
<?php
$seite = $_GET["seite"];
if($session_id == NULL || $_SESSION["Benutzername"] == "" || $_SESSION['Benutzername'] == NULL)
{
echo "Session ungültig! <a href=\"index.php\">Bitte neu einloggen.</a>";
if($seite == "logout")
{
include('logout.php');
}
exit;
}
//ueberprueft ob Session noch gültig ist
include("".$seite.".html");
?>
</div>
</body>
</html> |