diff --git a/giorgi_durglishvili/footer.php b/giorgi_durglishvili/footer.php new file mode 100644 index 0000000..17c7245 --- /dev/null +++ b/giorgi_durglishvili/footer.php @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/giorgi_durglishvili/header.php b/giorgi_durglishvili/header.php new file mode 100644 index 0000000..6250e5b --- /dev/null +++ b/giorgi_durglishvili/header.php @@ -0,0 +1,11 @@ + + + + + + + Week 1 + + + +
\ No newline at end of file diff --git a/giorgi_durglishvili/includes/logout.inc.php b/giorgi_durglishvili/includes/logout.inc.php new file mode 100644 index 0000000..ed52554 --- /dev/null +++ b/giorgi_durglishvili/includes/logout.inc.php @@ -0,0 +1,8 @@ += 1300000){ + header('location: ../index.php?error=largefile'); + exit(); + } + move_uploaded_file($file_tmp,$target_dir); + session_start(); + $_SESSION['fname'] = $fname; + $_SESSION['lname'] = $lname; + $_SESSION['file_name'] = $file_name; + header('location: ../profile.php'); + exit(); + +}else{ + header('location: ../index.php'); + exit(); +} \ No newline at end of file diff --git a/giorgi_durglishvili/index.css b/giorgi_durglishvili/index.css new file mode 100644 index 0000000..8fb671b --- /dev/null +++ b/giorgi_durglishvili/index.css @@ -0,0 +1,63 @@ +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} +.wrapper { + display: grid; + place-content: center; + min-height: 100vh; + background-color: #ccc; +} + +form { + background-color: white; + padding: 1.5rem; + border-radius: 7px; + width: 450px; + max-width: 90vw; +} +.input-wrapper { + display: flex; + flex-direction: column; + gap: 0.5rem; +} +.input-wrapper input { + margin-bottom: 1rem; + padding: 0.3rem 0.6rem; + outline: none; +} +.button { + padding: 0.5rem 0.7rem; + background-color: rgb(32, 32, 32); + color: white; + border: none; + border-radius: 7px; + border: 1px solid rgb(32, 32, 32); + max-width: max-content; + transition: 0.3s; +} +.button:hover { + background-color: white; + color: rgb(32, 32, 32); + cursor: pointer; +} +.error { + margin-bottom: 1rem; + color: red; +} +.profile-component { + font-size: 2rem; + gap: 1rem; + width: 550px; + max-width: 90vw; + margin-top: 1rem; +} +.profile-component img { + width: 100%; + object-fit: cover; +} +a { + text-decoration: none; + max-width: max-content; +} diff --git a/giorgi_durglishvili/index.php b/giorgi_durglishvili/index.php new file mode 100644 index 0000000..0ef2b0a --- /dev/null +++ b/giorgi_durglishvili/index.php @@ -0,0 +1,38 @@ + + +
+ Fill in all the fields!

"; + break; + case 'invalidinput': + echo "

Incorrect name or email!

"; + break; + case 'invalidfile': + echo "

Incorrect type of file!

"; + break; + case 'largefile': + echo "

File is too large!

"; + break; + } + } + ?> +
+ + +
+
+ + +
+
+ + +
+ +
+ + + \ No newline at end of file diff --git a/giorgi_durglishvili/profile.php b/giorgi_durglishvili/profile.php new file mode 100644 index 0000000..71d10be --- /dev/null +++ b/giorgi_durglishvili/profile.php @@ -0,0 +1,27 @@ + + + +
+ Log Out +
+
+ +
+ image +
+ +
+
+ + 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 @@ -