From a4b1f68e349940b4a780c04f65757fd7edeac4a5 Mon Sep 17 00:00:00 2001 From: david Date: Wed, 17 Sep 2025 11:37:36 +0200 Subject: [PATCH] * Added bootstrap nav-bar * Added nav-bar inside php file which is included in each page instead of copy pasting * Clicking on images will now redirect the user to a new page with the url of the image. This is to facilitate the exploit --- docker/Dockerfile | 2 +- www/include/nav.php | 14 ++++++++++ www/index.php | 25 ++++++++++-------- www/login.php | 9 ++----- www/static/css/stylesheet.css | 49 ++++++++++------------------------- 5 files changed, 44 insertions(+), 55 deletions(-) create mode 100644 www/include/nav.php diff --git a/docker/Dockerfile b/docker/Dockerfile index 7c8af94..f140f1e 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -33,7 +33,7 @@ RUN sed -i 's///' /etc/apache2/sites-ava # copy the app -#COPY ./app/ /var/www/html/ +COPY ./www/ /var/www/html/ RUN mkdir /var/run/sshd diff --git a/www/include/nav.php b/www/include/nav.php new file mode 100644 index 0000000..a1bc887 --- /dev/null +++ b/www/include/nav.php @@ -0,0 +1,14 @@ + + Tux Gallery + + + "; + +?> \ No newline at end of file diff --git a/www/index.php b/www/index.php index 3b256ed..d4c1054 100644 --- a/www/index.php +++ b/www/index.php @@ -5,19 +5,15 @@ Tux gallery ! - + - + +

Tux gallery

-

Tux is awesome ! So I made this extremely secure gallery.

+

Tux is awesome ! So I made this extremely secure gallery app.

You can also add tux pictures to the gallery, first login and then you should be able to upload a new image of tux.

- - + + \ No newline at end of file diff --git a/www/login.php b/www/login.php index 09747e6..a0aa4a0 100644 --- a/www/login.php +++ b/www/login.php @@ -5,15 +5,10 @@ Tux gallery ! - + - +

Login

diff --git a/www/static/css/stylesheet.css b/www/static/css/stylesheet.css index 8c79e02..e9bb9df 100644 --- a/www/static/css/stylesheet.css +++ b/www/static/css/stylesheet.css @@ -4,40 +4,6 @@ height:50px; width:auto; } - -.nav-bar ol{ - display:flex; - align-items: center; - gap:15px; - list-style-type: none; - width:100%; - height:60px; - padding:0; - margin:0; - background-color: rgb(36, 36, 36); -} -.nav-bar a { - padding:0; - margin:0; - height:60px; - display:flex; - align-content: center; - justify-content: center; -} - -.nav-bar a:hover{ - text-decoration: none; -} - -.nav-bar li{ - font-style: none; - color:black; - width:100%; - height:100%; - background-color: yellow; -} - - .wrapper { display:block; margin-left:15%; @@ -45,8 +11,8 @@ } .info-part{ - margin-left:25%; - margin-right:25%; + margin-left:15%; + margin-right:15%; } .gallery img{ @@ -65,4 +31,15 @@ margin-right:30%; margin-left:30%; gap:5px; +} + +.tux-img{ + cursor:pointer; + transition: all 0.1s ease-in-out; + border:2px solid white; + +} + +.tux-img:hover{ + border:2px solid rgb(255, 196, 0); } \ No newline at end of file