-
Notifications
You must be signed in to change notification settings - Fork 0
/
vymaz_subor.php
34 lines (29 loc) · 1.03 KB
/
vymaz_subor.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
30
31
32
33
34
<?php
if(empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == "off"){
$redirect = 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
header('HTTP/1.1 301 Moved Permanently');
header('Location: ' . $redirect);
exit();
}
$subor = $_GET['subor'];
?>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Cache-Control" content="no-store" />
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="expires" content="mon, 27 sep 2010 14:30:00 GMT" />
<link rel="stylesheet" type="text/css" href="style.css">
<title>Vymazanie súboru</title>
</head>
<body>
<h1>Vymazanie súboru</h1>
<div class="centrovane">
<?php unlink($subor) ?>
</div>
<p class="centrovane">Súbor <strong><?php echo $subor ?></strong> bol práve vymazaný.</p>
<p class="centrovane"><a href="sprava.php">Späť na správu kvízov</a></p>
</body>
</html>