Se for como exemplo:
<?php
#############################################################################
#|-| |-| KashCMS v2.0 - Desenvolvida pelo LuanGamer |-| |-|#
#|-| |-| Baseada em HoloCMS & KashCMS |-| |-|#
# ------------------------------------------------------------------------- #
#|-| |-| Contato oficial: LuAnonyTutoriais@Gmail.com |-| |-|#
#############################################################################
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";
$pagename = "Hotel - Realizando seus sonhos de pixels!";
include('./templates/login_subheader.php');
?>
<!DOCTYPE html>
<html><head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<title><?php echo $shortname; ?> Hotel: Realizando seus sonhos de Pixels!</title>
<link rel="stylesheet" type="text/css" href="images/index2.css">
<link rel="stylesheet" type="text/css" href="images/css.css">
<link href="<?php echo $path; ?>/web-gallery/v2/images/favicon.ico" rel="icon" type="image/x-icon">
<meta name="keywords" content="NeeT, cms, index">
<meta name="description" content="Sempre pensando em você!">
<meta name="author" content="NeeT - LuanGamer">
</head>
<body>
<div id="general">
<span style="position:absolute;margin-top:150px;margin-left:350px;">
<a href="https://facebook.com/LuanGamer"><img src="images/facebook.PNG" onmouseover="this.src='../images/facebook_hover.PNG'" onmouseout="this.src='../images/facebook.PNG'" style="width: 72px; height:61px; margin-right:-5px;"></a>
<a href="http://twitter.com/@LuuanGamer"><img src="images/twitter.PNG" onmouseover="this.src='../images/twitter_hover.PNG'" onmouseout="this.src='../images/twitter.PNG'" style="width: 72px; height:61px; margin-right:-5px;"></a>
<a href="https://www.youtube.com/LuAnonyTutoriais"><img src="images/youtube.PNG" onmouseover="this.src='../images/youtube_hover.PNG'" onmouseout="this.src='../images/youtube.PNG'" style="width: 72px; height:61px;"></a>
</span>
<div class="luz"></div>
<div id="header">
<div class="logo"></div>
<div id="entrada">
<?php if(isset($login_error)){ ?>
<div class="mal">
<p align="center"><h2> <font color="#FF0000"><?php echo $login_error; ?></font></h2> </font>
</div>
<?php } ?>
<form action="<?php echo $path; ?>" method="POST">
<div class="nombre">
<p class="sang">Usuário:</p>
<p><input value="" name="username" class="area" required="" autofocus="" type="text"></p>
</div>
<div class="nombre">
<p class="sang">Senha:</p>
<p><input name="password" class="area" required="" type="password"></p>
</div>
<p><input class="entrar" value="Conectar" type="submit"></p><center>
<h2><b><?php echo $online_count; ?></b> <?php echo $shortname; ?>'s online</h2>
</center>
</form>
</div>
</div>
<div id="hotel">
<a href="<?php echo $path; ?>/quickregister/start">
<div id="registro" class="entrar"> Registre-se agora!
</div>
</a>
</div>
<div class="sombra"></div>
<div id="carac">
<div class="crea boton"></div>
<div class="carac">
<h1>Crie</h1>
<h2>Decore o seu quarto da forma que você mais gosta e chame os seus amigos!</h2>
</div>
<div class="carac">
<div class="comp boton"></div>
<h1>Convide</h1>
<h2>O que tá esperando? Chame seus amigos e conheça novos!</h2>
</div>
<div class="carac">
<div class="colec boton"></div>
<h1>Colecione</h1>
<h2>Você é capaz de colecionar todos os mobis, todos os raros e exclusivos?</h2>
</div>
</div>
<div id="footer">
<a href="#"> NeeT Hotel
</div>
</div>
<?php
} else {
header("location:me.php");
}
?>
<script language="JavaScript">
function controlaCamada(bar_float)
{
if( document.getElementById(bar_float).style.visibility == "hidden" )
{
document.getElementById(bar_float).style.visibility = "visible";
} else
{
document.getElementById(bar_float).style.visibility = "hidden";
}
}
</script>
<style type="text/css">
#bar_float a{
position: fixed;
bottom: 80px;
text-decoration:none;
right: 20px;
boder::3000;
}
a#return_to_ipbfs {
position: fixed;
bottom: 10px;
line-height: 16px;
text-align: left;
right: 10px;
boder:: 1;
opacity: 0.8;
width: 260px;
height: 70px;
background: #cf3737;
color: #fff;
text-shadow: rgba(0,0,0,0.3) 0px -1px 0px;
padding: 10px;
text-decoration: none;
font-size: 11px;
font-family: Tahoma;
border: 1px solid #771b1b;
box-shadow: rgba(0,0,0,0.3) 0px 1px 4px, inset #f66c6c 0px 1px 0px;
border-radius: 3px;
}
a#return_to_ipbfs:hover { opacity: 1; }
#return_to_ipbfs strong { font-family: "Trebuchet MS"; display: block; font-size: 14px; padding-bottom: 5px; }
</style>
<a onclick="controlaCamada('bar_float')"><a href="#" id="return_to_ipbfs">Créditos: KashCMS v2.0 (Editado por: LuanGamer)<br> Canal Oficial: https://www.youtube.com/LuAnonyTutoriais</a><br><br>
</div>
</body></html>
-- como seria para colocar o anuncio?