Website Summary Files Commits Branches @commit @diff @stats
path: root / views / archive / clear_queue.php
blob: 31ddbdb971475c585c2700a5b0424aab98c64195 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php

if ($_SERVER['REQUEST_METHOD'] !== 'POST') {
    header('Allow: POST');
    http_response_code(405);
    header('Content-Type: text/plain');
    echo $_SERVER['REQUEST_METHOD'] . " request not allowed!";
    exit;
}

session_start();
session_unset();
session_destroy();