public function editdownload() { $this->set('title', 'Edit Download'); $this->set('action', 'editdownload'); $this->set('allcategories', DownloadData::GetAllCategories()); $this->set('download', DownloadData::GetAsset($this->get->id)); $this->render('downloads_downloadform.tpl'); }
public function download($id = '') { if ($id == '') { $this->index(); } DownloadData::IncrementDLCount($id); $this->set('download', DownloadData::GetAsset($id)); $this->render('download_item.tpl'); }
public function editdownload() { $this->checkPermission(EDIT_DOWNLOADS); $this->set('title', 'Edit Download'); $this->set('action', 'editdownload'); $this->set('allcategories', DownloadData::GetAllCategories()); $this->set('download', DownloadData::GetAsset($this->get->id)); $this->render('downloads_downloadform.php'); }