[PLATEAM] FancyCMS | 2015

+14
Bim0
ApenasUmShow
-Sky
zSnoke
Kinney
PedroHB
Iluminista
Vong
FelipeRun
belle200
Brytch
higorangry
Peeta
Habbr
18 participantes

Habbr Habbr  • 26.02.15 21:18

[PLATEAM] FancyCMS | 2015 Empty [PLATEAM] FancyCMS | 2015 26.02.15 21:18

Reputação da mensagem: 75% (4 votos)
[Tens de ter uma conta e sessão iniciada para poderes visualizar este link]

Peeta Peeta  • 26.02.15 21:19

[PLATEAM] FancyCMS | 2015 Empty Re: [PLATEAM] FancyCMS | 2015 26.02.15 21:19

Reputação da mensagem: 100% (1 votos)
Olá, ótima cms estarei baixando aqui...

higorangry higorangry  • 26.02.15 21:21

[PLATEAM] FancyCMS | 2015 Empty Re: [PLATEAM] FancyCMS | 2015 26.02.15 21:21

Comentando para fazer download

Brytch Brytch  • 26.02.15 21:23

[PLATEAM] FancyCMS | 2015 Empty Re: [PLATEAM] FancyCMS | 2015 26.02.15 21:23

Olá, adorei essa CMS, e também adorei o projeto também, até!
@OFF Muito bom projeto tomará que cresça!

belle200 belle200  • 26.02.15 21:26

[PLATEAM] FancyCMS | 2015 Empty Re: [PLATEAM] FancyCMS | 2015 26.02.15 21:26

adorei a cms

higorangry higorangry  • 26.02.15 21:30

[PLATEAM] FancyCMS | 2015 Empty Re: [PLATEAM] FancyCMS | 2015 26.02.15 21:30

Alguem sabe como tira loop da index.php ?

Habbr Habbr  • 26.02.15 21:35

[PLATEAM] FancyCMS | 2015 Empty Re: [PLATEAM] FancyCMS | 2015 26.02.15 21:35

Para tirar o carregamento da index basta colocar essa index.

Código:
<?php

#*======================================================================*\
# PLATEAM ~ TODOS DIREITOS RESERVADDOS                           #
#  NOSSO PÁGINA NO FACEBOOK ~ FB.COM/PLATEAMOFICIAL                      #
# ########################################################################

require_once('./fancy/core.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";

$news1_3 = mysql_query("SELECT * FROM cms_news ORDER BY ID DESC LIMIT 20") or die(mysql_error());
$news4_5 = mysql_query("SELECT * FROM cms_news ORDER BY ID DESC LIMIT 2 OFFSET 2") or die(mysql_error());

?>
<head>
<?php header("Content-Type: text/html; charset=ISO-8859-1",true) ?>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="content-type" content="text/html; ISO-8859-1" />
<meta charset="UTF-8" >
<meta charset="ISO-8859-1">
   <title>Habbo Hotel</title>
<link href="templates/css/login.css" rel="stylesheet" media="screen" />
   <script src="/templates/js/jquery.min.js"></script>
   <script src="/templates/js/loading.js"></script>
   <script src="/templates/js/modal.js"></script>
   <link href='http://fonts.googleapis.com/css?family=Ubuntu+Condensed' rel='stylesheet' type='text/css'>
   <link href="http://fonts.googleapis.com/css?family=Ubuntu" rel="stylesheet" type="text/css">
</head>
<body>
<div id="topo">
   <div id="login">
      <div id="login_area" class="">
      <form action="<?php echo $path; ?>" method="POST">
<button class="login_button" type="submit">Vamos lá!</button>
            <div id="login_useful">
               <div id="login_usefult"><span>Login:</span></div>
               <input value="" input class="login_input" type="text" placeholder="Usuário" name="username">
               <input value=""input class="login_input" type="password" placeholder="Sua senha" name="password">
               <br /><a onclick="openForgot()">Esqueci minha senha</a>
            </div>
</form>
      </div>
   </div>
   <div id="register_banner_area">
      <div id="register_hotel"></div>
      <div id="register_desc">
         Um lugar Fantástico com gente chique
         <br />
         <form action="registro"><input class="register_button" value="Entre Agora!" type="submit" /></form>
      </div>
   </div>
   <div id="menu">
      <div id="menu_area">
         <div id="logo"></div>
         <div class="user_counter"><?php echo $online_count; ?> usuários online!</div>
      </div>
   </div>
</div>
<div id="conteudo">
   <div id="conteudo_area">
      <div id="latest_area">Últimas Notícias</div>
      <?php $i = 0; while($news = mysql_fetch_assoc($news1_3)){ $i++; ?>
            <a href="<?php echo $path; ?>/noticias/<?php echo $news['id']; ?>">
         <div class="news_area">
            <div class="news_body">
               <div class="news_picture_container">
                  <div class="news_picture" style="background-image: url(<?php echo $news['image']; ?>);"></div>
               </div>
               <div class="news_heading"><?php echo $news['title']; ?></div>
               <div class="news_description"><?php echo $news['longstory']; ?></div>
            </div>
         </div>
      </a><?php } ?>

         </div>
</div>
<footer class="footer">
   <div id="footer_area">
      <div id="footer_social">
         Siga o Habbo<br />
         <ul class="social">
            <li class="social_fb"><a href="http://facebook.com/PlaTeamOficial" target="_blank"></a></li>
         </ul>
      </div>
      <div id="footer_credits">
         © 2014 -&nbsp;2015 EQUIPE PLATEAM ~ TODOS OS DIREITOS RESERVADOS
      </div>
   </div>
</footer>
<div class="modal_forgot">
   <div class="modal_forgot_frame">
      <div class="modal_forgot_heading">Recuperar Senha<button class="modal_forgot_close"></button></div>
      <div class="modal_forgot_scroll">
         <div id="modal_forgot_content">
            <form id="recuperar">
               Insira o seu e-mail:<br/><input type="text" class="input" name="email" /><br />
         </div>
         <div id="modal_forgot_footer">
               <input type="button" class="button" value="Enviar" />
            </form>
         </div>
      </div>
   </div>
</div>
</body>

<?php


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

?>

avatar FelipeRun  • 26.02.15 21:40

[PLATEAM] FancyCMS | 2015 Empty Re: [PLATEAM] FancyCMS | 2015 26.02.15 21:40

[Tens de ter uma conta e sessão iniciada para poderes visualizar esta imagem]
[Tens de ter uma conta e sessão iniciada para poderes visualizar este link]
Faça o seu pedido agora!
[Tens de ter uma conta e sessão iniciada para poderes visualizar este link]


Adorei a CMS <3

Vong Vong  • 26.02.15 21:42

[PLATEAM] FancyCMS | 2015 Empty Re: [PLATEAM] FancyCMS | 2015 26.02.15 21:42

Adorei a cms, até.

higorangry higorangry  • 26.02.15 21:46

[PLATEAM] FancyCMS | 2015 Empty Re: [PLATEAM] FancyCMS | 2015 26.02.15 21:46

[quote=Habbr]Para tirar o carregamento da index basta colocar essa index.

Código:
<?php

#*======================================================================*\
# PLATEAM ~ TODOS DIREITOS RESERVADDOS   #
#  NOSSO PÁGINA NO FACEBOOK ~ FB.COM/PLATEAMOFICIAL                      #
# ########################################################################

require_once('./fancy/core.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";

$news1_3 = mysql_query("SELECT * FROM cms_news ORDER BY ID DESC LIMIT 20") or die(mysql_error());
$news4_5 = mysql_query("SELECT * FROM cms_news ORDER BY ID DESC LIMIT 2 OFFSET 2") or die(mysql_error());

?>
<head>
<?php header("Content-Type: text/html; charset=ISO-8859-1",true) ?>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="content-type" content="text/html; ISO-8859-1" />
<meta charset="UTF-8" >
<meta charset="ISO-8859-1">
 <title>Habbo Hotel</title>
<link href="templates/css/login.css" rel="stylesheet" media="screen" />
 <script src="/templates/js/jquery.min.js"></script>
 <script src="/templates/js/loading.js"></script>
 <script src="/templates/js/modal.js"></script>
 <link href='http://fonts.googleapis.com/css?family=Ubuntu+Condensed' rel='stylesheet' type='text/css'>
 <link href="http://fonts.googleapis.com/css?family=Ubuntu" rel="stylesheet" type="text/css">
</head>
<body>
<div id="topo">
 <div id="login">
 <div id="login_area" class="">
 <form action="<?php echo $path; ?>" method="POST">
<button class="login_button" type="submit">Vamos lá!</button>
 <div id="login_useful">
 <div id="login_usefult"><span>Login:</span></div>
 <input value="" input class="login_input" type="text" placeholder="Usuário" name="username">
 <input value=""input class="login_input" type="password" placeholder="Sua senha" name="password">
 <br /><a onclick="openForgot()">Esqueci minha senha</a>
 </div>
</form>
 </div>
 </div>
 <div id="register_banner_area">
 <div id="register_hotel"></div>
 <div id="register_desc">
 Um lugar Fantástico com gente chique
 <br />
 <form action="registro"><input class="register_button" value="Entre Agora!" type="submit" /></form>
 </div>
 </div>
 <div id="menu">
 <div id="menu_area">
 <div id="logo"></div>
 <div class="user_counter"><?php echo $online_count; ?> usuários online!</div>
 </div>
 </div>
</div>
<div id="conteudo">
 <div id="conteudo_area">
 <div id="latest_area">Últimas Notícias</div>
 <?php $i = 0; while($news = mysql_fetch_assoc($news1_3)){ $i++; ?>
 <a href="<?php echo $path; ?>/noticias/<?php echo $news['id']; ?>">
 <div class="news_area">
 <div class="news_body">
 <div class="news_picture_container">
 <div class="news_picture" style="background-image: url(<?php echo $news['image']; ?>);"></div>
 </div>
 <div class="news_heading"><?php echo $news['title']; ?></div>
 <div class="news_description"><?php echo $news['longstory']; ?></div>
 </div>
 </div>
 </a><?php } ?>

 </div>
</div>
<footer class="footer">
 <div id="footer_area">
 <div id="footer_social">
 Siga o Habbo<br />
 <ul class="social">
 <li class="social_fb"><a href="http://facebook.com/PlaTeamOficial" target="_blank"></a></li>
 </ul>
 </div>
 <div id="footer_credits">
 © 2014 -&nbsp;2015 EQUIPE PLATEAM ~ TODOS OS DIREITOS RESERVADOS
 </div>
 </div>
</footer>
<div class="modal_forgot">
 <div class="modal_forgot_frame">
 <div class="modal_forgot_heading">Recuperar Senha<button class="modal_forgot_close"></button></div>
 <div class="modal_forgot_scroll">
 <div id="modal_forgot_content">
 <form id="recuperar">
 Insira o seu e-mail:<br/><input type="text" class="input" name="email" /><br />
 </div>
 <div id="modal_forgot_footer">
 <input type="button" class="button" value="Enviar" />
 </form>
 </div>
 </div>
 </div>
</div>
</body>

<?php


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

?>
[/quote]

Eu fiz isso e está dando falha no carregamento , e está bloqueando meu ip a index.php , como resolvo ?

Habbr Habbr  • 26.02.15 21:49

[PLATEAM] FancyCMS | 2015 Empty Re: [PLATEAM] FancyCMS | 2015 26.02.15 21:49

[quote=higorangry][quote=Habbr]Para tirar o carregamento da index basta colocar essa index.

Código:
<?php

#*======================================================================*\
# PLATEAM ~ TODOS DIREITOS RESERVADDOS   #
#  NOSSO PÁGINA NO FACEBOOK ~ FB.COM/PLATEAMOFICIAL                      #
# ########################################################################

require_once('./fancy/core.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";

$news1_3 = mysql_query("SELECT * FROM cms_news ORDER BY ID DESC LIMIT 20") or die(mysql_error());
$news4_5 = mysql_query("SELECT * FROM cms_news ORDER BY ID DESC LIMIT 2 OFFSET 2") or die(mysql_error());

?>
<head>
<?php header("Content-Type: text/html; charset=ISO-8859-1",true) ?>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="content-type" content="text/html; ISO-8859-1" />
<meta charset="UTF-8" >
<meta charset="ISO-8859-1">
 <title>Habbo Hotel</title>
<link href="templates/css/login.css" rel="stylesheet" media="screen" />
 <script src="/templates/js/jquery.min.js"></script>
 <script src="/templates/js/loading.js"></script>
 <script src="/templates/js/modal.js"></script>
 <link href='http://fonts.googleapis.com/css?family=Ubuntu+Condensed' rel='stylesheet' type='text/css'>
 <link href="http://fonts.googleapis.com/css?family=Ubuntu" rel="stylesheet" type="text/css">
</head>
<body>
<div id="topo">
 <div id="login">
 <div id="login_area" class="">
 <form action="<?php echo $path; ?>" method="POST">
<button class="login_button" type="submit">Vamos lá!</button>
 <div id="login_useful">
 <div id="login_usefult"><span>Login:</span></div>
 <input value="" input class="login_input" type="text" placeholder="Usuário" name="username">
 <input value=""input class="login_input" type="password" placeholder="Sua senha" name="password">
 <br /><a onclick="openForgot()">Esqueci minha senha</a>
 </div>
</form>
 </div>
 </div>
 <div id="register_banner_area">
 <div id="register_hotel"></div>
 <div id="register_desc">
 Um lugar Fantástico com gente chique
 <br />
 <form action="registro"><input class="register_button" value="Entre Agora!" type="submit" /></form>
 </div>
 </div>
 <div id="menu">
 <div id="menu_area">
 <div id="logo"></div>
 <div class="user_counter"><?php echo $online_count; ?> usuários online!</div>
 </div>
 </div>
</div>
<div id="conteudo">
 <div id="conteudo_area">
 <div id="latest_area">Últimas Notícias</div>
 <?php $i = 0; while($news = mysql_fetch_assoc($news1_3)){ $i++; ?>
 <a href="<?php echo $path; ?>/noticias/<?php echo $news['id']; ?>">
 <div class="news_area">
 <div class="news_body">
 <div class="news_picture_container">
 <div class="news_picture" style="background-image: url(<?php echo $news['image']; ?>);"></div>
 </div>
 <div class="news_heading"><?php echo $news['title']; ?></div>
 <div class="news_description"><?php echo $news['longstory']; ?></div>
 </div>
 </div>
 </a><?php } ?>

 </div>
</div>
<footer class="footer">
 <div id="footer_area">
 <div id="footer_social">
 Siga o Habbo<br />
 <ul class="social">
 <li class="social_fb"><a href="http://facebook.com/PlaTeamOficial" target="_blank"></a></li>
 </ul>
 </div>
 <div id="footer_credits">
 © 2014 -&nbsp;2015 EQUIPE PLATEAM ~ TODOS OS DIREITOS RESERVADOS
 </div>
 </div>
</footer>
<div class="modal_forgot">
 <div class="modal_forgot_frame">
 <div class="modal_forgot_heading">Recuperar Senha<button class="modal_forgot_close"></button></div>
 <div class="modal_forgot_scroll">
 <div id="modal_forgot_content">
 <form id="recuperar">
 Insira o seu e-mail:<br/><input type="text" class="input" name="email" /><br />
 </div>
 <div id="modal_forgot_footer">
 <input type="button" class="button" value="Enviar" />
 </form>
 </div>
 </div>
 </div>
</div>
</body>

<?php


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

?>
[/quote]

Eu fiz isso e está dando falha no carregamento , e está bloqueando meu ip a index.php , como resolvo ?[/quote]

Poderia postar print?

higorangry higorangry  • 26.02.15 21:57

[PLATEAM] FancyCMS | 2015 Empty Re: [PLATEAM] FancyCMS | 2015 26.02.15 21:57

[quote=Habbr][quote=higorangry][quote=Habbr]Para tirar o carregamento da index basta colocar essa index.

Código:
<?php

#*======================================================================*\
# PLATEAM ~ TODOS DIREITOS RESERVADDOS   #
#  NOSSO PÁGINA NO FACEBOOK ~ FB.COM/PLATEAMOFICIAL                      #
# ########################################################################

require_once('./fancy/core.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";

$news1_3 = mysql_query("SELECT * FROM cms_news ORDER BY ID DESC LIMIT 20") or die(mysql_error());
$news4_5 = mysql_query("SELECT * FROM cms_news ORDER BY ID DESC LIMIT 2 OFFSET 2") or die(mysql_error());

?>
<head>
<?php header("Content-Type: text/html; charset=ISO-8859-1",true) ?>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="content-type" content="text/html; ISO-8859-1" />
<meta charset="UTF-8" >
<meta charset="ISO-8859-1">
 <title>Habbo Hotel</title>
<link href="templates/css/login.css" rel="stylesheet" media="screen" />
 <script src="/templates/js/jquery.min.js"></script>
 <script src="/templates/js/loading.js"></script>
 <script src="/templates/js/modal.js"></script>
 <link href='http://fonts.googleapis.com/css?family=Ubuntu+Condensed' rel='stylesheet' type='text/css'>
 <link href="http://fonts.googleapis.com/css?family=Ubuntu" rel="stylesheet" type="text/css">
</head>
<body>
<div id="topo">
 <div id="login">
 <div id="login_area" class="">
 <form action="<?php echo $path; ?>" method="POST">
<button class="login_button" type="submit">Vamos lá!</button>
 <div id="login_useful">
 <div id="login_usefult"><span>Login:</span></div>
 <input value="" input class="login_input" type="text" placeholder="Usuário" name="username">
 <input value=""input class="login_input" type="password" placeholder="Sua senha" name="password">
 <br /><a onclick="openForgot()">Esqueci minha senha</a>
 </div>
</form>
 </div>
 </div>
 <div id="register_banner_area">
 <div id="register_hotel"></div>
 <div id="register_desc">
 Um lugar Fantástico com gente chique
 <br />
 <form action="registro"><input class="register_button" value="Entre Agora!" type="submit" /></form>
 </div>
 </div>
 <div id="menu">
 <div id="menu_area">
 <div id="logo"></div>
 <div class="user_counter"><?php echo $online_count; ?> usuários online!</div>
 </div>
 </div>
</div>
<div id="conteudo">
 <div id="conteudo_area">
 <div id="latest_area">Últimas Notícias</div>
 <?php $i = 0; while($news = mysql_fetch_assoc($news1_3)){ $i++; ?>
 <a href="<?php echo $path; ?>/noticias/<?php echo $news['id']; ?>">
 <div class="news_area">
 <div class="news_body">
 <div class="news_picture_container">
 <div class="news_picture" style="background-image: url(<?php echo $news['image']; ?>);"></div>
 </div>
 <div class="news_heading"><?php echo $news['title']; ?></div>
 <div class="news_description"><?php echo $news['longstory']; ?></div>
 </div>
 </div>
 </a><?php } ?>

 </div>
</div>
<footer class="footer">
 <div id="footer_area">
 <div id="footer_social">
 Siga o Habbo<br />
 <ul class="social">
 <li class="social_fb"><a href="http://facebook.com/PlaTeamOficial" target="_blank"></a></li>
 </ul>
 </div>
 <div id="footer_credits">
 © 2014 -&nbsp;2015 EQUIPE PLATEAM ~ TODOS OS DIREITOS RESERVADOS
 </div>
 </div>
</footer>
<div class="modal_forgot">
 <div class="modal_forgot_frame">
 <div class="modal_forgot_heading">Recuperar Senha<button class="modal_forgot_close"></button></div>
 <div class="modal_forgot_scroll">
 <div id="modal_forgot_content">
 <form id="recuperar">
 Insira o seu e-mail:<br/><input type="text" class="input" name="email" /><br />
 </div>
 <div id="modal_forgot_footer">
 <input type="button" class="button" value="Enviar" />
 </form>
 </div>
 </div>
 </div>
</div>
</body>

<?php


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

?>
[/quote]

Eu fiz isso e está dando falha no carregamento , e está bloqueando meu ip a index.php , como resolvo ?[/quote]

Poderia postar print?[/quote]
[Tens de ter uma conta e sessão iniciada para poderes visualizar este link]

Iluminista Iluminista  • 26.02.15 22:01

[PLATEAM] FancyCMS | 2015 Empty Re: [PLATEAM] FancyCMS | 2015 26.02.15 22:01

Não mudou muita coisa, belo exemplo só porque alguém se matou você vai la e se mata também?
você deveria ter pelo menos colocado os créditos por ter estragado a cms.

higorangry higorangry  • 26.02.15 22:04

[PLATEAM] FancyCMS | 2015 Empty Re: [PLATEAM] FancyCMS | 2015 26.02.15 22:04

Sabe arrumar a index.php ou não ? '-'

PedroHB PedroHB  • 26.02.15 22:07

[PLATEAM] FancyCMS | 2015 Empty Re: [PLATEAM] FancyCMS | 2015 26.02.15 22:07

com certeza irei usar

Kinney Kinney  • 26.02.15 22:14

[PLATEAM] FancyCMS | 2015 Empty Re: [PLATEAM] FancyCMS | 2015 26.02.15 22:14

Adorei irei usar somente a Index pq eu amo o resto da minha CMS, e n pretendo trocar tão cedo, merece 1 +.

higorangry higorangry  • 26.02.15 22:31

[PLATEAM] FancyCMS | 2015 Empty Re: [PLATEAM] FancyCMS | 2015 26.02.15 22:31

whater passa sua cms ? Não acho uma que preste , tudo bugada.

zSnoke zSnoke  • 26.02.15 23:51

[PLATEAM] FancyCMS | 2015 Empty Re: [PLATEAM] FancyCMS | 2015 26.02.15 23:51

vwwwww! OTIMO

-Sky -Sky  • 27.02.15 1:36

[PLATEAM] FancyCMS | 2015 Empty Re: [PLATEAM] FancyCMS | 2015 27.02.15 1:36

Muito Linda  power

ApenasUmShow ApenasUmShow  • 27.02.15 1:40

[PLATEAM] FancyCMS | 2015 Empty Re: [PLATEAM] FancyCMS | 2015 27.02.15 1:40

Não sei qual das duas é pior, HebboCMS ou FancyCMS  :chloe:

Bim0 Bim0  • 27.02.15 8:17

[PLATEAM] FancyCMS | 2015 Empty Re: [PLATEAM] FancyCMS | 2015 27.02.15 8:17

Só index e register....

cunbica cunbica  • 27.02.15 8:48

[PLATEAM] FancyCMS | 2015 Empty Re: [PLATEAM] FancyCMS | 2015 27.02.15 8:48

irei testar.

Brytch Brytch  • 27.02.15 9:56

[PLATEAM] FancyCMS | 2015 Empty Re: [PLATEAM] FancyCMS | 2015 27.02.15 9:56

Adorei CMS, até!

lin0s lin0s  • 27.02.15 10:00

[PLATEAM] FancyCMS | 2015 Empty Re: [PLATEAM] FancyCMS | 2015 27.02.15 10:00

Comentando para ver o download

Kinney Kinney  • 27.02.15 17:24

[PLATEAM] FancyCMS | 2015 Empty Re: [PLATEAM] FancyCMS | 2015 27.02.15 17:24

higor, tem skype?

Habbr Habbr  • 27.02.15 17:39

[PLATEAM] FancyCMS | 2015 Empty Re: [PLATEAM] FancyCMS | 2015 27.02.15 17:39

Reputação da mensagem: 0% (1 votos)
Porque tiraram o download sem a minha permissão?

CocadeGuarana CocadeGuarana  • 27.02.15 18:11

[PLATEAM] FancyCMS | 2015 Empty Re: [PLATEAM] FancyCMS | 2015 27.02.15 18:11

Reputação da mensagem: 0% (1 votos)
oxe pq tiraram?

Brytch Brytch  • 28.02.15 17:58

[PLATEAM] FancyCMS | 2015 Empty Re: [PLATEAM] FancyCMS | 2015 28.02.15 17:58

Vocês copiaram algo que não é de vocês, coloque os devidos créditos.
@OFF Acabei de ver que está retirado u.u

Fr0kHP Fr0kHP  • 01.03.15 13:49

[PLATEAM] FancyCMS | 2015 Empty Re: [PLATEAM] FancyCMS | 2015 01.03.15 13:49

Posta dnv ai
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.