-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathout.php
More file actions
53 lines (43 loc) · 1.54 KB
/
out.php
File metadata and controls
53 lines (43 loc) · 1.54 KB
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
51
52
53
<?php
// SPDX-FileCopyrightText: 2021 Weymeirsch und Langer GbR
//
// SPDX-License-Identifier: AGPL-3.0-only
// read input
$room=$_GET['room'];
// Load required configs
list($pwd) = preg_replace('/\/[^\/]+$/', "/", get_included_files());
$conf_path = $pwd . "conf/common.php";
include($conf_path);
// detect language
$lang_path = $pwd . "lib/language.php";
include($lang_path);
$lang=detect_language();
// Load i18n strings
$i18n_path = $pwd . "conf/i18n.php";
include($i18n_path);
// Load HTML functions
$html_path = $pwd . "lib/html.php";
include($html_path);
// Do we Want to show the privacy policy?
if ($privp == TRUE) {
// Was a room-ID provided?
if ($room > 0) {
// Create HTML Content
$html_content="<h1>" . $privh . "</h1>
<div class='justify-content-center'>
<p>" . $privt . " <a href=" . $privl . " target='_blank' class='highlight'>" . $privh . "</a></p><br>
<a href='https://" . $jdomain . "/" . $room . "'>
<input class='button' type='submit' value='" . $privb . "'>
</a><br><br>
</div>";
if ($cleanup == "iframe") {
$html_content=$html_content . "<iframe src='misc/cleanup.php' style='width:0;height:0;border:0;display:none;'></iframe>";
}
build_html($html_content, $priv_title, $priv_desc);
} else {
header("Location: /inv.php?error=true");
}
} else {
header("Location: https://" . $jdomain . "/" . $room . "");
}
?>