Initial commit: legacy WOPS PHP application

This commit is contained in:
2026-09-21 09:52:08 +02:00
commit 9b61e32c5a
132 changed files with 28000 additions and 0 deletions
+54
View File
@@ -0,0 +1,54 @@
function countdown(end_date) //Funktion mit übergabeparameter 'end_date'
{
var dateString = end_date.split(" ");
var dateOne = dateString[0].split("-");
var year = dateOne[0];
var month = dateOne[1];
var day = dateOne[2];
var timeOne = dateString[1].split(":");
var hours = timeOne[0];
var minutes = timeOne[1];
var seconds = timeOne[2];
var end = new Date(year,month-1,day,hours,minutes,seconds); //end_date als datumsformat in die Variable end schreiben
//Rundungsfunktionen
function toSt2(n) {
var s = '';
if (n < 10) {
s += '0';
}
return (s + n).toString();
}
function toSt3(n) {
var s = '';
if (n < 10) {
s += '00';
}
else if (n < 100) {
s += '0';
}
return (s + n).toString();
}
/*Die Funktion ruft sich durchgehend selbst auf.
Das ergebnis wird durchgehend in Tagen und Minuten ausgegeben*/
function run()
{
var d = new Date(); // aktuelles Datum in d schreiben
var count = Math.floor(end.getTime() - d.getTime());
if (count > 0) {
// Berechnung der milisec, sec, min, hours, days
var miliseconds = toSt3(count%1000); count = Math.floor(count/1000); //
var seconds = toSt2(count%60); count = Math.floor(count/60); //
var minutes = toSt2(count%60); count = Math.floor(count/60);
var hours = toSt2(count%24); count = Math.floor(count/24);
var days = count;
//Ausgabe in Tagen und Minuten in den Feld mit der ID c1 und c2
document.getElementById('c1').innerHTML = 'Noch ' + days + ' TAGE';
document.getElementById('c2').innerHTML = hours + ':' + minutes + ':' + seconds;
setTimeout(run, 500); //schleife zum Aufruf der lauffunktion
}
}
run();
}
+11
View File
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<title>ACCESS DENIED!</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
</head>
<body>
<h1>ACCESS DENIED!</h1>
</body>
</html>
+9831
View File
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
+16
View File
@@ -0,0 +1,16 @@
function showPopup() {
var myDiv = document.getElementById('print');
var newWindow = window.open('', 'SecondWindow', 'toolbar=0,stat=0');
var style = newWindow.document.createElement('link');
style.type = "text/css";
style.rel = "stylesheet";
style.href = "./css/print.css";
style.media = "all";
newWindow.document.write("<html><body " +
"class='responsive light2012-home-switcher home switcher' " +
"onload='window.print()'>" +
myDiv.innerHTML +
"</body></html>");
newWindow.document.getElementsByTagName("head")[0].appendChild(style);
newWindow.document.close();
}