From 3e77267af0da4a4acb90067efda93cd979ddbea0 Mon Sep 17 00:00:00 2001
From: DavitGe <65369123+DavitGe@users.noreply.github.com>
Date: Fri, 12 Aug 2022 04:05:29 +0400
Subject: [PATCH 1/5] Davit Gelovani
---
davit_gelovani/index.php | 14 ++++++++++++++
davit_gelovani/upload.php | 14 ++++++++++++++
oto_zakalshvili/form.php | 19 -------------------
oto_zakalshvili/index.php | 9 ---------
4 files changed, 28 insertions(+), 28 deletions(-)
create mode 100644 davit_gelovani/index.php
create mode 100644 davit_gelovani/upload.php
delete mode 100644 oto_zakalshvili/form.php
delete mode 100644 oto_zakalshvili/index.php
diff --git a/davit_gelovani/index.php b/davit_gelovani/index.php
new file mode 100644
index 0000000..b3d3834
--- /dev/null
+++ b/davit_gelovani/index.php
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/davit_gelovani/upload.php b/davit_gelovani/upload.php
new file mode 100644
index 0000000..379a842
--- /dev/null
+++ b/davit_gelovani/upload.php
@@ -0,0 +1,14 @@
+' . 'Name:' .'' . $_POST['name'];
+ print '' . 'Surname:' .'
' . $_POST['surname'];
+ print 'Profile Picture:
';
+
+ $imageData = file_get_contents($_FILES['profile']['tmp_name']);
+ echo sprintf('
', base64_encode($imageData));
+
+} else{
+ header("Location: index.php");
+}
diff --git a/oto_zakalshvili/form.php b/oto_zakalshvili/form.php
deleted file mode 100644
index ceaa4bb..0000000
--- a/oto_zakalshvili/form.php
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/oto_zakalshvili/index.php b/oto_zakalshvili/index.php
deleted file mode 100644
index 3940001..0000000
--- a/oto_zakalshvili/index.php
+++ /dev/null
@@ -1,9 +0,0 @@
-
Date: Fri, 12 Aug 2022 04:21:15 +0400
Subject: [PATCH 2/5] Davit Gelovani
---
davit_gelovani/index.php | 15 +++++++--------
davit_gelovani/upload.php | 2 --
2 files changed, 7 insertions(+), 10 deletions(-)
diff --git a/davit_gelovani/index.php b/davit_gelovani/index.php
index b3d3834..3037e31 100644
--- a/davit_gelovani/index.php
+++ b/davit_gelovani/index.php
@@ -1,14 +1,13 @@
-
-
-
-
+
+
+
\ No newline at end of file
diff --git a/davit_gelovani/upload.php b/davit_gelovani/upload.php
index 379a842..baff262 100644
--- a/davit_gelovani/upload.php
+++ b/davit_gelovani/upload.php
@@ -1,7 +1,5 @@
' . 'Name:' .'' . $_POST['name'];
print '' . 'Surname:' .'
' . $_POST['surname'];
print 'Profile Picture:
';
From 89bce44ae88653551a52f7292b83953daf9775d4 Mon Sep 17 00:00:00 2001
From: DavitGe <65369123+DavitGe@users.noreply.github.com>
Date: Fri, 12 Aug 2022 04:22:08 +0400
Subject: [PATCH 3/5] Davit Gelovani
---
davit_gelovani/index.php | 1 +
1 file changed, 1 insertion(+)
diff --git a/davit_gelovani/index.php b/davit_gelovani/index.php
index 3037e31..89aa0e2 100644
--- a/davit_gelovani/index.php
+++ b/davit_gelovani/index.php
@@ -4,6 +4,7 @@
From 7703bfbeae2ed257cd2cc2d3b5d2c871b2f89d53 Mon Sep 17 00:00:00 2001
From: Davit
Date: Wed, 17 Aug 2022 22:46:02 +0400
Subject: [PATCH 5/5] Davit Gelovani
---
davit_gelovani/index.php | 26 ++++++++++++++++++++------
davit_gelovani/upload.php | 36 ++++++++++++++++++++++++++----------
2 files changed, 46 insertions(+), 16 deletions(-)
diff --git a/davit_gelovani/index.php b/davit_gelovani/index.php
index 498011b..5bdf97c 100644
--- a/davit_gelovani/index.php
+++ b/davit_gelovani/index.php
@@ -1,14 +1,28 @@
+
+
+ Challange 1
+
-
+
diff --git a/davit_gelovani/upload.php b/davit_gelovani/upload.php
index baff262..65b15da 100644
--- a/davit_gelovani/upload.php
+++ b/davit_gelovani/upload.php
@@ -1,12 +1,28 @@
-' . 'Name:' .'' . $_POST['name'];
- print '' . 'Surname:' .'
' . $_POST['surname'];
- print 'Profile Picture:
';
+
+
+
+
+
+ Challange 1
+
+
+
+ ' . 'Name:' .'' . $_POST['name'];
+ print '' . 'Surname:' .'
' . $_POST['surname'];
+ print 'Profile Picture:
';
+ }else{
+ echo "Name and surname should be written with letters A-z
";
+ }
+ echo 'Image
';
+ $imageData = file_get_contents($_FILES['profile']['tmp_name']);
+ echo sprintf('
', base64_encode($imageData));
- $imageData = file_get_contents($_FILES['profile']['tmp_name']);
- echo sprintf('
', base64_encode($imageData));
+ } else{
+ header("Location: index.php");
+ }?>
-} else{
- header("Location: index.php");
-}
+
+