Exemple #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');
 }
Exemple #2
0
 public function index()
 {
     if (!Auth::LoggedIn()) {
         echo 'You must be logged in to access this page!';
         return;
     }
     $this->set('allcategories', DownloadData::GetAllCategories());
     $this->render('downloads_list.tpl');
 }
Exemple #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');
 }