<?
$res = mysql_query("SELECT * from brugersystem where brugernavn = '$brugernavn'");
$jir = mysql_fetch_array($res);
?>
<?
if($jir[brugernavn] == $brugernavn && $jir[kodeord] == $kodeord) {
?>
<?
session_register("brugernavn","kodeord");
?>
<script language="JavaScript">
<!--
function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
toolbar_str = toolbar ? 'yes' : 'no';
menubar_str = menubar ? 'yes' : 'no';
statusbar_str = statusbar ? 'yes' : 'no';
scrollbar_str = scrollbar ? 'yes' : 'no';
resizable_str = resizable ? 'yes' : 'no';
window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}
// -->
</script>
<script language="JavaScript"><!--
<!-- Begin
function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
// -->
</script>
<?
$result4 = mysql_query("SELECT * FROM bestil where brugernavn = '$brugernavn'");
$row4 = mysql_fetch_array($result4);
?>
<?
if($row4[lavet] == "ja") {
?>
<?
$result5 = mysql_query("SELECT * FROM lejligheder where ejer = '$brugernavn'");
$row5 = mysql_fetch_array($result5);
?>
<?
} else {
?>
<?
}
?>
<HTML>
<HEAD>
<TITLE></TITLE>
<style>
A:link {color : #FFFFFF;text-decoration: none}
A:visited {color : #FFFFFF;text-decoration: none}
A:active {color : #FFFFFF;text-decoration: none}
A:hover {color : #FFFFFF;text-decoration: none}
A:link.S{color : #FFFFFF;text-decoration: none}
A:visited.S{color : #FFFFFF;text-decoration: none}
A:active.S{color : #FFFFFF;text-decoration: none}
</style>
</HEAD>
<CENTER>
<IMG SRC="imag/logo.gif">
<TABLE WIDTH="800" HEIGHT="200" CELLSPACING="0" CELLPADDING="0">
<TD WIDTH="200" HEIGHT="200" CELLSPACING="0" CELLPADDING="0" BACKGROUND="imag/txtbox.gif" VALIGN="top">
<CENTER>
<FONT FACE="Verdana" SIZE="1" COLOR="#FFFFFF">
<B>Top 10 musik</B>
</CENTER>
<br><br>
1. <?=$top10[nr1];?><br>
2. <?=$top10[nr2];?><br>
3. <?=$top10[nr3];?><br>
4. <?=$top10[nr4];?><br>
5. <?=$top10[nr5];?><br>
6. <?=$top10[nr6];?><br>
7. <?=$top10[nr7];?><br>
8. <?=$top10[nr8];?><br>
9. <?=$top10[nr9];?><br>
10. <?=$top10[nr10];?>
</TD>
<TD WIDTH="400" HEIGHT="200" CELLSPACING="0" CELLPADDING="0" BGCOLOR="#FFFFFF" VALIGN="top">
<CENTER>
<FONT FACE="Verdana" SIZE="1" COLOR="#000000">
<B><?=$news[overskrift];?></B><br>
<I><?=$news[nyhed];?></I>
</TD>
<TD WIDTH="200" HEIGHT="200" CELLSPACING="0" CELLPADDING="0" BACKGROUND="imag/txtbox.gif" VALIGN="top">
<CENTER>
<FONT FACE="Verdana" SIZE="1" COLOR="#FFFFFF">
<B>Informationer</B>
</CENTER>
<br><br>
<a href=logud.php onClick=parent.main.location.href='main.php';parent.bottom.location.href='bottom.php';parent.news.location.href='news.php'> Log Af</a><br>
<a href="?" onclick="java script:na_open_window('chat', '../chat/chat/frames.php?rum=1', 0, 0, 800, 500, 0, 0, 0, 0, 0)">Chatten</a><br>
</TD>
</TABLE>
<TABLE WIDTH="800" HEIGHT="200" CELLSPACING="0" CELLPADDING="0">
<TD WIDTH="200" HEIGHT="200" CELLSPACING="0" CELLPADDING="0" BACKGROUND="imag/txtbox.gif" VALIGN="top">
<CENTER>
<FONT FACE="Verdana" SIZE="1" COLOR="#FFFFFF">
<B>Brugerinfo</B>
</CENTER>
<br><br>
Velkommen <?=$brugernavn;?>!<br><br><br>
Du har <?=$jir[euro];?> euro!<br>
<?
$tid = $jir[tid];
$timer = floor($tid/60);
$minutter = $tid % 60;
$gee = $timer * 60;
$age = $tid - $gee;
if ($timer==0) {
echo "Du har $minutter minutter<br>";
} else {
echo "Du har $timer timer og $age minutter<br>";
}
?></TD>
<TD WIDTH="400" HEIGHT="200" CELLSPACING="0" CELLPADDING="0" BGCOLOR="#FFFFFF" VALIGN="top">
<CENTER>
</TD>
<TD WIDTH="200" HEIGHT="200" CELLSPACING="0" CELLPADDING="0" BACKGROUND="imag/txtbox.gif" VALIGN="top">
<CENTER>
<FONT FACE="Verdana" SIZE="1" COLOR="#FFFFFF">
<B>Avisen-Nyeste artikler</B>
</CENTER>
<br><br>
<a href="artikler.php?id=1"><U>N</U>y version af chatten klar.....<br>
<a href="artikler.php?id=2"><U>H</U>vad sker der så nu?<BR>
</TD>
</TABLE>
<IMG SRC="imag/down.gif">
<?
} else {
echo "FEJL: De indtastede oplysninger var ikke korrekte!";
}
?>
<br><!-- Chart Basis HTML kode start v003 -->
<script language="javascript" type="text/javascript">
<!--
document.write('<a href="
http://www.chart.dk/ref.asp?ct=v003&id=85524" target="_blank">');
var myref; myref=document.referrer; if(top.document.referrer!=null) myref=top.document.referrer;
document.write('<img src="
http://cluster.chart.dk/chart.asp?id=85524&style=1&secID=' + Math.random()*10000000 + '&ref=' + escape(myref) + '" border="0" alt="Chart.dk"><');
document.write('/a>');
//-->
</script>
<noscript>
<a href="
http://www.chart.dk/ref.asp?ct=v003&id=85524" target="_blank"><img src="
http://cluster.chart.dk/chart.asp?id=85524&style=1&secID=1" border="0" alt="Chart.dk"></a>
</noscript>
<!-- Chart Basis HTML kode slut v003 -->