-
Notifications
You must be signed in to change notification settings - Fork 0
/
logon.php
67 lines (61 loc) · 1.91 KB
/
logon.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
<?php
include_once("include/config.php");
include_once("include/auth.lib.php");
list($status, $user) = auth_get_status();
if($status == AUTH_LOGGED & auth_get_option("TRANSICTION METHOD") == AUTH_USE_LINK){
$link = "?uid=".$_GET['uid'];
}else $link = '';
?>
<html>
<head>
<title>Login</title>
<?php include("style/head.php");?>
</head>
<body>
<div id="header">
<?php include("include/header.php") ?>
</div>
<div id="page">
<div class="container">
<?php switch($status){
case AUTH_LOGGED:
?>
<b>Sei loggato con il nome di <?=$user["name"];?> <a href="logout.php<?=$link?>">Logout</a></b>
<?php
break;
case AUTH_NOT_LOGGED:
?>
<form action="login.php?page=<?= $_GET['page'] ?>" method="post">
<table cellspacing="2">
<tr>
<td>Nome Utente:</td>
<td><input type="text" name="uname"></td>
</tr>
<tr>
<td>Password:</td>
<td><input type="password" name="passw"></td>
</tr>
<tr>
<td colspan="2"><input type="submit" name="action" value="login"></td>
</tr>
<tr><td>
<a href="https://accounts.google.com/o/oauth2/auth?client_id=737940042710-8e6uidepkeop672pc3615pgrni1nqgo1.apps.googleusercontent.com&redirect_uri=http://www.gringus.tk/login.php?codeGoogle=1&response_type=code&scope=https://www.googleapis.com/auth/plus.login">
<img height="50" width="250" src="content/social/goole.png">
</a>
</td>
</tr>
</table>
</form>
<?php
break;
}
?>
</div>
</div>
<div id="foot">
<div class="footer">
<?php include("style/footer.php");?>
</div>
</div>
</body>
</html>