2017-03-11 02:51:06 +07:00
|
|
|
<?php
|
2024-10-09 15:56:47 +01:00
|
|
|
|
2017-03-11 02:51:06 +07:00
|
|
|
/**
|
2023-10-12 15:55:42 +07:00
|
|
|
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
|
|
|
|
* by https://t.me/ibnux
|
|
|
|
**/
|
|
|
|
|
2024-10-09 15:56:47 +01:00
|
|
|
header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
|
|
|
|
header("Expires: Tue, 01 Jan 2000 00:00:00 GMT");
|
|
|
|
header("Pragma: no-cache");
|
|
|
|
|
2022-09-18 00:00:40 +07:00
|
|
|
run_hook('customer_logout'); #HOOK
|
2017-03-23 02:25:45 +07:00
|
|
|
if (session_status() == PHP_SESSION_NONE) session_start();
|
2024-02-12 09:45:44 +07:00
|
|
|
Admin::removeCookie();
|
|
|
|
User::removeCookie();
|
2017-03-11 02:51:06 +07:00
|
|
|
session_destroy();
|
2024-10-09 15:56:47 +01:00
|
|
|
_alert(Lang::T('Logout Successful'), 'warning', "login");
|