phpnuxbill/system/controllers/logout.php

12 lines
340 B
PHP
Raw Normal View History

2017-03-11 03:51:06 +08:00
<?php
/**
2023-10-12 16:55:42 +08:00
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
* by https://t.me/ibnux
**/
2022-09-18 01:00:40 +08:00
run_hook('customer_logout'); #HOOK
if (session_status() == PHP_SESSION_NONE) session_start();
2024-02-12 10:45:44 +08:00
Admin::removeCookie();
User::removeCookie();
2017-03-11 03:51:06 +08:00
session_destroy();
2024-02-23 15:20:12 +08:00
_alert(Lang::T('Logout Successful'),'warning', "login");