2021-12-10 10:26:05 +03:00
|
|
|
<?php defined('BASEPATH') or exit('No direct script access allowed');
|
|
|
|
|
|
|
|
/* ----------------------------------------------------------------------------
|
|
|
|
* Easy!Appointments - Open Source Web Scheduler
|
|
|
|
*
|
|
|
|
* @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
|
|
|
|
*/
|
|
|
|
class Logout extends EA_Controller {
|
|
|
|
/**
|
|
|
|
* Render the logout page.
|
|
|
|
*/
|
|
|
|
public function index()
|
|
|
|
{
|
|
|
|
$this->session->sess_destroy();
|
2021-12-18 19:22:40 +03:00
|
|
|
|
|
|
|
$company_name = setting('company_name');
|
|
|
|
|
|
|
|
html_vars([
|
|
|
|
'company_name' => $company_name
|
2021-12-10 10:26:05 +03:00
|
|
|
]);
|
2021-12-18 19:22:40 +03:00
|
|
|
|
|
|
|
$this->load->view('pages/logout', html_vars());
|
2021-12-10 10:26:05 +03:00
|
|
|
}
|
|
|
|
}
|