<?php
session_start();
include("db.php");
$ip = $_SERVER[REMOTE_ADDR];
$date = date("H:i d/m-y");
// Tjekker om ens IP må se siden
$tjek = mysql_query("SELECT * FROM ipAllowed WHERE ip='$ip'") or die("Fejl: " . mysql_error());
if(mysql_num_rows($tjek) == 0){
header('Location: /kommer/');
exit();
}else{
function loggetIndUd() {
if($_SESSION[brugernavn] == ""){
print "Gæst";
}else{
print $_SESSION[brugernavn];
}
}
function tjekSession() {
if($_SESSION[brugernavn] == ""){
print "<script>document.location.href='?p=ikkeLoggetInd'</script>";
}
}
function contentBar($indhold) {
?>
<table border="0" cellspacing="0" cellpadding="0" width="517">
<tr>
<td background="
http://habbo-times.dk/gfx/contentBar.png" width="517" height="20" class="contentBar"><?=$indhold?></td>
</tr>
</table>
<?
}
function errorMessage($color, $message) {
?>
<table border="0" cellspacing="0" cellpadding="0" width="100%" style="border:1px solid #000000; margin-bottom:5px">
<tr>
<td align="center" height="35"><font color="<?=$color?>"><b>* <?=$message?></b></font></td>
</tr>
</table>
<?
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<!--
HTML 3.2
Document type as defined on
http://www.w3.org/TR/REC-html32-->
<head>
<link href="
http://habbo-times.dk/style/style.css" rel="stylesheet" type="text/css">
<title>Habbo-Times - Vi bringer hyggen tilbage til HabboHotel</title>
</head>
<body background="
http://habbo-times.dk/gfx/bg.png"><div align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="3" background="
http://habbo-times.dk/gfx/header_header.png" width="727" height="29">
<table border="0" cellspacing="0" cellpadding="0" width="727" class="topHeader">
<tr>
<td style="padding-left:4px" class="topStatus">Online på HT: xx</td>
<td align="center" class="topStatus">Lytter til radio: xx</td>
<td align="right" style="padding-right:4px" class="topStatus">Online på Habbo:</td>
</tr>
</table>
</td>
</tr>
<tr>
<td background="
http://habbo-times.dk/gfx/topbanner_left.png" valign="top" width="164" height="102">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="padding-top:5px; padding-left:90px">
<div style="background-image: url('
http://www.habbo.dk/habbo-imaging/avatarimage?user=StreetDog&action=drk&frame=3&direction=2&head_direction=2&gesture=sml&size=s&img_format=gif');" id="habbo"></div>
<div style="background-image: url('
http://habbo-times.dk/gfx/djMixer.png');" id="habbodj"></div>
</td>
</tr>
</table>
</td>
<td background="
http://habbo-times.dk/gfx/topbanner_midt.png" width="373" height="102"></td>
<? if($_SESSION[brugernavn] == ""){ ?>
<td background="
http://habbo-times.dk/gfx/topbanner_right.png" valign="middle" width="190" height="102">
<table border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="0" width="170">
<form method="POST" action="?p=loginBruger">
<tr>
<td colspan="2" align="center"><input type="text" name="loginBrugernavn" onFocus="setStyle(this.id)" id="fname" style="width:170px; height:20px" value="Brugernavn" class="loginFelt"></td>
</tr>
<tr>
<td colspan="2" align="center" style="padding-top:1px"><input type="password" name="loginKodeord" style="width:170px; height:20px" value="Kodeord" class="loginFelt"></td>
</tr>
<tr>
<td style="padding-top:1px"><input type="submit" value="Login" style="width:84" class="loginKnap"></td>
<td style="padding-left:2px; padding-top:1px"><input type="button" value="Opret" style="width:84" class="loginKnap" onClick="document.location.href='?p=opretBruger'"></td>
</tr>
</form>
</table>
</td>
</tr>
</table>
</td>
<? }else{ ?>
<td background="
http://habbo-times.dk/gfx/topbanner_right.png" valign="top" width="190" height="102">
<table border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="0" width="170" style="padding-top:5px">
<tr>
<td>Velkommen til HT, <b><?=$_SESSION[brugernavn]?></b></td>
</tr>
<tr>
<td>
<b>Tagwall</b><br>
<a href="?p=editProfil">Indstillinger</a><br>
Entertaiment<br>
HT Street<br>
<a href="?p=logudBruger">Logud</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<? } ?>
</tr>
<tr>
<td colspan="3" background="
http://habbo-times.dk/gfx/header_bottom.png" width="727" height="26">
<table border="0" cellspacing="0" cellpadding="0" style="padding-left:2px" width="727" align="center">
<tr>
<td width="100">
<table border="0" cellspacing="0" cellpadding="0" width="100"><tr><td background="
http://habbo-times.dk/gfx/menuButton.png" align="center" width="100" height="24" class="menuButton"><a href="?p=news" class="menuButton">Nyheder</a></td></tr></table>
</td>
<td width="100">
<table border="0" cellspacing="0" cellpadding="0" width="100"><tr><td background="
http://habbo-times.dk/gfx/menuButton.png" align="center" width="100" height="24" class="menuButton"><a href="?p=articles" class="menuButton">Artikler</a></td></tr></table>
</td>
<td width="100">
<table border="0" cellspacing="0" cellpadding="0" width="100"><tr><td background="
http://habbo-times.dk/gfx/menuButton.png" align="center" width="100" height="24" class="menuButton"><a href="?p=habbohotel" class="menuButton">HabboHotel</a></td></tr></table>
</td>
<td width="100">
<table border="0" cellspacing="0" cellpadding="0" width="100"><tr><td background="
http://habbo-times.dk/gfx/menuButton.png" align="center" width="100" height="24" class="menuButton"><a href="?p=htradio" class="menuButton">HT Radio</a></td></tr></table>
</td>
<td width="100">
<table border="0" cellspacing="0" cellpadding="0" width="100"><tr><td background="
http://habbo-times.dk/gfx/menuButton.png" align="center" width="100" height="24" class="menuButton"><a href="?p=furnitures" class="menuButton">Møbelpriser</a></td></tr></table>
</td>
<td width="100">
<table border="0" cellspacing="0" cellpadding="0" width="100"><tr><td background="
http://habbo-times.dk/gfx/menuButton.png" align="center" width="100" height="24" class="menuButton"><a href="?p=compitition" class="menuButton">Konkurrencer</a></td></tr></table>
</td>
<td width="100">
<table border="0" cellspacing="0" cellpadding="0" width="100"><tr><td background="
http://habbo-times.dk/gfx/menuButton.png" align="center" width="100" height="24" class="menuButton"><a href="?p=debatforum" class="menuButton">Debatforum</a></td></tr></table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="3" background="
http://habbo-times.dk/gfx/header_bottom_under.png" width="727" height="36">
<? if($_SESSION[brugernavn] != ""){ ?>
<table border="0" cellspacing="0" cellpadding="0" width="525">
<tr>
<td style="padding-left:4px" align="center">
<table border="0" cellspacing="0" cellpadding="0" class="communityButton" style="padding-top:5px">
<tr>
<td><a href="?p=profil&bruger=<?=$_SESSION[brugernavn]?>" class="communityButton" >Profil</a> </td>
<td class="communityButton" style="padding-left:60px"> Post</td>
<td class="communityButton" style="padding-left:60px"> Gæstebog</td>
<td class="communityButton" style="padding-left:60px"> Venneliste</td>
<td class="communityButton" style="padding-left:60px"> Dagbog</td>
</tr>
</table>
</td>
</tr>
</table>
<? }else { }?>
</td>
</tr>
<tr>
<td colspan="3" background="
http://habbo-times.dk/gfx/content_bg.png" width="727">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" height="300">
<table border="0" cellspacing="0" cellpadding="0" width="525">
<tr>
<td style="padding-left:4px; padding-right:4px">
<?php
/*
<table border="0" cellspacing="0" cellpadding="0" width="517">
<tr>
<td background="
http://habbo-times.dk/gfx/contentBar.png" width="517" height="20" class="contentBar">Forside » </td>
</tr>
</table>
*/
?>
<div style="padding-top:1px">
<?php
if(!isset($_GET['p'])) {
require('nyheder/index.php');
} else if ($_GET['p'] == '404') {
require('index.php');
}
// NYHEDER
if($_GET['p'] == "news") {
require('nyheder/index.php');
}
// DEBATFORUM
if($_GET['p'] == "debatforum") {
require('debatforum/index.php');
}
// COMMUNITY
if($_GET['p'] == "community") {
require('community/index.php');
} else if($_GET['p'] == "opretBruger") {
require('community/opret/index.php');
} else if($_GET['p'] == "loginBruger") {
require('community/login/index.php');
} else if($_GET['p'] == "logudBruger") {
require('community/logud/index.php');
}
// PROFIL
if($_GET['p'] == "profil") {
require('community/bruger/index.php');
} else if($_GET['p'] == "editProfil") {
require('community/bruger/editProfil.php');
}
?>
</div>
</td>
</tr>
</table>
</td>
<td width="3"></td>
<td valign="top">
<table border="0" cellspacing="0" cellpadding="0" width="199">
<tr>
<td style="padding-left:4px; padding-top:1px">
<table border="0" cellspacing="0" cellpadding="0" width="191">
<tr>
<td background="
http://habbo-times.dk/gfx/rightMenu_bar.png" width="191" height="20" class="contentBar">Radio » Now Playing</td>
</tr>
</table>
Noget tekst..<br><br>
<table border="0" cellspacing="0" cellpadding="0" width="191">
<tr>
<td background="
http://habbo-times.dk/gfx/rightMenu_bar.png" width="191" height="20" class="contentBar">Radio » Indsend ønske</td>
</tr>
<tr>
<td style="padding-top:1px"><input type="text" name="djonske_sender" style="width:191px; height:20px; padding-left:3px" value="<?=loggetIndUd();?>" disabled></td>
</tr>
<tr>
<td><textarea name="djonske" style="width:191px; height:50px; padding-left:3px">Jeg ønsker blabla</textarea></td>
</tr>
<tr>
<td><input type="submit" value="Send mit ønske" style="width:191px; height:20px;" class="radioKnap"></td>
</tr>
</table><br>
<table border="0" cellspacing="0" cellpadding="0" width="191">
<tr>
<td background="
http://habbo-times.dk/gfx/showAdvertise.gif" width="191" height="113"></td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="3" background="
http://habbo-times.dk/gfx/content_bottom.png" width="727" height="26">
<table border="0" cellspacing="0" cellpadding="0" width="727">
<tr>
<td style="padding-left:4px" width="300">Copyright © Habbo-Times.dk - alle rettigheder forbeholdes</td>
<td align="right" style="padding-right:4px">Habbo-Times | Disclaimer | Kontakt os | Redaktion</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</body>
</html>
<?php
}
?>