Retro-Zone ~ Dein Forum rund um Retros

Hier wird geholfen
 
StartseiteKalenderFAQSuchenMitgliederNutzergruppenAnmeldenLogin

Teilen | 
 

 V32 Index.php

Nach unten 
AutorNachricht
PinkFruit
Admin
Admin


Anzahl der Beiträge : 85
Punkte : 2147483647
Bewertungssystem : 0
Anmeldedatum : 21.03.10

BeitragThema: V32 Index.php   Mo März 22, 2010 5:19 pm

EINFACH BEI index.php EINFÜGEN

Zuerst das alte weg,und dieses einfügen Smile




<?php
/*===================================================+
|| # HoloCMS - Website and Content Management System
|+===================================================+
|| # Copyright ©️ 2008 Meth0d. All rights reserved.
|| # http://www.meth0d.org
|+===================================================+
|| # HoloCMS is provided "as is" and comes without
|| # warrenty of any kind. HoloCMS is free software!
|+===================================================*/

include('core.php');


session_start();

if(isset($_GET) && $_GET['do'] == "version"){
echo "<h1>HoloCMS Version</h1><hr />".$sitename." is running HoloCMS v".$holocms['version']."<hr /><p><strong>HoloCMS Version:</strong> ".$holocms['version']." ".$holocms['stable']." [".$holocms['title']."]<br />\n<strong>HoloCMS Build Date:</strong> ".$holocms['date']."<br />\n<strong>Holograph Emulator Compatability:</strong> Build for <a href='http://trac2.assembla.com/holograph/changeset/".$holograph['revision']."' target='_blank'>Revision ".$holograph['revision']."</a> (".$holograph['type'].")</p>\n<hr /><i>".$remote_ip." @ ".$path."</i>";
exit;
}

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']);
$password = HoloHash($_POST['password'], $username);
$remember_me = $_POST['_login_remember_me'];

if(empty($username) || empty($password)){
$login_error = "<?php echo $lang_blank ?>";
} else {
$sql = mysql_query("SELECT id FROM users WHERE name = '".$username."' AND password = '".$password."' LIMIT 1") or die(mysql_error());
$rows = mysql_num_rows($sql);
if($rows < 1){
$login_error = ".<?php $lang_invalid ?>.";
} else {
$userdata = mysql_fetch_assoc($sql);
$userid = $userdata['id'];
$check = mysql_query("SELECT * FROM users_bans WHERE userid = '".$userid."' OR ipaddress = '".$remote_ip."' LIMIT 1") or die(mysql_error());
$is_banned = mysql_num_rows($check);
if($is_banned < 1){
if($email_force_verify == true){
$temp1 = mysql_query("SELECT * FROM users WHERE id = '".$userid."' AND email_verified = '1'");
if(mysql_num_rows($temp1) < 1){
$login_error = ".<?php echo $lang_emailver ?>.";
}else{
$_SESSION['username'] = $username;
$_SESSION['password'] = $password;
if($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, "/");
}
$sql3 = mysql_query("UPDATE users SET lastvisit = '".$date_full."' WHERE name = '".$username."'") or die(mysql_error());
header("location:security_check.php"); exit;
}
}else{
$_SESSION['username'] = $username;
$_SESSION['password'] = $password;
if($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, "/");
}
$sql3 = mysql_query("UPDATE users SET lastvisit = '".$date_full."' WHERE name = '".$username."'") or die(mysql_error());
header("location:security_check.php"); exit;
}
} else {
$bandata = mysql_fetch_assoc($check);
$reason = $bandata['descr'];
$expire = $bandata['date_expire'];

$xbits = explode(" ", $expire);
$xtime = explode(":", $xbits[1]);
$xdate = explode("-", $xbits[0]);

$stamp_now = mktime(date('H'),date('i'),date('s'),$today,$month,$year);
$stamp_expire = mktime($xtime[0], $xtime[1], $xtime[2], $xdate[0], $xdate[1], $xdate[2]);

if($stamp_now < $stamp_expire){
$login_error = "". $lang_ban."".$reason."".$lang_bana."".$expire.".";
} else { // ban expired
mysql_query("DELETE FROM users_bans WHERE userid = '".$userid."' OR ipaddress = '".$remote_ip."' LIMIT 1") or die(mysql_error());
$_SESSION['username'] = $username;
$_SESSION['password'] = $password;
if($remember_me == "true"){
setcookie("remember", "remember", time()+60*60*24*100, "/");
setcookie("rusername", $_SESSION['username'], time()+60*60*24*100, "/");
setcookie("rpassword", HoloHash($_SESSION['password'], $_SESSION['username']), time()+60*60*24*100, "/");
}
$sql3 = mysql_query("UPDATE users SET lastvisit = '".$date_full."' WHERE name = '".$username."'") or die(mysql_error());
header("location:security_check.php"); exit;
}
}
}
}
}

if(isset($_GET['error'])){
$errorno = $_GET['error'];
if($errorno == 1){
$login_error = "Invalid username or password.";
} elseif($errorno == 2){
$login_error = "Invalid username or password.";
} elseif(isset($_GET['ageLimit']) && $_GET['ageLimit'] == "true"){
$login_error = "You are too young to register.";
}
}

include("locale/".$language."/login.php");
include('templates/login/login.php');

?>
<div id="column2" class="column">
<div class="habblet-container ">

<div id="fp-container">
<div id="header" class="clearfix">
<h1><a href="index.php"></a></h1>
<span class="login-register-link">
<?php echo $lang_new ?> <a href="./register.php"><?php echo $lang_register ?></a>
</span>
</div>
<div id="content">

<div class="logincontainer">

<?php
if(isset($login_error)){
echo "\n<div class=\"action-error flash-message\">\n <div class=\"rounded\">\n <ul>\n <li>".$lang_invalid."</li>\n </ul>\n </div>\n</div>\n";
}
?>
<div class="cb loginbox clearfix"><div class="bt"><div></div></div><div class="i1"><div class="i2"><div class="i3">
<div class="rounded-container"><div style="background-color: rgb(255, 255, 255);"><div style="margin: 0px 1px; overflow: hidden; height: 1px; background-color: rgb(255, 255, 255);"><div style="margin: 0px 1px; overflow: hidden; height: 1px; background-color: rgb(255, 255, 255);"><div style="margin: 0px 1px; overflow: hidden; height: 1px; background-color: rgb(255, 255, 255);"><div style="margin: 0px 1px; overflow: hidden; height: 1px; background-color: rgb(255, 255, 255);"></div></div></div></div><div style="margin: 0px; overflow: hidden; height: 1px; background-color: rgb(255, 255, 255);"><div style="margin: 0px 1px; overflow: hidden; height: 1px; background-color: rgb(255, 255, 255);"><div style="margin: 0px 1px; overflow: hidden; height: 1px; background-color: rgb(255, 255, 255);"></div></div></div><div style="margin: 0px; overflow: hidden; height: 1px; background-color: rgb(255, 255, 255);"><div style="margin: 0px 1px; overflow: hidden; height: 1px; background-color: rgb(255, 255, 255);"></div></div><div style="margin: 0px; overflow: hidden; height: 1px; background-color: rgb(255, 255, 255);"><div style="margin: 0px 1px; overflow: hidden; height: 1px; background-color: rgb(255, 255, 255);"></div></div></div><h2 class="title rounded-done">Sign in</h2><div style="background-color: rgb(255, 255, 255);"><div style="margin: 0px; overflow: hidden; height: 1px; background-color: rgb(255, 255, 255);"><div style="margin: 0px 1px; overflow: hidden; height: 1px; background-color: rgb(255, 255, 255);"></div></div><div style="margin: 0px; overflow: hidden; height: 1px; background-color: rgb(255, 255, 255);"><div style="margin: 0px 1px; overflow: hidden; height: 1px; background-color: rgb(255, 255, 255);"></div></div><div style="margin: 0px; overflow: hidden; height: 1px; background-color: rgb(255, 255, 255);"><div style="margin: 0px 1px; overflow: hidden; height: 1px; background-color: rgb(255, 255, 255);"><div style="margin: 0px 1px; overflow: hidden; height: 1px; background-color: rgb(255, 255, 255);"></div></div></div><div style="margin: 0px 1px; overflow: hidden; height: 1px; background-color: rgb(255, 255, 255);"><div style="margin: 0px 1px; overflow: hidden; height: 1px; background-color: rgb(255, 255, 255);"><div style="margin: 0px 1px; overflow: hidden; height: 1px; background-color: rgb(255, 255, 255);"><div style="margin: 0px 1px; overflow: hidden; height: 1px; background-color: rgb(255, 255, 255);"></div></div></div></div></div></div>
<div class="box-content clearfix" id="login-habblet">

<form action="index.php?do=process_login" method="post" class="login-habblet">

<ul>
<li>

<label for="login-username" class="login-text"><?php echo $lang_username ?></label>
<input tabindex="1" class="login-field" name="username" id="login-username" value="" type="text">
</li>
<li>
<label for="login-password" class="login-text"><?php echo $lang_password ?></label>
<input tabindex="2" class="login-field" name="password" id="login-password" type="password">
<input style="margin-left: -10000px;" value="<?php echo $lang_signin ?>" class="submit" id="login-submit-button" type="submit">
<a href="#" id="login-submit-new-button" class="new-button" style="margin-left: 0pt;"><b style="padding-left: 10px; padding-right: 7px; width: 55px;"><?php echo $lang_signin ?></b><i></i></a>

</li>
<li id="remember-me" class="no-label">
<input tabindex="4" name="_login_remember_me" id="login-remember-me" value="true" type="checkbox">
<label for="login-remember-me"><?php echo $lang_remember ?></label>
</li>
<li class="no-label">
<a href="forgot.php" id="forgot-password"><span><?php echo $lang_fogot ?></span></a>
</li>

</ul>
</form>

</div>
</div></div></div><div class="bb"><div></div></div></div>
<div id="remember-me-notification" class="bottom-bubble" style="display: none; top: 174px; right: 9px;">
<div class="bottom-bubble-t"><div></div></div>
<div class="bottom-bubble-c">
By selecting 'remember me' you will stay signed in on this computer until you click 'Sign Out'. If this is a public computer please do not use this feature.
</div>

<div class="bottom-bubble-b"><div></div></div>

</div>
<script type="text/javascript">
L10N.put("authentication.form.name", "Username");
L10N.put("authentication.form.password", "Password");
HabboView.add(function() {LoginFormUI.init();});
HabboView.add(function() {RememberMeUI.init("newfrontpage");});
</script>



</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>



<div class="habblet-container">

<div id="frontpage-image" style="background-image: url(./web-gallery/v2/images/frontpage/frontpg_misc_01.gif);"><div id="partner-logo"></div><div style="width: 127px; left: 42px; top: 33px;" class="cb bubble" id="fp-bubble-0"><div class="bt"><div></div></div><div class="i1"><div class="i2"><div class="i3">Erstell dein <?php echo $shortname; ?></div></div><div class="spike"></div></div><div class="bb"><div></div></div></div><div style="width: 162px; left: 233px; top: 27px;" class="cb bubble" id="fp-bubble-1"><div class="bt"><div></div></div><div class="i1"><div class="i2"><div class="i3">...Treffe neue Freunde!</div></div><div class="spike"></div></div><div class="bb"><div></div></div></div><div style="width: 279px; left: 28px; top: 188px;" class="cb bubble" id="fp-bubble-2"><div class="bt"><div></div></div><div class="i1"><div class="i2"><div class="i3">Betrete den Virtuellen Habbo Land...</div></div><div class="spike"></div></div><div class="bb"><div></div></div></div></div>

<script type="text/javascript">
var sb = new SpeechBubble();
var i = 0;
sb.add("fp-bubble-"+i++, "frontpage-image", 108, 57, "<?php echo $lang_create ?><?php echo $shortname; ?>");
sb.add("fp-bubble-"+i++, "frontpage-image", 317, 51, "<?php echo $lang_friend ?>");
sb.add("fp-bubble-"+i++, "frontpage-image", 170, 212, "<?php echo $lang_join ?>");
HabboView.add(function() {sb.render();});
</script>





</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>


</div>
<div id="column2" class="column">
</div>
<div id="column-footer">
<div id="column-footer">

<div class="habblet-container">

<div id="hotel-stats" class="cb"><div class="bt"><div></div></div><div class="i1"><div class="i2"><div class="i3"><ul class="stats">
<li class="stats-online"><span class="stats-fig"><?php echo $online_count; ?></span><?php echo $shortname; ?>´s<?php echo $lang_online ?></li>

<li class="stats-visited"><span class="stats-fig">782</span></li>
</ul>
</div></div></div><div class="bb"><div></div></div></div>



</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>


<div class="habblet-container">

<div id="tag-cloud-slim" class="cb habblet box-content"><div class="bt"><div></div></div><div class="i1"><div class="i2"><div class="i3">
<span class="tags-habbos-like"><?php echo $shortname; ?>s <?php echo $lang_like ?></span>
<?php include('tagcloud.php'); ?>
</ul></div></div></div><div class="bb"><div></div></div></div>



</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>


</div>


<!--[if lt IE 7]>
<script type="text/javascript">
Pngfix.doPngImageFix();
</script>
<![endif]-->

<div id="footer">

</div> </div>
<?php


} else {
header("location:me.php");
}

?>
Nach oben Nach unten
Benutzerprofil anzeigen http://retrozone.dogoo.us
 
V32 Index.php
Nach oben 
Seite 1 von 1

Befugnisse in diesem ForumSie können in diesem Forum nicht antworten
Retro-Zone ~ Dein Forum rund um Retros :: Habbo Hotel :: Habbo Releases-
Gehe zu: