9 define(
'PROFILE_VIDEO_CATEGORY',
'Profile videos');
18 $this->aSectionsAdmin[
'processing'] = array(
'exclude_btns' =>
'all');
19 $this->aSectionsAdmin[
'failed'] = array(
20 'exclude_btns' => array(
'activate',
'deactivate',
'featured',
'unfeatured')
26 $aInfo = $this->_oDb->getFileInfo(array(
'fileId'=>(
int)
$iFileId),
false, array(
'medID',
'medProfId',
'medUri',
'albumId',
'Approved'));
29 $sPathFull = $this->_oConfig->getFilesPath() .
$aInfo[
'medID'] .
'.';
30 $aExts = array(
'flv',
'm4v');
35 foreach ($aExts
as $sPostfix)
37 if (file_exists($sPathFull . $sPostfix))
46 header(
'Connection: close');
48 header(
'Content-Length: ' . filesize($sPathFull));
49 header(
'Last-Modified: ' . gmdate(
'r', filemtime($sPathFull)));
50 header(
'Content-Disposition: attachment; filename="' .
$aInfo[
'medUri'] .
'.' .
$sExt .
'";');
54 $this->_oTemplate->displayPageNotFound();
58 $this->_oTemplate->displayPageNotFound();
60 $this->_oTemplate->displayAccessDenied();
71 return parent::serviceGetMemberMenuItem ($sIcon);
76 return parent::serviceGetMemberMenuItemAddContent ($sIcon);
79 function getWallPost($aEvent, $sIcon =
'save', $aParams = array())
81 return parent::getWallPost($aEvent, $sIcon, array(
83 'single' =>
'timeline_post.html',
84 'grouped' =>
'timeline_post_grouped.html'
91 return parent::getWallPostOutline($aEvent, $sIcon, array(
93 'single' =>
'outline_item_image.html',
94 'grouped' =>
'outline_item_image_grouped.html'
101 return $this->_oTemplate->getEmbedCode(
$iFileId, $aExtra);
130 $aInfo = $this->_oDb->getFileInfo(array(
'fileUri' => $sUri));
132 $this->_oTemplate->pageCode($this->aPageTmpl, array(
'page_main_code' =>
MsgBox(
_t(
'_sys_txt_error_you_are_blocked'))));
136 parent::actionView($sUri);
140 if (
$sParamName ==
'album' && $sParamValue1 ==
'owner') {
141 $iOwnerId =
getID($sParamValue2);
143 $this->_oTemplate->pageCode($this->aPageTmpl, array(
'page_main_code' =>
MsgBox(
_t(
'_sys_txt_error_you_are_blocked'))));
153 $iOwnerId =
getID($sParamValue1);
155 $this->_oTemplate->pageCode($this->aPageTmpl, array(
'page_main_code' =>
MsgBox(
_t(
'_sys_txt_error_you_are_blocked'))));