forked from snaptec/openWB
-
Notifications
You must be signed in to change notification settings - Fork 0
/
starttunnel.php
90 lines (78 loc) · 2.92 KB
/
starttunnel.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<?php
$result = '';
if (isset($_POST['token'])) {
$result = $_POST['token'] . "\n";
file_put_contents('/var/www/html/openWB/ramdisk/remotetoken', $result);
header("Location: ./remoteredirect.html");
} else { ?>
<!DOCTYPE html>
<html lang="de">
<head>
<base href="/openWB/web/">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>openWB Remote Sitzung</title>
<meta name="author" content="Kevin Wieland, Michael Ortenstein" />
<!-- Favicons (created with http://realfavicongenerator.net/)-->
<link rel="apple-touch-icon" sizes="57x57" href="img/favicons/apple-touch-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="img/favicons/apple-touch-icon-60x60.png">
<link rel="icon" type="image/png" href="img/favicons/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="img/favicons/favicon-16x16.png" sizes="16x16">
<link rel="manifest" href="manifest.json">
<link rel="shortcut icon" href="img/favicons/favicon.ico">
<meta name="msapplication-TileColor" content="#00a8ff">
<meta name="msapplication-config" content="img/favicons/browserconfig.xml">
<meta name="theme-color" content="#ffffff">
<!-- Bootstrap -->
<link rel="stylesheet" type="text/css" href="css/bootstrap-4.4.1/bootstrap.min.css">
<!-- Normalize -->
<link rel="stylesheet" type="text/css" href="css/normalize-8.0.1.css">
<!-- include settings-style -->
<link rel="stylesheet" type="text/css" href="css/settings_style.css">
<!-- important scripts to be loaded -->
<script src="js/jquery-3.6.0.min.js"></script>
<script src="js/bootstrap-4.4.1/bootstrap.bundle.min.js"></script>
<!-- load helper functions -->
<script src = "settings/helperFunctions.js?ver=20210329" ></script>
</head>
<body>
<header>
<!-- Fixed navbar -->
<nav class="navbar navbar-expand-sm bg-dark navbar-dark fixed-top">
<div class="navbar-brand">
openWB
</div>
</nav>
</header>
<div role="main" class="container" style="margin-top:20px">
<div class="card border-secondary">
<div class="card-header bg-secondary">
Remote Sitzung
</div>
<div class="card-body">
<div id="infoText" class="alert alert-danger">
Keine Token angegeben!<br>
Weiterleitung in 10 Sekunden...
</div>
<div class="row">
<div class="cssload-loader text-center">
<div class="cssload-inner cssload-one"></div>
<div class="cssload-inner cssload-two"></div>
<div class="cssload-inner cssload-three"></div>
</div>
</div>
</div>
</div>
</div> <!-- container -->
<footer class="footer bg-dark text-light font-small">
<div class="container text-center">
<small>Sie befinden sich hier: System/Remote Sitzung</small>
</div>
</footer>
<script>
setTimeout(function() { window.location = "index.php"; }, 10000);
</script>
</body>
</html>
<?php } ?>