-
Notifications
You must be signed in to change notification settings - Fork 2
/
chronik.php
50 lines (40 loc) · 1.51 KB
/
chronik.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
require("header.php");
if(isset($_POST['uploadChronik']))
{
if(!MySQL::Exist("SELECT * FROM settings WHERE setting = 'currentChronik'")) MySQL::NonQuery("INSERT INTO settings (setting) VALUES ('currentChronik')");
FileUpload("/files/chronik/","chronik","","","UPDATE settings SET value = 'FNAME' WHERE setting = 'currentChronik'");
Redirect(ThisPage());
}
echo '
<h1 class="stagfade1">Chronik</h1>
'.PageContent('1',CheckPermission("ChangeContent")).'
';
if(CheckPermission("ChangeContent"))
{
echo '
<br><br>
<form action="'.ThisPage().'" method="post" accept-charset="utf-8" enctype="multipart/form-data">
<table>
<tr>
<td>Datei für Chronik hochladen: </td>
</tr>
<tr>
<td>'.FileButton("chronik","chronik").'</td>
</tr>
<tr>
<td>
<button type="submit" name="uploadChronik">Datei hochladen</button>
</td>
</tr>
</table>
</form>
';
}
echo '
<br>
<iframe src="/files/chronik/'.Setting::Get("currentChronik").'" frameborder="0" style="width:100%; height: 800px;"></iframe>
<a href="/files/chronik/'.Setting::Get("currentChronik").'">Klicken für Vollbild</a>
';
include("footer.php");
?>