-
Notifications
You must be signed in to change notification settings - Fork 0
/
logout-backend.php
29 lines (27 loc) · 940 Bytes
/
logout-backend.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
error_reporting(0);
function logout() {
session_start();
session_destroy();
$_SESSION = array();
return 1;
}
function displayLogoutModal() {
echo '<div class="modal fade" id="logout_modal" tabindex="1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-show>';
echo '<div class="modal-dialog">';
echo '<div class="modal-content">';
echo '<div class="modal-header">';
echo '<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>';
echo '<h3 class="modal-title" id="myModalLabel">Success!</h3>';
echo '</div>';
echo '<div class="modal-body">';
echo '<h4>Successfully Logged Out!</h4>';
echo '</div>';
echo '<div class="modal-footer">';
echo '<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>';
echo '</div>';
echo '</div>';
echo '</div>';
echo '</div>';
}
?>