From 6168a6b806bef926ab69c93456d51ea37e9d764f Mon Sep 17 00:00:00 2001 From: Cris Date: Wed, 21 Aug 2024 13:26:20 +0200 Subject: [PATCH] Added Controller LvTemplateUebersicht.php --- .../lehre/lvplanung/LvTemplateUebersicht.php | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 application/controllers/lehre/lvplanung/LvTemplateUebersicht.php diff --git a/application/controllers/lehre/lvplanung/LvTemplateUebersicht.php b/application/controllers/lehre/lvplanung/LvTemplateUebersicht.php new file mode 100644 index 000000000..eb01d90c8 --- /dev/null +++ b/application/controllers/lehre/lvplanung/LvTemplateUebersicht.php @@ -0,0 +1,45 @@ + 'basis/vilesci:rw', + ) + ); + + // Load libraries + $this->load->library('AuthLib'); + + + // Load language phrases + $this->loadPhrases( + array( + 'global', + 'lehre' + ) + ); + + $this->_setAuthUID(); + } + + public function index() + { + $this->load->view('lehre/lvplanung/lvTemplateUebersicht.php'); + } + + + /** + * Retrieve the UID of the logged user and checks if it is valid + */ + private function _setAuthUID() + { + $this->_uid = getAuthUID(); + + if (!$this->_uid) show_error('User authentification failed'); + } +} \ No newline at end of file