From 01f240cd572ab68403c97dec0afbdfe9178c1dd4 Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Sat, 11 May 2024 21:21:54 +0200 Subject: [PATCH] Rework everything --- www/.php/auth.inc | 27 +++++++++++++++ www/.php/credentials.sample.inc | 16 +++++++++ www/{ => .php}/format.inc | 0 www/clients.php | 54 ++++++++++++++++------------- www/credentials.sample.inc | 7 ---- www/{res/elwig.ico => favicon.ico} | Bin www/files/create.sql.php | 5 +-- www/files/index.php | 44 +++++++++++++---------- www/footer.inc | 2 -- www/header.inc | 10 ------ www/index.php | 7 ---- www/index.xhtml | 31 +++++++++++++++++ www/res/style.css | 44 ++++++++++++++++++++++- 13 files changed, 176 insertions(+), 71 deletions(-) create mode 100644 www/.php/auth.inc create mode 100644 www/.php/credentials.sample.inc rename www/{ => .php}/format.inc (100%) delete mode 100644 www/credentials.sample.inc rename www/{res/elwig.ico => favicon.ico} (100%) delete mode 100644 www/footer.inc delete mode 100644 www/header.inc delete mode 100644 www/index.php create mode 100644 www/index.xhtml diff --git a/www/.php/auth.inc b/www/.php/auth.inc new file mode 100644 index 0000000..f52896d --- /dev/null +++ b/www/.php/auth.inc @@ -0,0 +1,27 @@ + 'password', +]; + +$CLIENT_CREDENTIALS = [ + 'name' => [ + 'username' => 'password', + ], +]; diff --git a/www/format.inc b/www/.php/format.inc similarity index 100% rename from www/format.inc rename to www/.php/format.inc diff --git a/www/clients.php b/www/clients.php index 6cbe99b..ec40633 100644 --- a/www/clients.php +++ b/www/clients.php @@ -1,9 +1,10 @@ -

Mandanten

- - - + header('Content-Type: application/xhtml+xml; charset=UTF-8'); + echo "\n"; + ?> + + + + Mandanten - Elwig - Elektronische Winzergenossenschaftsverwaltung + + + + +

Mandanten

+
Name
+ + \n"; + echo " \n"; } ?> - -
Name
$c
$c
-

JSON-Format

- + +

JSON-Format

+ + + [ - 'username' => 'password', - ], -]; diff --git a/www/res/elwig.ico b/www/favicon.ico similarity index 100% rename from www/res/elwig.ico rename to www/favicon.ico diff --git a/www/files/create.sql.php b/www/files/create.sql.php index e780b4f..6c7bd04 100644 --- a/www/files/create.sql.php +++ b/www/files/create.sql.php @@ -1,4 +1,6 @@ -

Downloads

- - - + header('Content-Type: application/xhtml+xml; charset=UTF-8'); + echo "\n"; + ?> + + + + Downloads - Elwig - Elektronische Winzergenossenschaftsverwaltung + + + + +

Downloads

+
NameGrößeÄnderungsdatum
+ + [$prod, $vers, $url, $size, $mtime, $ctime, $mod, $cre]) { - echo " \n"; + echo " \n"; } ?> - -
NameGrößeÄnderungsdatum
$name" . number_format($size / 1024 / 1024, 1) . " MB" . date('d.m.Y, H:i', $mtime) . "
$name" . number_format($size / 1024 / 1024, 1) . " MB" . date('d.m.Y, H:i', $mtime) . "
-

JSON-Format

- + +

JSON-Format

+ + + - diff --git a/www/header.inc b/www/header.inc deleted file mode 100644 index 1d547da..0000000 --- a/www/header.inc +++ /dev/null @@ -1,10 +0,0 @@ - - - - - <?php if (!empty($TITLE)) echo "$TITLE - "; ?>Elwig - Elektronische Winzergenossenschaftsverwaltung - - - - - diff --git a/www/index.php b/www/index.php deleted file mode 100644 index 7fb3a46..0000000 --- a/www/index.php +++ /dev/null @@ -1,7 +0,0 @@ - -

Elwig

-

Elektronische Winzergenossenschaftsverwaltung

- Source
- Downloads
- Mandanten - diff --git a/www/index.xhtml b/www/index.xhtml new file mode 100644 index 0000000..75aff1c --- /dev/null +++ b/www/index.xhtml @@ -0,0 +1,31 @@ + + + + + Elwig - Elektronische Winzergenossenschaftsverwaltung + + + + +
+ +
+ +
+

Elwig

+

Elektronische Winzergenossenschaftsverwaltung

+ Mandanten +
+ + + + diff --git a/www/res/style.css b/www/res/style.css index d4c4c39..226299e 100644 --- a/www/res/style.css +++ b/www/res/style.css @@ -1,6 +1,48 @@ -html { +:root { font-family: 'Arial', sans-serif; + box-sizing: border-box; +} + +body { + margin: 3em 0 0 0; +} + +header { + position: fixed; + top: 0; + width: 100%; + height: 3em; + border-bottom: 1px solid #C0C0C0; + background-color: #FFFFFF; +} + +header img { + height: 2.5em; + margin: 0.25em; +} + +nav { + height: 100%; +} + +nav ul { + display: flex; + list-style-type: none; + margin: 0; + padding: 0; + justify-content: center; + align-items: center; + height: 100%; +} + +nav li { + +} + +nav li a { + text-decoration: none; + padding: 1em; } table td {