-
Notifications
You must be signed in to change notification settings - Fork 18
/
wish.php
319 lines (284 loc) · 9.76 KB
/
wish.php
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
<?php
include("db.php");
$str=mysqli_real_escape_string($con,$_GET["str"]);
//Get data's from the Table
if(isset($str))
{
$sql_query="SELECT * FROM event_wishes WHERE str='$str'";
$result_set=mysqli_query($con,$sql_query) or die('error');
$user_wish=mysqli_fetch_array($result_set);
}
?>
<?php
// redirect to 404 page
if($user_wish == false)
{
header('HTTP/1.1 404 Not Found');
echo 'Sorry, the user Wish does not exist <a href="/">Create New</a>';
}
else
{
?>
<!DOCTYPE html>
<html lang="en" itemscope itemtype="http://schema.org/WebSite">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="HandheldFriendly" content="True" />
<meta name="theme-color" content="#9b59b6">
<meta name="robots" content="index,follow" />
<?php $current_page = "https://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
echo '<link rel="canonical" href="'.$current_page.'" />'; ?>
<!-- Seo Meta Tags -->
<title><?php echo $user_wish['title']; ?> Wishing you a Happy New year 2018</title>
<meta name="description" content="<?php echo $user_wish['title']; ?> Wishing you a Happy New Year - Here is your Happy New Year 2018 Greeting Wishes."/>
<link rel="shortcut icon" href="favicon.png" type="image/png" />
<!-- Twitter Card data -->
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="<?php echo $user_wish['title']; ?> Wishing you a Happy New year 2018" />
<meta name="twitter:description" content="<?php echo $user_wish['title']; ?> Wishing you a Happy New Year - Here is your Happy New Year 2018 Greeting Wishes." />
<meta name="twitter:image" content="TWITTER OG THUMBNAIL URL" />
<meta name="twitter:url" content="<?php echo $current_page; ?>" />
<meta name="twitter:site" content="@username"/>
<meta name="twitter:creator" content="@username"/>
<!-- Facebook Open Graph data -->
<meta property="og:title" content="<?php echo $user_wish['title']; ?> Wishing you a Happy New year 2018" />
<meta property="og:type" content="article"/>
<meta property="og:url" content="<?php echo $current_page; ?>" />
<meta property="og:image" content="FB OG THUMBNAIL URL" />
<meta property="og:image:alt" content="Happy New year" />
<meta property="og:description" content="<?php echo $user_wish['title']; ?> Wishing you a Happy New Year - Here is your Happy New Year 2018 Greeting Wishes." />
<meta property="og:site_name" content="Happy New Year 2018" />
<meta property="fb:app_id" content="YOUR FB APP ID" />
<meta property="article:publisher" content="YOUR FB PROFILE URL" />
<meta property="article:author" content="YOUR FB PAGE URL" />
<!-- Google+ Meta Tags. -->
<meta itemprop="name" content="<?php echo $user_wish['title']; ?> Wishing you a Happy New year 2018">
<meta itemprop="description" content="<?php echo $user_wish['title']; ?> Wishing you a Happy New Year - Here is your Happy New Year 2018 Greeting Wishes.">
<meta itemprop="image" content="OG THUMBNAIL URL">
<link rel="stylesheet" type="text/css" href="build/css/bootstrap.min.css" />
<link type="text/css" rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css" integrity="sha384-OHBBOqpYHNsIqQy8hL1U+8OXf9hH6QRxi0+EODezv82DfnZoV7qoHAZDwMwEJvSw" crossorigin="anonymous">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Ubuntu" type="text/css" media="all"/>
<link type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<style>
body {
background-image: url("build/image/bg.gif");
font-family: 'Ubuntu', sans-serif;
font-size: 16px
}
.panel-default > .panel-heading-custom {
background: #8e44ad; color: #fff;
}
.para {
font-size: 14px;
}
.phead {
font-size: 16px;
}
.footer {
margin-top: 1.5em;
}
.footer-text {
font-size: 14px;
text-align: center;
font-weight: 400;
}
p {
line-height: 1.5;
font-weight: 400;
letter-spacing: 0;
color: #2c3643;
}
.post-content img {
max-height: 100%;
max-width: 100%;
}
.post-title{
font-size:23px
}
.post-content h2 {
font-size:23px
}
.post-content p {
line-height: 24px;
margin-bottom: 20px;
font-size: 16px;
}
.post-author {
font-size: 16px;
text-transform: uppercase;
color: #000;
font-weight: 700;
}
.veer {
border: 2px solid rgb(255, 204, 0);
padding: 8px 10px;
font-size: 120%;
color: black;
font-weight: bold;
background-color: rgb(255, 255, 153);
border-radius:20px 20px 0 20px;
}
/* SHAREBUTTONS */
.sharebuttons a { color: #fff !important; }
.sharebuttons span {
font-size: 16px;
}
.btn-whatsapp { background: #128c7e;}
.btn-facebook { background: #3b5998;}
.btn-whatsapp:hover { background: #075e54;}
.btn-facebook:hover { background: #2f4679;}
.panel-default > .panel-heading-custom {
background: #8e44ad; color: #fff;
}
.btn {
font-weight: 700;
letter-spacing: 1px;
text-transform: uppercase;
color: #fff;
}
@media only screen and (max-width:480px) {
.h-mbl {
display: none !important;}
}
.veer-img {
border:5px solid #d2d2d2;
padding:2px;
}
.veer-panel {
background-color: #b3e5fc;}
.hello-head{font-weight: bold;font-variant: small-caps;text-align: center;font-size: 45px;}
.home-logo {
font-family: Lato;
font-size: 24px;
font-style: oblique;
font-variant: normal;
font-weight: bold;
line-height: 37.5px;
}
.home-footer{padding:20px 0;background-color:#666;color:#FFF;margin:25px 0 0}
.lnf{color:#fff;}
</style>
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->
</head>
<body>
<br />
<!-- Ads -->
<div class="container">
<div class="row">
<div class="col-lg-6 col-lg-offset-3 text-center">
<!-- Your Google Adsense Code -->
</div>
</div>
</div>
<br />
<section class="post-content">
<div class="container">
<div class="row">
<div class="col-lg-6 col-lg-offset-3 text-center">
<div class="panel panel-primary">
<div class="panel-heading panel-heading-custom">
<h4 class="phead section-heading"><b>Wishes From - <?php echo $user_wish['title']; ?></b></h4>
</div>
<div class="panel-body veer-panel">
<h2 class="hello-head">Happy New Year</h2>
<div class="text-center">
<br />
<img class="animated infinite tada" src="build/image/happynewyear2018-web1.png" width="300" alt="Happy New Year">
</div>
<br />
<br />
<p class="post-title text-center">Lets celebrate this blissful,<br/>
cheerful, colorful New year. with a smile.<br/>
<b>Wish you Happy new year.</b></p>
<h3 class="animated infinite pulse text-center"><b><i class="fa fa-star" aria-hidden="true"></i> <?php echo $user_wish['title']; ?> <i class="fa fa-star" aria-hidden="true"></i></b></h3><br/>
</div>
</div>
<!-- Social Share -->
<div class="text-center" >
<div class="sharebuttons btn-group btn-group-lg">
<a class="btn btn-whatsapp" href="whatsapp://send?text=<?php echo rawurlencode($user_wish['title']); ?>%20💯%20Sending%20you%20a%20Happy%20New%20Year%20Greetings%20🎁%20👉%20<?php echo $current_page; ?>" target="_blank"><i class="fa fa-whatsapp"></i> <span>Share</span></a>
<a class="btn btn-facebook" href="https://facebook.com/sharer.php?u=<?php echo $current_page; ?>" target="_blank"><i class="fa fa-facebook"></i> <span>Share</span></a>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Greeting Card End -->
<br />
<!-- Greeting Maker Form -->
<div class="container">
<div class="row">
<div class="col-lg-6 col-lg-offset-3 text-center">
<div class="panel panel-default">
<div class="panel-heading panel-heading-custom">
<h2 class="phead section-heading">Create your Own New year Greeting</h2>
</div>
<div class="panel-body">
<form method="post" action="http://localhost/newyear/" class="form-inline">
<p class="para">Enter your name to wish your friends and Family memebers. <b>"Happy New Year"</b></p>
<div class="form-group">
<input type="text" class="form-control" id="title" onkeydown="validateAlpha();" name="title" maxlength="25" placeholder="Enter Your Name" required>
</div>
<button type="submit" name="create-wish" class="btn btn-success">Create</button>
</form>
</div>
</div>
</div>
</div>
</div>
<br />
<!-- Ads -->
<div class="container">
<div class="row">
<div class="col-lg-6 col-lg-offset-3 text-center">
<!-- Your Google Adsense Code -->
</div>
</div>
</div>
<br />
<!-- Message Box -->
<div class="container">
<div class="row">
<div class="col-lg-6 col-lg-offset-3 text-center">
<div class="panel panel-default">
<div class="panel-body">
<p><b>Happy Newe Year</b> - wish your loved ones a pleasant Happy New Year Wishes wishes in 2018 with our attractive greeting and a Specially Designed Web page.</p>
</div>
</div>
</div>
</div>
</div>
<br />
<!-- Message Box -->
<footer class="home-footer text-center">
<p class="lnf footer-text">Copyright © 2018 Happy New year Wishes.</p>
</footer>
<!-- jQuery -->
<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
<script src="build/js/bootstrap.min.js"></script>
<script>
function validateAlpha(){
$('#error-display').hide();
$('#title').keypress(function (e) {
var regex = new RegExp("^[a-zA-Z0-9. ]+$");
var str = String.fromCharCode(!e.charCode ? e.which : e.charCode);
if (regex.test(str)) {
return true;
}
e.preventDefault();
return false;
});
}
</script>
</body>
</html>
<?php
}
?>