-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.php
executable file
·76 lines (72 loc) · 2.88 KB
/
login.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
<?php
/**
* Copyright 2018 Social Manager.
*
* PHP version 7.2.8
*
* @category Album_Manager
* @package Facebook
* @author Kishan Jasani <[email protected]>
* @license https://rtfbchallenge.tk/privacy_policy/privacy_policy.php
* @link ""
*
* You are hereby granted a non-exclusive, worldwide, royalty-free license to
* use, copy, modify, and distribute this software in source code or binary
* form for use in connection with the web services and APIs provided by
* Kishan Jasani.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND
*/
require_once __DIR__ . "/config.php";
if (isset($_SESSION['accessToken'])) {
header('Location: https://localhost:8443/SociaManager/index.php');
exit();
}
$permissions = ['email','user_photos'];
$loginUrl = $helper->getLoginUrl(
'https://localhost:8443/SociaManager/index.php',
$permissions
);
?>
<!DOCTYPE html>
<html>
<head>
<!--Import Google Icon Font-->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!--Import materialize.css-->
<link type="text/css" rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/css/materialize.min.css" media="screen,projection" />
<link type="text/css" rel="stylesheet" href="public/css/main.css" />
<script defer src="https://use.fontawesome.com/releases/v5.0.10/js/all.js" integrity="sha384-slN8GvtUJGnv6ca26v8EzVaR9DC58QEwsIk9q1QXdCU8Yu8ck/tL/5szYlBbqmS+"
crossorigin="anonymous"></script>
<!--Let browser know website is optimized for mobile-->
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<style>
.login-back {
background-image: url('public/img/background-image.png');
background-attachment: fixed;
background-repeat: no-repeat;
background-size: cover;
}
.loginBtn {
position:absolute;
top:50%;
left: 50%;
}
</style>
<title>Social Manager</title>
</head>
<body class="login-back">
<div>
<div class="row wrapper">
<div class="col s12 loginBtn">
<center>
<?php echo '<a href="' . htmlspecialchars($loginUrl) . '" class="btn btn-large blue darken-3 button"><i class="fab fa-facebook"></i><span class="text-space">Login With Facebook</span></a>'; ?>
</center>
</div>
</div>
</div>
<!--Import jQuery before materialize.js-->
<script type="text/javascript" src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/js/materialize.min.js"></script>
</body>
</html>