forked from Subhajit25Mondal/hashtag.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
welcome.php
97 lines (76 loc) · 3.06 KB
/
welcome.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
<?php include 'config/declare.php'; ?>
<!-- a universal file that has all the classes included -->
<?php include 'config/classesGetter.php'; ?>
<!-- creating objects -->
<?php
$universal = new universal;
?>
<?php
if ($universal->isLoggedIn()) {
header('Location: '.DIR);
}
?>
<?php
$title = "Hashtag";
$keywords = "Hashtag, Share and capture world's moments, share, capture, share, login, signup";
$desc = "Hashtag lets you capture, follow, like and share world's moments in a better way and tell your story with photos, messages, posts and everything in between";
?>
<?php include 'index_include/index_header.php'; ?>
<div class="index_wrapper">
<div class="index_sign log_sign">
<a href="signup" class="pri_btn">Need an account?</a>
</div>
<div class="banner">
<img src="<?php echo DIR; ?>/images/needs/dbx_29.png" alt="Hashtag">
<!-- <img src="http://chicohq.com/images/bg.svg" alt=""> -->
</div>
<div class="username_checker i_c">
<span class="checker_text">username not available</span>
<span class="checker_icon">
<i class="fa fa-frown-o" aria-hidden="true"></i>
</span>
</div>
<div class="feature">
<div class="feature_desc">
<h1>It's awesome to capture and share world's moments</h1>
<h3>Hashtag helps you connect with people with your amazing photos, videos and everything in between.</h3>
<a href="<?php echo DIR; ?>/about" class="pri_btn">View more</a>
</div>
<div class="index_login sign_up_div">
<form class="index_form login" action="" method="post">
<input type="text" name="s_username" value="" autocomplete="off" placeholder="Username" class="s_username big_input" spellcheck="false" mssg="" maxlength="32" required autofocus>
<input type="password" name="s_password" value="" autocomplete="off" placeholder="Password" id="password" class="s_password big_input" required maxlength="32">
<span class="show_psswrd home_show_psswrd" id="show_psswrd">
<i class="fa fa-lock" aria-hidden="true"></i>
</span>
<input type="submit" name="s_submit" value="Log in to continue" class="s_submit">
</form>
<div class="forgot_psswrd">
<a href="forgot_psswrd" class="a_pri hover" alt="Forgot your password" data-description="Forgot your password">Forgot password?</a>
<a href="login" class="a_pri" alt="Open in another page">Separate Page</a>
</div>
</div>
</div>
<div class="notify">
<span></span>
</div>
</div>
<div class="overlay-2"></div>
<br><br><br><br><br><br>
<?php include 'index_include/index_footer.php'; ?>
<script type="text/javascript">
$(function(e){
// $('.s_username').username_checker({
// url: "reg_process/@username_checker.php"
// });
$('#show_psswrd').togglePassword({
input: document.getElementById('password')
});
$('form').on('submit', (function(e){
e.preventDefault();
$('.s_submit').prop('disabled', true);
$('.overlay-2').show();
login($('.s_username').val(), $('.s_password').val(), $('.s_submit'));
}))
});
</script>