Hallo Towners, wer kann mir den PHP-Code zu Html umcoden?
PHP
<?php
require_once('./data_classes/server-data.php_data_classes-core.php.php');
session_start();
if(isset($_GET['registerCancel']) && $_GET['registerCancel'] == "true"){session_unset();}
if(!session_is_registered(username)){
if(isset($_POST['username']) && isset($_POST['password'])){ $username = FilterText($_POST['username']); $password = HoloHash($_POST['password'], $username); $password2 = HoloHashMD5($_POST['password'], $username); if(empty($username) || empty($_POST['password'])){ $login_error = "Bitte füll alle Felder aus!"; } else { $sql = mysql_query("SELECT id FROM users WHERE username = '".$username."' AND password = '".$password."' OR username = '".$username."' AND password = '".$password2."' LIMIT 1") or die(mysql_error()); if(mysql_num_rows($sql) < 1){ $login_error = "Username oder Passwort falsch"; } else { $userdata = mysql_fetch_assoc($sql); $userid = $userdata['id']; $ban = mysql_query("SELECT * FROM bans WHERE value = '".$username."' AND bantype = 'user' or value = '".$remote_ip."' AND bantype = 'ip' LIMIT 1") or die(mysql_error()); if(mysql_num_rows($ban) < 1){
mysql_query("UPDATE users SET password = '".$password2."', ip_last = '".$remote_ip."' WHERE username = '".$username."'");
$_SESSION['username'] = $username; $_SESSION['password'] = $password2; if($_POST['_login_remember_me'] == "true"){ setcookie("remember", "remember", time()+60*60*24*100, "/"); setcookie("rusername", $_SESSION['username'], time()+60*60*24*100, "/"); setcookie("rpassword", $_SESSION['password'], time()+60*60*24*100, "/"); } header("location: $path/me"); exit; } else { $bandata = mysql_fetch_assoc($ban); $timestamp = time(); if($bandata['expire'] > $timestamp){ $login_error = "Du bist gebannt! Der Grund für deinen Bann lautet "" . $bandata['reason'] . "" und dauert bis " . date('d.m.Y - H:i:s', $bandata['expire']) . "."; } else { mysql_query("DELETE FROM bans WHERE value = '".$username."' AND bantype = 'user' OR value = '".$remote_ip."' AND bantype = 'ip' LIMIT 1") or die(mysql_error()); mysql_query("UPDATE users SET password = '".$password2."', ip_last = '".$remote_ip."' WHERE username = '".$username."'");
$_SESSION['username'] = $username; $_SESSION['password'] = $password2; if($_POST['_login_remember_me'] == "true"){ setcookie("remember", "remember", time()+60*60*24*100, "/"); setcookie("rusername", $_SESSION['username'], time()+60*60*24*100, "/"); setcookie("rpassword", $_SESSION['password'], time()+60*60*24*100, "/"); } header("location: $path/me"); exit; } } } } }
$body_id = "index";$pagename = "Erstelle deinen ".$shortname.", designe deinen Raum, chatte und triff neue Freunde";
include('./templates/login_subheader.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><title>".$shortname."</title><link rel="shortcut icon" href="./images/favicon.ico" type="image/vnd.microsoft.icon" /><meta name="description" content="Triff neue Freunde und Chatte mit dennen." /><meta name="keywords" content="habbo,retro,habboretro,habbo retro,habbo mmorpg,habbo orpg,habbo hotel,puhekupla,habbotimes,staff,hotel,habbo,kostenlos,freegratis taler" />
<style>input{ height: 18px; border-color: #000000; border-style: solid; border-top-width: 1px; border-left-width: 1px; border-right-width: 1px; border-bottom-width: 2px;}select{ height: 23px; border-color: #000000; border-style: solid; border-top-width: 1px; border-left-width: 1px; border-right-width: 1px; border-bottom-width: 2px;}</style>
<body style="font-family: Verdana; font-size: 12px; background-color: #E3E3DB; margin: 0px; padding: 0px; zoom:100%">
<style>a{color:#454545;}</style>
<table style="margin: 0px; padding: 0px; height: 250px; width: 100%; background-image: url('./images/web2.0/header.gif'); background-position: top center; background-repeat: repeat-x;"> <tr> <td> <center> <img src="./images/web2.0/logo_huge.gif"> <br><br><br> </center> </td> </tr></table>
<center> <br><form action="./quickregister/start" method="post"> <table style="cursor: pointer;" onmouseover="document.getElementById('69d6229495786bf5bf3b861dbc0d1387a5d78d7b58479751').style.backgroundImage = 'url(./images/web2.0/hugebutton_green1.gif)';" onmouseout="document.getElementById('69d6229495786bf5bf3b861dbc0d1387a5d78d7b58479751').style.backgroundImage = 'url(./images/web2.0/hugebutton_green.gif)';"> <tr> <td id="69d6229495786bf5bf3b861dbc0d1387a5d78d7b58479751" style="margin: 0px; padding: 0px; background-image:url(./images/web2.0/hugebutton_green.gif); width: 949px; height: 63px; background-repeat: no-repeat;"> <center><input style="cursor: pointer; width: 949px; height: 63px; background:none; font-family: Verdana; font-size: 13px; border:none; color: #FFFFFF; align: center; font-weight: bold;" type="submit" value="Neu hier? Kostenlos registrieren!"></input></center> </td> </tr> </table></form> <br> <form action="<?php echo $path; ?>?name=<?php echo FilterText($_POST['username']); ?>&password=true" method="post"> <?php if(isset($login_error)){ ?> <div id="loginerrorfieldwrapper"> <div id="loginerrorfield"> <div><?php echo $login_error; ?></div> </div> </div> <?php } ?> <table style="width: 958px; padding: 0px; margin: 0px;" cellpadding="0" cellspacing="0"> <tr> <td style="vertical-align: top;"> <table style="padding: 0px; margin: 0px;" cellpadding="0" cellspacing="0"> <tr> <td style="background-color: #FFFFFF; background-image: url(./images/web2.0/loginbubble_100.gif); width: 476px; height: 2px; background-repeat: no-repeat;"></td> </tr> <tr> <td style="background-color: #FFFFFF; background-image: url(./images/web2.0/loginbubble_010.gif); width: 476px; height: 177px;"> <div style="padding: 5px; text-align: left;"> <b style="font-size: 13px;">Logge dich hier ein!</b><br><br> <table> <tr> <td> <label for="login-username" class="login-text">Username</label><br> <input style="margin-top: 5px; width: 240px;" type="text" class="login-field" name="username" id="login-username" value=""></input> <br><br><label for="login-password" class="login-text">Passwort</label><br> <input style="margin-top: 5px; width: 180px;" type="password" class="login-field" id="login-password" name="password"></input> <br><br> </td> <td style="width: 50px;"></td> <td> </td> </tr> </table> </div> </td> </tr> <tr> <td style="background-color: #FFFFFF; background-image: url(./images/web2.0/loginbubbleinfo_100.gif); width: 476px; height: 2px; background-repeat: no-repeat;"></td> </tr> <tr> <td style="background-color: #FFFFFF; background-image: url(./images/web2.0/loginbubbleinfo_010.gif); width: 476px; height: 5px;"> <div style="padding: 2px; text-align: left;"> <a href="./quickregister/start" style="padding: -1px; position: relative; top: 7px; padding: 5px;">Kostenlos registrieren</a> <div style="float: right;"> <table style="cursor: pointer;" onmouseover="document.getElementById('cd622dceeb6fd32fbddd79f323a32751bfc689f866272414').style.backgroundImage = 'url(./images/web2.0/smallbutton_green1.gif)';" onmouseout="document.getElementById('cd622dceeb6fd32fbddd79f323a32751bfc689f866272414').style.backgroundImage = 'url(./images/web2.0/smallbutton_green.gif)';"> <tr> <td id="cd622dceeb6fd32fbddd79f323a32751bfc689f866272414" style="margin: 0px; padding: 0px; background-image:url(./images/web2.0/smallbutton_green.gif); width: 77px; height: 25px; background-repeat: no-repeat;"> <center><input style="cursor: pointer; width: 77px; height: 25px; background:none; font-family: Verdana; font-size: 10px; border:none; color: #FFFFFF; align: center; font-weight: bold;" type="submit" value="Login"></input></center> </td> </tr> </table> </div> <br><br> </div> </td> </tr> <tr> <td style="background-color: #FFFFFF; background-image: url(./images/web2.0/loginbubbleinfo_001.gif); width: 476px; height: 4px; background-repeat: no-repeat;"></td> </tr> </table></form> </td> <td style="width: 20px;"></td> <td style="vertical-align: top;"> <div style="padding: 0px; vertical-align: top; background-image:url('./images/web2.0/registerinfo.gif'); width: 452px; height: 217px;"> <div style="float: left; padding: -1px; position: relative; left: 210px; top: 29px; width: 115px;"> <center> <b style="font-size: 15px;"><?php echo $online_count; ?></b> <br>Habbos online! </center> </div> </div> </td> </tr> </table> </center> </td> </tr></table>
<br> <br> <br><center><div style="color: #454545; font-size: 90%;"><a href="./index.php">Startseite</a> | <a href="./quickregister/start">Kostenlos registrieren</a>| <a href="./help.php">FAQ</a></div><br><div style="color: #777; width: 600px; font-size: 80%;">© ".$shortname."s Group & Resistance & Sunny. Erstelle deinen Habbo, designe deinen Raum, chatte und triff neue Freunde - Unser Spiel ist kostenlos, dir entstehen keinerlei Kosten.</div></center><br>
</html>
<?php
} else {header("location:../me");}
?>
Alles anzeigen