iFile = (int)$iFile; $this->sType = process_db_input($sMediaType); $this->oShared = new BxDolSharedMedia($sMediaType, $aSite, $aDir, $aMember); $this->aInfo = $this->oShared->getFileInfo($this->iFile); switch ($sMediaType) { case 'photo': $sComms = 'sharedPhoto'; break; case 'music': $sComms = 'sharedMusic'; break; case 'video': $sComms = 'sharedVideo'; break; } $this->oCmtsView = new BxTemplCmtsView ($sComms, (int)$this->iFile); parent::BxDolPageView($sMediaType); } function getBlockCode_ActionList() { if (is_array($this->aInfo)) return $this->oShared->showActionList($this->aInfo); } function getBlockCode_FileInfo() { if (is_array($this->aInfo)) return $this->oShared->showFileInfo($this->aInfo); } function getBlockCode_LastFiles() { if (is_array($this->aInfo)) return $this->oShared->showLatestFiles($this->aInfo); } function getBlockCode_Rate() { return $this->oShared->showRateSection($this->iFile); } function getBlockCode_ViewFile() { return $this->oShared->showFile($this->iFile); } function getBlockCode_ViewComments() { if (!$this->oCmtsView->isEnabled()) return ''; return $this->oCmtsView->getCommentsFirst (); } } ?>