/usr/share/ukolovnik/lib/http.php is in ukolovnik 1.5-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 30 31 32 33 34 35 36 37 | <?php
// vim: expandtab sw=4 ts=4 sts=4:
// This is HTTP handling stuff for Ukolovnik
// Copyright © 2005 - 2016 Michal Čihař
// Published under GNU GPL version 3 or later
/**
* Outputs headers to disable caching.
*/
function HTTP_nocache_headers() {
// Used later
$now = gmdate('D, d M Y H:i:s') . ' GMT';
// General header for no caching
header('Expires: ' . $now); // rfc2616 - Section 14.21
header('Last-Modified: ' . $now);
header('Cache-Control: no-store, no-cache, must-revalidate, pre-check=0, post-check=0, max-age=0'); // HTTP/1.1
header('Pragma: no-cache'); // HTTP/1.0
}
/**
* Outputs http header with content type.
* @param string $type content type
*/
function HTTP_type_header($type) {
header('Content-Type: ' . $type);
}
/**
* Strips possible slashes from reqest.
*/
function HTTP_clean_request() {
if (get_magic_quotes_gpc()) {
array_walk_recursive($_REQUEST, 'stripslashes');
}
}
|