= UC_REDACTOR){ $edit = "[edit]"; $owner = "(): ".$row["username"]." |"; } $addedday = substr($row['added'], 8, 2)."-".substr($row['added'], 5, 2)."-".substr($row['added'], 0, 4)." (".substr($row['added'], 11, 5).")"; //////////////////////////////////// ///////////////////////////////////////// print(""); print(""); print(""); print(""); print("

".format_comment_news($row["name"])."

".$edit."
"); if($row['showcover']=="yes"){ print(""); } print("".format_comment_news($row["text"]).""); ?>


".$owner." : ".$row["views"]." | : ".$row["comments"]." | T: ".$addedday."


"); //////////////////////////////////// ///////////////////////////////////////// print("

\n"); $subres = mysql_query("SELECT COUNT(*) FROM newscomm WHERE news = $id"); $subrow = mysql_fetch_array($subres); $count = $subrow[0]; $limited = 10; if (!$count) { if($CURUSER){ print(""); print("
"); print("
"); //print("
"); print("
"); print("
"); print("
"); print("
"); textbbcode("comment","text",""); print("
"); print("
"); print(""); print(""); print("
"); }else{ print("
"); print("
\n"); print(""); print("- ,   !
"); print("
"); } }else { //list($pagertop, $pagerbottom, $limit) = pager($limited, $count, "../musicnews.php?id=$id&", array(lastpagedefault => 1)); list($pagertop, $pagerbottom, $limit) = cpupager($limited, $count, "musicnews", $cpu.".html"); $subres = sql_query("SELECT c.id, c.ip, c.text, c.user, c.added, c.editedby, c.editedat, u.avatar, u.warned, ". "u.username, u.title, u.class, u.donor, u.added AS useradd, u.gender, u.last_access, e.username AS editedbyname FROM newscomm AS c LEFT JOIN users AS u ON c.user = u.id LEFT JOIN users AS e ON c.editedby = e.id WHERE news = " . "$id ORDER BY c.id ASC $limit") or sqlerr(__FILE__, __LINE__); $allrows = array(); while ($subrow = mysql_fetch_array($subres)) $allrows[] = $subrow; print(""); print("
"); print("
"); print("
"); print("
"); print(""); print(""); print("
"); commenttable($allrows,"commentnews"); print("
"); print($pagerbottom); print("
"); if($CURUSER){ print(""); print("
 
"); print("
"); print("
"); print("
" .textbbcode("comment","text","", 1) .""); print("
"); print("
"); print(""); print(""); print("
"); }else{ print("
"); print("
\n"); print(""); print("- ,   !
"); print("
"); } } } stdfoot("right"); ?>