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 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'); }
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'); }