Erro de acentos 01.07.15 6:03
Print de meu erro: http://prntscr.com/6mofvf
Qual é meu erro: Erro de acentos
CMS Que estou utilizando: HabbluzCMS
SWF que estou utilizando: -
Versão de meu hotel: NewCrypto
Se escolheu outros, especifique: -
Comentários adicionais: Gente, tô tendo um novo erro de acentos que quando eu digito algo com acento, ao invés de ficar no acento fica com "?" e eu não sei arrumar!
Minha /articles.php:
Qual é meu erro: Erro de acentos
CMS Que estou utilizando: HabbluzCMS
SWF que estou utilizando: -
Versão de meu hotel: NewCrypto
Se escolheu outros, especifique: -
Comentários adicionais: Gente, tô tendo um novo erro de acentos que quando eu digito algo com acento, ao invés de ficar no acento fica com "?" e eu não sei arrumar!
Minha /articles.php:
- Spoiler:
- <html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<?php
#####################################################################
#||||| hPCMS r1 - Desenvolvida por nadi0s |||||#
#||||| Criado por nadi0s - HTML, PHP, CSS |||||#
#||||| Based in RevCMS and UberCMS. @rTiago por HK. |||||#
# ||| --------------------------------------------------------- ||| #
#||||| © Copyright 2012. UberCMS/LavvosCMS/UberCMS - Estrutura |||||#
#||||| © Copyright 2012. Sulake Corporation - Habbo Arquivos |||||#
#####################################################################
require_once('./data_classes/server-data.php_data_classes-core.php.php');
require_once('./data_classes/server-data.php_data_classes-session.php.php');
$body_id = "news";
$pageid = "11";
$news_id = FilterText($_GET['web-articles-id']);
$main_sql = mysql_query("SELECT * FROM cms_news WHERE id = '".$news_id."'") or die(mysql_error());
$article_exists = mysql_num_rows($main_sql);
if($article_exists == "1"){
$news = mysql_fetch_assoc($main_sql);
} else {
$main_sql = mysql_query("SELECT * FROM cms_news ORDER BY ID DESC") or die(mysql_error());
$news = mysql_fetch_assoc($main_sql);
$news_id = $news['id'];
$pagename = "".HoloText($news['title'])."";
}
//SISTEMA DE VOTAÇÃO INICIA AQUI
if(isset($_GET['vote']) || FilterText($_GET['vote']) == "like" || FilterText($_GET['vote']) == "unlike"){
$vote = FilterText($_GET['vote']);
$usercheck = mysql_query("SELECT id_user FROM cms_news_vote WHERE id_user = '".$my_id."' AND id_news = '".$news_id."'") or die(mysql_error());
if(mysql_num_rows($usercheck) < 1){
if($vote == "like"){
mysql_query("INSERT INTO `cms_news_vote` (id_user,id_news,vote_like,vote_unlike) VALUES ('".$my_id."','".$news_id."','1','0')") or die(mysql_error());
} else {
mysql_query("INSERT INTO `cms_news_vote` (id_user,id_news,vote_like,vote_unlike) VALUES ('".$my_id."','".$news_id."','0','1')") or die(mysql_error());
}
header("location: $path/articles/".$news_id."");
} else {
$msg = "<script>alert(\"Obrigado por votar nesta notícia, assim poderemos saber se realmente você gostou :-) \");</script>";
}
}
$images = explode(",",$news['images']);
if(isset($_GET['vote']) || FilterText($_GET['vote']) == "like" || FilterText($_GET['vote']) == "unlike"){
$vote = FilterText($_GET['vote']);
$usercheck = mysql_query("SELECT id_user FROM cms_news_vote WHERE id_user = '".$my_id."' AND id_news = '".$news_id."'") or die(mysql_error());
if(mysql_num_rows($usercheck) < 1){
if($vote == "like"){
mysql_query("INSERT INTO `cms_news_vote` (id_user,id_news,vote_like,vote_unlike) VALUES ('".$my_id."','".$news_id."','1','0')") or die(mysql_error());
} else {
mysql_query("INSERT INTO `cms_news_vote` (id_user,id_news,vote_like,vote_unlike) VALUES ('".$my_id."','".$news_id."','0','1')") or die(mysql_error());
}
header("location: $path/articles/".$news_id."");
} else {
$msg = "<script>alert(\"Você já votou nesta notícia!\");</script>";
}
}
// TERMINA AQUI //
require_once('./templates/community_subheader.php');
require_once('./templates/community_header.php');
?>
<style>
div.bluea h2.title {
background-color: #559EDC;
}
</style>
<div id="container">
<div id="content">
<div id="column1" class="column">
<div class="habblet-container ">
<div class="cbb clearfix bluea">
<h2 class="title">Índice de Notícias</h2>
<div id="article-archive">
<?php
if ($news_id > 0)
{
for ($i = 0; $i < 7; $i++)
{
$sectionName = "";
$sectionCutoffMax = 0;
$sectionCutoffMin = 0;
switch ($i)
{
case 0:
$sectionName = "Hoje";
$sectionCutoffMax = time();
$sectionCutoffMin = time() - 86400;
break;
case 1:
$sectionName = "Ontem";
$sectionCutoffMax = time() - 86400;
$sectionCutoffMin = time() - 172800;
break;
case 2:
$sectionName = "Essa Semana";
$sectionCutoffMax = time() - 172800;
$sectionCutoffMin = time() - 604800;
break;
case 3:
$sectionName = "Semana Passada";
$sectionCutoffMax = time() - 604800;
$sectionCutoffMin = time() - 1209600;
break;
case 4:
$sectionName = "Esse Mês";
$sectionCutoffMax = time() - 1209600;
$sectionCutoffMin = time() - 2592000;
break;
case 5:
$sectionName = "Mês Passado";
$sectionCutoffMax = time() - 2592000;
$sectionCutoffMin = time() - 5184000;
break;
case 6:
$sectionName = "Outros Meses";
$sectionCutoffMax = time() - 3592000;
$sectionCutoffMin = time() - 5684000;
break;
}
$sql = mysql_query("SELECT * FROM cms_news WHERE published >= " . $sectionCutoffMin . " AND published <= " . $sectionCutoffMax . " ORDER BY published DESC");
if(mysql_num_rows($sql) > 0){
?>
<?php echo "<h2>"; echo $sectionName; echo "</h2><ul>"; ?>
<?php while($row = mysql_fetch_assoc($sql)){ ?>
<li><?php if($news_id !== $row['id']){ echo"<a href=\"".$path."/articles/".$row['id']."\">"; } ?>
<?php echo $row['title']; ?> </a>»
<?php if($news_id !== $row['id']){ echo"</a>"; } ?></li>
<?php } ?>
</ul>
<?php } } } ?>
<ul>
<li>
</li>
</ul>
</div>
</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
</div>
<?php
$votecheck = mysql_query("SELECT * FROM cms_news_vote WHERE id_news = '".$news_id."'");
$votecount = mysql_num_rows($votecheck);
if($votecount < 1){
$percentlike = "50";
$percentunlike = "50";
$like = "0";
$unlike = "0";
} else {
$percentlike = 100 / $votecount * mysql_evaluate("SELECT COUNT(*) FROM cms_news_vote WHERE id_news = '".$news_id."' AND vote_like = '1'");
$percentunlike = 100 / $votecount * mysql_evaluate("SELECT COUNT(*) FROM cms_news_vote WHERE id_news = '".$news_id."' AND vote_unlike = '1'");
$like = mysql_evaluate("SELECT COUNT(*) FROM cms_news_vote WHERE id_news = '".$news_id."' AND vote_like = '1'");
$unlike = mysql_evaluate("SELECT COUNT(*) FROM cms_news_vote WHERE id_news = '".$news_id."' AND vote_unlike = '1'");
}
?>
<div id="column2" class="column">
<div class="habblet-container ">
<div class="cbb clearfix notitle ">
<div id="article-wrapper">
<h2 style="background-color: white; color: #559edc; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 16px; margin: 0px 0px 4px;">
<?php echo HoloText($news['title']); ?></h2>
<div class="article-meta" style="background-color: white; border-top-color: rgb(85, 158, 220) !important; border-top-style: solid !important; border-top-width: 1px !important; color: #959699; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; margin-bottom: 8px; padding-top: 7px;">
Notícia publicada na categoria <b><?php echo HoloText($news['category']); ?></b>.</div>
<div class="summary" style="background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; font-weight: bold; padding-bottom: 1em;">
<?php echo HoloText($news['longstory']); ?></div>
<script type="text/javascript" language="Javascript">
document.observe("dom:loaded", function() {
$('.article-images a').each(function(a) {
Event.observe(a, 'click', function(e) {
Event.stop(e);
Overlay.lightbox(a.href, "Carregando imagem...");
});
});
$('<?php echo $row['id']; ?>').each(function(a) {
a.replace(a.innerHTML);
});
});
</script>
<div class="article-body">
<p><?php echo (HoloText($news['shortstory'], true)); ?></p>
</div>
</script>
<div style="width:125px; height:60px; float:right; margin-right:4px; margin-top:6px;">
<a href="<?php echo $path; ?>/articles/<?php echo $news_id; ?>&vote=like"><div style="width:56px; height:56px; float:left; border-radius: 2px; border:1px solid #666; cursor:pointer; background: url(https://i.imgur.com/a5ZswXh.png) center no-repeat;"></div></a>
<a href="<?php echo $path; ?>/articles/<?php echo $news_id; ?>&vote=unlike"><div style="width:56px; height:56px; float:left; border-radius: 2px; border:1px solid #666; margin-left:5px; cursor:pointer; background: url(https://i.imgur.com/VAO3Csz.png) center no-repeat;"></div></a>
</div>
<style>#infos{background-color:#EEE;border:1px solid #CCC;border-radius:5px;padding:5px;width:530px;}#positivo{width:auto;text-decoration:none;height:15px;padding-top:5px;padding-bottom:4px;padding-left:5px;padding-right:25px;border:1px solid #007900;float:left;color:#FFFFFF;font-weight:bold;font-size:11px;margin:2px;background:url() right no-repeat #00AA00;border-radius:2px;}#negativo{width:auto;height:15px;padding-top:5px;padding-bottom:4px;padding-left:5px;padding-right:25px;border:1px solid #C81E15;float:left;color:#FFFFFF;font-weight:bold;font-size:11px;margin:2px;background:url() right no-repeat #E8372E;border-radius:2px;}</style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script>
var $a = jQuery.noConflict()
function avaliar_noticias(id, avaliar, eleitor, autor){
$a("#avaliar_noticias").html('<img style="margin-right:30px" src="http://25.131.158.64/Bim0/carregando.gif" />');
$a("#avaliar_noticias").load("/noticias_avaliacao.php?id="+id+"¬a="+avaliar+"&eleitor="+eleitor+"&autor="+autor);
}
</script>
<div id="infos" style="margin-left:-6px">
<div style="width:205px; height:56px; margin-top:5px; float:left; margin-left:10px; font-size:10px; color:#666666;">
<div style="margin-top:2px;">Autor: <b><?php echo $news['author']; ?>
</body>
</html> </b><br></div>
<div style="margin-top:2px;">Perfil do autor: <b><a href="/hall/<?php echo $news['author']; ?>">Clique aqui</a></b><br></div>
<div style="margin-top:2px;">ID da notícia: <b><?php echo $news['id']; ?></b></div>
<div style="margin-top:2px;">Postado em <b><?php echo date('d/m/Y ', $news['published']); ?></b></div>
</div>
<div style="width:1px; height:45px; background:#CCCCCC; float:left; margin-top:12px;"></div>
<div style="width:129px; height:10px; margin-top:5px; float:left; margin-left:10px; font-size:10px; color:#666666;">
<br>
<b><span style="color: #008000; font-size:10px;"><img src="https://i.imgur.com/a5ZswXh.png" /> <?php echo $like; ?><span style="color: #000000;"></b> votaram positivo.<br>
<b><span style="color: #ff0000; font-size:10px;"><img src="https://i.imgur.com/VAO3Csz.png" /> <?php echo $unlike; ?></b> votaram negativo.<br>
<b>Dê seu voto!</b>
<div style="width:125px; height:55px; float:right; margin-right:4px; margin-top:6px;">
</a>
</div>
</div>
<div style="width:530px; height:5px;"></div>
<div style="width:530px; height:auto; overflow:hidden; padding:5px 0px 5px 7px" id="avaliar_noticias">
</div>
</div>
</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<?php
if(isset($_POST['post_comment'])):
$error = array();
$comentario = strip_tags ($_POST['comment']);
if(empty($comentario))
$error[] = "<font color='#ff0000'>Escreva seu comentário é necessário antes de enviar</font>";
if(empty($error)):
$sucess = "<font color='#009900'>Seu comentário deve ter sido adicionado, obrigado por comentar.</font>";
mysql_query("INSERT INTO `cms_comments`(`story`, `comment`, `date`, `author`) VALUES ('".$news_id."', '".$comentario."', '".time()."', '".$my_id."')");
endif;
foreach($error as $errors)
$errorz = $errors;
endif;
$comment_id = $_POST['comment_id'];
$borrar = $_POST['eliminar'];
if($borrar == 1){
mysql_query("DELETE FROM cms_comments WHERE id = '$comment_id'");
}
?>
<?php
$commentid = mysql_fetch_array(mysql_query("SELECT * FROM `cms_comments` ORDER BY id DESC LIMIT 1"));
$mas = 1;
$comid = $commentid['id']+$mas;
?>
<div class="habblet-container ">
<div class="cbb clearfix notitle ">
<div id="article-wrapper"><h2 style="background-color: white; color: #559edc; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 16px; margin: 0px 0px 4px;">
Escrever um comentário</h2>
<div class="article-meta" style="background-color: white; border-top-color: rgb(85, 158, 220) !important; border-top-style: solid !important; border-top-width: 1px !important; color: #959699; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; margin-bottom: 8px; padding-top: 7px;">
<div class="article-body">
<form action="/articles/<?php echo $news_id; ?>?articleid=<?php echo $news_id; ?>&commentid=<?php echo $comid; ?><?php echo $row12['id']; ?>&userid=<?php echo $my_id; ?>" method="post">
<textarea name="comment" maxlength="350"></textarea><br /><br />
<input type="submit" name="post_comment" value="Inserir comentário" />
</form>
</div>
</div>
</div>
</div><style type="text/css">
input[type="text"], input[type="password"] {
background-color: #F1F1F1;
border: 1px solid #999999;
width: 175px;
padding: 5px;
font-family: verdana;
font-size: 10px;
color: #666666;
}
input[type="submit"] {
background-color: #F1F1F1;
border: 1px solid #999999;
padding: 5px;
font-family: verdana;
font-size: 10px;
color: #666666;
}
textarea {
background-color: #F1F1F1;
border: 1px solid #999999;
padding: 5px;
width: 517px;
height: 70px;
font-family: verdana;
font-size: 10px;
color: #666666;
}
select {
background-color: #F1F1F1;
border: 1px solid #999999;
padding: 5px;
font-family: verdana;
font-size: 10px;
color: #666666;
}
</style>
<?php
$sql1 = mysql_query("SELECT * FROM cms_comments WHERE story = '".$news_id."'");
$total = mysql_num_rows($sql1);
?>
<div class="habblet-container ">
<div class="cbb clearfix notitle ">
<div id="article-wrapper"><h2 style="background-color: white; color: #559edc; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 16px; margin: 0px 0px 4px;">
Todos os comentários (<?php echo $total; ?>)</h2>
<div class="article-meta" style="background-color: white; border-top-color: rgb(85, 158, 220) !important; border-top-style: solid !important; border-top-width: 1px !important; color: #959699; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; margin-bottom: 8px; padding-top: 7px;">
<div class="article-body">
<?php
$sql1 = mysql_query("SELECT * FROM cms_comments WHERE story = '".$news_id."' ORDER BY id DESC");
if(mysql_num_rows($sql1) > 0){
?>
<?php while($row1 = mysql_fetch_assoc($sql1)){
$userdata = mysql_fetch_assoc($userdata = mysql_query("SELECT * FROM users WHERE id = '".$row1['author']."'"));
?>
<table width="528px">
<tr>
<td width="90px" valign="top">
<div style="float:left"><img src=""></div>
</td>
<td width="427px" valign="top">
<strong>RE: <?php echo $news['title']; ?></strong><br /><br /><?php echo $row1['comment']; ?>
</td>
</tr>
<tr>
<td width="90px" valign="top">
</td>
<td width="427px" align="right">
<form method="post" action=""><?php if($user_rank > 7 && $logged_in == true){ ?><input type="hidden" name="comment_id" value="<?php echo $row1['id'] ?>"> Eliminar Comentario: <input type="radio" name="eliminar" value="0" checked> Não |<input type="radio" name="eliminar" value="1" onchange="this.form.submit()"> Sim, Eliminar. <?php } ?></form>Comentário enviado por <b><a href="/hall/<?php echo $userdata['username']; ?>"><?php echo $userdata['username']; ?></a></b></strong>
em <?php echo date('d/m/y'); ?> às <?php echo date('g:i'); ?><br /><br />
</td>
</tr>
<?php } } ?>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
</div>
<div id="column3" class="column">
</div>
<?php require_once('./templates/community_footer.php'); ?>