Como troka ame do hotel 14.02.12 18:30
Alguem me poderia ajuda a troka a Me é pq eu baixer um cms mais nao gostei da me alguem ajuda a toka ??
<?php
define('USERNAME_REQUIRED', TRUE);
define('ACCOUNT_REQUIRED', TRUE);
include('global.php');
define("THIS_SCRIPT", 'me');
$username = $core->EscapeString($_SESSION['username']);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="icon" href="favico.ico" type="image/gif" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $sitename." Me"; ?></title>
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
<script type="text/javascript" src="Public/JS/jquery.history.js"></script>
<script src="http://cdn.jquerytools.org/1.2.5/jquery.tools.min.js"></script>
<script language="javascript">
(function($){
$(document).ready(function() {
$('.Usersmotto').click(function() {
$('.Usersmotto').css("display", "none")
$('.UserMotto').css("display", "block")
$('.UserMotto').focus()
return;
});
$('.UserMotto').blur(function() {
$('.UserMotto').css("display", "none")
$.ajax({
url: "functions/updatemotto.php?motto=" + $('.UserMotto').val(),
async: false
})
$('.Usersmotto').html($('.UserMotto').val())
$('.Usersmotto').css("display", "block")
$('.Usersmotto').css("min-width", "200px")
$('.Usersmotto').css("min-height", "30px")
return;
});
});
})(jQuery);
</script>
<script src="cufon-yui.js" type="text/javascript"></script>
<script src="ubuntu.font.js" type="text/javascript"></script>
<script type="text/javascript">
Cufon.replace('h1');
Cufon.replace('h2');
Cufon.replace('h3');
</script>
<link rel="stylesheet" type="text/css" href="css/main.css" />
<link rel="stylesheet" type="text/css" href="css/pms.css" />
</head>
<body background="/images/fundo.gif">
<?php include('includes/header.php'); ?>
<div class="container">
<?php include('includes/headerTwo.php'); ?>
<?php include('includes/bigCampaign.php'); ?>
<div class="columnOne">
<div class="contentBox">
<div class="boxHeaderGreen"><h1>Campanhas</h1></div>
<?php
$query = mysql_query("SELECT * FROM cms_news WHERE campaign ='1' ORDER BY published DESC");
$num = mysql_num_rows($query);
if($num > 0)
{
$color = 'odd';
while($campaign = mysql_fetch_array($query))
{
echo'
<div class="campaigncontainer" id="'.$color.'">
<div class="image" style="background: url('.$campaign['campaignimg'].') no-repeat;"></div>
<div class="campaign">
<div class="title"><a href="articles.php?story='.$campaign['id'].'">'.strip_tags($campaign
['title']).'</a></div>
<div class="story">'.strip_tags($campaign['shortstory'], '<br><br/><br />').'</div>
<div class="readmore"><a href="articles.php?story='.$campaign['id'].'">Leia mais »</a></div>
</div>
</div>';
if($color == 'odd')
$color='even';
else
$color='odd';
}
}
?>
</div>
<div class="contentBox">
<div class="boxHeaderBlue"><h1>Radio</h1></div>
<div class="oddBg">
<div style="background-image: url(''); background-repeat: no-repeat; text-shadow: 1px 1px
#FFF; background-size: 100%; padding-left: 0px;">
<?php include('system/radio.php'); ?>
</div>
</div>
</div>
<div class="contentBox">
<div class="boxHeaderRed"><h1>Chat</h1></div>
<div class="oddBg">
<div style="background-image: url(''); background-repeat: no-repeat; text-shadow: 1px 1px
#FFF; background-size: 100%; padding-left: 0px;">
<?php include('system/xat.php'); ?>
<?php include('system/sideads.php'); ?>
</div>
</div>
</div>
</div>
<div class="columnTwo">
<?php
$query = mysql_query("SELECT * FROM cms_news ORDER BY published DESC LIMIT 1");
$num = mysql_num_rows($query);
if($num > 0)
{
$news = mysql_fetch_array($query);
echo'<div class="newsHeader">
<div class="HeadlineStory" id="'.$news["id"].'" style="background: url('.$news["image"].') no-repeat; display:block;">
<p class="Mainheadline"><h3><a href="articles.php?story='.$news["id"].'">'.stripslashes($news["title"]).'</a></h3></p>
<p class="Mainstory">'.strip_tags($news["shortstory"], '<br><br/><br />').'</p>
<p class="readmorenews"><a href="articles.php?story='.$news['id'].'">Leitura completa »</a></p>
</div>
</div>';
$color = 'odd';
$query = mysql_query("SELECT * FROM cms_news ORDER BY published DESC LIMIT 3");
while($news = mysql_fetch_array($query))
{
echo'<div class="storybox" id="'.$color.'" ref="'.$news["id"].'">
<p class="headline"><a href="articles.php?story='.$news["id"].'">'.$news["title"].'</a></p>
<p class="date">'.@date("d-m-Y", $news['published']).'</p>
</div>';
if($color == 'odd')
$color='even';
else
$color='odd';
}
}
?>
<div class="storyboxEnd">
<div class="readmore"><a href="articles.php">Outras noticias »</a></div>
</div>
<div class="contentBox">
<div class="boxHeaderBlue">
<h1>Quartos</h1></div>
<?php
$query1 = mysql_query("SELECT * FROM rooms WHERE users_now >= '1'");
$num1 = mysql_num_rows($query1);
if($num1 == 0) {
echo "Sinto muito, Olhe como nao ha qualquer salas ativas para mostrar neste momento no tempo. Por que nao ir preencher um?";
} else {
?>
<?php
$query = mysql_query("SELECT * FROM rooms WHERE users_now >= '1' ORDER BY users_now DESC LIMIT 5");
$num = mysql_num_rows($query);
if($num > 0)
{
$color = 'odd';
while($campaign = mysql_fetch_array($query))
{
echo'
<div class="campaigncontainer" id="'.$color.'">
<div class="campaign">
<div class="title"><a href="home.php?u='.$campaign['owner'].'">'.$campaign['caption'].'</a></div>
<div class="story">';strip_tags($campaign['description'], '<br><br/><br />')?>
<?php
if($campaign['users_now'] >= '8') {
echo "<div class=\"redBg\">";
echo "{$campaign['users_now']}";
echo "</div>";
} elseif($campaign['users_now'] >= '5') {
echo "<div class=\"orangeBg\">";
echo "{$campaign['users_now']}";
echo "</div>";
}
else {
echo "<div class=\"greenBg\">";
echo "{$campaign['users_now']}";
echo "</div>";
}
?>
<?php echo '</div>
<div class="readmore">Owner: <a href="home.php?u='.$campaign['owner'].'">'.$campaign['owner'].'</a></div>
</div>
</div>';
if($color == 'odd')
$color='even';
else
$color='odd';
}
}
}
?>
</div>
<div class="contentBox">
<div class="boxHeaderGreen">
<h1>Top 5: Creditos</h1></div>
<table>
<?php
$datosTop = mysql_query("SELECT * FROM users ORDER BY credits DESC LIMIT 5");
while($datosTop10 = mysql_fetch_array($datosTop)){
echo '
<tr><td width="5px"></td>
<td width="20px">';
echo '<img src="http://www.habbo.com.es/habbo-imaging/avatarimage?figure=' . $datosTop10['look'] . '&direction=3&head_direction=3&gesture=sml&action=crr=2&size=s" align="left"></td> <td width="195px"> <a href="#">'.$datosTop10['username'].'</a><br />'.$datosTop10['credits'].' creditos';
echo '</td>
';
}
?>
</table>
</div>
<div class="contentBox">
<div class="boxHeaderGreen">
<h1>Top 5: Pixels</h1></div>
<table>
<?php
$datosTop = mysql_query("SELECT * FROM users ORDER BY activity_points DESC LIMIT 5");
while($datosTop10 = mysql_fetch_array($datosTop)){
echo '
<tr><td width="5px"></td>
<td width="20px">';
echo '<img src="http://www.habbo.com.es/habbo-imaging/avatarimage?figure=' . $datosTop10['look'] . '&direction=3&head_direction=3&gesture=sml&action=crr=2&size=s" align="left"></td> <td width="195px"> <a href="#">'.$datosTop10['username'].'</a><br />'.$datosTop10['activity_points'].' pixels';
echo '</td>
';
}
?>
</table>
</div>
<div class="contentBox">
<div class="boxHeaderGreen">
<h1>Top 5: Fama</h1></div>
<table>
<?php
$datosTop = mysql_query("SELECT * FROM users ORDER BY respect DESC LIMIT 5");
while($datosTop10 = mysql_fetch_array($datosTop)){
echo '
<tr><td width="5px"></td>
<td width="20px">';
echo '<img src="http://www.habbo.com.es/habbo-imaging/avatarimage?figure=' . $datosTop10['look'] . '&direction=3&head_direction=3&gesture=sml&action=crr=2&size=s" align="left"></td> <td width="195px"> <a href="#">'.$datosTop10['username'].'</a><br />'.$datosTop10['respect'].' veses respeitado';
echo '</td>
';
}
?>
</table>
</div>
</div>
<?php include('includes/footer.php'); ?>
</div>
</body>
</html>
@Raff escreveu:Mano, cola este código na sua DB!
- Código:
<?php
define('USERNAME_REQUIRED', TRUE);
define('ACCOUNT_REQUIRED', TRUE);
include('global.php');
define("THIS_SCRIPT", 'me');
$username = $core->EscapeString($_SESSION['username']);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="icon" href="favico.ico" type="image/gif" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $sitename." Me"; ?></title>
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
<script type="text/javascript" src="Public/JS/jquery.history.js"></script>
<script src="http://cdn.jquerytools.org/1.2.5/jquery.tools.min.js"></script>
<script language="javascript">
(function($){
$(document).ready(function() {
$('.Usersmotto').click(function() {
$('.Usersmotto').css("display", "none")
$('.UserMotto').css("display", "block")
$('.UserMotto').focus()
return;
});
$('.UserMotto').blur(function() {
$('.UserMotto').css("display", "none")
$.ajax({
url: "functions/updatemotto.php?motto=" + $('.UserMotto').val(),
async: false
})
$('.Usersmotto').html($('.UserMotto').val())
$('.Usersmotto').css("display", "block")
$('.Usersmotto').css("min-width", "200px")
$('.Usersmotto').css("min-height", "30px")
return;
});
});
})(jQuery);
</script>
<script src="cufon-yui.js" type="text/javascript"></script>
<script src="ubuntu.font.js" type="text/javascript"></script>
<script type="text/javascript">
Cufon.replace('h1');
Cufon.replace('h2');
Cufon.replace('h3');
</script>
<link rel="stylesheet" type="text/css" href="css/main.css" />
<link rel="stylesheet" type="text/css" href="css/pms.css" />
</head>
<body background="/images/fundo.gif">
<?php include('includes/header.php'); ?>
<div class="container">
<?php include('includes/headerTwo.php'); ?>
<?php include('includes/bigCampaign.php'); ?>
<div class="columnOne">
<div class="contentBox">
<div class="boxHeaderGreen"><h1>Campanhas</h1></div>
<?php
$query = mysql_query("SELECT * FROM cms_news WHERE campaign ='1' ORDER BY published DESC");
$num = mysql_num_rows($query);
if($num > 0)
{
$color = 'odd';
while($campaign = mysql_fetch_array($query))
{
echo'
<div class="campaigncontainer" id="'.$color.'">
<div class="image" style="background: url('.$campaign['campaignimg'].') no-repeat;"></div>
<div class="campaign">
<div class="title"><a href="articles.php?story='.$campaign['id'].'">'.strip_tags($campaign
['title']).'</a></div>
<div class="story">'.strip_tags($campaign['shortstory'], '<br><br/><br />').'</div>
<div class="readmore"><a href="articles.php?story='.$campaign['id'].'">Leia mais »</a></div>
</div>
</div>';
if($color == 'odd')
$color='even';
else
$color='odd';
}
}
?>
</div>
<div class="contentBox">
<div class="boxHeaderBlue"><h1>Radio</h1></div>
<div class="oddBg">
<div style="background-image: url(''); background-repeat: no-repeat; text-shadow: 1px 1px
#FFF; background-size: 100%; padding-left: 0px;">
<?php include('system/radio.php'); ?>
</div>
</div>
</div>
<div class="contentBox">
<div class="boxHeaderRed"><h1>Chat</h1></div>
<div class="oddBg">
<div style="background-image: url(''); background-repeat: no-repeat; text-shadow: 1px 1px
#FFF; background-size: 100%; padding-left: 0px;">
<?php include('system/xat.php'); ?>
<?php include('system/sideads.php'); ?>
</div>
</div>
</div>
</div>
<div class="columnTwo">
<?php
$query = mysql_query("SELECT * FROM cms_news ORDER BY published DESC LIMIT 1");
$num = mysql_num_rows($query);
if($num > 0)
{
$news = mysql_fetch_array($query);
echo'<div class="newsHeader">
<div class="HeadlineStory" id="'.$news["id"].'" style="background: url('.$news["image"].') no-repeat; display:block;">
<p class="Mainheadline"><h3><a href="articles.php?story='.$news["id"].'">'.stripslashes($news["title"]).'</a></h3></p>
<p class="Mainstory">'.strip_tags($news["shortstory"], '<br><br/><br />').'</p>
<p class="readmorenews"><a href="articles.php?story='.$news['id'].'">Leitura completa »</a></p>
</div>
</div>';
$color = 'odd';
$query = mysql_query("SELECT * FROM cms_news ORDER BY published DESC LIMIT 3");
while($news = mysql_fetch_array($query))
{
echo'<div class="storybox" id="'.$color.'" ref="'.$news["id"].'">
<p class="headline"><a href="articles.php?story='.$news["id"].'">'.$news["title"].'</a></p>
<p class="date">'.@date("d-m-Y", $news['published']).'</p>
</div>';
if($color == 'odd')
$color='even';
else
$color='odd';
}
}
?>
<div class="storyboxEnd">
<div class="readmore"><a href="articles.php">Outras noticias »</a></div>
</div>
<div class="contentBox">
<div class="boxHeaderBlue">
<h1>Quartos</h1></div>
<?php
$query1 = mysql_query("SELECT * FROM rooms WHERE users_now >= '1'");
$num1 = mysql_num_rows($query1);
if($num1 == 0) {
echo "Sinto muito, Olhe como nao ha qualquer salas ativas para mostrar neste momento no tempo. Por que nao ir preencher um?";
} else {
?>
<?php
$query = mysql_query("SELECT * FROM rooms WHERE users_now >= '1' ORDER BY users_now DESC LIMIT 5");
$num = mysql_num_rows($query);
if($num > 0)
{
$color = 'odd';
while($campaign = mysql_fetch_array($query))
{
echo'
<div class="campaigncontainer" id="'.$color.'">
<div class="campaign">
<div class="title"><a href="home.php?u='.$campaign['owner'].'">'.$campaign['caption'].'</a></div>
<div class="story">';strip_tags($campaign['description'], '<br><br/><br />')?>
<?php
if($campaign['users_now'] >= '8') {
echo "<div class=\"redBg\">";
echo "{$campaign['users_now']}";
echo "</div>";
} elseif($campaign['users_now'] >= '5') {
echo "<div class=\"orangeBg\">";
echo "{$campaign['users_now']}";
echo "</div>";
}
else {
echo "<div class=\"greenBg\">";
echo "{$campaign['users_now']}";
echo "</div>";
}
?>
<?php echo '</div>
<div class="readmore">Owner: <a href="home.php?u='.$campaign['owner'].'">'.$campaign['owner'].'</a></div>
</div>
</div>';
if($color == 'odd')
$color='even';
else
$color='odd';
}
}
}
?>
</div>
<div class="contentBox">
<div class="boxHeaderGreen">
<h1>Top 5: Creditos</h1></div>
<table>
<?php
$datosTop = mysql_query("SELECT * FROM users ORDER BY credits DESC LIMIT 5");
while($datosTop10 = mysql_fetch_array($datosTop)){
echo '
<tr><td width="5px"></td>
<td width="20px">';
echo '<img src="http://www.habbo.com.es/habbo-imaging/avatarimage?figure=' . $datosTop10['look'] . '&direction=3&head_direction=3&gesture=sml&action=crr=2&size=s" align="left"></td> <td width="195px"> <a href="#">'.$datosTop10['username'].'</a><br />'.$datosTop10['credits'].' creditos';
echo '</td>
';
}
?>
</table>
</div>
<div class="contentBox">
<div class="boxHeaderGreen">
<h1>Top 5: Pixels</h1></div>
<table>
<?php
$datosTop = mysql_query("SELECT * FROM users ORDER BY activity_points DESC LIMIT 5");
while($datosTop10 = mysql_fetch_array($datosTop)){
echo '
<tr><td width="5px"></td>
<td width="20px">';
echo '<img src="http://www.habbo.com.es/habbo-imaging/avatarimage?figure=' . $datosTop10['look'] . '&direction=3&head_direction=3&gesture=sml&action=crr=2&size=s" align="left"></td> <td width="195px"> <a href="#">'.$datosTop10['username'].'</a><br />'.$datosTop10['activity_points'].' pixels';
echo '</td>
';
}
?>
</table>
</div>
<div class="contentBox">
<div class="boxHeaderGreen">
<h1>Top 5: Fama</h1></div>
<table>
<?php
$datosTop = mysql_query("SELECT * FROM users ORDER BY respect DESC LIMIT 5");
while($datosTop10 = mysql_fetch_array($datosTop)){
echo '
<tr><td width="5px"></td>
<td width="20px">';
echo '<img src="http://www.habbo.com.es/habbo-imaging/avatarimage?figure=' . $datosTop10['look'] . '&direction=3&head_direction=3&gesture=sml&action=crr=2&size=s" align="left"></td> <td width="195px"> <a href="#">'.$datosTop10['username'].'</a><br />'.$datosTop10['respect'].' veses respeitado';
echo '</td>
';
}
?>
</table>
</div>
</div>
<?php include('includes/footer.php'); ?>
</div>
</body>
</html>
Recomendamos a BH Servers com proteção DDOS gratuita em Cloud Server de alta performance. Entrega imediata.