diff options
Diffstat (limited to 'src/web/_controller/apps/settings.php')
-rw-r--r-- | src/web/_controller/apps/settings.php | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/src/web/_controller/apps/settings.php b/src/web/_controller/apps/settings.php deleted file mode 100644 index 8a409cc..0000000 --- a/src/web/_controller/apps/settings.php +++ /dev/null @@ -1,41 +0,0 @@ -<?php /* Copyright (c) 2024 Freya Murphy */ -class Settings_controller extends Controller { - - // the home model - private $settings_model; - - // the format model - protected $format_model; - - // the post controller - protected $post_controller; - - // the people controller - protected $people_controller; - - function __construct($load) { - parent::__construct($load); - $this->settings_model = $this->load->model('apps/settings'); - } - - public function index(): void { - if (!$this->main->session) { - $this->redirect('/auth/login'); - } - - parent::index(); - $data = $this->settings_model->get_data(); - - if (!$data) { - $this->error(404); - } - - $this->load->app_lang($this->main->info['lang'], 'auth'); - $this->view('header', $data); - $this->view('apps/settings/main', $data); - $this->view('footer', $data); - } - -} - -?> |