<?php
require_once "maincore.php";
include INCLUDES."comments_include.php";
// Emulate register_globals on
if (!ini_get('register_globals')) {
$superglobals = array($_SERVER, $_ENV,
$_FILES, $_COOKIE, $_POST, $_GET);
if (isset($_SESSION)) {
array_unshift($superglobals, $_SESSION);
}
foreach ($superglobals as $superglobal) {
extract($superglobal, EXTR_SKIP);
}
ini_set('register_globals', true);
}
$result = dbquery("SELECT * FROM ".$db_prefix."videos");
while ($data=dbarray($result)) {
$video_info = array("video_comments" => dbcount("(comment_id)", DB_COMMENTS, "comment_type='V' AND comment_item_id='".$data['video_id']."'"),);
echo "".$locale['999'].$poll_info['video_comments']."";
showcomments("V",DB_VIDEOS,"video_id",$video_id,FUSION_SELF."?video_id=$video_id");
}
//showcomments("V", DB_VIDEOS, "video_id", $_GET['video_id'], FUSION_SELF."?video_id=".$_GET['video_id']);
?>
function render_news($subject, $news, $info) {
function render_comments($c_data, $c_info){
global $locale;
opentable($locale['c100']);
if (!empty($c_data)){
echo "<div class='comments floatfix'>\n";
$c_makepagenav = '';
if ($c_info['c_makepagenav'] !== FALSE) {
echo $c_makepagenav = "<div style='text-align:center;margin-bottom:5px;'>".$c_info['c_makepagenav']."</div>\n";
}
foreach($c_data as $data) {
echo "<div class='tbl2'>\n";
if ($data['edit_dell'] !== FALSE) {
echo "<div style='float:right' class='comment_actions'>".$data['edit_dell']."\n</div>\n";
}
echo "<a href='".FUSION_REQUEST."#c".$data['comment_id']."' id='c".$data['comment_id']."' name='c".$data['comment_id']."'>#".$data['i']."</a> |\n";
echo "<span class='comment-name'>".$data['comment_name']."</span>\n";
echo "<span class='small'>".$data['comment_datestamp']."</span>\n";
echo "</div>\n<div class='tbl1 comment_message'>".$data['comment_message']."</div>\n";
}
echo $c_makepagenav;
if ($c_info['admin_link'] !== FALSE) {
echo "<div style='float:right' class='comment_admin'>".$c_info['admin_link']."</div>\n";
}
echo "</div>\n";
} else {
echo $locale['c101']."\n";
}
closetable();
}