Beispiel #1
0
 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');
 }
Beispiel #2
0
 public function download($id = '')
 {
     if ($id == '') {
         $this->index();
     }
     DownloadData::IncrementDLCount($id);
     $this->set('download', DownloadData::GetAsset($id));
     $this->render('download_item.tpl');
 }
Beispiel #3
0
 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');
 }