From 8a94a37ae3d43f553f42fc236d6850202269381b Mon Sep 17 00:00:00 2001
From: Efe
Date: Tue, 19 May 2020 23:39:37 +0300
Subject: [PATCH 1/3] =?UTF-8?q?getTitle=20function=20yerine,=20pageTitle?=
=?UTF-8?q?=20class=20yap=C4=B1s=C4=B1=20olu=C5=9Fturuldu.=20Evler'de=20ev?=
=?UTF-8?q?=20hayaleti=20ve=20maskot=20eklendi.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
characters.php | 7 ++-----
config.php | 2 +-
header.php | 2 +-
houses.php | 13 +++++++------
index.php | 7 ++-----
spells.php | 7 ++-----
title.php | 9 +++++++++
7 files changed, 24 insertions(+), 23 deletions(-)
create mode 100644 title.php
diff --git a/characters.php b/characters.php
index 649f11a..ff7c00e 100644
--- a/characters.php
+++ b/characters.php
@@ -2,10 +2,7 @@
$config = include 'config.php';
-function getTitle()
-{
- return 'Karakterler';
-}
+$title = pageTitle::getTitle('Karakterler');
$apiUrl = "https://www.potterapi.com/v1/characters?key={$config['api_key']}";
@@ -52,7 +49,7 @@ function getTitle()
diff --git a/config.php b/config.php
index 31dcaf3..a3ec88a 100644
--- a/config.php
+++ b/config.php
@@ -1,5 +1,5 @@
'$2a$10$UL7Usqkb3s/o8PPz.ZOxxe3JJtOKObSTkaxqdeONfjp4RhKdMDQuS'
diff --git a/header.php b/header.php
index 56870d4..a637a3b 100644
--- a/header.php
+++ b/header.php
@@ -8,6 +8,6 @@
-
+
diff --git a/houses.php b/houses.php
index fb1548c..abc89d2 100644
--- a/houses.php
+++ b/houses.php
@@ -2,10 +2,7 @@
$config = include 'config.php';
-function getTitle()
-{
- return 'Evler';
-}
+$title = pageTitle::getTitle('Evler');
$houses = file_get_contents("https://www.potterapi.com/v1/houses?key={$config['api_key']}");
@@ -16,7 +13,9 @@ function getTitle()
$houseDetails[] = [
'name' => $house['name'],
'founder' => $house['founder'],
- 'headOfHouse' => $house['headOfHouse']
+ 'headOfHouse' => $house['headOfHouse'],
+ 'houseGhost' => $house['houseGhost'],
+ 'mascot' => $house['mascot'],
];
}
@@ -38,7 +37,7 @@ function getTitle()
@@ -53,6 +52,8 @@ function getTitle()
- Founder:
- Head of House:
+ - house Ghost:
+ - Mascot:
diff --git a/index.php b/index.php
index ac90073..31c4135 100644
--- a/index.php
+++ b/index.php
@@ -2,10 +2,7 @@
$config = include 'config.php';
-function getTitle()
-{
- return 'Anasayfa';
-}
+$title =pageTitle::getTitle('Anasayfa');
$house = file_get_contents("https://www.potterapi.com/v1/sortingHat?key={$config['api_key']}");
@@ -26,7 +23,7 @@ function getTitle()
diff --git a/spells.php b/spells.php
index 05ebb13..7f283ee 100644
--- a/spells.php
+++ b/spells.php
@@ -2,10 +2,7 @@
$config = include 'config.php';
-function getTitle()
-{
- return 'Büyüler';
-}
+$title = pageTitle::getTitle('Büyüler');
$spells = file_get_contents("https://www.potterapi.com/v1/spells?key={$config['api_key']}");
@@ -37,7 +34,7 @@ function getTitle()
diff --git a/title.php b/title.php
new file mode 100644
index 0000000..c0ce761
--- /dev/null
+++ b/title.php
@@ -0,0 +1,9 @@
+
\ No newline at end of file
From 6506ae627c6c5be39949b0f8488c78134a15c058 Mon Sep 17 00:00:00 2001
From: Efe Ataroglu
Date: Wed, 20 May 2020 16:12:49 +0300
Subject: [PATCH 2/3] Sweet alert 2 projeye dahil edildi.
---
footer.php | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/footer.php b/footer.php
index 3a3e004..66c0528 100644
--- a/footer.php
+++ b/footer.php
@@ -3,7 +3,8 @@
All Rights Reserved
-
+
+
From 21789f2abf13792a7103c84004e9790c8ae15919 Mon Sep 17 00:00:00 2001
From: Efe Ataroglu
Date: Wed, 20 May 2020 16:14:33 +0300
Subject: [PATCH 3/3] =?UTF-8?q?=20Se=C3=A7men=20=C5=9Fapkas=C4=B1=20d?=
=?UTF-8?q?=C3=BCzenlendi.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
index.php | 24 +++++++++++++++++++-----
1 file changed, 19 insertions(+), 5 deletions(-)
diff --git a/index.php b/index.php
index 31c4135..f219c86 100644
--- a/index.php
+++ b/index.php
@@ -28,16 +28,30 @@
-
-
-
-
Tebrikler! Seçmen şapka sizi evine yerleştirdi.
-
+
+
Hogwarts'ta Bir Binaya Yerleşin!
+
+
+