getExtraJs();
$_page['name_index'] = 81;
$_ni = $_page['name_index'];
$_page['css_name'] = $oNew->oShared->sCssName;
$_page['extra_css'] = $oNew->oCmtsView->getExtraCss();
$_page['extra_js'] .= $oNew->oCmtsView->getExtraJs();
$_page['header'] = _t( "_view Video" );
$_ni = $_page['name_index'];
$check_res = checkAction( $member['ID'], $oNew->oShared->sViewActionName );
if ( $check_res[CHECK_ACTION_RESULT] != CHECK_ACTION_RESULT_ALLOWED && !$logged['admin'] && !$logged['moderator'] ) {
$sCode = "
". $check_res[CHECK_ACTION_MESSAGE] ."
|
\n";
$_page['name_index'] = 0;
$_page_cont[0]['page_main_code'] = $sCode;
PageCode();
exit();
}
if (!is_array($oNew->aInfo)) {
$sCode = MsgBox( _t( '_No file' ) );
$_page['name_index'] = 0;
$_page_cont[0]['page_main_code'] = $sCode;
PageCode();
exit();
}
else {
$_page['header'] = $oNew->aInfo['medTitle'];
db_res("UPDATE `{$oNew->oShared->sMainTable}` SET `{$oNew->oShared->aTableFields['medViews']}` = `{$oNew->oShared->aTableFields['medViews']}` + 1 WHERE `{$oNew->oShared->aTableFields['medID']}`='$iFile'");
$_page_cont[$_ni]['page_main_code'] = $oNew->getCode();
PageCode();
checkAction( $member['ID'], $oNew->oShared->sViewActionName, true );
}
?>