Skip to content

Commit 8efa387

Browse files
committed
Some UI changes
1 parent d9ec181 commit 8efa387

17 files changed

+82
-69
lines changed

Database - blog/blog database - SQL Dump File - PhpMyAdmin Export.sql

+80-68
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
-- phpMyAdmin SQL Dump
2-
-- version 4.5.1
3-
-- http://www.phpmyadmin.net
2+
-- version 5.2.1
3+
-- https://www.phpmyadmin.net/
44
--
5-
-- Host: 127.0.0.1
6-
-- Generation Time: Jan 27, 2017 at 07:05 PM
7-
-- Server version: 10.1.9-MariaDB
8-
-- PHP Version: 7.0.11
5+
-- Host: localhost
6+
-- Generation Time: Jun 20, 2023 at 03:11 AM
7+
-- Server version: 8.0.28
8+
-- PHP Version: 8.1.4
99

1010
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
11+
START TRANSACTION;
1112
SET time_zone = "+00:00";
1213

1314

@@ -27,16 +28,16 @@ SET time_zone = "+00:00";
2728
--
2829

2930
CREATE TABLE `ads` (
30-
`id` int(11) NOT NULL,
31+
`id` int NOT NULL,
3132
`name` varchar(255) NOT NULL,
3233
`link` text NOT NULL,
3334
`image` text NOT NULL,
34-
`start_at` int(11) NOT NULL,
35-
`end_at` int(11) NOT NULL,
35+
`start_at` int NOT NULL,
36+
`end_at` int NOT NULL,
3637
`page` varchar(20) NOT NULL,
3738
`status` varchar(20) NOT NULL,
38-
`created` int(11) NOT NULL
39-
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
39+
`created` int NOT NULL
40+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
4041

4142
--
4243
-- Dumping data for table `ads`
@@ -53,19 +54,19 @@ INSERT INTO `ads` (`id`, `name`, `link`, `image`, `start_at`, `end_at`, `page`,
5354
--
5455

5556
CREATE TABLE `categories` (
56-
`id` int(11) NOT NULL,
57-
`parent_id` int(11) NOT NULL,
57+
`id` int NOT NULL,
58+
`parent_id` int NOT NULL,
5859
`name` varchar(40) NOT NULL,
5960
`status` varchar(20) NOT NULL
60-
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
61+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
6162

6263
--
6364
-- Dumping data for table `categories`
6465
--
6566

6667
INSERT INTO `categories` (`id`, `parent_id`, `name`, `status`) VALUES
6768
(6, 0, 'Sports', 'enabled'),
68-
(7, 0, 'Politics', 'enabled'),
69+
(7, 0, 'Programming', 'enabled'),
6970
(8, 0, 'Fashion', 'enabled');
7071

7172
-- --------------------------------------------------------
@@ -75,13 +76,13 @@ INSERT INTO `categories` (`id`, `parent_id`, `name`, `status`) VALUES
7576
--
7677

7778
CREATE TABLE `comments` (
78-
`id` int(11) NOT NULL,
79-
`user_id` int(11) NOT NULL,
80-
`post_id` int(11) NOT NULL,
79+
`id` int NOT NULL,
80+
`user_id` int NOT NULL,
81+
`post_id` int NOT NULL,
8182
`comment` text NOT NULL,
82-
`created` int(11) NOT NULL,
83+
`created` int NOT NULL,
8384
`status` varchar(20) NOT NULL
84-
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
85+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
8586

8687
--
8788
-- Dumping data for table `comments`
@@ -106,19 +107,19 @@ INSERT INTO `comments` (`id`, `user_id`, `post_id`, `comment`, `created`, `statu
106107
--
107108

108109
CREATE TABLE `contacts` (
109-
`id` int(11) NOT NULL,
110-
`user_id` int(11) NOT NULL,
110+
`id` int NOT NULL,
111+
`user_id` int NOT NULL,
111112
`name` varchar(100) NOT NULL,
112113
`email` varchar(96) NOT NULL,
113114
`phone` varchar(40) NOT NULL,
114115
`subject` varchar(255) NOT NULL,
115116
`message` text NOT NULL,
116-
`created` int(11) NOT NULL,
117+
`created` int NOT NULL,
117118
`status` varchar(20) NOT NULL,
118119
`reply` text NOT NULL,
119-
`replied_by` int(11) NOT NULL,
120-
`replied_at` int(11) NOT NULL
121-
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
120+
`replied_by` int NOT NULL,
121+
`replied_at` int NOT NULL
122+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
122123

123124
-- --------------------------------------------------------
124125

@@ -127,10 +128,10 @@ CREATE TABLE `contacts` (
127128
--
128129

129130
CREATE TABLE `online_users` (
130-
`id` int(11) NOT NULL,
131-
`user_id` int(11) NOT NULL,
132-
`last_activity` int(11) NOT NULL
133-
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
131+
`id` int NOT NULL,
132+
`user_id` int NOT NULL,
133+
`last_activity` int NOT NULL
134+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
134135

135136
-- --------------------------------------------------------
136137

@@ -139,33 +140,33 @@ CREATE TABLE `online_users` (
139140
--
140141

141142
CREATE TABLE `posts` (
142-
`id` int(11) NOT NULL,
143-
`category_id` int(11) NOT NULL,
144-
`user_id` int(11) NOT NULL,
143+
`id` int NOT NULL,
144+
`category_id` int NOT NULL,
145+
`user_id` int NOT NULL,
145146
`title` varchar(255) NOT NULL,
146147
`details` text NOT NULL,
147148
`image` varchar(255) NOT NULL,
148149
`tags` text NOT NULL,
149150
`related_posts` text NOT NULL,
150-
`views` int(11) NOT NULL,
151-
`created` int(11) NOT NULL,
151+
`views` int NOT NULL,
152+
`created` int NOT NULL,
152153
`status` varchar(20) NOT NULL
153-
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
154+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
154155

155156
--
156157
-- Dumping data for table `posts`
157158
--
158159

159160
INSERT INTO `posts` (`id`, `category_id`, `user_id`, `title`, `details`, `image`, `tags`, `related_posts`, `views`, `created`, `status`) VALUES
160-
(2, 7, 1, 'One More pOst', '<p><span class="marker">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident.</span></p>', 'f4fdc82f69a7b8a08f931c62619f965d976b053d_93949dbd3ec0af923a63e932665a7a2f651769da.jpg', 'one,more,post', '', 0, 1473715692, 'enabled'),
161-
(3, 8, 1, 'Another Post', '<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident.</p>\r\n', '130afd6e1cca3b57fb3e1ebbaa5f188aaf509dac_70179df8b93a775a420008f474858d11352f989e.jpg', 'another,post', '', 0, 1473715714, 'enabled'),
162-
(4, 7, 1, 'Economics In The world', '<p><strong>Lorem Ipsum</strong> is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>\r\n', 'b42efa1a28d7b02036baba9d1b94f37dfc096f3a_e88bbca510ec4a49c8355c005ccc0ea97098fe60.jpg', 'test,post', '', 0, 1475716328, 'enabled'),
163-
(5, 7, 1, 'Some Text', '<p>dfafadsfasd</p>', '2b6ac153099bcca98d9667c5bc8ed7039cab7872_b40f3b6df62406ff1d2524f4186a39d86eb6910c.jpg', 'fdsaf', '', 0, 1476166134, 'enabled'),
164-
(6, 7, 1, 'Some Text 2', '<p>Some Text 2</p>', 'f4521f164c752ac2e57821d949124f0d5035e325_efef6d0c9738c065d5dbd0d3809ef38a93012bfd.jpg', 'text', '3', 0, 1476166139, 'enabled'),
165-
(7, 7, 1, 'Some Text 3', '<p>dfafadsfasd</p>', '6925d9ea6c9e72474483f5839ee92ec3da2040de_9c82a446d4a751514764cca2df7fb8ae78e4fea1.jpg', 'fdsaf', '', 0, 1476166196, 'enabled'),
166-
(8, 7, 1, 'Some Text 4', '<p>dfafadsfasd</p>', '2c6243d90845c1380f7da9196298287bac19b584_e79099c86a91b96a77aa57eb1998b2739f35bcab.jpg', 'fdsaf', '', 0, 1476166207, 'enabled'),
167-
(9, 7, 1, 'Some Text 5', '<p>Some Text 5</p>', '96e6b118fd699d09f1522acb9dbc13ee7f53724a_70b963602fd29119694aa36597786f099ea16cd3.jpg', 'Text', '2,3', 0, 1476166294, 'enabled'),
168-
(10, 7, 1, 'Some Text 6', '<p>Some Text 6</p>', '81359b55cc908f6baa302d32eb1a97f17cf1c342_6ad99fbd5bc25acf59bce8f0a931dc45ebdcf609.jpg', 'text', '2,4', 0, 1476166574, 'enabled');
161+
(2, 7, 1, 'One More pOst', '<p><span class="marker">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident.</span></p>', 'cat.jpg', 'one,more,post', '', 0, 1473715692, 'enabled'),
162+
(3, 8, 1, 'Another Post', '<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident.</p>\r\n', 'car.jpg', 'another,post', '', 0, 1473715714, 'enabled'),
163+
(4, 7, 1, 'Economics In The world', '<p><strong>Lorem Ipsum</strong> is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>\r\n', 'soft skills.jpg', 'test,post', '', 0, 1475716328, 'enabled'),
164+
(5, 7, 1, 'Some Text', '<p>dfafadsfasd</p>', 'sustainable development.png', 'fdsaf', '', 0, 1476166134, 'enabled'),
165+
(6, 7, 1, 'Some Text 2', '<p>Some Text 2</p>', 'c++.png', 'text', '3', 0, 1476166139, 'enabled'),
166+
(7, 7, 1, 'Some Text 3', '<p>dfafadsfasd</p>', 'dog.jpg', 'fdsaf', '', 0, 1476166196, 'enabled'),
167+
(8, 7, 1, 'Some Text 4', '<p>dfafadsfasd</p>', 'Barack Obama.jpg', 'fdsaf', '', 0, 1476166207, 'enabled'),
168+
(9, 7, 1, 'Some Text 5', '<p>Some Text 5</p>', 'smoking.jpg', 'Text', '2,3', 0, 1476166294, 'enabled'),
169+
(10, 7, 1, 'Some Text 6', '<p>Some Text 6</p>', 'solid principles.jpg', 'text', '2,4', 0, 1476166574, 'enabled');
169170

170171
-- --------------------------------------------------------
171172

@@ -174,10 +175,10 @@ INSERT INTO `posts` (`id`, `category_id`, `user_id`, `title`, `details`, `image`
174175
--
175176

176177
CREATE TABLE `settings` (
177-
`id` int(11) NOT NULL,
178+
`id` int NOT NULL,
178179
`key` varchar(100) NOT NULL,
179180
`value` text NOT NULL
180-
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
181+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
181182

182183
--
183184
-- Dumping data for table `settings`
@@ -196,27 +197,27 @@ INSERT INTO `settings` (`id`, `key`, `value`) VALUES
196197
--
197198

198199
CREATE TABLE `users` (
199-
`id` int(11) NOT NULL,
200-
`users_group_id` int(11) NOT NULL,
200+
`id` int NOT NULL,
201+
`users_group_id` int NOT NULL,
201202
`first_name` varchar(40) NOT NULL,
202203
`last_name` varchar(40) NOT NULL,
203204
`email` varchar(96) NOT NULL,
204205
`password` varchar(128) NOT NULL,
205206
`image` varchar(255) NOT NULL,
206207
`gender` varchar(6) NOT NULL,
207-
`birthday` int(11) NOT NULL,
208-
`created` int(11) NOT NULL,
208+
`birthday` int NOT NULL,
209+
`created` int NOT NULL,
209210
`status` varchar(20) NOT NULL,
210211
`ip` varchar(32) NOT NULL,
211212
`code` varchar(40) NOT NULL
212-
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
213+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
213214

214215
--
215216
-- Dumping data for table `users`
216217
--
217218

218219
INSERT INTO `users` (`id`, `users_group_id`, `first_name`, `last_name`, `email`, `password`, `image`, `gender`, `birthday`, `created`, `status`, `ip`, `code`) VALUES
219-
(1, 1, 'Ahmed', 'Yahya', '[email protected]', '$2y$10$JnSQbKd.JyrMSNYZHWkqDOhcd3VTjuELk52IF/t2CONLSoJtjpAi.', 'c4bd7a6e842483b277a22f7175c8b69490876ce5_e8ee24a5858796f7ca979c72267b0658c2bb8be1.jpg', 'male', 0, 1471429381, 'enabled', '', '80a315d99d01b28e68e58c0c899bc4ce2197c524'),
220+
(1, 1, 'Ahmed', 'Yahya', '[email protected]', '$2y$10$JnSQbKd.JyrMSNYZHWkqDOhcd3VTjuELk52IF/t2CONLSoJtjpAi.', 'person.jpg', 'male', 0, 1471429381, 'enabled', '', '80a315d99d01b28e68e58c0c899bc4ce2197c524'),
220221
(3, 2, 'Sarah', 'Jones', '[email protected]', '$2y$10$YdlnwLhLP1/sg38F.RjpcubwRbqRE/5v1K8aLELqWcp/D0zjYk.Gy', 'ef4dd936d76ed742c0af912a34505f9f070a2dcb_2216ac8affab7a5c6a8150aa2e23a1c8a31d64e9.jpg', 'female', 0, 1476162152, 'enabled', '::1', '330c3cbdcc4bc8c24820950a50a33a3575e00193'),
221222
(4, 2, 'Adam', 'Nour', '[email protected]', '$2y$10$VTU1/VN31wbaAFs0ZVGbzetg4l3IYksNknmennsebnD5n1PcLjvwS', '4c7a5571172451c6aa3afeb7053345357ea82128_95b2bde3633df52e5123c8b3dc2864d887a9606e.jpg', 'male', 0, 1476162328, '', '::1', '6a999d69ccd2ef97d9391242428284ca58594320');
222223

@@ -227,9 +228,9 @@ INSERT INTO `users` (`id`, `users_group_id`, `first_name`, `last_name`, `email`,
227228
--
228229

229230
CREATE TABLE `users_groups` (
230-
`id` int(11) NOT NULL,
231+
`id` int NOT NULL,
231232
`name` varchar(40) NOT NULL
232-
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
233+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
233234

234235
--
235236
-- Dumping data for table `users_groups`
@@ -246,10 +247,10 @@ INSERT INTO `users_groups` (`id`, `name`) VALUES
246247
--
247248

248249
CREATE TABLE `users_group_permissions` (
249-
`id` int(11) NOT NULL,
250-
`users_group_id` int(11) NOT NULL,
250+
`id` int NOT NULL,
251+
`users_group_id` int NOT NULL,
251252
`page` varchar(255) NOT NULL
252-
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
253+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
253254

254255
--
255256
-- Dumping data for table `users_group_permissions`
@@ -469,52 +470,63 @@ ALTER TABLE `users_group_permissions`
469470
-- AUTO_INCREMENT for table `ads`
470471
--
471472
ALTER TABLE `ads`
472-
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
473+
MODIFY `id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
474+
473475
--
474476
-- AUTO_INCREMENT for table `categories`
475477
--
476478
ALTER TABLE `categories`
477-
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
479+
MODIFY `id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
480+
478481
--
479482
-- AUTO_INCREMENT for table `comments`
480483
--
481484
ALTER TABLE `comments`
482-
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
485+
MODIFY `id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
486+
483487
--
484488
-- AUTO_INCREMENT for table `contacts`
485489
--
486490
ALTER TABLE `contacts`
487-
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
491+
MODIFY `id` int NOT NULL AUTO_INCREMENT;
492+
488493
--
489494
-- AUTO_INCREMENT for table `online_users`
490495
--
491496
ALTER TABLE `online_users`
492-
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
497+
MODIFY `id` int NOT NULL AUTO_INCREMENT;
498+
493499
--
494500
-- AUTO_INCREMENT for table `posts`
495501
--
496502
ALTER TABLE `posts`
497-
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
503+
MODIFY `id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
504+
498505
--
499506
-- AUTO_INCREMENT for table `settings`
500507
--
501508
ALTER TABLE `settings`
502-
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
509+
MODIFY `id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
510+
503511
--
504512
-- AUTO_INCREMENT for table `users`
505513
--
506514
ALTER TABLE `users`
507-
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
515+
MODIFY `id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
516+
508517
--
509518
-- AUTO_INCREMENT for table `users_groups`
510519
--
511520
ALTER TABLE `users_groups`
512-
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
521+
MODIFY `id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
522+
513523
--
514524
-- AUTO_INCREMENT for table `users_group_permissions`
515525
--
516526
ALTER TABLE `users_group_permissions`
517-
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=186;
527+
MODIFY `id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=186;
528+
COMMIT;
529+
518530
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
519531
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
520532
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;

Project Screenshots/blog-post.jpg

447 KB
Loading
-3.43 KB
Binary file not shown.
-3.4 KB
Binary file not shown.
-6.29 KB
Binary file not shown.
-6.28 KB
Binary file not shown.

public/images/Barack Obama.jpg

269 KB
Loading

public/images/c++.png

5.25 KB
Loading

public/images/car.jpg

11 KB
Loading

public/images/cat.jpg

101 KB
Loading

public/images/dog.jpg

159 KB
Loading

public/images/person.jpg

6.63 KB
Loading

public/images/smoking.jpg

46.6 KB
Loading

public/images/soft skills.jpg

32.8 KB
Loading

public/images/solid principles.jpg

63.4 KB
Loading
245 KB
Loading

vendor/System/Http/Request.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ public function prepareUrl()
4040
list($requestUri, $queryString) = explode('?' , $requestUri);
4141
}
4242

43-
$this->url = rtrim(preg_replace('#^'.$script.'#', '' , $requestUri), '/');
43+
// $this->url = rtrim(preg_replace('#^'.$script.'#', '' , $requestUri), '/');
44+
isset($this->url) ? $this->url = rtrim(preg_replace('#^'.$script.'#', '' , $requestUri), '/') : false;
4445

4546
if (! $this->url) {
4647
$this->url = '/';

0 commit comments

Comments
 (0)