Index com erro

4 participantes

MenoReT MenoReT  • 27.07.15 18:28

Index com erro Empty Index com erro 27.07.15 18:28

Print de meu erro: http://bladehotel.treehabbos.com/index.php

Qual é meu erro: Index com erro

CMS Que estou utilizando: FearCMSV1.0

SWF que estou utilizando: pack do Criando Habbos Azure

Versão de meu hotel: NewCrypto

Se escolheu outros, especifique: Index com erro

Comentários adicionais: Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/bladehoteltreeha/public_html/index.php:1) in /home/bladehoteltreeha/public_html/data_classes/server-data.php_data_classes-core.php.php on line 4

Vong Vong  • 27.07.15 18:36

Index com erro Empty teste 27.07.15 18:36

Vá na sua data_classes e depois em server-data.php_data_classes-core.php.php e configure com os dados de seu hotel.

MenoReT MenoReT  • 27.07.15 18:40

Index com erro Empty teste 27.07.15 18:40

[codebox]<?php
#APRIMORAMENTOS POR @RTIAG0
define("IN_HOLOCMS", TRUE);
session_start();

// #########################################################################
// CONEXÃO COM O BANCO DE DADOS
// #########################################################################

@require_once('server-data.php_data_classes-config.php.php');
mysql_connect("$MySQLhostname", "$MySQLusername", "$MySQLpassword") or die("Erro em conexão com o MySQL");
mysql_select_db("$MySQLdb") or die("Banco de dados inexistente");
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_WARNING);
error_reporting(0);
ini_set('display_errors', 0);

// #########################################################################
// CONFIGURAÇÕES
// #########################################################################

$cms_name = "RetroZ CMS 1.0"; // VERSÃO CMS
$cms_url = $hotel_url;
$antiSulake = AntiSulake; // NÃO SEI QUE DIABOS É ISSO .-.

foreach($_GET As $name=>$value) {
$_GET[$name]=mysql_real_escape_string($value);
}
foreach($_POST as $name => $value) {
$_POST[$name] = mysql_real_escape_string($value);
}

$remote_ip = $_SERVER['REMOTE_ADDR'];
$sitename = "$Hotelname";
$shortname = "$Hotelname";

if(@ini_get('date.timezone') == null && function_exists("date_default_timezone_get")){ @date_default_timezone_set("Europe/Madrid"); }

$H = date('H');
$i = date('i');
$s = date('s');
$m = date('m');
$d = date('d');
$Y = date('Y');
$j = date('j');
$n = date('n');
$today = $d;
$month = $m;
$year = $Y;
$getmoney_date = date('d/m/Y',mktime($m,$d,$Y));
$birthday_date = date('d/m', mktime($m,$d));
$date_normal = date('d/m/Y',mktime($m,$d,$Y));
$date_full = date('d/m/Y H:i:s',mktime($H,$i,$s,$m,$d,$Y));
$path = $hotel_url;
$adminpath = mysql_real_escape_string("".$path."/theallseeingeye/hotel/br/housekeeping"); //*Painel de Controle*//
$clientpath = $hotel_url;
$cimagesurl = $cimages_url;
$badgesurl = "/swf/c_images/album1584/";
$hash_secret = "xCg532%@%gdvf^5DGaa6&*rFTfg^FD4\$OIFThrR_gh(ugf*/";

@require_once('server-data.php_data_classes-config.php.php'); //*Arquivo de configuração*//
$maintenance = mysql_num_rows($maintenance = mysql_query("SELECT * FROM cms_settings WHERE variable = 'cms_maintenance' AND value = '1'"));

$server = mysql_fetch_assoc($server_status = mysql_query("SELECT * FROM server_status"));
$online_count = $server['users_online'];

if(isset($_POST) || isset($_GET) || isset($_REQUEST) || isset($_COOKIE)){
foreach($_POST as $key => $p)
{
$_POST[$key] = htmlentities($p);
$_POST[$key] = mysql_real_escape_string($p);
$_POST[$key] = html_entity_decode($p);
}

foreach($_GET as $key => $g)
{
$_GET[$key] = mysql_real_escape_string($g);
}
foreach($_COOKIE as $key => $s)
{
$COOKIE[$key] = mysql_real_escape_string($s);
}
foreach($_REQUEST as $key => $k)
{
$_REQUEST[$key] = mysql_real_escape_string($k);
}
}
if(isset($_GET)){

foreach($_GET as $key => $f)
{
$_GET[$key] = strip_tags(mysql_real_escape_string(htmlentities($f)));
}
}

// #########################################################################
// FUNÇÕES ADICIONAIS NOVAS
// #########################################################################

function IsOnline($id){
if($server == '1') {
$num = mysql_num_rows(mysql_query("SELECT * FROM user_online WHERE userid = '".$id."'"));
if($num > 0){
return true;
} else {
return false;
}
}else {
$data = mysql_fetch_assoc(mysql_query("SELECT * FROM users WHERE id = '".$id."' LIMIT 1"));
if($data['online'] == '1') {
return true;
}
else {
return false;
}
}
}

// #########################################################################
// ENCRIPTAÇÃO
// #########################################################################

function HoloHash($password){
$hash_secret = "xCg532%@%gdvf^5DGaa6&*rFTfg^FD4\$OIFThrR_gh(ugf*/";
$string = sha1($password.($hash_secret));
return $string;
}

function HoloHashMD5($password){
$hash_secret = "xCg532%@%gdvf^5DGaa6&*rFTfg^FD4\$OIFThrR_gh(ugf*/";
$string = md5($password.($hash_secret));
return $string;
}

// #########################################################################
// BANIMENTOS
// #########################################################################

if(empty($_SESSION['username']) && @$_COOKIE['remember'] == 'remember'){

$cname = FilterText($_COOKIE['rusername']);
$cpass_hash = $_COOKIE['rpassword'];

$csql = mysql_query("SELECT password,id FROM users WHERE username = '".$cname."' LIMIT 1") or die(mysql_error());
$cnum = mysql_num_rows($csql);

if($cnum < 1){
setcookie("remember", "", time()-60*60*24*100, "/"); setcookie("cookpass", "", time()-60*60*24*100, "/");
setcookie("rusername", "", time()-60*60*24*100, "/"); setcookie("cookpass", "", time()-60*60*24*100, "/");
setcookie("rpassword", "", time()-60*60*24*100, "/"); setcookie("cookpass", "", time()-60*60*24*100, "/");
} else {

$crow = mysql_fetch_assoc($csql);
$correct_pass = $crow['password'];

if($cpass_hash == $correct_pass){
$_SESSION['username'] = $cname;
$_SESSION['password'] = $crow['password'];
$sql3 = mysql_query("UPDATE users SET ip_last = '".$remote_ip."' WHERE username = '".$cname."'");
header("location: me"); exit;
} else {

setcookie("remember", "", time()-60*60*24*100, "/"); setcookie("cookpass", "", time()-60*60*24*100, "/");
setcookie("rusername", "", time()-60*60*24*100, "/"); setcookie("cookpass", "", time()-60*60*24*100, "/");
setcookie("rpassword", "", time()-60*60*24*100, "/"); setcookie("cookpass", "", time()-60*60*24*100, "/");
}
}
}

// #########################################################################
// IS-EVEN FUNKTION
// #########################################################################

function IsEven($intNumber)
{
if($intNumber % 2 == 0){
return true;
} else {
return false;
}
}

// #########################################################################
// SMILES EM BBCODE
// #########################################################################
function SearchMotto($mision){
$mision = str_replace("¡", "¡", $mision);
}
function bbcode_format($str){

$str = str_replace(":)", " <img src='./smilies/smile.gif' alt='Smiley' title='Smiley' border='0'> ", $str);
$str = str_replace(";)", " <img src='./smilies/wink.gif' alt='Smiley' title='Smiley' border='0'> ", $str);
$str = str_replace(":P", " <img src='./smilies/tongue.gif' alt='Smiley' title='Smiley' border='0'> ", $str);
$str = str_replace(";P", " <img src='./smilies/winktongue.gif' alt='Smiley' title='Smiley' border='0'> ", $str);
$str = str_replace(":p", " <img src='./smilies/tongue.gif' alt='Smiley' title='Smiley' border='0'> ", $str);
$str = str_replace(";p", " <img src='./smilies/winktongue.gif' alt='Smiley' title='Smiley' border='0'> ", $str);
$str = str_replace("(L)", " <img src='./smilies/heart.gif' alt='Smiley' title='Smiley' border='0'> ", $str);
$str = str_replace("(l)", " <img src='./smilies/heart.gif' alt='Smiley' title='Smiley' border='0'> ", $str);
$str = str_replace(":o", " <img src='./smilies/shocked.gif' alt='Smiley' title='Smiley' border='0'> ", $str);
$str = str_replace(":O", " <img src='./smilies/shocked.gif' alt='Smiley' title='Smiley' border='0'> ", $str);
$str = str_replace("\n", chr(10), $str);

$simple_search = array(
'/\[b\](.*?)\[\/b\]/is',
'/\[i\](.*?)\[\/i\]/is',
'/\[u\](.*?)\[\/u\]/is',
'/\[s\](.*?)\[\/s\]/is',
'/\[quote\](.*?)\[\/quote\]/is',
'/\[link\=(.*?)\](.*?)\[\/link\]/is',
'/\[url\=(.*?)\](.*?)\[\/url\]/is',
'/\[color\=(.*?)\](.*?)\[\/color\]/is',
'/\[size=small\](.*?)\[\/size\]/is',
'/\[size=large\](.*?)\[\/size\]/is',
'/\[code\](.*?)\[\/code\]/is',
'/\[Hobba\=(.*?)\](.*?)\[\/Hobba\]/is',
'/\[room\=(.*?)\](.*?)\[\/room\]/is',
'/\[group\=(.*?)\](.*?)\[\/group\]/is'

);

$simple_replace = array(
'<strong>$1</strong>',
'<em>$1</em>',
'<u>$1</u>',
'<s>$1</s>',
"<div class='bbcode-quote'>$1</div>",
"<a href='$1'>$2</a>",
"<a href='$1'>$2</a>",
"<font color='$1'>$2</font>",
"<font size='1'>$1</font>",
"<font size='3'>$1</font>",
'<pre>$1</pre>',
"<a href='./user_profile.php?id=$1'>$2</a>",
"<a onclick=\"roomForward(this, '$1', 'private'); return false;\" target=\"client\" href=\"./client.php?forwardId=2&roomId=$1\">$2</a>",
"<a href='./group_profile.php?id=$1'>$2</a>"
);

$str = preg_replace ($simple_search, $simple_replace, $str);

return $str;
}

// #########################################################################
// SSO TICKET BUTERFLY/PHOENIX
// #########################################################################

function GenerateTicket(){

$data = "ST-";

for ($i=1; $i<=6; $i++){
$data = $data . rand(0,9);
}

$data = $data . "-";

for ($i=1; $i<=20; $i++){
$data = $data . rand(0,9);
}

$data = $data . "";
$data = $data . rand(0,5);

return $data;
}

// #########################################################################

if(!empty($_SESSION['username'])){

$rawname = $_SESSION['username'];
$rawpass = $_SESSION['password'];

$usersql = mysql_query("SELECT * FROM users WHERE username = '".$rawname."' AND password = '".$rawpass."' LIMIT 1");
$myrow = mysql_fetch_assoc($usersql);


$password_correct = mysql_num_rows($usersql);

$my_id = $myrow['id'];
$user_rank = $myrow['rank'];
$user_time = $myrow['time'];
$ban = mysql_query("SELECT * FROM bans WHERE value = '".$myrow['username']."' AND bantype = 'user' or value = '".$remote_ip."' AND bantype = 'ip' LIMIT 1");
$bancheck = mysql_num_rows($ban);

if($myrow['ip_reg'] == "0"){
mysql_query("UPDATE users SET ip_reg = '".$remote_ip."' WHERE id = '".$myrow['id']."'");

}elseif($password_correct !== 1){

session_destroy();
header("location: ".$path."1");
exit;

}elseif($bancheck > 0){

$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'])."";
include('logout.php');
session_destroy(); exit;

} else{
mysql_query("DELETE FROM bans WHERE value = '".$name."' AND bantype = 'user' or value = '".$remote_ip."' AND bantype = 'ip' LIMIT 1"); }
}

$logged_in = true;
$name = HoloText($myrow['username']);

} else {

$user_rank = 0;
$name = "No-Name";
$my_id = "No-ID";
$myticket = "ST-No-Name-Hobbare-fe";
$logged_in = false;

}

// #########################################################################
// HC CHECK
// #########################################################################

$hc_a = mysql_query("SELECT * FROM user_subscriptions WHERE user_id = '".$my_id."' and timestamp_expire > '".time()."'");
$hc = mysql_num_rows($hc_a);

function getHCDays($my_id){

$sql = mysql_query("SELECT timestamp_activated,timestamp_expire FROM user_subscriptions WHERE user_id = '".$my_id."' LIMIT 1") or die(mysql_error());

if (mysql_num_rows($sql) == 0){
return 0;
}

$data = mysql_fetch_assoc($sql);
$diff = $data['timestamp_expire'] - time();

if ($diff <= 0){
return 0;
}

return ceil($diff / 86400);
}

// #########################################################################
// MANUTENÇÃO
// #########################################################################

if($user_rank > 8){

if(session_is_registered(hkusername) && session_is_registered(hkpassword)){
$rank['iAdmin'] = "1";
} else {
$rank['iAdmin'] = "0";
}

} else {
$rank['iAdmin'] = "0";
}

if($maintenance == '1' && !$is_maintenance && $rank['iAdmin'] < 1){
header("Location: ".$path."/manu");
exit;
} elseif($rank['iAdmin'] == 1 && $config['variable'] == "cms_maintenance" && $config['value'] == '1'){
$notify_maintenance = true;
}

// #########################################################################

function GetUserBadge($strName){ // supports user IDs also/ supports user IDs also/ supports user IDs also

if(is_numeric($strName)){
$check = mysql_query("SELECT id FROM users WHERE id = '".$strName."' AND badge_status = '1' LIMIT 1") or die(mysql_error());
} else {
$check = mysql_query("SELECT id FROM users WHERE username = '".FilterText($strName)."' AND badge_status = '1' LIMIT 1") or die(mysql_error());
}

$exists = mysql_num_rows($check);

if($exists > 0){
$usrrow = mysql_fetch_assoc($check);
$check = mysql_query("SELECT * FROM user_badges WHERE user_id = '".$usrrow['id']."' AND badge_slot = '1' LIMIT 1") or die(mysql_error());
$hasbadge = mysql_num_rows($check);
if($hasbadge > 0){
$badgerow = mysql_fetch_assoc($check);
return $badgerow['badge_id'];
} else {
return false;
}
} else {
return false;
}
}

function GetUserGroup($my_id){
$check = mysql_query("SELECT id_group FROM group_members WHERE id_user = '".$my_id."' AND is_current = '1' LIMIT 1") or die(mysql_error());
$has_fave = mysql_num_rows($check);

if($has_fave > 0){

$row = mysql_fetch_assoc($check);
$groupid = $row['id_group'];

return $groupid;

} else {

return false;

}
}

function GetUserGroupBadge($my_id){
$check = mysql_query("SELECT id_group FROM group_members WHERE id_user = '".$my_id."' AND is_current = '1' LIMIT 1") or die(mysql_error());
$has_badge = mysql_num_rows($check);

if($has_badge > 0){

$row = mysql_fetch_assoc($check);
$groupid = $row['id_group'];

$check = mysql_query("SELECT badge FROM group_details WHERE id = '".$groupid."' LIMIT 1") or die(mysql_error());

$row = mysql_fetch_assoc($check);
$badge = $row['badge'];

return $badge;

} else {

return false;

}
}

function IsUserBanned($name){

$check = mysql_query("SELECT * FROM bans WHERE value = '".$my_id."' AND bantype = 'user' or value = '".$remote_ip."' AND bantype = 'ip'") or die(mysql_error());
$is_banned = mysql_num_rows($check);

if($is_banned > 0){
$bandata = mysql_fetch_assoc($check);
$reason = $bandata['reason'];
$expire = $bandata['expire'];

$stamp_now = time();

if($stamp_now < $bandata['expire']){
return true;
} else { // ban expired
mysql_query("DELETE FROM bans WHERE value = '".$my_id."' AND bantype = 'user' or value = '".$remote_ip."' AND bantype = 'ip' LIMIT 1") or die(mysql_error());
return false;
}
} else {
return false;
}
}

// #########################################################################

function mysql_evaluate($query, $default_value="undefined") {
$result = mysql_query($query) or die(mysql_error());

if(mysql_num_rows($result) < 1){
return $default_value;
} else {
return mysql_result($result, 0);
}
}

// #########################################################################

function FilterText($str, $advanced=false) {
if($advanced == true){ return mysql_real_escape_string($str); }
$str = mysql_real_escape_string(htmlspecialchars($str));
return $str;
}


function HoloText($str, $advanced=false, $bbcode=false) {
if($advanced == true){ return stripslashes($str); }
$str = nl2br(htmlspecialchars($str));
if($bbcode == true){$str = bbcode_format($str); }
return $str;
}


?>[/codebox]

Alks Alks  • 27.07.15 18:40

Index com erro Empty Re: Index com erro 27.07.15 18:40

Sua configuração está errada, certifique-se que as seguinte páginas estão configuradas certas:
server-data.php_classes-core.php.php
server-data.php_classes-config.php.php

lin0s lin0s  • 27.07.15 18:49

Index com erro Empty teste 27.07.15 18:49

Meu deus, n é problema nas config! é a session_start();

va em data_classes/server-data.php_data_classes-core.php.php:


e edite session_start(); para @session_start();


não recomendo + é melhor usar isso por enquanto!

MenoReT MenoReT  • 27.07.15 18:50

Index com erro Empty teste 27.07.15 18:50

estão tudo correto '-' a pagina me funciona so a index que fica com esse erro

<?php

require_once('./data_classes/server-data.php_data_classes-core.php.php');

session_start();

if(isset($_GET['registerCancel']) && FilterText($_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 = "Usuário ou senha incorretos!";
        } 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 = "Usuário ou senha incorretos!";
            } 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 = "Você foi banido por: \"" . $bandata['reason'] . "\" e acaba em: " . 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";


?>
<!DOCTYPE html>
<html>
<head>
    <title>Fear ~ Bem-vindo ao hotel mais mágico da América Latina</title>
    
    
    <style>
        </style><link rel="stylesheet" type="text/css" href="/static/beta/css/bootstrap.css"><link rel="stylesheet" type="text/css" href="/static/beta/css/style.css"><style>
    </style>
</head>
<body>
    <div class="modal fade" id="otherModal" tabindex="-1" role="dialog" aria-labelledby="otherModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                    <h4 class="modal-title" id="otherModalLabel">Atenção</h4>
                </div>
                
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">Cerrar..</button>
                </div>
            </div>
        </div>
    </div>
    <div id="board">
        <div id="contain">
            <div id="logo">
                <span style="font-size:36px;">
                    <b>
                        Fear
                    </b>
                </span><br>
                <span style="margin-top:-10px;">
                Inovando sempre!
                </span>
            </div>
            <div id="prof" style="padding-top:28px;">
                <a href="#"> <?php echo $online_count; ?> usuários onlines</a>
            </div>
        </div>
    </div>

    <div id="container">
        <div id="column-2">
            <div id="box">
                <div class="title">
                    <div class="img" style="background-image:url('/static/beta/img/hotel.png');"></div>
                    <p>Estatisticas</p> TOP Moedas, TOP Diamantes
                </div>
                <div id="box-contain">
                    <h2>TOP5 Moedas</h2>
                <div class="list-index">
                <?php

$row = mysql_query("SELECT * FROM users WHERE rank < 4 ORDER BY credits DESC LIMIT 5");
while($sql = mysql_fetch_assoc($row)){

?>
                        <div class="avatar" style="background-image:url('<?php echo $avatar; echo $sql['look']; ?>&size=b&direction=2&head_direction=2&crr=2&gesture=default&frame=2&action=');"></div>
                        <?php echo $sql['username']; ?><br>  <b><?php echo $sql['credits']; ?> Moedas</b><br><br>  <?php } ?>
                    </div>
                </div>
                <div id="box-contain">
                    <h2>TOP5 Diamantes</h2>
                    <div class="list-index">
                    <?php

$row = mysql_query("SELECT * FROM users WHERE rank < 4 ORDER BY seasonal_currency DESC LIMIT 5");
while($sql = mysql_fetch_assoc($row)){

?>
                        <div class="avatar" style="background-image:url('<?php echo $avatar; echo $sql['look']; ?>&size=b&direction=2&head_direction=2&crr=2&gesture=default&frame=2&action=');"></div>
                        <?php echo $sql['username']; ?><br>  <b><?php echo $sql['seasonal_currency']; ?> Diamantes</b> <br><br><?php } ?>
                    </div>
                </div>
                
            </div>
            
            <div id="box">
                <div class="title">
                    <div class="img" style="background-image:url('/static/beta/img/hotel.png');"></div>
                    <p>Estatisticas</p> Emblemas mais usados, TOP Duckets
                </div>
                <div id="box-contain">
                    <h2>Placas más usadas</h2>
                    <div class="badge" style="background-image:url('http://images.habbo.com/c_images/album1584/NT105.gif');"></div>
                    <div class="badge" style="background-image:url('http://images.habbo.com/c_images/album1584/BR653.gif');"></div>
                    <div class="badge" style="background-image:url('http://images.habbo.com/c_images/album1584/BR677.gif');"></div>
                    <div class="badge" style="background-image:url('http://images.habbo.com/c_images/album1584/NL257.gif');"></div>
                    <div class="badge" style="background-image:url('http://images.habbo.com/c_images/album1584/RADZZ.gif');"></div>
                    <div class="badge" style="background-image:url('http://images.habbo.com/c_images/album1584/ES309.gif');"></div>
                    <div class="badge" style="background-image:url('http://images.habbo.com/c_images/album1584/JR002.gif');"></div>
                    <div class="badge" style="background-image:url('http://images.habbo.com/c_images/album1584/UK491.gif');"></div>
                    <div class="badge" style="background-image:url('http://images.habbo.com/c_images/album1584/BR882.gif');"></div>
                    <div class="badge" style="background-image:url('http://images.habbo.com/c_images/album1584/IT907.gif');"></div>
                    <div class="badge" style="background-image:url('http://images.habbo.com/c_images/album1584/FR662.gif');"></div>
                    <div class="badge" style="background-image:url('http://images.habbo.com/c_images/album1584/IT914.gif');"></div>
                </div>
                <div id="box-contain">
                    <h2>TOP5 Duckets</h2>
                    <div class="list-index">
                    <?php

$row = mysql_query("SELECT * FROM users WHERE rank < 4 ORDER BY activity_points DESC LIMIT 5");
while($sql = mysql_fetch_assoc($row)){

?>
                        <div class="avatar" style="background-image:url('<?php echo $avatar; echo $sql['look']; ?>&size=b&direction=2&head_direction=2&crr=2&gesture=default&frame=2&action=');"></div>
                        <?php echo $sql['username']; ?><br>  <b><?php echo $sql['activity_points']; ?> Duckets</b> <br><br><?php } ?>
                    </div>
                </div>
            </div>
            <div id="box">
                <div class="title">
                    <div class="img" style="background-image:url('/static/beta/img/box_title_fb.png');"></div>
                    <p>Facebook</p> Siga nos em nossas redes sociais!
                </div>
                <iframe src="https://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fpages/Fear-Hotel/851382854954695?fref=ts&amp;width=547&amp;height=655&amp;colorscheme=light&amp;show_faces=true&amp;border_color=black&amp;stream=true&amp;header=false&amp;appId=381779658524460" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:575px; height:547px;" allowTransparency="true"></iframe>
            </div>

        </div>
        <div id="column-1">
            <div id="box">
            <div class="title">
                        <p>Iniciar sessão</p> Entre na sua conta ou registre-se
                    </div>
                          <form action="<?php echo $path; ?>" method="POST"> 
<h3>Usuário</h3>
<input value="" input class="form-control type="text" placeholder="Usuário" name="username">

<h3>Senha</h3>
<input value=""input class="form-control" type="password" placeholder="Sua senha" name="password">
<p class="entrar-">  
<center>      
<button type="submit" class="btn btn-primary">Entrar</button> ou
<a href="/registro" class="btn btn-primary">Registrar</a><br>
</center>
</form>
            </div>
            <div id="box">
                <div class="title">
                    <div class="img" style="background-image:url('/static/beta/img/hotel.png');"></div>
                    <p>O que é Fear?</p> Pura diversão!
                </div>
                É um jogo social onde ninguém vai saber quem você realmente é, os seus dados são totalmente protegidos, 
                desde 2012 nós damos diversão para todos os nossos usuários e aquisição de novos jornais estão falando: D<br />
                    <center><img src="https://i.imgur.com/Yk9yRsP.png"/></center>
            </div>
            <div id="box">
                <div class="title">
                    <div class="img" style="background-image:url('/static/beta/img/hotel.png');"></div>
                    <p>O que você pode fazer aqui?</p> Informe-se sobre o que você pode fazer ..
                </div>
                    Você pode fazer novos amigos, abraçar com eles através dos quartos, a partir de foliões locais,
                    clubes, praias, jogos ... até lugares mais tranquilos para relaxar, biblioteca, spa, spa ... 
                    não encontramos o quarto que você quer? você pode criá-lo, uma vez que todos os empréstimos são totalmente livre;)<br/>
                    <center><img src="https://i.imgur.com/i6gnDon.png"/></center>
            </div>
        </div>
    </div>
    <footer>
        <div id="f-center">
            © - 2015 Fear Hotel
        </div>
    </footer>
</body>
</html>
<?php


} else {
header("location:inicio");
}

?> 

Anonymous Convidado  • 28.07.15 12:24

Index com erro Empty teste 28.07.15 12:24

Olá amigo,recomendo mudar de index.



@Suporte
Tópico fechado pois o autor abandonou o tópico.
Permissões neste sub-fórum
Não podes responder a tópicos

BH Servers

Recomendamos a BH Servers com proteção DDOS gratuita em Cloud Server de alta performance. Entrega imediata.