2021-12-10 10:26:05 +03:00
|
|
|
<?php defined('BASEPATH') or exit('No direct script access allowed');
|
|
|
|
|
|
|
|
/* ----------------------------------------------------------------------------
|
2022-01-18 15:05:42 +03:00
|
|
|
* Easy!Appointments - Online Appointment Scheduler
|
2021-12-10 10:26:05 +03:00
|
|
|
*
|
|
|
|
* @package EasyAppointments
|
|
|
|
* @author A.Tselegidis <alextselegidis@gmail.com>
|
2021-12-18 19:43:45 +03:00
|
|
|
* @copyright Copyright (c) Alex Tselegidis
|
2021-12-10 10:26:05 +03:00
|
|
|
* @license https://opensource.org/licenses/GPL-3.0 - GPLv3
|
|
|
|
* @link https://easyappointments.org
|
|
|
|
* @since v1.0.0
|
|
|
|
* ---------------------------------------------------------------------------- */
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Logout controller.
|
|
|
|
*
|
|
|
|
* Handles the logout page functionality.
|
|
|
|
*
|
|
|
|
* @package Controllers
|
|
|
|
*/
|
2023-11-29 12:24:09 +03:00
|
|
|
class Logout extends EA_Controller
|
|
|
|
{
|
2021-12-10 10:26:05 +03:00
|
|
|
/**
|
2023-11-29 12:24:09 +03:00
|
|
|
* Render the logout page.
|
2021-12-10 10:26:05 +03:00
|
|
|
*/
|
2024-04-26 17:36:14 +03:00
|
|
|
public function index(): void
|
2021-12-10 10:26:05 +03:00
|
|
|
{
|
|
|
|
$this->session->sess_destroy();
|
2023-11-29 12:24:09 +03:00
|
|
|
|
|
|
|
$company_name = setting('company_name');
|
|
|
|
|
2021-12-18 19:22:40 +03:00
|
|
|
html_vars([
|
2022-10-16 18:02:47 +03:00
|
|
|
'page_title' => lang('log_out'),
|
2023-12-22 13:35:41 +03:00
|
|
|
'company_name' => $company_name,
|
2021-12-10 10:26:05 +03:00
|
|
|
]);
|
2021-12-18 19:22:40 +03:00
|
|
|
|
2022-01-19 12:21:05 +03:00
|
|
|
$this->load->view('pages/logout');
|
2021-12-10 10:26:05 +03:00
|
|
|
}
|
|
|
|
}
|