From 3a82baec9d793edf81ac2b151b0f4d4159641375 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Mon, 1 Apr 2024 11:09:25 -0400 Subject: login and register, liking on homepage --- web/core/_controller.php | 49 ------------------------------------------------ 1 file changed, 49 deletions(-) delete mode 100644 web/core/_controller.php (limited to 'web/core/_controller.php') diff --git a/web/core/_controller.php b/web/core/_controller.php deleted file mode 100644 index a357ccc..0000000 --- a/web/core/_controller.php +++ /dev/null @@ -1,49 +0,0 @@ -load = $load; - $this->main = $this->load->model('main'); - $this->db = $this->main->db; - - $info = $this->main->info; - $lang = $info['lang']; - $this->load->lang($lang); - $app = $info['app']; - if ($app) { - $this->load->app_lang($lang, $app); - } - } - - public function index() {} - - public function redirect($link) { - header('Location: '. $link, true, 301); - die(); - } - - protected function view($__name, $data = array()) { - $__root = $GLOBALS['webroot']; - $__path = $__root . '/_views/' . $__name . '.php'; - if (is_file($__path)) { - extract($data); - require($__path); - return; - } - } - -} -?> -- cgit v1.2.3-freya