Subversion Repositories cheapmusic

Rev

Rev 107 | Rev 110 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
25 - 1
<?php
108 - 2
echo $_SERVER['DOCUMENT_ROOT'];
3
 
31 - 4
// Include Session Handling
65 - 5
require_once ('includes/session.php');
25 - 6
// Include config & login validate file
65 - 7
require_once ('includes/validateUser.php');
25 - 8
?>
9
<!DOCTYPE html>
10
<html lang="en-US">
11
<head>
12
	<!--head-->
65 - 13
	<?php include_once ('elements/head.php'); ?>
108 - 14
    <script src="<?php echo PUBLIC_URL . "js/policies.js?" . filemtime("assets/js/policies.js"); ?>" async defer></script>
25 - 15
	<!--//head-->
16
</head>
17
<body>
43 - 18
<div class="main">
25 - 19
    <!--header-->
65 - 20
    <?php include_once ('elements/header.php'); ?>
25 - 21
    <!--//header-->
29 - 22
 
25 - 23
    <!--main-->
24
	<div class="main-content">
57 - 25
        <div class="wrapper-frm bg-light text-dark border shadow text-center">
26
    	    <div>
107 - 27
                <h1>Login To Your Account</h1>
57 - 28
            </div>
25 - 29
            <div class="top">
65 - 30
				<?php echo !empty($statusMsg) ? '<p class="status-msg ' . $statusMsgType . '">' . $statusMsg . '</p>' : ''; ?>
25 - 31
                <form action="<?php echo BASE_URL; ?>userAccount.php" method="post">
32
                    <div class="frm-input">
107 - 33
                        <input type="email" name="email" class="email-in" placeholder="Email" required="" aria-label="Email Address" autocomplete="username">
25 - 34
                    </div>
35
                    <div class="frm-input">
107 - 36
                        <input type="password" name="password" class="pass-in" placeholder="Password" required="" aria-label="Password" autocomplete="current-password">
25 - 37
                    </div>
38
                    <div class="frm-info">
39
                        <div class="check">
40
                            <input type="checkbox" id="remb" name="rememberMe" value="1">
41
                            <label for="remb"><span></span>Remember me</label>
42
                        </div>
43
                        <a href="<?php echo BASE_URL; ?>forgotPassword.php">Forgot Password?</a>
57 - 44
                        <div class="clearfix"></div>
25 - 45
                    </div>
46
                    <div class="frm-btn">
57 - 47
                        <button class="btn btn-success" type="submit" name="loginSubmit" value="Sign In">Sign In</button>
25 - 48
                    </div>
49
                </form>
50
            </div>
65 - 51
			<?php if (!empty($fbLoginURL) || !empty($gpLoginURL) || !empty($twLoginURL)) { ?>
42 - 52
                <div class="group">
53
                    <div class="item line"></div>
54
                    <div class="item text">or</div>
55
                    <div class="item line"></div>
56
                </div>
57
                <div class="social-icons">
107 - 58
                <h2>Login with your Social Account</h2>
42 - 59
                <div class="check pt-4 pb-2">
60
                    <p id="acceptPoliciesMsg"></p>
61
                    <input type="checkbox" id="acceptPolicies" name="acceptPolicies" value="1" required="">
62
                    <label for="acceptPolicies"><span></span>I agree to the <a href="../terms.php" target="_blank">Terms of Service</a> and I accept the <a href="../privacy.php" target="_blank">Privacy Policy</a>.</label>
63
                </div>
25 - 64
                <ul class="bottom-sc-icons">
65 - 65
					<?php if (!empty($fbLoginURL)) { ?>
42 - 66
                    <li><a href="<?php echo $fbLoginURL; ?>" class="facebook" onclick="return checkAcceptPolicies();"><i></i><span>Facebook</span></a></li>
65 - 67
					<?php
68
    } ?>
69
					<?php if (!empty($gpLoginURL)) { ?>
42 - 70
                    <li><a href="<?php echo $gpLoginURL; ?>" class="google" onclick="return checkAcceptPolicies();"><i></i><span>Google</span></a></li>
65 - 71
					<?php
72
    } ?>
73
					<?php if (!empty($twLoginURL)) { ?>
42 - 74
                    <li><a href="<?php echo $twLoginURL; ?>" class="twitter" onclick="return checkAcceptPolicies();"><i></i><span>Twitter</span></a></li>
65 - 75
					<?php
76
    } ?>
25 - 77
                </ul>
57 - 78
                <div class="clearfix"> </div>
25 - 79
            </div>
65 - 80
			<?php
81
} ?>
25 - 82
            <div class="bottom">
83
                <p>Don't Have an Account? <a href="<?php echo BASE_URL; ?>registration.php">Register Now</a></p>
84
            </div>
57 - 85
        </div>
25 - 86
	</div>
87
	<!--//main-->
29 - 88
 
25 - 89
	<!--footer-->
65 - 90
	<?php include_once ('elements/footer.php'); ?>
25 - 91
	<!--//footer-->
92
</div>
93
</body>
31 - 94
</html>
95
<?php MySessionHandler::commit(session_id()); ?>