Så här ser defaultsidan ut... men man kommer liksom inte vidare..intern e-post
(databas är identiskt med användarnamn)
<code>
<?php @session_start();
@$user = $iwcuser;
@$pass = $iwcpass;
if(!$user) {
echo("<script language=JavaScript>");
echo("self.location.replace('/login/ouch.php')");
echo("</script>");
}
$open = mysql_connect("localhost", "databas", "psw");
$info = mysql_db_query("databas", "SELECT * FROM users WHERE username = '$user'", $open);
$rad = mysql_fetch_array($info);
if($user == $rad["username"] & $pass == $rad["password"]) { ?>
<?php // top.inc ?>
<?php require ('../_inc/top.inc'); ?>
<?php // Innehåll ?>
<table cellpadding="0" cellspacing="0" style="border-width: 1pt; border-color: #000000; border-style: solid" align="left">
<tr>
<td class="menux" width="20"></td>
<td class="menux"><br><span class="rubrik">Sportklubben: Internt e-postsystem</span><br><img src="/_media/line.gif" vspace="5" height="1" width="100%"></td>
<td class="menux" width="10"></td>
</tr>
<tr>
<td class="menux" width="10"></td>
<td class="menux" width="600" height="200" valign="top"><span class="brodtext">
Skriv ett e-postmeddelande |
Min adressbok |
Skapa mapp |
<p>
<b>Inkorg</b><p>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="bodylank" width="200" valign="top"><b>Ämnesrad</b></td>
<td class="bodylank" width="70" valign="top"><b>Från</b></td>
<td class="bodylank" width="70" valign="top"><b>Oläst/läst</b></td>
<td class="bodylank" width="100" valign="top"><b>Skickat</b></td>
<td class="bodylank" width="60" valign="top">Svara</td>
<td class="bodylank" width="60" valign="top">Radera</td>
<td class="bodylank" width="60" valign="top">Flytta<br><br></td>
</tr>
<?php $open = mysql_connect("localhost", "databas", "psw");
$db = mysql_db_query("databas", "SELECT * FROM meddelanden WHERE till = '$user' AND mapp = 'in' ORDER BY ID Desc");
while ($rad = mysql_fetch_array ($db)) {
print "<tr>";
print "<td class=bodylank>";
print " print $rad["id"];
print " ";
print "class=bodylank>";
print $rad["subject"];
print "";
print "</td>";
print "<td class=bodylank>";
print $rad["fran"];
print "</td>";
print "<td class=bodylank>";
if($rad["last"] == "n") {
print "Oläst";
} else {
print "Läst";
}
print "</td>";
print "<td class=bodylank>";
print $rad["datum"];
print "</td>";
print "<td class=bodylank>";
print " print $rad["id"];
print "&till=";
print $rad["fran"];
print "&svar=SV:";
print " ";
print "class=bodylank>";
print "Svara";
print "";
print "</td>";
print "<td class=bodylank>";
print " print $rad["id"];
print " ";
print "class=bodylank>";
print "Radera";
print "";
print "</td>";
print "<td class=bodylank>";
print " print $rad["id"];
print " ";
print "class=bodylank>";
print "Flytta";
print "";
print "</td>";
print "</tr>";
} ?>
<?php mysql_close($open); ?>
</table>
<p>
<b>Mina mappar</b>
<p>
Inkorgen<br>
Utkorgen (skickade meddelanden)<p>
<?php $open = mysql_connect("localhost", "databas", "psw");
$db = mysql_db_query("databas", "SELECT * FROM mappar WHERE tillhor = '$user' ORDER BY ID Desc");
while ($rad = mysql_fetch_array ($db)) { ?>
<b><a class=bodylank href="visamapp.php?mapp=<?php print $rad["mapp"]; ?>">
<?php
print $rad["mapp"];
print "</a>";
print "<br>";
} ?>
<p>
<?php // bottom.inc ?>
<?php require ('../_inc/bottom.inc'); ?>
<?php mysql_close($open); ?>
<?php } ?>
<?php @session_start();
@$user = $iwcuser;
@$pass = $iwcpass;
if(!$user) {
echo("<script language=JavaScript>");
echo("self.location.replace('/login/ouch.php')");
echo("</script>");
}
$open = mysql_connect("localhost", "databas", "psw");
$info = mysql_db_query("databas", "SELECT * FROM users WHERE username = '$user'", $open);
$rad = mysql_fetch_array($info);
if($user == $rad["username"] & $pass == $rad["password"]) { ?>
<?php // top.inc ?>
<?php require ('../_inc/top.inc'); ?>
<?php // Innehåll ?>
<table cellpadding="0" cellspacing="0" style="border-width: 1pt; border-color: #000000; border-style: solid" align="left">
<tr>
<td class="menux" width="20"></td>
<td class="menux"><br><span class="rubrik">Sportklubben: Internt e-postsystem</span><br><img src="/_media/line.gif" vspace="5" height="1" width="100%"></td>
<td class="menux" width="10"></td>
</tr>
<tr>
<td class="menux" width="10"></td>
<td class="menux" width="600" height="200" valign="top"><span class="brodtext">
Skriv ett e-postmeddelande |
Min adressbok |
Skapa mapp |
<p>
<b>Inkorg</b><p>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="bodylank" width="200" valign="top"><b>Ämnesrad</b></td>
<td class="bodylank" width="70" valign="top"><b>Från</b></td>
<td class="bodylank" width="70" valign="top"><b>Oläst/läst</b></td>
<td class="bodylank" width="100" valign="top"><b>Skickat</b></td>
<td class="bodylank" width="60" valign="top">Svara</td>
<td class="bodylank" width="60" valign="top">Radera</td>
<td class="bodylank" width="60" valign="top">Flytta<br><br></td>
</tr>
<?php $open = mysql_connect("localhost", "databas", "psw");
$db = mysql_db_query("databas", "SELECT * FROM meddelanden WHERE till = '$user' AND mapp = 'in' ORDER BY ID Desc");
while ($rad = mysql_fetch_array ($db)) {
print "<tr>";
print "<td class=bodylank>";
print " print $rad["id"];
print " ";
print "class=bodylank>";
print $rad["subject"];
print "";
print "</td>";
print "<td class=bodylank>";
print $rad["fran"];
print "</td>";
print "<td class=bodylank>";
if($rad["last"] == "n") {
print "Oläst";
} else {
print "Läst";
}
print "</td>";
print "<td class=bodylank>";
print $rad["datum"];
print "</td>";
print "<td class=bodylank>";
print " print $rad["id"];
print "&till=";
print $rad["fran"];
print "&svar=SV:";
print " ";
print "class=bodylank>";
print "Svara";
print "";
print "</td>";
print "<td class=bodylank>";
print " print $rad["id"];
print " ";
print "class=bodylank>";
print "Radera";
print "";
print "</td>";
print "<td class=bodylank>";
print " print $rad["id"];
print " ";
print "class=bodylank>";
print "Flytta";
print "";
print "</td>";
print "</tr>";
} ?>
<?php mysql_close($open); ?>
</table>
<p>
<b>Mina mappar</b>
<p>
Inkorgen<br>
Utkorgen (skickade meddelanden)<p>
<?php $open = mysql_connect("localhost", "databas", "psw");
$db = mysql_db_query("databas", "SELECT * FROM mappar WHERE tillhor = '$user' ORDER BY ID Desc");
while ($rad = mysql_fetch_array ($db)) { ?>
<b><a class=bodylank href="visamapp.php?mapp=<?php print $rad["mapp"]; ?>">
<?php
print $rad["mapp"];
print "</a>";
print "<br>";
} ?>
<p>
<?php // bottom.inc ?>
<?php require ('../_inc/bottom.inc'); ?>
<?php mysql_close($open); ?>
<?php } ?>
</code>