-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtest.php
More file actions
110 lines (98 loc) · 3.86 KB
/
Copy pathtest.php
File metadata and controls
110 lines (98 loc) · 3.86 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
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<?php
require_once("./functions/functions.php");
require_once("./functions/functions-chat_lese.php");
// Optional kann $trigger_letzte_Zeilen als Trigger für die Ausgabe der letzten n-Zeilen angegeben werden
$trigger_letzte_Zeilen = 1;
// Benutzerdaten setzen
id_lese();
// Direkten Aufruf der Datei verbieten (nicht eingeloggt)
if( false && !isset($u_id) || $u_id == NULL || $u_id == "") {
echo "<body onLoad='parent.location.href=\"index.php\"'>\n";
header('Location: ' . $chat_url);
exit();
die;
} else {
// Hole alle benötigten Einstellungen des Benutzers
$benutzerdaten = hole_benutzer_einstellungen($u_id, "chatausgabe");
// Zeit in Sekunden bis auch im Normalmodus die Seite neu geladen wird
$refresh_zeit = 600;
// Systemnachrichten ausgeben
$sysmsg = true;
$title = $body_titel;
$meta_refresh = "";
$meta_refresh = '<script type="text/javascript">
/* <![CDATA[ */
function refreshContent() {
$("[id=seitenleiste]").load("seitenleiste.php");
}
$(document).ready(function(){
window.setInterval("refreshContent()", 10000);
refreshContent();
});
/* ]]> */
</script>';
$meta_refresh .= "<meta http-equiv=\"expires\" content=\"0\">\n";
$meta_refresh .= "<script>
setInterval(() => {
document.getElementById('content-wrapper').scrollTo(1,300000);
}, 100);
</script>\n";
//$meta_refresh .= '<script src="js/jscript.js"></script>';
$meta_refresh .= '<script src="js/jquery-3.6.0.min.js"></script>';
$meta_refresh .= '<script src="js/chat.js"></script>';
//echo'<link rel="stylesheet" href="css/style.css">';
//echo'</head>';
zeige_header($title, $benutzerdaten['u_layout_farbe'], $meta_refresh);
echo'<body>';
?>
<style>
#wrapper {
width: 100%;
background-color: #fff;
}
#top-nav {
position: fixed;
left: 0;
right: 0;
top: 0;
height: 60px;
width: 100%;
background-color: green;
}
#seitenleiste {
position: fixed;
width: 250px;
height:100vh;
right: 0;
overflow-y: scroll;
top: 60px;
padding:1px;
}
#content-wrapper {
margin: 60px 250px 0 0;
padding: 0 10px;
overflow-y: scroll;
position: fixed;
right: 0;
left: 0;
top: 0;
height:100vh;
}
</style>
<div id="wrapper">
<div id="top-nav">
Top nav
</div>
<div id="content-wrapper">
<?php $i = 0;?>
text<?php echo $i; $i++;?><br>text<?php echo $i; $i++;?><br>text<?php echo $i; $i++;?><br>text<?php echo $i; $i++;?><br>text<?php echo $i; $i++;?><br>text<?php echo $i; $i++;?><br>text<?php echo $i; $i++;?><br>text<?php echo $i; $i++;?><br>text<?php echo $i; $i++;?><br>text<?php echo $i; $i++;?><br>text<?php echo $i; $i++;?><br>text<?php echo $i; $i++;?><br>text<?php echo $i; $i++;?><br>text<?php echo $i; $i++;?><br>text<?php echo $i; $i++;?><br>text<?php echo $i; $i++;?><br>text<?php echo $i; $i++;?><br>text<?php echo $i; $i++;?><br>text<?php echo $i; $i++;?><br>text<?php echo $i; $i++;?><br>text<?php echo $i; $i++;?><br>text<?php echo $i; $i++;?><br>text<?php echo $i; $i++;?><br>text<?php echo $i; $i++;?><br>
text<?php echo $i; $i++;?><br>text<?php echo $i; $i++;?><br>text<?php echo $i; $i++;?><br>text<?php echo $i; $i++;?><br>text<?php echo $i; $i++;?><br>text<?php echo $i; $i++;?><br>text<?php echo $i; $i++;?><br>text<?php echo $i; $i++;?><br>text<?php echo $i; $i++;?><br>text<?php echo $i; $i++;?><br>text<?php echo $i; $i++;?><br>text<?php echo $i; $i++;?><br>text<?php echo $i; $i++;?><br>text<?php echo $i; $i++;?><br>text<?php echo $i; $i++;?><br>text<?php echo $i; $i++;?><br>text<?php echo $i; $i++;?><br>text<?php echo $i; $i++;?><br>text<?php echo $i; $i++;?><br>text<?php echo $i; $i++;?><br>text<?php echo $i; $i++;?><br>text<?php echo $i; $i++;?><br>text<?php echo $i; $i++;?><br>text<?php echo $i; $i++;?><br>
<!-- <div id="view_ajax"></div> -->
</div>
<div id="seitenleiste"></div>
</div>
<?php
}
?>
</body>
</html>