strona bloga
This commit is contained in:
parent
1a942279ec
commit
ccc6b0a292
@ -1,11 +1,11 @@
|
||||
-- phpMyAdmin SQL Dump
|
||||
-- version 4.7.9
|
||||
-- version 4.8.3
|
||||
-- https://www.phpmyadmin.net/
|
||||
--
|
||||
-- Host: 127.0.0.1
|
||||
-- Czas generowania: 17 Lis 2018, 14:41
|
||||
-- Wersja serwera: 10.1.31-MariaDB
|
||||
-- Wersja PHP: 7.2.3
|
||||
-- Czas generowania: 18 Lis 2018, 18:49
|
||||
-- Wersja serwera: 10.1.36-MariaDB
|
||||
-- Wersja PHP: 7.2.11
|
||||
|
||||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
||||
SET AUTOCOMMIT = 0;
|
||||
@ -59,10 +59,22 @@ CREATE TABLE `post` (
|
||||
`tytul` varchar(250) NOT NULL,
|
||||
`opis` text NOT NULL,
|
||||
`tekst` text NOT NULL,
|
||||
`image` varchar(100) NOT NULL,
|
||||
`data_dodania` datetime NOT NULL,
|
||||
`data_modyfikacji` datetime NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||
|
||||
--
|
||||
-- Zrzut danych tabeli `post`
|
||||
--
|
||||
|
||||
INSERT INTO `post` (`post_id`, `blog_id`, `tytul`, `opis`, `tekst`, `image`, `data_dodania`, `data_modyfikacji`) VALUES
|
||||
(13, 2, '0', 'Moja przygoda na rowerach, dobra zabawa', '<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed at risus rutrum, laoreet odio quis, placerat mi. Morbi vehicula iaculis mauris, sed aliquet felis euismod sit amet. Aenean iaculis vehicula augue ut porta. Donec ut lacus ac sapien iaculis suscipit at ut purus. Phasellus a dictum turpis. Integer maximus est aliquam nibh varius, in varius massa rutrum. Sed ultricies tortor sit amet massa pulvinar, non luctus massa mattis. Quisque finibus augue non auctor gravida.</p>\r\n\r\n<p>Praesent pharetra congue diam. Nunc eu justo urna. Nulla at magna id mi elementum egestas ac ac dui. Aenean at felis consectetur odio ornare commodo sit amet eget ex. Nulla hendrerit non enim ut efficitur. Nam mattis lacus ac eros interdum lacinia. Aenean efficitur augue id metus vestibulum semper. Ut semper aliquet purus, ac tincidunt urna ullamcorper non. Duis non feugiat sapien. Praesent lacinia ante lacinia dictum iaculis. In hac habitasse platea dictumst. Aenean eget tristique neque, et porttitor orci. Donec condimentum elit odio, non tristique tortor finibus vitae. Nunc neque lacus, porta quis nisi quis, condimentum venenatis dui. Vestibulum posuere, nisi id maximus tempus, dui turpis feugiat nunc, sed suscipit lectus purus vitae diam.</p>\r\n\r\n<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed pharetra, sem eget dictum sodales, velit nunc condimentum libero, et commodo nulla quam blandit libero. Pellentesque consectetur nulla dignissim interdum ornare. Duis accumsan dolor massa, sed molestie diam convallis nec. Donec sapien nulla, tempus eleifend ante quis, porttitor faucibus dolor. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nam et ligula vel massa scelerisque ullamcorper. Suspendisse non turpis interdum justo pharetra faucibus at et felis. Curabitur accumsan, erat ac ultricies fringilla, neque diam euismod augue, in faucibus ipsum nunc vel nisi. Nunc rutrum commodo augue at commodo. Curabitur leo sapien, mollis at porttitor sed, egestas et est. Phasellus mattis magna sit amet augue ultricies ullamcorper.</p>\r\n\r\n<p>Sed vitae aliquet mi. Etiam sapien risus, placerat cursus mattis eu, ultricies vitae lorem. Maecenas non feugiat risus, eget elementum augue. Aenean a lobortis felis. Sed tristique commodo est, non sodales sapien. Nam sollicitudin imperdiet ante eu egestas. Mauris et erat sit amet risus venenatis pulvinar sed eu sapien.</p>\r\n\r\n<p>Phasellus mollis hendrerit leo, sed tristique leo pellentesque in. Interdum et malesuada fames ac ante ipsum primis in faucibus. Maecenas convallis nulla est, sit amet scelerisque augue pretium vitae. Morbi mauris justo, placerat et vulputate quis, dictum id nibh. Nulla ac libero interdum elit pharetra elementum vitae eleifend enim. Ut nec ligula turpis. Nam vel felis nec nulla varius scelerisque. Donec cursus purus lacus. Quisque ut blandit nibh, ut faucibus turpis. Suspendisse lacinia urna leo, at faucibus ex vehicula a. Quisque est lacus, blandit id magna sit amet, pellentesque maximus nunc. Nullam nec risus feugiat, consequat purus id, facilisis tellus. Donec quis dui non turpis finibus interdum ac ut lacus. Etiam venenatis finibus lacus, sed blandit nibh faucibus id.</p>\r\n', 'img/post/a1.jpg', '2018-11-18 14:03:59', '2018-11-18 15:04:19'),
|
||||
(14, 2, 'asdasdsad', 'sadsaddsa', '<p> dsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad saddsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad sad dsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad sad dsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad sad dsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad saddsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad saddsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad saddsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad saddsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad saddsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad saddsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad saddsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad saddsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad saddsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad saddsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad saddsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad sad</p>\r\n', 'img/post/a2.jpg', '2018-11-18 15:04:54', '2018-11-18 15:04:54'),
|
||||
(15, 2, 'asdasdsad sad sad 1221 ', 'sadsaddsa ads 2112', '<p> dsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad saddsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad sad dsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad sad dsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad sad dsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad saddsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad saddsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad saddsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad saddsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad saddsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad saddsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad saddsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad saddsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad saddsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad saddsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad saddsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad sad</p>\r\n', 'img/post/a3.jpg', '2018-11-18 15:04:54', '2018-11-18 15:04:54'),
|
||||
(16, 2, ' sad 1221 ', 'sadsaddsa ads 2112', '<p> dsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad saddsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad sad dsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad sad dsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad sad dsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad saddsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad saddsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad saddsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad saddsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad saddsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad saddsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad saddsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad saddsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad saddsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad saddsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad saddsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad sad</p>\r\n', 'img/post/a4.jpg', '2018-11-18 15:04:54', '2018-11-18 15:04:54'),
|
||||
(17, 2, ' sad 122121 321 12 ', 'sadsaddsa ads 2112', '<p> dsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad saddsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad sad dsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad sad dsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad sad dsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad saddsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad saddsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad saddsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad saddsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad saddsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad saddsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad saddsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad saddsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad saddsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad saddsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad saddsadsadsadas sadasdsadsa sasasasasasasa sasasasas as dasasasasasasasasas asdas dsa asd sad ads asasasasasasaada asd asd sad sad sad</p>\r\n', 'img/post/a5.jpg', '2018-11-18 15:04:54', '2018-11-18 15:04:54');
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
@ -74,15 +86,22 @@ CREATE TABLE `user` (
|
||||
`username` varchar(50) NOT NULL,
|
||||
`email` varchar(40) NOT NULL,
|
||||
`password` varchar(50) NOT NULL,
|
||||
`avatar` varchar(100) NOT NULL
|
||||
`avatar` varchar(100) NOT NULL,
|
||||
`about_short` varchar(50) CHARACTER SET latin2 NOT NULL,
|
||||
`about_me` text CHARACTER SET latin2 NOT NULL,
|
||||
`about_blog` text CHARACTER SET latin2 NOT NULL,
|
||||
`FB` varchar(30) CHARACTER SET latin2 NOT NULL,
|
||||
`TW` varchar(30) CHARACTER SET latin2 NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||
|
||||
--
|
||||
-- Zrzut danych tabeli `user`
|
||||
--
|
||||
|
||||
INSERT INTO `user` (`user_id`, `username`, `email`, `password`, `avatar`) VALUES
|
||||
(1, 'abc', 'patrykpuslecki@gmail.com', '900150983cd24fb0d6963f7d28e17f72', '../images/avatars/Koala.jpg');
|
||||
INSERT INTO `user` (`user_id`, `username`, `email`, `password`, `avatar`, `about_short`, `about_me`, `about_blog`, `FB`, `TW`) VALUES
|
||||
(1, 'abc', 'patrykpuslecki@gmail.com', '900150983cd24fb0d6963f7d28e17f72', '../images/avatars/Koala.jpg', '', '', '', '', ''),
|
||||
(2, 'test', 'test@gmail.com', '098f6bcd4621d373cade4e832627b4f6', '../images/avatars/aaa.png', 'Taki tam Rusek z Rosji, potężne pięsci, słaba głow', 'Coś tam ciekawego o tym profilu, w sensie opis tego gostka i tyle. To się będzie zaciągało z danych o użytkowniku więc się to doda na chillku do bazy danych.', 'Krótko o treści bloga: np no tam se jeżdżę ocś robi ei jem też troche. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin ut ligula id nisl mattis faucibus. Donec tempus, leo ac euismod euismod, nisi nulla ultrices quam, sit amet tristique nisi sem nec tortor. Sed a lectus porta ligula tempus mattis. Proin pretium, ligula vel iaculis ultricies, purus neque eleifend arcu, vel fermentum justo tellus vel massa. Quisque in venenatis diam, ac congue lacus. Maecenas in sodales diam, at varius risus. Aliquam ornare enim a lectus tristique, in pellentesque quam volutpat', 'mój facebook', '@moj_twitter'),
|
||||
(3, 'test2', 'test2@gmail.com', 'ad0234829205b9033196ba818f7a872b', '../images/avatars/facio.jpg', 'Testuje sobie właśnie króciutką wiadomość startową', 'Tutaj sobie piszę o sobie, że jestem spoko gościem co ma dużo zainteresowań i myk pyk zakłada bloga blab ldsf ds ds dfs fds fds fds fds f dsf', 'Tutaj piszę o blogu co tutaj można znaleźć że lubię rowery, żelki i mordobitki dasfds fds fdsf dsf ds fds fds fdsfds fsdf ds fsdfds dsf dsf dsf dsffdsfdsf sdg fdg g fh gdfh gfh gfh gfh gfhg fh gfh gfhgfh gfh gf hgf hgfgfh fg hg fh gfh gfhfed e wrgt er greth bg h gdfh bvc b gdfsh gfd h gdfhgfhdgfh fghgdfgdfbhvcb.', 'faceboczek', '@twitterek');
|
||||
|
||||
--
|
||||
-- Indeksy dla zrzutów tabel
|
||||
@ -132,13 +151,13 @@ ALTER TABLE `comments`
|
||||
-- AUTO_INCREMENT dla tabeli `post`
|
||||
--
|
||||
ALTER TABLE `post`
|
||||
MODIFY `post_id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
|
||||
MODIFY `post_id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT dla tabeli `user`
|
||||
--
|
||||
ALTER TABLE `user`
|
||||
MODIFY `user_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
|
||||
MODIFY `user_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
|
||||
COMMIT;
|
||||
|
||||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||
|
@ -147,3 +147,26 @@ a:active {
|
||||
color: #f4c741;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.foto img{
|
||||
width:360px;
|
||||
height:360px;
|
||||
background-color:#ccc;
|
||||
}
|
||||
|
||||
|
||||
.fill img{
|
||||
object-fit:fill;
|
||||
}
|
||||
.contain img{
|
||||
object-fit:contain;
|
||||
}
|
||||
.cover img{
|
||||
object-fit:cover;
|
||||
}
|
||||
.none img{
|
||||
object-fit:none;
|
||||
}
|
||||
.scale-down img{
|
||||
object-fit:scale-down;
|
||||
}
|
194
blog/index.html
194
blog/index.html
@ -1,194 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="pl-PL">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Bloggero</title>
|
||||
<link rel="Shortcut icon" href="img/name-label.png" />
|
||||
<meta content="width=device-width, initial-scale=1.0" name="viewport">
|
||||
<meta content="" name="keywords">
|
||||
<meta content="" name="description">
|
||||
|
||||
|
||||
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
|
||||
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
|
||||
|
||||
<link href="https://fonts.googleapis.com/css?family=Oswald:400,300,700|Lato:400,700" rel="stylesheet">
|
||||
<link href="lib/bootstrap/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="css/style.css" rel="stylesheet">
|
||||
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
|
||||
<!-- ikony -->
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
|
||||
<div class="dropdown">
|
||||
<div id="menuwrap">
|
||||
<button class="btn btn-light dropdown-toggle btn-lg" type="button" id="dropdownMenu2" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
Menu
|
||||
</button>
|
||||
<div class="dropdown-menu" aria-labelledby="dropdownMenu2">
|
||||
<li><a href="#about">O mnie</a></li>
|
||||
<li><a href="#post">Posty</a></a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="#">Strona główa</a></li>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="aboutdown">
|
||||
<section id="about" name="about"></section>
|
||||
|
||||
|
||||
<div id="aboutwrap">
|
||||
|
||||
<div class="container">
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-lg-8 name-desc">
|
||||
<h2>Taki tam Rusek z Rosji, potężne pięsci, słaba głowa.</h2>
|
||||
|
||||
|
||||
<div class="col-md-11">
|
||||
<p>Coś tam ciekawego o tym profilu, w sensie opis tego gostka i tyle. To się będzie zaciągało z danych o użytkowniku więc się to doda na chillku do bazy danych.
|
||||
</p>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin ut ligula id nisl mattis faucibus. Donec tempus, leo ac euismod euismod, nisi nulla ultrices quam, sit amet tristique nisi sem nec tortor. Sed a lectus porta ligula tempus mattis. Proin pretium, ligula vel iaculis ultricies, purus neque eleifend arcu, vel fermentum justo tellus vel massa. Quisque in venenatis diam, ac congue lacus. Maecenas in sodales diam, at varius risus. Aliquam ornare enim a lectus tristique, in pellentesque quam volutpat.</p>
|
||||
|
||||
<p>Krótko o treści bloga: np no tam se jeżdżę ocś robi ei jem też troche</p>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-lg-4 name">
|
||||
<img src="img/aaaaa.jpg" class="align-text-bottom">
|
||||
<p>Rusek z Rosji</p>
|
||||
|
||||
<a href="index.html">
|
||||
<div class="col-md-6">
|
||||
<div class="fa fa-facebook-official" style="font-size:36px">
|
||||
|
||||
<div class="ikona"> <i><p1> Tomak Jakiśtam </p1></i> </div>
|
||||
</div> </div> </a>
|
||||
|
||||
|
||||
<a href="index.html">
|
||||
<div class="col-md-6">
|
||||
<div class="fa fa-twitter-square" style="font-size:36px"">
|
||||
<div class="ikona"><i><p1> @Tomek23113 </p1></i> </div>
|
||||
</div> </div> </a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- /row -->
|
||||
</div>
|
||||
<!-- /container -->
|
||||
|
||||
<!-- /aboutwrap -->
|
||||
|
||||
|
||||
<section id="post" name="post"></section>
|
||||
<div id="postwrap">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<h2>NAJNOWSZE WPISY</h2>
|
||||
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 desc">
|
||||
<div class="project-wrapper">
|
||||
<div class="project">
|
||||
<div class="photo-wrapper">
|
||||
<div class="photo">
|
||||
<a href="index.html"><img class="img-responsive" src="img/post/a1.jpg" alt="">
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div> <h1> tytuł wpisu dsff sdfds fdsfsdfsdfds dsf sdfelo</h1></a>
|
||||
</div>
|
||||
|
||||
<!-- col-lg-4 -->
|
||||
|
||||
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 desc">
|
||||
<div class="project-wrapper">
|
||||
<div class="project">
|
||||
<div class="photo-wrapper">
|
||||
<div class="photo">
|
||||
<a href="index.html"> <img class="img-responsive" src="img/post/a2.jpg" alt="">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div> <h1> tytuł wpisu dsff sdfds fdsfsdfsdfds dsf sdfelo</h1></a>
|
||||
</div>
|
||||
<!-- col-lg-4 -->
|
||||
|
||||
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 desc">
|
||||
<div class="project-wrapper">
|
||||
<div class="project">
|
||||
<div class="photo-wrapper">
|
||||
<div class="photo">
|
||||
<a href="index.html"><img class="img-responsive" src="img/post/a3.jpg" alt="">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div> <h1> tytuł wpisu dsff sdfds fdsfsdfsdfds dsf sdfelo</h1></a>
|
||||
</div>
|
||||
<!-- col-lg-4 -->
|
||||
</div>
|
||||
<!-- /row -->
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 desc">
|
||||
<div class="project-wrapper">
|
||||
<div class="project">
|
||||
<div class="photo-wrapper">
|
||||
<div class="photo">
|
||||
<a href="index.html"> <img class="img-responsive" src="img/post/a4.jpg" alt="">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div> <h1> tytuł wpisu dsff sdfds fdsfsdfsdfds dsf sdfelo</h1></a>
|
||||
</div>
|
||||
<!-- col-lg-4 -->
|
||||
|
||||
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 desc">
|
||||
<div class="project-wrapper">
|
||||
<div class="project">
|
||||
<div class="photo-wrapper">
|
||||
<div class="photo">
|
||||
<a href="index.html"><img class="img-responsive" src="img/post/a5.jpg" alt="">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div> <h1> tytuł wpisu dsff sdfds fdsfsdfsdfds dsf sdfelo</h1></a>
|
||||
</div>
|
||||
<!-- col-lg-4 -->
|
||||
|
||||
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 desc">
|
||||
<div class="project-wrapper">
|
||||
<div class="project">
|
||||
<div class="photo-wrapper">
|
||||
<div class="photo">
|
||||
<a href="index.html"><img class="img-responsive" src="img/post/a6.jpg" alt="">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div> <h1> tytuł wpisu dsff sdfds fdsfsdfsdfds dsf sdfelo</h1></a>
|
||||
</div>
|
||||
<!-- col-lg-4 -->
|
||||
</div>
|
||||
<!-- /row -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
158
blog/index.php
Normal file
158
blog/index.php
Normal file
@ -0,0 +1,158 @@
|
||||
<html lang="pl-PL">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Bloggero</title>
|
||||
<link rel="Shortcut icon" href="img/name-label.png" />
|
||||
<meta content="width=device-width, initial-scale=1.0" name="viewport">
|
||||
<meta content="" name="keywords">
|
||||
<meta content="" name="description">
|
||||
|
||||
|
||||
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
|
||||
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
|
||||
|
||||
<link href="https://fonts.googleapis.com/css?family=Oswald:400,300,700|Lato:400,700" rel="stylesheet">
|
||||
<link href="lib/bootstrap/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="css/style.css" rel="stylesheet">
|
||||
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
|
||||
<!-- ikony -->
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
|
||||
<div class="dropdown">
|
||||
<div id="menuwrap">
|
||||
<button class="btn btn-light dropdown-toggle btn-lg" type="button" id="dropdownMenu2" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
Menu
|
||||
</button>
|
||||
<div class="dropdown-menu" aria-labelledby="dropdownMenu2">
|
||||
<li><a href="#about">O mnie</a></li>
|
||||
<li><a href="#post">Posty</a></a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="#">Strona główa</a></li>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="aboutdown">
|
||||
<section id="about" name="about"></section>
|
||||
|
||||
|
||||
<div id="aboutwrap">
|
||||
|
||||
<div class="container">
|
||||
|
||||
<div class="row">
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
include "../settings/db_connect.php";
|
||||
|
||||
|
||||
if ($sql = $mysqli->prepare("SELECT * FROM user WHERE user_id = 2 "))
|
||||
{
|
||||
$sql->execute();
|
||||
$sql->bind_result($user_id,$username,$email,$password,$avatar, $about_short, $about_me, $about_blog, $FB, $TW);
|
||||
while ($sql->fetch())
|
||||
{
|
||||
echo "<div class=\"col-lg-8 name-desc\">
|
||||
<h2>$about_short</h2>
|
||||
|
||||
|
||||
<div class=\"col-md-11\">
|
||||
<p>$about_me
|
||||
</p>
|
||||
<p>$about_blog</p>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class=\"col-lg-4 name foto cover\">
|
||||
<img src=\"$avatar\" class=\"align-text-bottom\">
|
||||
<p>$username</p>
|
||||
|
||||
<a href=\"index.html\">
|
||||
<div class=\"col-md-6\">
|
||||
<div class=\"fa fa-facebook-official\" style=\"font-size:36px\">
|
||||
|
||||
<div class=\"ikona\"> <i><p1> $FB </p1></i> </div>
|
||||
</div> </div> </a>
|
||||
|
||||
|
||||
<a href=\"index.html\">
|
||||
<div class=\"col-md-6\">
|
||||
<div class=\"fa fa-twitter-square\" style=\"font-size:36px\"\">
|
||||
<div class=\"ikona\"><i><p1> $TW </p1></i> </div>
|
||||
</div> </a> </div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- /row -->
|
||||
</div>
|
||||
<!-- /container -->
|
||||
|
||||
<!-- /aboutwrap -->
|
||||
|
||||
|
||||
|
||||
<section id=\"post\" name=\"post\"></section>
|
||||
<div id=\"postwrap\">
|
||||
<div class=\"container\">
|
||||
<div class=\"row\">
|
||||
<h2>NAJNOWSZE WPISY</h2>";
|
||||
}
|
||||
$sql->close();
|
||||
}
|
||||
else die( "Błąd w zapytaniu SQL! Sprawdź kod SQL w PhpMyAdmin." );
|
||||
|
||||
|
||||
|
||||
$trash = '';
|
||||
if ($sql = $mysqli->prepare("SELECT * FROM post ORDER BY data_dodania"))
|
||||
{
|
||||
$sql->execute();
|
||||
$sql->bind_result($post_id,$trash,$title,$description,$main,$image,$date,$mod_date);
|
||||
while ($sql->fetch())
|
||||
{
|
||||
echo " <div class=\"col-lg-4 col-md-4 col-sm-4 col-xs-12 desc\">
|
||||
<div class=\"project-wrapper\">
|
||||
<div class=\"project\">
|
||||
<div class=\"photo-wrapper\">
|
||||
<div class=\"photo foto cover\">
|
||||
|
||||
<a href=\"index.php\"><img class=\"img-responsive\" src=\"$image\" alt=\"\">
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div> <h1> $title</h1></a>
|
||||
</div>";
|
||||
}
|
||||
$sql->close();
|
||||
}
|
||||
else die( "Błąd w zapytaniu SQL! Sprawdź kod SQL w PhpMyAdmin." );
|
||||
|
||||
$mysqli->close();
|
||||
?>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
14
blog/login.php
Normal file
14
blog/login.php
Normal file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
include "logincheck.php";
|
||||
?>
|
||||
<html>
|
||||
<body>
|
||||
<form action="" method="POST" style="text-align:center;">
|
||||
|
||||
<p>Login: <input type="text" placeholder="Login" id="user" name="user"></p>
|
||||
<p>Hasło: <input type="text" placeholder="Hasło" id="password" name="password"></p>
|
||||
<input type="submit" value="Login" name="submitas" />
|
||||
<span><?php echo $error; ?></span>
|
||||
</form>
|
||||
|
||||
</body>
|
25
blog/logincheck.php
Normal file
25
blog/logincheck.php
Normal file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
if( !isset( $_SESSION ) ) session_start();
|
||||
$error='';
|
||||
if(isset($_POST['submitas'])){
|
||||
if(empty($_POST['user']) || empty($_POST['password'])){
|
||||
$error='Login lub hasło jest nieprawidłowe!';
|
||||
}
|
||||
else{
|
||||
$user=$_POST['user'];
|
||||
$password = md5($_POST['password']);
|
||||
include "../settings/db_connect.php";
|
||||
$query = mysqli_query($mysqli, "SELECT * FROM user WHERE username='$user' AND password='$password'");
|
||||
$rows = mysqli_num_rows($query);
|
||||
if($rows == 1){
|
||||
header("Location: index.php");
|
||||
$_SESSION['user']=$user;
|
||||
$_SESSION['loggedIn']=1;
|
||||
}
|
||||
else{
|
||||
$error="Login lub hasło są nieprawidłowe!";
|
||||
}
|
||||
mysqli_close($mysqli);
|
||||
}
|
||||
}
|
||||
?>
|
BIN
images/avatars/aaa.png
Normal file
BIN
images/avatars/aaa.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 687 KiB |
BIN
images/avatars/facio.jpg
Normal file
BIN
images/avatars/facio.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 33 KiB |
Loading…
Reference in New Issue
Block a user