<?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']);
?>