This repository has been archived by the owner on Mar 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EE.09-01-22.01-SG EE.09-01-22.02-SG
- Loading branch information
Showing
60 changed files
with
1,102 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
CREATE TABLE uzytkownicy ( id INT NOT NULL AUTO_INCREMENT , login VARCHAR(50), haslo VARCHAR(50), PRIMARY KEY (`id`)); | ||
INSERT INTO uzytkownicy (login, haslo) VALUES ('Grzegorz','g') | ||
SELECT login FROM uzytkownicy | ||
SELECT id, login FROM uzytkownicy where haslo LIKE '4%' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Forum o psach</title> | ||
<link rel="stylesheet" href="styl4.css"> | ||
</head> | ||
<body> | ||
<div class='baner'> | ||
<h1>Portal społecznościowy</h1> | ||
</div> | ||
<div class='lewy'> | ||
<img src="obraz.jpg" alt="foksterier"> | ||
</div> | ||
<div class='prawy'> | ||
<h2>Zapisz się</h2> | ||
<form method='post'> | ||
login: <input name='login'> | ||
<br> | ||
hasło: <input type="password" name='haslo'> | ||
<br> | ||
powtórz hasło: <input type='password' name='powhaslo'> | ||
<br> | ||
<button type='submit'>Zapisz</button> | ||
</form> | ||
<?php | ||
$conn = new mysqli('localhost', 'root', '', 'psy'); | ||
if (!empty($_POST['login']) && !empty($_POST['haslo']) && !empty($_POST['powhaslo'])) | ||
{ | ||
$login = $_POST['login']; | ||
$haslo = $_POST['haslo']; | ||
$powhaslo = $_POST['powhaslo']; | ||
$sprawdz = 0; | ||
$qr = 'SELECT login FROM uzytkownicy'; | ||
$result=$conn->query($qr); | ||
while ($r = $result->fetch_array()) | ||
{ | ||
if ($r[0] == $login) | ||
{ | ||
echo "<p>login występuje w bazie danych, konto nie zostało dodane</p>"; | ||
$sprawdz = 1; | ||
break; | ||
} | ||
} | ||
if ($haslo != $powhaslo) | ||
{ | ||
echo "<p>hasła nie są takie same, konto nie zostało dodane</p>"; | ||
$sprawdz = 1; | ||
} | ||
if ($sprawdz == 0) | ||
{ | ||
$szyfr = sha1($haslo); | ||
$qr = "INSERT INTO uzytkownicy (login, haslo) VALUES ('" . $login . "','" . $szyfr . "')"; | ||
if ($conn->query($qr) === TRUE) | ||
{ | ||
echo "<p>Konto zostało dodane</p>"; | ||
} | ||
} | ||
} | ||
else | ||
{ | ||
echo "<p>wypełnij wszystkie pola</p>"; | ||
} | ||
$conn->close(); | ||
?> | ||
</div> | ||
<div class='prawy'> | ||
<h2>Zapraszamy wszystkich</h2> | ||
<ol> | ||
<li>właścicieli psów</li> | ||
<li>weterynarzy</li> | ||
<li>tych, co chcą kupić psa</li> | ||
<li>tych, co lubią psy</li> | ||
</ol> | ||
<a href="regulamin.html">Przeczytaj regulamin forum</a> | ||
</div> | ||
<div class='stopka'>Stronę wykonał: 0123456789</div> | ||
</body> | ||
</html> |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
</head> | ||
<body> | ||
regulamin | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
body | ||
{ | ||
font-family: Garamond; | ||
} | ||
form | ||
{ | ||
background-color: saddlebrown; | ||
color:white; | ||
padding: 10px 30px 10px 30px; | ||
width: 300px; | ||
} | ||
input | ||
{ | ||
margin: 5px; | ||
} | ||
p::before | ||
{ | ||
content: "STATUS: "; | ||
} | ||
.baner | ||
{ | ||
background-color: saddlebrown; | ||
color: white; | ||
text-align: center; | ||
height: 50px; | ||
} | ||
.lewy | ||
{ | ||
float:left; | ||
background-color: tan; | ||
height: 500px; | ||
width: 40%; | ||
} | ||
.prawy | ||
{ | ||
float: left; | ||
background-color: tan; | ||
height: 250px; | ||
width: 60%; | ||
} | ||
.stopka | ||
{ | ||
clear: both; | ||
background-color: saddlebrown; | ||
color:white; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
-- | ||
-- Zrzut danych tabeli `uzytkownicy` | ||
-- | ||
|
||
INSERT INTO `uzytkownicy` (`login`, `haslo`) VALUES | ||
('Justyna', 'a056c8d05ae9ac6ca180bc991b93b7ffe37563e0'), | ||
('Ewa', 'c50267b906a652f2142cfab006e215c9f6fdc8a0'), | ||
('Krzysiek', '637a81ed8e8217bb01c15c67c39b43b0ab4e20f1'), | ||
('Adam', '8578173555a47d4ea49e697badfda270dee0858f'), | ||
('Magda', '99ebdbd711b0e1854a6c2e93f759efc2af291fd0'), | ||
('Werka', '186154712b2d5f6791d85b9a0987b98fa231779c'), | ||
('Janek', '7823372203bd98aeb10e6f33a6ce7dab12d13423'), | ||
('Heniek', '425ffc1422dc4f32528bd9fd5af355fdb5c96192'), | ||
('Ola', '4ae9fa0a8299a828a886c0eb30c930c7cf302a72'), | ||
('Dawid', 'b3054ff0797ff0b2bbce03ec897fe63e0b6490e0'), | ||
('Ewelina', '7e240de74fb1ed08fa08d38063f6a6a91462a815'); |
Binary file added
BIN
+230 KB
EE.09/EE.09-01-22.05-SG/271714587_1142295269931271_698394460424875193_n.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+277 KB
EE.09/EE.09-01-22.05-SG/271744735_2646010162209460_3295022420493989527_n.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+255 KB
EE.09/EE.09-01-22.05-SG/271809934_345920113780105_4118361673844152519_n.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+240 KB
EE.09/EE.09-01-22.05-SG/271825041_523148628840771_8581322136999524687_n.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
-- phpMyAdmin SQL Dump | ||
-- version 4.8.3 | ||
-- https://www.phpmyadmin.net/ | ||
-- | ||
-- Host: 127.0.0.1 | ||
-- Czas generowania: 07 Lis 2019, 08:59 | ||
-- Wersja serwera: 10.1.36-MariaDB | ||
-- Wersja PHP: 7.2.11 | ||
|
||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; | ||
SET AUTOCOMMIT = 0; | ||
START TRANSACTION; | ||
SET time_zone = "+00:00"; | ||
|
||
|
||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | ||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | ||
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | ||
/*!40101 SET NAMES utf8mb4 */; | ||
|
||
-- | ||
-- Baza danych: `portal` | ||
-- | ||
|
||
-- -------------------------------------------------------- | ||
|
||
-- | ||
-- Struktura tabeli dla tabeli `dane` | ||
-- | ||
|
||
CREATE TABLE `dane` ( | ||
`id` int(10) UNSIGNED NOT NULL, | ||
`rok_urodz` year(4) DEFAULT NULL, | ||
`przyjaciol` int(10) UNSIGNED DEFAULT NULL, | ||
`hobby` varchar(20) DEFAULT NULL, | ||
`zdjecie` varchar(100) DEFAULT NULL | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | ||
|
||
-- | ||
-- Zrzut danych tabeli `dane` | ||
-- | ||
|
||
INSERT INTO `dane` (`id`, `rok_urodz`, `przyjaciol`, `hobby`, `zdjecie`) VALUES | ||
(1, 1995, 10, 'moda', 'o6.jpg'), | ||
(2, 1990, 20, 'film', 'o4.jpg'), | ||
(3, 1990, 20, 'cross', 'o1.jpg'), | ||
(4, 2001, 4, 'finanse', 'o2.jpg'), | ||
(5, 2002, 50, 'muzyka', 'o8.jpg'), | ||
(6, 1994, 10, 'baseball', 'o6.jpg'), | ||
(7, 1990, 20, 'film', 'o5.jpg'), | ||
(8, 1990, 20, 'film', 'o3.jpg'), | ||
(9, 2001, 0, 'psychologia', 'o7.jpg'), | ||
(10, 2002, 50, 'muzyka', 'o2.jpg'), | ||
(11, 1994, 10, 'DIY', 'o6.jpg'); | ||
|
||
-- -------------------------------------------------------- | ||
|
||
-- | ||
-- Struktura tabeli dla tabeli `uzytkownicy` | ||
-- | ||
|
||
CREATE TABLE `uzytkownicy` ( | ||
`id` int(10) UNSIGNED NOT NULL, | ||
`login` varchar(50) DEFAULT NULL, | ||
`haslo` varchar(50) DEFAULT NULL | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | ||
|
||
-- | ||
-- Zrzut danych tabeli `uzytkownicy` | ||
-- | ||
|
||
INSERT INTO `uzytkownicy` (`id`, `login`, `haslo`) VALUES | ||
(1, 'Justyna', 'a056c8d05ae9ac6ca180bc991b93b7ffe37563e0'), | ||
(2, 'Ewa', 'c50267b906a652f2142cfab006e215c9f6fdc8a0'), | ||
(3, 'Krzysiek', '637a81ed8e8217bb01c15c67c39b43b0ab4e20f1'), | ||
(4, 'Adam', '8578173555a47d4ea49e697badfda270dee0858f'), | ||
(5, 'Magda', '99ebdbd711b0e1854a6c2e93f759efc2af291fd0'), | ||
(6, 'Werka', '186154712b2d5f6791d85b9a0987b98fa231779c'), | ||
(7, 'Janek', '7823372203bd98aeb10e6f33a6ce7dab12d13423'), | ||
(8, 'Heniek', '425ffc1422dc4f32528bd9fd5af355fdb5c96192'), | ||
(9, 'Ola', '4ae9fa0a8299a828a886c0eb30c930c7cf302a72'), | ||
(10, 'Dawid', 'b3054ff0797ff0b2bbce03ec897fe63e0b6490e0'), | ||
(11, 'Ewelina', '7e240de74fb1ed08fa08d38063f6a6a91462a815'); | ||
|
||
-- | ||
-- Indeksy dla zrzutów tabel | ||
-- | ||
|
||
-- | ||
-- Indeksy dla tabeli `dane` | ||
-- | ||
ALTER TABLE `dane` | ||
ADD PRIMARY KEY (`id`); | ||
|
||
-- | ||
-- Indeksy dla tabeli `uzytkownicy` | ||
-- | ||
ALTER TABLE `uzytkownicy` | ||
ADD PRIMARY KEY (`id`); | ||
|
||
-- | ||
-- AUTO_INCREMENT for dumped tables | ||
-- | ||
|
||
-- | ||
-- AUTO_INCREMENT dla tabeli `dane` | ||
-- | ||
ALTER TABLE `dane` | ||
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12; | ||
|
||
-- | ||
-- AUTO_INCREMENT dla tabeli `uzytkownicy` | ||
-- | ||
ALTER TABLE `uzytkownicy` | ||
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12; | ||
COMMIT; | ||
|
||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; | ||
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; | ||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Strona w trakcie budowy |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
SELECT haslo from uzytkownicy where login="Justyna" | ||
|
||
select count(*) from dane | ||
|
||
select u.login, d.rok_urodz, d.przyjaciol, d.hobby, d.zdjecie from uzytkownicy u join dane d on d.id=u.id where u.login="Justyna" | ||
|
||
alter table dane add stanowisko text |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
body | ||
{ | ||
font-family: Tahoma; | ||
} | ||
button | ||
{ | ||
background-color: #003d33; | ||
color: white; | ||
width: 100%; | ||
height: 30px; | ||
border-style: none; | ||
} | ||
button:hover | ||
{ | ||
background-color: #004c40; | ||
} | ||
h1 | ||
{ | ||
padding: 0 auto; | ||
margin: 0 auto; | ||
} | ||
a | ||
{ | ||
width: 100%; | ||
height: 30px; | ||
} | ||
.baner1, .baner2 | ||
{ | ||
background-color: #003d33; | ||
color: white; | ||
text-align: center; | ||
height: 50px; | ||
float: left; | ||
} | ||
.baner1 | ||
{ | ||
width: 70%; | ||
} | ||
.baner2 | ||
{ | ||
width: 30%; | ||
} | ||
.lewy | ||
{ | ||
background-color: #26a69a; | ||
height: 550px; | ||
width: 30%; | ||
float: left; | ||
} | ||
.prawy | ||
{ | ||
background-color: #26a69a; | ||
height: 550px; | ||
width: 70%; | ||
float: left; | ||
} | ||
.stopka | ||
{ | ||
background-color: #003d33; | ||
color: white; | ||
clear: both; | ||
} | ||
.wizytowka | ||
{ | ||
width: 400px; | ||
margin: 30px; | ||
text-align: center; | ||
border: 1px solid #003d33; | ||
} |
Oops, something went wrong.