From: xf0r3m Date: Fri, 11 Aug 2023 08:27:02 +0000 (+0200) Subject: Dodano do ustawień opcję pozwalającą na wybór domyślnego motywy serwisu - BT #98 X-Git-Url: https://gitweb.morketsmerke.org/?a=commitdiff_plain;h=d53ada81c2792a7ce9e971afad88d85269d8d5c9;p=bugtrack.git Dodano do ustawień opcję pozwalającą na wybór domyślnego motywy serwisu - BT #98 --- diff --git a/forms/theme.php b/forms/theme.php new file mode 100644 index 0000000..e4c0192 --- /dev/null +++ b/forms/theme.php @@ -0,0 +1,32 @@ +
+
+
Motyw serwisu:
+
+ +
+ +
+ +
+
+
diff --git a/index.php b/index.php index ac1ff68..2c889bc 100755 --- a/index.php +++ b/index.php @@ -2,14 +2,14 @@ - +> diff --git a/modules/savetheme.php b/modules/savetheme.php new file mode 100644 index 0000000..0963db4 --- /dev/null +++ b/modules/savetheme.php @@ -0,0 +1,11 @@ +Domyślny motyw serwisu został zmieniony"; + } else { + echo "
Domyślny motyw nie został zmieniony
"; + } +?> diff --git a/settings.php b/settings.php index 4053fde..909242c 100644 --- a/settings.php +++ b/settings.php @@ -20,6 +20,7 @@ if ( isset($_POST["editCLFormCode"]) ) { include('modules/editclform.php'); } if ( isset($_POST["dictionary"]) ) { include('modules/newdictionary.php'); } if ( isset($_POST["editDictionary"]) ) { include('modules/editdictionary.php'); } + if ( isset($_POST["siteTheme"]) ) { include('modules/savetheme.php'); } } $whereValue="username = '" . $_SESSION["username"] . "';"; @@ -46,8 +47,9 @@ echo "

Formularz listy zmian:

"; include('modules/listclforms.php'); echo "
"; - echo "

Strona główna:

"; + echo "

Wygląd serwisu:

"; include('forms/slogan.php'); + include('forms/theme.php'); echo "
"; }