mirror of https://github.com/Mowie/Mowie
17 lines
379 B
PHP
Executable File
17 lines
379 B
PHP
Executable File
<?php
|
|
session_name('adminsession');
|
|
session_start();
|
|
|
|
require_once '../vendor/autoload.php';
|
|
require_once '../inc/config.php';
|
|
require_once '../inc/libs/functions.php';
|
|
|
|
$db->setCol('system_loggedin');
|
|
$db->data['token'] = $_SESSION['token'];
|
|
$db->delete();
|
|
|
|
stream_message('{user} has logged out.', 4);
|
|
|
|
session_destroy();
|
|
header('Location: '.$MCONF['web_uri'].'admin/?msg=3');
|