From d53ada81c2792a7ce9e971afad88d85269d8d5c9 Mon Sep 17 00:00:00 2001 From: xf0r3m Date: Fri, 11 Aug 2023 10:27:02 +0200 Subject: [PATCH] =?utf8?q?Dodano=20do=20ustawie=C5=84=20opcj=C4=99=20pozwa?= =?utf8?q?laj=C4=85c=C4=85=20na=20wyb=C3=B3r=20domy=C5=9Blnego=20motywy=20?= =?utf8?q?serwisu=20-=20BT=20#98?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- forms/theme.php | 32 ++++++++++++++++++++++++++++++++ index.php | 4 ++-- modules/savetheme.php | 11 +++++++++++ settings.php | 4 +++- 4 files changed, 48 insertions(+), 3 deletions(-) create mode 100644 forms/theme.php create mode 100644 modules/savetheme.php 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 "
"; } -- 2.39.5