//################################################## ################################################## ################
// Show Comments
//################################################## ################################################## ################
if($allow_comments){
$comm_per_page = $config_comments_per_page;
$total_comments = 0;
$showed_comments = 0;
$comment_number = 0;
$showed = 0;
$all_comments = file("$comm_file");
foreach($all_comments as $comment_line)
{
$comment_line = trim($comment_line);
$comment_line_arr = explode("|>|", $comment_line);
if($id == $comment_line_arr[0])
{
$individual_comments = explode("||", $comment_line_arr[1]);
$total_comments = @count($individual_comments) - 1;
//show the page with our new comment, if we just added one
/* causes some problems, will be updated !!!
if($allow_add_comment and true){
$comm_start_from = $total_comments-1;
if($config_reverse_comments == "yes"){
$comm_start_from = 0;
}
}
*/
$iteration = 0;
if($config_reverse_comments == "yes"){$iteration = count($individual_comments)+1; $individual_comments = array_reverse($individual_comments); }
foreach($individual_comments as $comment)
{
if($config_reverse_comments == "yes") { $iteration --; }
else{ $iteration ++; }
$comment_arr = explode("|", $comment);
if($comment_arr[0] != "")
{
if(isset($comm_start_from) and $comm_start_from != ""){
if($comment_number < $comm_start_from){ $comment_number++; continue; }
elseif($showed_comments == $comm_per_page){ break; }
}
$comment_number ++;
$comment_arr[4] = stripslashes(rtrim($comment_arr[4]));
if($comment_arr[2] != "none"){
if( preg_match("/^[\.A-z0-9_\-\+]+[@][A-z0-9_\-]+([.][A-z0-9_\-]+)+[A-z]{1,4}$/", $comment_arr[2])){ $url_target = "";$mail_or_url = "mailto:"; }
else{
$url_target = "target=\"_blank\"";
$mail_or_url = "";
if(substr($comment_arr[2],0,3) == "www"){ $mail_or_url = "http://"; }
}
$output = str_replace("{author}", "<a $url_target href=\"$mail_or_url".stripslashes($comment_arr[2])."\">".stripslashes($comment_arr[1])."</a>", $template_comment);
}
else{ $output = str_replace("{author}", $comment_arr[1], $template_comment); }
$comment_arr[4] = preg_replace("/\b((http(s?):\/\/)|(www\.))([\w\.]+)([&-~\%\/\w+\.-?]+)\b/i", "<a href=\"http$3://$4$5$6\" target=\"_blank\">$2$4$5$6</a>", $comment_arr[4]);
$comment_arr[4] = preg_replace("/([\w\.]+)(@)([-\w\.]+)/i", "<a href=\"mailto:$0\">$0</a>", $comment_arr[4]);
$output = str_replace("{mail}", "$comment_arr[2]",$output);
$output = str_replace("{date}", date($config_timestamp_comment, $comment_arr[0]),$output);
$output = str_replace("{comment-id}", $comment_arr[0],$output);
$output = str_replace("{comment}", "<a name=\"".$comment_arr[0]."\"></a>$comment_arr[4]",$output);
$output = str_replace("{comment-iteration}", $iteration ,$output);
$output = replace_comment("show", $output);
echo $output;
$showed_comments++;
if($comm_per_page != 0 and $comm_per_page == $showed_comments){ break; }
}
}
}
}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<head>
<html>
<meta http-equiv="Content-Language" content="pt-br">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>noticias </title>
<STYLE type="text/css">
<!--
BODY {FONT: 8pt Verdana; COLOR: 000000; MARGIN: 3px;
{scrollbar-DarkShadow-Color: #E0E0DF;
scrollbar-Track-Color: #E0E0DF;
scrollbar-Face-Color: #E0E0DF;
scrollbar-Shadow-Color: #E0E0DF;
scrollbar-3dLight-Color: #E0E0DF;
scrollbar-Highlight-Color: #E0E0DF;
scrollbar-Arrow-Color: #E0E0DF}
a {text-decoration: none}
body, p, td {font-size:7pt;
font-family:Verdana;
text-align:;
color:#000000}
}
A:link {FONT-WEIGHT: bold; COLOR: #CA0000; TEXT-DECORATION: none; cursor: default}
A:visited {FONT-WEIGHT: bold; COLOR: #CA0000; TEXT-DECORATION: none; cursor: default}
A:active {FONT-WEIGHT: bold; COLOR: #CA0000; TEXT-DECORATION: none; cursor: default}
A:hover {FONT-WEIGHT: bold; COLOR: #F00000; TEXT-DECORATION: none; cursor: default}
-->
</STYLE>
<table border="0" width="304" cellspacing="0" cellpadding="0">
<tr>
<td width="65">Name:</td>
<td width="239"><input type="text" name="name" size="20"></td>
</tr>
<tr>
<td width="65">E-mail:</td>
<td width="239"><input type="text" name="mail" size="20"> (optional)</td>
</tr>
<tr>
<td width="65">Smile:</td>
<td width="239">
<script type="text/javascript">
//<![CDATA[
function insertext(text){
document.comment.comments.value+=" "+ text;
document.comment.comments.focus();
}
//]]></script>
<noscript>Your browser is not Javascript enable or you have turn it off. We recommend you to activate, otherwise you will have to enter the emoticons representations manually.
</noscript>








</td>
</tr>
<tr>
<td colspan="2" width="304">
<textarea cols="29" rows="6" id=commentsbox name="comments"></textarea>
<input type="submit" name="submit" value="Add My Comment">
<input type=checkbox name=CNremember id=CNremember value=1><label for=CNremember> Remember Me</label> |
Forget Me
</td>
</tr>
</table>
</html>
</head> <div><input type="hidden" name="subaction" value="addcomment" /><input type="hidden" name="ucat" value="" /><input type="hidden" name="show" value="" /></div></form>
<script type="text/javascript" src="http://www.mileystyle.freestyle.com/cutenews/remember.js"></script><script>CNreadCookie();</script><div style="margin-top:15px;width:100%;text-align:center;font:9px Verdana;">Content Management Powered by
CuteNews</div>