{
if ( $commend_pic_num <= count( $commend_pic_array ) )
{
$commend_txt_array[$row['vid']] = $row;
}
else
{
$commend_pic_array[$row['vid']] = $row;
}
}
}
else
{
$commend_pic_array = $commend_array;
}
return array(
"txtvideos" => $commend_txt_array,
"picvideos" => $commend_pic_array,
"videocount" => $videocount
);
}
function member_favvideos( $mid, $limit = 8 )
{
$videos = $orderarr = array( );
$videocount = 0;
require_once( SUPEV_ROOT."./lib/class/class.module.php" );
$mmember = new module_cls( "member" );
$mmember->addorder( $orderarr, "f.ctime" );
$mparam = array(
"myid" => $mid,
"start" => 0,
"limit" => $limit,
"order" => $orderarr
);
$mres = $mmember->call( "qy_favs", $mparam );
if ( 0 < $module->errno )
{
show( $mmember->errno, "./vspacecp.php" );
}
$videos = $mres['data'];
$videocount = count( $videos );
return array(
"videos" => $videos,
"videocount" => $videocount
);
}
if ( !defined( "IN_SUPEV" ) )
{
exit( "Access Denied" );
}
define( "UPDATE_VIDEO_ALL", 1 );
define( "UPDATE_VIDEO_COMMENTS", 2 );
define( "UPDATE_VIDEO_FAVS", 3 );
?>