Hej.
Tak for det!
Ja, du kan få lov og se alt det kode du vil
<?
ini_set('session.cookie_lifetime', 10080);
ini_set('session.cache_expire', '604800');
ini_set('gc_probability', '100');
ini_set('session.timeout', '10080');
session_start();
include ("config.php");
if (session_is_registered("brugernavn") AND ("kode")) {
$sessionconnect = mysql_query("SELECT * FROM habbo_brugere WHERE brugernavn = '$_SESSION[brugernavn]'") or die(mysql_error());
$session = mysql_fetch_array($sessionconnect);
}
if ($_GET[mode] == tema) {
if (!isset($_COOKIE["habbo"])) {
setcookie("habbo", $_GET[tema], time()+31536000, "/", ".habbo-n3ws.dk");
} else {
setcookie("habbo", "", time()-3600, "/", ".habbo-n3ws.dk");
setcookie("habbo", $_GET[tema], time()+31536000, "/", ".habbo-n3ws.dk");
}
echo "<meta HTTP-EQUIV=\\"REFRESH\\" CONTENT=\\"0; URL=index.php?side=$_GET[side]\\">";
}
if (!isset($_COOKIE["habbo"])) {
$tema = standard;
} else {
$tema = $_COOKIE["habbo"];
}
$hilsen = "
<script language=\\"JavaScript\\">
<!-- Hide from old browsers
today = new Date()
if(today.getMinutes() < 10){
pad = \\"0\\"}
else
pad = \\"\\";
document.write ;if((today.getHours() >=6) && (today.getHours() <=12)){
document.write(\\"Godmorgen\\")
}
if((today.getHours() >=12) && (today.getHours() <=16)){
document.write(\\"Hej\\")
}
if((today.getHours() >=17) && (today.getHours() <=23)){
document.write(\\"Godaften\\")
}
if((today.getHours() >=0) && (today.getHours() <=5)){
document.write(\\"Godnat\\")
}
// -- End Hiding Here -->
</script>
";
?>
<script type="text/JavaScript">
ned = 16;
function tid() {
if (ned < 0 || ned == 0) {
alert("Du er blevet logget ud pga. inaktivitet!")
window.location = "http://www.habbo-n3ws.dk/index.php?side=nyheder&mode=logaf";
} else {
ned = ned - 1;
document.getElementById("tid").innerHTML = "<b>" + ned + "</b> min. tilbage! <a title=\\"Tid til du bliver smidt af\\" style=\\"cursor:help;\\">[i]</a>";
setTimeout("tid()", 60000);
}
}
function habboClient() {
pos_horizon = ((screen.width/2)-(790/2));
pos_vertical = ((screen.height/2)-(590/2));
window.open("http://www.habbohotel.dk/habbo/da/common/habbo_client/client_popup/",null,"width=720,height=570,top="+pos_vertical+",left="+pos_horizon+",scrollbars=no,status=no");
}
</script>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta http-equiv="Content-Language" content="da">
<title>Habbo-N3ws</title>
<LINK rel="stylesheet" HREF="style_<? echo $tema; ?>.css" type="text/css">
</head>
<body onload="tid();" scroll="auto" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" background="gfx/baggrund.gif">
<center>
<table border="0" height="500" cellpadding="0" cellspacing="0" class="indexTable">
<tr>
<td>
<table width="770" height="550" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="210" width="770" background="gfx/logo_<? echo $tema; ?>.gif">
<table border="0" width="770" height="1" cellpadding="0" cellspacing="0">
</table>
</td>
</tr>
<tr>
<td valign="top" height="295">
<table width="770" border="0" cellpadding="3" cellspacing="0" height="345">
<tr>
<td valign="top" width="50" height="339">
<table width="765" height="88">
<tr>
<td valign="top" width="1" height="21">
<table width="170">
<tr>
<td width="170" height="21"><b>#Menu</b></td>
</tr>
<tr>
<td width="170" height="21"><img src="gfx/menu/nyheder.gif"> <a href="?side=nyheder">Nyheder</a></td>
</tr>
<tr>
<td width="170" height="21"><img src="gfx/menu/artikler.gif"> <a href="?side=artikler">Artikler</a></td>
</tr>
<tr>
<td width="170" height="21"><img src="gfx/menu/redaktionen.gif"> <a href="?side=redaktionen">Redaktionen</a></td>
</tr>
<tr>
<td width="170" height="21"><img src="gfx/menu/brugere.gif"> <a href="?side=brugere">Brugere</a></td>
</tr>
<tr>
<td width="170" height="21"><img src="gfx/menu/tagwall.gif"> <a href="?side=tagwall">Tagwall</a></td>
</tr>
<tr>
<td width="170" height="21"><img src="gfx/menu/ting.gif"> <a href="?side=ting">Ting</a></td>
</tr>
<tr>
<td width="170" height="21"><img src="gfx/menu/konkurrencer.gif"> <a href="?side=konkurrence">Konkurrencer</a></td>
</tr>
<tr>
<td width="170" height="21"><img src="gfx/menu/galleri.gif"> <a href="?side=galleri">Galleri</a></td>
</tr>
<tr>
<td width="170" height="21"><img src="gfx/menu/andet.gif"> <a href="?side=andet">Andet</a></td>
</tr>
<tr>
<td width="170" height="21" style="background-image: url(gfx/sog.gif);background-repeat: no-repeat;">
<form action="?side=sog" method="POST">
<input type="text" size="18" class="transBG" name="sog" style="border:0px;height:17px;width:108px;" value="Søgeord" onFocus="this.value=''" onBlur="this.value='Søgeord'">
</form>
</td>
</tr>
<tr>
<td width="170" height="21">
<table width="120" height="110" style="background-image:url(box/5nyeste.gif);background-repeat:no-repeat;">
<tr>
<td width="120" height="110">
<p class="leftmargin">
<?
$connectArtikler = mysql_query("SELECT id,overskrift,forfatter,dato FROM habbo_artikler ORDER BY id DESC LIMIT 5") or die(mysql_error());
while($artikel = mysql_fetch_array($connectArtikler)) {
if (strlen($artikel[overskrift]) > 12) {
$visOverskrift = substr($artikel[overskrift],0,12)."...";
} else {
$visOverskrift = $artikel[overskrift];
}
echo "<a title=\\"Skrevet af: $artikel[forfatter] d.: $artikel[dato]\\" href=\\"?side=visartikel&artikelid=$artikel[id]\\">$visOverskrift</a><br>\\n";
}
?>
</p>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="170" height="21"><b>#Community</b></td>
</tr>
<tr>
<td width="170" height="1">
<?
if ($_GET[mode] == logaf) {
$connectInfo = mysql_query("SELECT id,brugernavn,logintid FROM habbo_brugere WHERE brugernavn = '$_SESSION[brugernavn]'") or die(mysql_error());
$info = mysql_fetch_array($connectInfo);
$opdater = time()-$info[logintid];
mysql_query("UPDATE habbo_brugere SET online = 'offline', onlinetid = onlinetid+$opdater, point = point+$opdater, ikkeTilStedeTxt = '' WHERE id = '$info[id]'") or die(mysql_error());
session_destroy();
echo "<meta HTTP-EQUIV=\\"REFRESH\\" CONTENT=\\"0; URL=index.php\\">";
}
if ($_SESSION[brugernavn] != "") {
$connectTjek = mysql_query("SELECT id,brugernavn,onlinetid,point,vip FROM habbo_brugere WHERE brugernavn = '$_SESSION[brugernavn]'") or die(mysql_error());
$tjek = mysql_fetch_array($connectTjek);
$timer2 = $tjek[onlinetid]/3600;
$timer = floor($timer2);
$min = floor(($timer2-$timer)*60);
if($min < 10)$min = "0".$min;
$moenter2 = $tjek[point]/60;
$moenter = floor($moenter2);
$min1 = floor(($moenter2-$moenter)*60);
if($min1 < 10)$min1 = "0".$min1;
$connectAltPostUD = mysql_query("SELECT fra FROM habbo_post_ud WHERE fra = '$_SESSION[brugernavn]'") or die(mysql_error());
$antalAltPostUD = mysql_num_rows($connectAltPostUD);
$connectAltPostIND = mysql_query("SELECT til FROM habbo_post WHERE til = '$_SESSION[brugernavn]'") or die(mysql_error());
$antalAltPostIND = mysql_num_rows($connectAltPostIND);
$altPost = $antalAltPostUD+$antalAltPostIND;
$connectTilPost = mysql_query("SELECT til,lest FROM habbo_post WHERE til = '$_SESSION[brugernavn]' AND lest = 'nej'") or die(mysql_error());
$antalTil = mysql_num_rows($connectTilPost);
echo "
<body onload=\\"tid();\\">
$hilsen <a href=\\"?side=profil&id=$tjek[id]\\">$_SESSION[brugernavn]</a><br>
» <a href=\\"?side=indstillinger\\">Indstillinger</a><br>
» <a href=\\"?side=kontrolpanel\\">Kontrolpanel</a><br>";
if ($tjek[vip] != "") {
echo "» <a href=\\"?side=vip\\">V.I.P</a><br>";
} else {
echo "» <a href=\\"?side=kobVIP\\">Køb V.I.P</a><br>";
}
echo "
» <a href=\\"?side=post\\">Beskeder ($antalTil/$altPost)</a><br>
» <a href=\\"?mode=logaf\\">Log af</a><br><br>
<u>Info:</u><br>
» Point: $moenter<br>
» Online: $timer timer<br>
<span id=\\"tid\\"></span>";
} else {
if ($_POST[logpaa]) {
$connectTjek = mysql_query("SELECT id,brugernavn,kode,onlinetid,point,vip FROM habbo_brugere WHERE brugernavn LIKE '$_POST[brugernavn]' AND kode = '$_POST[kode]'") or die(mysql_error());
$antalTjek = mysql_num_rows($connectTjek);
if ($antalTjek == 0) {
echo "<meta HTTP-EQUIV=\\"REFRESH\\" CONTENT=\\"0; URL=index.php\\">";
echo "<script>alert(\\"Forkert brugernavn og/eller kode!\\")</script>";
}
elseif ($antalTjek != 0) {
$tjek = mysql_fetch_array($connectTjek);
$_SESSION[brugernavn] = $tjek[brugernavn];
$_SESSION[kode] = $tjek[kode];
session_register(brugernavn);
session_register(kode);
$sidstedato = date('H:i:s d.m.Y');
$tid = time();
mysql_query("UPDATE habbo_brugere SET logintid = '$tid', online = 'online', sidstelogin = '$sidstedato', sidstAktiv = '$tid' WHERE id = '$tjek[id]'") or die(mysql_error());
$timer2 = $tjek[onlinetid]/3600;
$timer = floor($timer2);
$min = floor(($timer2-$timer)*60);
if($min < 10)$min = "0".$min;
$moenter2 = $tjek[point]/60;
$moenter = floor($moenter2);
$min1 = floor(($moenter2-$moenter)*60);
if($min1 < 10)$min1 = "0".$min1;
$connectAltPostUD = mysql_query("SELECT fra FROM habbo_post_ud WHERE fra = '$_SESSION[brugernavn]'") or die(mysql_error());
$antalAltPostUD = mysql_num_rows($connectAltPostUD);
$connectAltPostIND = mysql_query("SELECT til FROM habbo_post WHERE til = '$_SESSION[brugernavn]'") or die(mysql_error());
$antalAltPostIND = mysql_num_rows($connectAltPostIND);
$altPost = $antalAltPostUD+$antalAltPostIND;
$connectTilPost = mysql_query("SELECT til,lest FROM habbo_post WHERE til = '$_SESSION[brugernavn]' AND lest = 'nej'") or die(mysql_error());
$antalTil = mysql_num_rows($connectTilPost);
echo "
<body onload=\\"tid();\\">
$hilsen <a href=\\"?side=profil&id=$tjek[id]\\">$_SESSION[brugernavn]</a><br>
» <a href=\\"?side=indstillinger\\">Indstillinger</a><br>
» <a href=\\"?side=kontrolpanel\\">Kontrolpanel</a><br>
» <a href=\\"?side=post\\">Beskeder ($antalTil/$altPost)</a><br>";
if ($tjek[vip] != "") {
echo "» <a href=\\"?side=vip\\">V.I.P</a><br>";
} else {
echo "» <a href=\\"?side=kobVIP\\">Køb V.I.P</a><br>";
}
echo "
» <a href=\\"?mode=logaf\\">Log af</a><br><br>
<u>Info:</u><br>
» Point: $moenter<br>
» Online: $timer timer<br>
<span id=\\"tid\\"></span>";
}
} else {
echo "<form target=\\"_top\\" action=\\"index.php\\" method=\\"POST\\">
<table border=\\"0\\" width=\\"170\\" height=\\"1\\">
<tr>
<td width=\\"10\\" height=\\"1\\">B:</td>
<td width=\\"90\\" height=\\"1\\"><input type=\\"text\\" class=\\"jump\\" name=\\"brugernavn\\" size=\\"18\\"></td>
</tr>
<tr>
<td width=\\"10\\" height=\\"1\\">K:</td>
<td width=\\"90\\" height=\\"1\\"><input type=\\"password\\" class=\\"mont\\" name=\\"kode\\" size=\\"18\\"></td>
</tr>
<tr>
<td width=\\"10\\" height=\\"1\\"></td>
<td width=\\"90\\" height=\\"1\\"><input type=\\"submit\\" class=\\"gradient\\" value=\\"Log på\\" name=\\"logpaa\\"></td>
</tr>
<tr>
<td width=\\"10\\" height=\\"1\\"></td>
<td width=\\"90\\" height=\\"1\\"><a href=\\"?side=opret\\"><font size=\\"1\\">Ny bruger</font></a><br><a href=\\"?side=glemtkode\\"><font size=\\"1\\">Glemt kode</font></a></td>
</tr>
</table>
</form>";
}
}
?>
</td>
</tr>
<tr>
<td width="170" height="21"><b>#Tema</b></td>
</tr>
<tr>
<td width="170" height="21">
<select name="tema" class="tema" onchange="location.href='?side=&mode=tema&tema='+this.value;">
<?
if ($tema == "standard") {
echo "<option value=\\"standard\\" SELECTED>Standard</option>";
} else {
echo "<option value=\\"standard\\">Standard</option>";
}
if ($tema == "habbowood") {
echo "<option value=\\"habbowood\\" SELECTED>Habbowood</option>";
} else {
echo "<option value=\\"habbowood\\">Habbowood</option>";
}
if ($tema == "love") {
echo "<option value=\\"love\\" SELECTED>Kærlighed</option>";
} else {
echo "<option value=\\"love\\">Kærlighed</option>";
}
if ($tema == "paaske") {
echo "<option value=\\"paaske\\" SELECTED>Påske</option>";
} else {
echo "<option value=\\"paaske\\">Påske</option>";
}
if ($tema == "habbo") {
echo "<option value=\\"habbo\\" SELECTED>Habbo</option>";
} else {
echo "<option value=\\"habbo\\">Habbo</option>";
}
?>
</select>
</td>
</tr>
<tr>
<td width="170" height="21"><b>#Tæller</b></td>
</tr>
<tr>
<td width="170" height="21">
<!-- chart.dk unified trackercode - v1 -->
<script src='http://www.chart.dk/js/unified.asp'></script>
<script language='javascript'>
track_visitor(126362, '');
</script>
<noscript>
<a href="http://www.chart.dk/ref.asp?id=126362" target="_blank">
<img src="http://cluster.chart.dk/chart.asp?id=126362" border="0" alt="Chart.dk">
</a>
</noscript>
<!-- chart.dk unified trackercode - v1 --><br>
<!-- BOOST COUNTER : START --!><a title="Tælleren blev startet d.: 04. april 2006 kl. 19:09:40" target="_blank" href="http://www.snuzzer.dk/boost"><img border="0" src="http://www.snuzzer.dk/boost/tel.php?id=28"></a><!-- BOOST COUNTER : SLUT --!>
</td>
</tr>
</table>
</td>
<td valign="top" width="765" height="84" rowspan="14">
<?
$side = "nyheder";
if (!$_GET[side]) {
$_GET[side] = $side;
}
$hent = "$_GET[side].php";
if (file_exists($hent)) {
include ("$hent");
} else {
echo "<h2>Siden blev ikke fundet</h2>";
echo "<b>$_GET[side].php</b> blev ikke fundet";
}
?>
</td>
</tr>
</table>
</td>
</table>
<tr>
<td height="1">
<p align="center"><font size="1" color="#C0C0C0">Optimeret til Internet Explorer, 1024x768</font></p>
</td>
</tr>
<tr>
<td valign="bottom" width="770" height="110" background="gfx/bund_<? echo $tema; ?>.gif">
<div align="right"><a href="#" onclick="habboClient();">HabboHotel.dk</a></div>
</td>
</tr>
</table>
</td>
</table>
</center>
</body>