Já mais alguem testou no meu navegador, no telemovel, ja testei com mozzila, crome, e edge.
E nao aparece o que estará abloquear? já limpei a cache tudo.
<?php
$urlpost = mysql_real_escape_string($url[1]);
$readpost = read('posts',"WHERE url = '$urlpost'");
if(!$readpost):
header('Location: '.BASE.'/404');
else:
foreach($readpost as $p);
if(!$p['status'] && !$_SESSION['userlogin']['id']):
header('Location: '.BASE.'/404');
else:
$_SESSION['useracess']['postid'] = $p['id'];
setViews($p['id']);
echo getSeo($p['titulo'].' | '.SITENAME,$p['conteudo'],'ver/'.$p['url'],$p['capa']);
//VARIÁVEIS DE LEITURA
$readComm = read('comments',"WHERE status >= '1' AND post_id = '$p[id]'");
$comentarios = count($readComm);
$visitas = ($p['views'] ? $p['views'] : '0');
endif;
endif;
?>
</head>
<!--body -->
<body>
<div class="dialog"></div><!-- /Mensagems Ajax -->
<div class="ajaxcontent"></div><!--/.ajaxcontent-->
<!-- HEADER -->
<?php
setArq('themes/'.THEME.'/sidebars/header');
?>
<div class="sitecontent">
<div id="single">
<div class="setw h_single">
<div class="artigo">
<h1><?php echo $p['titulo'];?></h1>
<div class="found">
<?php if($p['video']):?>
<iframe width="560" height="338" src="https://www.youtube-nocookie.com/embed/<?php echo $p['video'];?>?rel=0&controls=0&showinfo=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
<?php else:
$artdefault = 'themes/light/images/light.png';
$artcapa = 'uploads/'.$p['capa'];
$artcapa = (file_exists($artcapa) && !is_dir($artcapa) ? $artcapa : $artdefault);
?>
<img title="<?php echo $p['titulo'];?>" alt="<?php echo $p['titulo'];?>" width="600" src="<?php setHome();?>/tim.php?src=<?php echo $artcapa;?>&w=600">
<?php endif;?>
</div><!--!found-->
<div class="content">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- 468x60, criado 09-05-2010 -->
<ins class="adsbygoogle"
style="display:inline-block;width:468px;height:60px"
data-ad-client="ca-pub-3505393501368142"
data-ad-slot="3074783455"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
<?php echo stripslashes($p['conteudo']);?>
<ul>
<script type="text/javascript">document.write('<a style="display:block;width:100%;height:1px;" class="aff-ad-none"></a>');window.AFF_ONLOAD = window.AFF_ONLOAD || [];window.AFF_ONLOAD.push({lkid:"12680220",affid:"10081551",size:"468*60",type:"1",language:"en",web_id:"40",version:110});var aff_s = document.createElement("script"),aff_h = document.getElementsByTagName("head")[0];aff_s.charset = "utf-8";aff_s.async = !0;aff_s.src = "https://js.affasi.com/affasi_js.min.js";aff_h.insertBefore(aff_s, aff_h.firstChild);</script>
<li class="contato"><a class="radius j_ad" title="<?php echo SITENAME;?> | Contato" href="#">DOWNLOAD</a></li>
</ul>
</div><!--/content-->
<?php
$readGB = read('posts_gallery',"WHERE post_id = '$p[id]' ORDER BY uploaded ASC");
if($readGB):
echo '<ul class="gallery">';
foreach($readGB as $gb):
$i++;
$default = 'themes/light/images/light.png';
$gbcapa = 'uploads/'.$gb['imagem'];
$gbcapa = (file_exists($gbcapa) && !is_dir($gbcapa) ? $gbcapa : $default);
echo '<li class="'.$class.'">
<a href="'.BASE.'/'.$gbcapa.'" rel="shadowbox['.$p['id'].']" title="'.$p['titulo'].'">
<img src="'.BASE.'/tim.php?src='.$gbcapa.'&w=135&h=170" alt="'.$p['titulo'].'" title="'.$p['titulo'].'" />
</a>
</li>';
endforeach;
echo '</ul><!--/gallery-->';
echo '<div class="clear"></div><!-- /clear -->';
endif;
?>
<div class="comments">
<h3>COMENTE O POST! <a id="<?php echo base64_encode($p['id']);?>" class="radius opencomment" href="#comment">Comentar</a></h3>
<div class="commentbox"></div><!-- /commentbox -->
<ul class="commentlist">
<div class="moderajax" style="display:none;"></div>
<?php
if($_COOKIE['MyContentComment']):
$email = base64_decode($_COOKIE['MyContentComment']);
$readMail = read('comments',"WHERE post_id = '$p[id]' AND status IS NULL AND email = '$email' ORDER BY data DESC");
if($readMail) foreach($readMail as $mail):
$matts = array('alt' => 'Avatar de '.$mail['nome'],'title' => 'Avatar de '.$mail['nome']);
$mavatar = gravatar( $mail['email'],60,'mm','g',true,$matts);
echo '<li class="li moderar">
<p class="alert">Olá <strong>'.$mail['nome'].'</strong>, o comentário neste artigo esta a ser moderado, em breve daremos notícias!</p>
<div class="user">
<div class="img">
'.$mavatar.'
</div>
<div class="info"><strong>dia</strong> <span>'.date('d/m/y',strtotime($mail['data'])).'</span> <strong>às</strong> <span>'.date('H:i',strtotime($mail['data'])).'</span></div><!-- info -->
</div><!--/user -->
'.$mail['comentario'].'
</li><!--/li-->';
endforeach;
endif;
$readComment = read('comments',"WHERE post_id = '$p[id]' AND status >= '1' AND resp_id IS NULL ORDER BY data DESC LIMIT 5");
if($readComment):
foreach($readComment as $com):
$atts = array('alt' => 'Avatar de '.$com['nome'],'title' => 'Avatar de '.$com['nome']);
$avatar = gravatar( $com['email'],60,'mm','g',true,$atts);
echo '
<li class="li comp">
<div class="user">
<div class="img">
'.$avatar.'
</div>
<div class="info"><strong>por</strong> <span>'.$com['nome'].'</span> <strong>dia</strong> <span>'.date('d/m/y',strtotime($com['data'])).'</span> <strong>às</strong> <span>'.date('H:i',strtotime($com['data'])).'</span></div><!-- info -->
</div><!--/user -->
'.$com['comentario'].'
<a href="#" title="Responda '.$com['nome'].'" class="addresp" id="'.base64_encode($com['id']).'">Responder</a>
';
$postid = $_SESSION['useracess']['postid'];
$readResp = read('comments',"WHERE status = '2' AND post_id = '$postid' AND resp_id = '$com[id]' ORDER BY data ASC");
if($readResp):
//add and admin and null
echo '<ul class="resposta">';
foreach($readResp as $resp):
if($resp['isadmin']):
$readAdmin = read('usuarios',"WHERE id = '$resp[isadmin]'");
if($readAdmin) foreach($readAdmin as $a);
$resp['nome'] = $a['nome'];
$resp['email'] = $a['email'];
endif;
$cc++;
$attsR = array('alt' => 'Avatar de '.$resp['nome'],'title' => 'Avatar de '.$resp['nome'],'class' => 'radius');
$avatarR = gravatar( $resp['email'],42,'mm','g',true,$atts);
echo '<li'; if($resp['isadmin']) echo ' class="admin" '; elseif($cc%2==0) echo ' class="add" '; echo '>';
echo '<div class="ruser">
<div class="img">
'.$avatarR.'
</div>
<div class="info"><strong>resposta de </strong> <span>'.$resp['nome'].'</span> <strong>dia</strong> <span>'.date('d/m/y',strtotime($resp['data'])).'</span> <strong>às</strong> <span>'.date('H:i',strtotime($resp['data'])).'</span></div><!-- info -->
</div><!--/user -->
'.$resp['comentario'].'
<a href="#" title="Responda '.$resp['nome'].'" class="addresp" id="'.base64_encode($resp['id']).'">Responder</a>
</li>';
endforeach;
echo '</ul><!--/resposta-->';
endif;
echo '</li><!--/li-->';
endforeach;
else:
echo '<li class="li nocomments">Não existem comentários, clique em comentar e seja o primeiro!</li>';
endif;
$readCount = read('comments',"WHERE post_id = '$p[id]' AND status >= '1' AND resp_id IS NULL");
if(count($readCount) > count($readComment)):
echo '<span id="'.base64_encode($p['id']).'" class="loadmorcomment">CARREGAR MAIS COMENTÁRIOS!</a>';
endif;
?>
</ul><!--/commentlist-->
</div><!--/comments-->
</div><!--/artigo-->
<ul class="sidebar">
<li style="padding-bottom:0; margin-bottom:0;">
<h3>PUBLICIDADE:</h3>
<div class="content">
<script type="text/javascript">document.write('<a style="display:block;width:100%;height:1px;" class="aff-ad-none"></a>');window.AFF_ONLOAD = window.AFF_ONLOAD || [];window.AFF_ONLOAD.push({lkid:"12128374",affid:"10081551",size:"300*250",type:"1",language:"en"});var aff_s = document.createElement("script"),aff_h = document.getElementsByTagName("head")[0];aff_s.charset = "utf-8";aff_s.async = !0;aff_s.src = "https://js.affasi.com/affasi_js.min.js";aff_h.insertBefore(aff_s, aff_h.firstChild);</script>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- 250x250, criado 20-06-2010 -->
<ins class="adsbygoogle"
style="display:inline-block;width:250px;height:250px"
data-ad-client="ca-pub-3505393501368142"
data-ad-slot="3376709580"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div><!-- /content -->
</li>
<li>
<h3>RELACIONADOS:</h3>
<div class="content">
<ul class="related">
<?php
$readRelated = read('posts',"WHERE status = '1' AND id != '$p[id]' AND categoria = '$p[categoria]' ORDER BY RAND() DESC LIMIT 3");
if($readRelated):
foreach($readRelated as $re):
$default = 'themes/blue/images/blue.png';
$capa = 'uploads/'.$re['capa'];
$capa = (file_exists($capa) && !is_dir($capa) ? $capa : $default);
echo '<li>';
echo '<div class="img"><img src="'.BASE.'/tim.php?src='.$capa.'&w=260&h=150" alt="'.$re['titulo'].'" title="'.$re['titulo'].'" /></div>';
echo '<a title="'.$re['titulo'].'" href="'.BASE.'/ver/'.$re['url'].'">'.lmWord($re['titulo'],70).'</a>';
echo '<p>'.lmWord($re['conteudo'],160).'</p>';
echo '</li>';
endforeach;
else:
echo '<li>Desculpe, nenhum post relacionado foi encontrado!</li>';
endif;
?>
</ul><!--/related -->
</div><!-- /content -->
<li style="padding-bottom:0; margin-bottom:0;">
<h3>COMPARTILHE:</h3>
<div class="content">
<ul class="social">
<li>
<div class="fb-like"
data-href="<?php setHome();?>/ver/<?php echo $p['url'];?>"
data-send="false"
data-layout="box_count"
data-show-faces="true">
</div>
</li>
<li>
<a href="http://twitter.com/share"
class="twitter-share-button"
data-url="<?php setHome();?>/ver/<?php echo $p['url'];?>"
data-count="vertical"
data-via="Conectese">Tweet</a>
</li>
<li>
<g:plusone size="tall" href="<?php setHome();?>/ver/<?php echo $p['url'];?>"></g:plusone>
</li>
</ul><!-- /redes -->
</div><!-- /content -->
</li>
</li>
</ul><!-- /sidebar -->
<div class="clear"></div><!--/.clear--></div><!--/.setw-->
</div><!--/#single-->
</div><!--/.sitecontent-->
<!-- FOOTER -->
<?php
setArq('themes/'.THEME.'/sidebars/footer');
?> <script type="text/javascript" src="<?php setHome();?>/themes/<?php echo THEME;?>/js/s_twitter.js"></script