-
Notifications
You must be signed in to change notification settings - Fork 19
/
id231601_cms.sql
370 lines (315 loc) · 14.6 KB
/
id231601_cms.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
-- phpMyAdmin SQL Dump
-- version 4.6.6
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Oct 13, 2017 at 03:10 PM
-- Server version: 10.1.24-MariaDB
-- PHP Version: 7.0.8
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
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 */;
--
-- Database: `id231601_cms`
--
-- --------------------------------------------------------
--
-- Table structure for table `categories`
--
CREATE TABLE `categories` (
`cat_id` int(11) NOT NULL,
`cat_title` varchar(255) NOT NULL,
`cat_image` varchar(255) NOT NULL DEFAULT 'no_category.png'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `categories`
--
INSERT INTO `categories` (`cat_id`, `cat_title`, `cat_image`) VALUES
(15, 'PHP', 'no_category.png');
-- --------------------------------------------------------
--
-- Table structure for table `comments`
--
CREATE TABLE `comments` (
`comment_id` int(3) NOT NULL,
`comment_post_id` int(3) NOT NULL,
`comment_author` varchar(255) NOT NULL,
`comment_email` varchar(255) NOT NULL,
`comment_content` text NOT NULL,
`comment_reply` text NOT NULL,
`comment_reply_date` varchar(50) NOT NULL,
`comment_status` varchar(255) NOT NULL,
`comment_date` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `comments`
--
INSERT INTO `comments` (`comment_id`, `comment_post_id`, `comment_author`, `comment_email`, `comment_content`, `comment_reply`, `comment_reply_date`, `comment_status`, `comment_date`) VALUES
(34, 59, 'asliabir', '[email protected]', 'Hay man... you rocked......... ', 'Thanks...', 'Wed, September 13, 2017 - 05:07:54 PM', 'approve', 'Wed, September 13, 2017 - 04:53:17 PM');
-- --------------------------------------------------------
--
-- Table structure for table `inbox`
--
CREATE TABLE `inbox` (
`msg_id` int(10) NOT NULL,
`msg_status` varchar(10) NOT NULL DEFAULT 'Panding',
`msg_date` varchar(50) NOT NULL,
`msg_author` varchar(60) NOT NULL,
`msg_subject` varchar(70) NOT NULL,
`author_email` varchar(70) NOT NULL,
`msg_content` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `inbox`
--
INSERT INTO `inbox` (`msg_id`, `msg_status`, `msg_date`, `msg_author`, `msg_subject`, `author_email`, `msg_content`) VALUES
(1, 'replied', '2017-08-24 12:55:09', 'Admin', 'Wellcome to CMS', '[email protected]', 'Hi, There .... Wellcome!'),
(10, 'replied', '2017-08-24 07:45:59 AM', 'nadia', 'sds', '[email protected]', 'adsdsdsdasdhsdad'),
(11, 'replied', '2017-08-24 07:46:45 AM', 'NadiaTasmim', 'Bootstrap', '[email protected]', 'Why Use Bootstrap?\r\nAdvantages of Bootstrap:\r\n\r\nEasy to use: Anybody with just basic knowledge of HTML and CSS can start using Bootstrap\r\nResponsive features: Bootstrap\'s responsive CSS adjusts to phones, tablets, and desktops\r\nMobile-first approach: In Bootstrap 3, mobile-first styles are part of the core framework\r\nBrowser compatibility: Bootstrap is compatible with all modern browsers (Chrome, Firefox, Internet Explorer, Safari, and Opera)\r\nWhere to Get Bootstrap?\r\nThere are two ways to start using Bootstrap on your own web site.\r\n\r\nYou can:\r\n\r\nDownload Bootstrap from getbootstrap.com\r\nInclude Bootstrap from a CDN\r\nDownloading Bootstrap\r\nIf you want to download and host Bootstrap yourself, go to getbootstrap.com, and follow the instructions there.'),
(12, 'replied', '2017-08-24 08:31:11 AM', 'Rafiq', 'Rafi', '[email protected]', 'Print this page to PDF for the complete set of vectors. Or to use on the desktop, install FontAwesome.otf, set it as the font in your application, and copy and paste the icons (not the unicode) directly from this page into your designs.');
-- --------------------------------------------------------
--
-- Table structure for table `online_users`
--
CREATE TABLE `online_users` (
`id` int(3) NOT NULL,
`username` varchar(255) NOT NULL,
`session` varchar(255) NOT NULL,
`time` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `online_users`
--
INSERT INTO `online_users` (`id`, `username`, `session`, `time`) VALUES
(1, '', 'pu5la8p20c0m0cefvnnk9dlgu6', 1503423201),
(2, '', '', 1504878405),
(3, '', '74m6tj8hmui9j0sdn9m7aqjce4', 1503477539),
(4, '', 'fn5abics06f6pp0hb7sdfc34r7', 1503475940),
(5, '', 'k9i11tsbs8tc58tjtaj9i2fpc5', 1503509476),
(6, '', 'duscf4ll8sj773rh1f37vcam90', 1503509208),
(7, '', 'u7hqp18knsu056bs994kldsr62', 1503581499),
(8, '', 'spmtk1devqlqqpj93rqih6b655', 1503678996),
(9, '', '', 1504878405),
(10, '', '7v1blhsnpk40pgbn97cunl6l53', 1503725567),
(11, '', 'm9jfmiaoa3cuq67348sg5vfvr6', 1503758499),
(12, '', 'bqvl9kpsjr696p888i81jv3d96', 1503832289),
(13, '', '6smlfhe57j4m50gsmsh4gni6k5', 1503905293),
(14, '', '5dfvr6bpl8atjnkndtnmobi0c3', 1504156749),
(15, '', 'dtf9d971jeudhjmtcl3lhs6l51', 1504627812),
(16, '', 'h078581o3fk4boco86i4ha1655', 1504676248),
(17, '', 'ngdj6g2e1gvgmu2spkqt3a3p36', 1504716903),
(18, '', 'bt8jum6e6m5bl7fd7bfug4ips6', 1504778672),
(19, '', 'uclburp038a231eaonvb4lnmq3', 1504883547),
(20, '', 'gilpgbvbb1nb30jsuerkstt6f7', 1504924591),
(21, '', 'hu2vktjmthusj5hli1lr5pvrg0', 1504888954),
(22, '', 'mhp0blga4f4lghrv5vu0qkaml6', 1504923642),
(23, '', 'cnpu3blpkmadervdqj8vbmq2k2', 1504976921),
(24, '', '5mt9l1uuq4o1srdndik9nr5nb2', 1505022792),
(25, '', 'ni9i2qq231p7lm2bcvls3aem13', 1505136190),
(26, '', 'vl7m3gv2504lljtdstqr4fun97', 1505138072),
(27, '', 'r1kf8av986qtrvcg4uvtdfadr1', 1505144415),
(28, '', 'mgmpgu3f025j382hs0qv5ui563', 1505298312),
(29, '', 'mbn27hf7ikogg6kii7m83dp8r3', 1505301676),
(30, '', '73qvi64ao5f565o6cvc59k3jf7', 1505301106);
-- --------------------------------------------------------
--
-- Table structure for table `posts`
--
CREATE TABLE `posts` (
`post_id` int(3) NOT NULL,
`post_category_id` int(3) NOT NULL,
`post_title` varchar(255) NOT NULL,
`post_author` varchar(55) NOT NULL,
`post_date` varchar(70) NOT NULL,
`post_image` text NOT NULL,
`post_content` text NOT NULL,
`post_tags` text NOT NULL,
`post_comment_count` int(3) NOT NULL,
`post_status` varchar(255) NOT NULL DEFAULT 'draft',
`post_views_count` int(6) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `posts`
--
INSERT INTO `posts` (`post_id`, `post_category_id`, `post_title`, `post_author`, `post_date`, `post_image`, `post_content`, `post_tags`, `post_comment_count`, `post_status`, `post_views_count`) VALUES
(59, 15, 'PHP is much better than you think', 'admin', 'Wed, September 13, 2017 - 10:44:02 AM', 'php.jpg', 'Rants about PHP are everywhere, and they even come from smart guys. When Jeff Atwood wrote yet another rant about PHP, it made me think about the good parts of PHP.\r\n\r\nThe biggest problem of these rants is that they come from people stuck in the old days of PHP. They either dont care or they dont want to admit that PHP actually evolves at a very fast pace, both at the language level but also at the community level. In fact, it evolves much faster than any other language or web platform. It has not always been the case, but the last 5 years have been an amazing journey for PHP.\r\n', 'php', 1, 'publish', 4);
-- --------------------------------------------------------
--
-- Table structure for table `settings`
--
CREATE TABLE `settings` (
`id` int(3) NOT NULL,
`css` varchar(30) NOT NULL,
`admin_access` varchar(30) NOT NULL,
`site_status` varchar(30) NOT NULL,
`url` varchar(30) NOT NULL,
`admin_id` int(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `settings`
--
INSERT INTO `settings` (`id`, `css`, `admin_access`, `site_status`, `url`, `admin_id`) VALUES
(1, '', 'no', 'hidden', '', 33);
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`user_id` int(4) NOT NULL,
`username` varchar(50) NOT NULL,
`user_firstname` varchar(255) NOT NULL,
`user_lastname` varchar(255) NOT NULL,
`user_sex` varchar(10) NOT NULL,
`user_birthday` date NOT NULL,
`user_city` varchar(30) NOT NULL,
`user_country` varchar(30) NOT NULL,
`user_bio` text NOT NULL,
`user_number` varchar(12) NOT NULL,
`user_twitter` varchar(30) NOT NULL,
`user_medium` varchar(30) NOT NULL,
`user_instagram` varchar(30) NOT NULL,
`user_site` varchar(30) NOT NULL,
`user_lastlogin` varchar(50) NOT NULL,
`user_reg` varchar(30) NOT NULL,
`user_email` varchar(50) NOT NULL,
`user_password` varchar(100) NOT NULL,
`user_image` text NOT NULL,
`user_role` varchar(20) NOT NULL,
`user_facebook` text NOT NULL,
`user_likes` int(10) NOT NULL DEFAULT '0',
`user_interests` varchar(200) NOT NULL,
`user_status` varchar(160) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`user_id`, `username`, `user_firstname`, `user_lastname`, `user_sex`, `user_birthday`, `user_city`, `user_country`, `user_bio`, `user_number`, `user_twitter`, `user_medium`, `user_instagram`, `user_site`, `user_lastlogin`, `user_reg`, `user_email`, `user_password`, `user_image`, `user_role`, `user_facebook`, `user_likes`, `user_interests`, `user_status`) VALUES
(1, 'admin', 'Mollah', 'Abir', 'Male', '1997-09-26', 'Narsingdi', 'Bangladesh', 'Hay, I am the BOSS. You Know!', '01787350229', 'asliabir', 'asliabir', 'asliabir', 'asliabir.wordpress.com', '', '2017-08-25 15:49:12', '[email protected]', '$2y$10$fvktRDIwRwkv6RqK6YeLxuaWiDXNuDaRStMHc5sLGHwUYLmuUmv1S', 'MyBio.ico', 'admin', 'asliabir', 0, 'MacBook, PHP, Java, Python', 'Hay peoples......'),
(43, 'asliabir', 'Abir', 'Molla', 'Male', '0000-00-00', '', '', '', '', '', '', '', '', '', '2017-09-13 04:47:41 PM', '[email protected]', '$2y$10$Kxa10VCqKMnRGGDB5LhTp.RD/R6hCzlRtPtDo88KubJbrqMqR7xqC', '', 'subscriber', '', 0, '', '');
-- --------------------------------------------------------
--
-- Table structure for table `user_inbox`
--
CREATE TABLE `user_inbox` (
`msg_id` int(2) NOT NULL,
`msg_sender_id` int(3) NOT NULL,
`msg_sender` varchar(60) NOT NULL,
`msg_author_id` int(3) NOT NULL,
`msg_author` varchar(60) NOT NULL,
`msg_subject` varchar(70) NOT NULL,
`msg_content` text NOT NULL,
`msg_date` varchar(50) NOT NULL,
`msg_reply` text NOT NULL,
`msg_reply_status` varchar(10) NOT NULL DEFAULT 'Unreplied',
`msg_reply_date` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `user_inbox`
--
INSERT INTO `user_inbox` (`msg_id`, `msg_sender_id`, `msg_sender`, `msg_author_id`, `msg_author`, `msg_subject`, `msg_content`, `msg_date`, `msg_reply`, `msg_reply_status`, `msg_reply_date`) VALUES
(11, 32, 'asliabir', 1, 'admin', 'maKI', 'afldkjdslkddslfjds', 'Sat, September 09, 2017 - 01:05:42 AM', 'ok', 'Replied', 'Sat, September 09, 2017 - 08:07:54 AM'),
(12, 1, 'admin', 32, 'asliabir', 'maKI', 'afldkjdslkddslfjds', 'Sat, September 09, 2017 - 01:05:42 AM', '.mvcx,mz.mxc,.zmv.cz,mcv', 'Replied', 'Sat, September 09, 2017 - 08:04:26 AM'),
(13, 32, 'asliabir', 1, 'admin', 'maKI', 'jfdlldajdlfkjdsaklsdjflkadjf', 'Sat, September 09, 2017 - 08:04:11 AM', 'ok', 'Replied', 'Sat, September 09, 2017 - 08:07:50 AM'),
(14, 32, 'asliabir', 1, 'admin', 'maKI', '.mvcx,mz.mxc,.zmv.cz,mcv', 'Sat, September 09, 2017 - 08:04:26 AM', 'ok', 'Replied', 'Sat, September 09, 2017 - 08:07:45 AM'),
(15, 1, 'admin', 32, 'asliabir', 'maKI', 'ok', 'Sat, September 09, 2017 - 08:07:45 AM', '', 'Unreplied', ''),
(16, 1, 'admin', 32, 'asliabir', 'maKI', 'ok', 'Sat, September 09, 2017 - 08:07:50 AM', '', 'Unreplied', ''),
(17, 1, 'admin', 32, 'asliabir', 'maKI', 'ok', 'Sat, September 09, 2017 - 08:07:54 AM', '', 'Unreplied', ''),
(18, 0, '', 0, '', '', '', '', '', 'Unreplied', ''),
(19, 32, 'asliabir', 1, 'admin', 'Hay boss', 'fdajdklajfdjdslkfjdsklfjdsfkjsdfkldaf', 'Sat, September 09, 2017 - 10:34:43 PM', 'bjhjjgh', 'Replied', 'Sun, September 10, 2017 - 11:50:35 AM'),
(20, 1, 'admin', 32, 'asliabir', 'You are cool', 'Hay dude, you are cool............. love ya', 'Sat, September 09, 2017 - 10:36:00 PM', '', 'Unreplied', ''),
(21, 1, 'admin', 32, 'asliabir', 'Hay boss', 'hgdhgghg', 'Sun, September 10, 2017 - 11:36:32 AM', '', 'Unreplied', ''),
(22, 1, 'admin', 32, 'asliabir', 'Hay boss', 'bvcbvbv', 'Sun, September 10, 2017 - 11:48:13 AM', '', 'Unreplied', ''),
(23, 1, 'admin', 32, 'asliabir', 'Hay boss', 'vcbxbvcbvcbx', 'Sun, September 10, 2017 - 11:49:25 AM', '', 'Unreplied', ''),
(24, 1, 'admin', 32, 'asliabir', 'Hay boss', 'bjhjjgh', 'Sun, September 10, 2017 - 11:50:35 AM', '', 'Unreplied', '');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `categories`
--
ALTER TABLE `categories`
ADD PRIMARY KEY (`cat_id`);
--
-- Indexes for table `comments`
--
ALTER TABLE `comments`
ADD PRIMARY KEY (`comment_id`);
--
-- Indexes for table `inbox`
--
ALTER TABLE `inbox`
ADD PRIMARY KEY (`msg_id`);
--
-- Indexes for table `online_users`
--
ALTER TABLE `online_users`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `posts`
--
ALTER TABLE `posts`
ADD PRIMARY KEY (`post_id`);
--
-- Indexes for table `settings`
--
ALTER TABLE `settings`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`user_id`);
--
-- Indexes for table `user_inbox`
--
ALTER TABLE `user_inbox`
ADD PRIMARY KEY (`msg_id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `categories`
--
ALTER TABLE `categories`
MODIFY `cat_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;
--
-- AUTO_INCREMENT for table `comments`
--
ALTER TABLE `comments`
MODIFY `comment_id` int(3) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=35;
--
-- AUTO_INCREMENT for table `inbox`
--
ALTER TABLE `inbox`
MODIFY `msg_id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
--
-- AUTO_INCREMENT for table `online_users`
--
ALTER TABLE `online_users`
MODIFY `id` int(3) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=31;
--
-- AUTO_INCREMENT for table `posts`
--
ALTER TABLE `posts`
MODIFY `post_id` int(3) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=60;
--
-- AUTO_INCREMENT for table `settings`
--
ALTER TABLE `settings`
MODIFY `id` int(3) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `user_id` int(4) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=44;
--
-- AUTO_INCREMENT for table `user_inbox`
--
ALTER TABLE `user_inbox`
MODIFY `msg_id` int(2) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25;
/*!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 */;