52 lines
1.2 KiB
PHP
Executable File
52 lines
1.2 KiB
PHP
Executable File
@extends('m3::liberty-theme.layout.main')
|
|
@section('title')
|
|
Logout
|
|
@endsection
|
|
@section('btn')
|
|
@endsection
|
|
@section('content')
|
|
<div class="container-fluid px-4">
|
|
<h1 class="mt-4">Logout</h1>
|
|
<div class="row">
|
|
You will be logged out in a few seconds.
|
|
</div>
|
|
</div>
|
|
@endsection
|
|
@section('scripts')
|
|
<script type="text/javascript">
|
|
function GetXmlHttpObject()
|
|
{
|
|
if (window.XMLHttpRequest)
|
|
{
|
|
// code for IE7+, Firefox, Chrome, Opera, Safari
|
|
return new XMLHttpRequest();
|
|
}
|
|
if (window.ActiveXObject)
|
|
{
|
|
// code for IE6, IE5
|
|
return new ActiveXObject("Microsoft.XMLHTTP");
|
|
}
|
|
return null;
|
|
}
|
|
|
|
function logoutUser() {
|
|
//setTimeout('location.reload(true)', 1000);
|
|
xmlhttp = GetXmlHttpObject();
|
|
if (xmlhttp==null) {
|
|
return;
|
|
}
|
|
//alert(xmlhttp);
|
|
var url = "/";
|
|
|
|
xmlhttp.open("GET", url, true, "dummy_user", "dummy_password");
|
|
|
|
xmlhttp.setRequestHeader( "If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT" );
|
|
xmlhttp.setRequestHeader( 'Accept', 'message/x-formresult' );
|
|
xmlhttp.send(null);
|
|
}
|
|
|
|
logoutUser();
|
|
|
|
</script>
|
|
@endsection
|