Hey Leute hab ein problem hab in der Me.php das mann jede 24 stunde 5 lobe.
Aber das problem is wenn mann immer auf der me seite is laden sich ständig 5 lobe brauche hilfe bitte.
PHP
<?php
require_once('./data_classes/server-data.php_data_classes-core.php.php');
$notlogin = true;
require_once('./data_classes/server-data.php_data_classes-session.php.php');
$pagename = $name;
$pageid = "1";
require_once('./templates/community_subheader.php');
require_once('./templates/community_header.php');
?>
<link rel="stylesheet" href="/new/style/new/lightweightmepage.css" type="text/css" />
<script src="<?php echo $path; ?>/new/JS/lightweightmepage.js" type="text/javascript"></script>
<?php
$news1_3 = mysql_query("SELECT * FROM cms_news ORDER BY ID DESC LIMIT 5") or die(mysql_error());
if(mysql_num_rows($news1_3) > 0){
?>
<div id="container">
<div id="content" style="position: relative" class="clearfix">
<style type="text/css">#redeem-habblet div.redeem-balance{width:165px;}#redeem-habblet a:link,#redeem-habblet a:visited{color:#FC6204;text-decoration:none;}#column3{margin-top:-276px}</style>
<div class="column" id="column7">
<div class="habblet-container ">
<div class="cbb clearfix darkgray ">
<div id="habblet box-content">
<div id="redeem-habblet">
<center>
<div class="redeem-balance">
<img src="/c_images/icons/purse.gif"><a href="./credits"><span style="text-shadow: #000 1px 1px 0px;color:#fff;font-weight:bold;" class="redeem-balance-amount5"><?php echo HoloText($myrow['credits']); ?> Taler</span></a></p>
</div>
<div class="redeem-balance">
<img src="/c_images/icons/pixels.png">
<p><a href="./credits/pixels"><span style="text-shadow: #000 1px 1px 0px;color:#fff;font-weight:bold;" class="redeem-balance-amount2"><?php echo HoloText($myrow['activity_points']); ?> Pixel</span></a></p>
</div>
<div class="redeem-balance">
<img src="/c_images/icons/STAR.png"><p><span style="text-shadow: #000 1px 1px 0px;color:#fff;font-weight:bold;" class="redeem-balance-amount3"> <?php echo $userinfo['Respect']; ?> Lobe</span></a></p>
</div>
<div class="redeem-balance">
<STRONG>
<img src="/c_images/icons/vip.png"><p><a href="./client"><span style="text-shadow: #000 1px 1px 0px;color:#fff;font-weight:bold;" class="redeem-balance-amount4"> <p><span class="redeem-balance-amount4" style="text-shadow: #000 1px 1px 0px;color:#fff;font-weight:bold;"> <?php if($hc > 0){ ?>
<font color="white"> <STRONG><a href="./credits/habboclub"> <font color="white"><?php echo getHCDays($my_id); ?> Tage VIP</font></a>
<?php } else { ?>
<a href="./VIP.php"> <font color="white">VIP Kaufen</font></a><?php } ?></span></p></span></a></p> </strong>
</div>
</center>
</div>
</div>
</div>
</div>
<font color="black">
<script src="<?php echo $path; ?>/new/JS/lightweightmepage.js" type="text/javascript"></script>
<div id="container"> <div id="content" style="position: relative" class="clearfix"> <div id="wide-personal-info"> <div id="habbo-plate"> <a href="<?php echo $path; ?>/profile.php"> <img alt="hiphopiplay" src="<?php echo $avatar; echo $myrow['look']; ?>&direction=4&head_direction=4" width="64" height="110"/> </a> </div> <div id="name-box" class="info-box"> <div class="label"><font color="black">Name:</div> </font> <div class="content"><font color="black"><?php echo $name.$myrow[id]; ?></font></div> </div> <div id="motto-box" class="info-box"> <div id="motto-container" class="clearfix"> <strong></strong> <div> <span><b><font color="black">Motto:</b></br><?php echo HoloText($myrow['motto']); ?></font></span> </div> </div> </div> <div id="last-logged-in-box" class="info-box"> <div class="label"><font color="black">Letzter Login:</div> <div class="content"><?php echo date('d-M-Y H:i:s', $myrow['last_online']); ?> </font>
</div> </div> <div class="enter-hotel-btn"> <div class="open enter-btn"> <a href="<?php echo $path; ?>/client" target="f8c6032f11698450c4c096bf3e9b3ba1f2f601fd" onclick="HabboClient.openOrFocus(this); return false;"><font color="black">Einchecken</font><i></i></a> <b></b> </div>
</font>
</div>
</div>
<style type="text/css">
div.title > a.titlestuff {
text-decoration: none;
color: #fff;
}
div.title > a.titlestuff:hover {
text-decoration: underline;
}
</style>
<div id="promo-box">
<div id="promo-bullets"></div>
<?php
$i = 0;
$back = '1';
while($news = mysql_fetch_assoc($news1_3)){
$i++;
?>
<div class="promo-container" style="<?php if($i != '1'){ ?>display: none;<?php } ?>background-image: url(<?php echo $site; ?>/new/Images/new/web_promo_0<?php echo $back; ?>.png)">
<div class="promo-content">
<div class="title"><?php echo ($news['title']); ?></div>
<div class="body"><?php echo ($news['longstory']); ?></div>
</div>
<div class="enter-hotel-btn">
<div class="open enter-btn">
<a href="<?php echo $site.'/articles/'.$news['id']; ?>"><font color="black">Lies mehr!</font><i></i></a>
<b></b>
</div>
</div>
<a href="https://www.facebook.com/" target="_blank" class="facebook-link"></a>
<a href="http://twitter.com/" target="_blank" class="twitter-link"></a>
</div>
<?php
if($back == '1'){
$back = '2';
} else if($back == '2') {
$back = '3';
} else if($back == '3') {
$back = '4';
} else if($back == '4') {
$back = '5';
} else {
$back = '1';
} } ?>
</div>
</div>
<script type="text/javascript"> document.observe("dom:loaded", function() { PromoSlideShow.init(); });</script>
<?php } ?>
</div>
</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
</div>
<div id="column2" class="column">
</div>
</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<script type="text/javascript">
HabboView.add(LoginFormUI.init);
</script>
<?php
if($myrow['vip'] == '1' && $date_normal !== $myrow['getmoney_date']){
mysql_query("UPDATE user_stats SET DailyRespectPoints = '5', DailyPetRespectPoints = '5' WHERE id = '".$my_id."'");
mysql_query("INSERT INTO cms_transactions (userid,descr,date,amount) VALUES ('".$my_id."','".$sitename."','".$date_full."','+7000')") or die(mysql_error());
$core->MUS('updatecredits', $my_id);
}
elseif($myrow['vip'] == "0" && $date_normal !== $myrow['getmoney_date']){
mysql_query("UPDATE user_stats SET DailyRespectPoints = '3', DailyPetRespectPoints = '3' WHERE id = '".$my_id."'");
mysql_query("INSERT INTO cms_transactions (userid,descr,date,amount) VALUES ('".$my_id."','".$sitename."','".$date_full."','+2000')") or die(mysql_error());
}
require_once('./templates/community_footer.php');
?>
Alles anzeigen