forked from GDRCD/GDRCD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
logout.php
44 lines (40 loc) · 1.5 KB
/
logout.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
<?php session_start();
//Includio i parametri, la configurazione, la lingua e le funzioni
require ('includes/required.php');
//Eseguo la connessione al database
$handleDBConnection = gdrcd_connect();
/** * Aggiorno l'ora di uscita del pg
* @author Blancks
*/
gdrcd_query("UPDATE personaggio SET ora_uscita = NOW() WHERE nome='" . gdrcd_filter('in', $_SESSION['login']) . "'");
?>
<html>
<head>
<meta http-equiv="Content-Type" content='text/html; charset=utf-8'>
<link rel="stylesheet" href="themes/<?php echo $PARAMETERS['themes']['current_theme']; ?>/main.css" type='text/css'>
<link rel="shortcut icon" href="favicon.ico"/>
</head>
<body class="logout_body">
<div class="logout_box">
<span class="logout_text"><?php echo gdrcd_filter('out', $_SESSION['login']) . ' ' . $MESSAGE['logout']['confirmation']; ?></span>
<span class="logout_text">
<?php echo gdrcd_filter('out', $MESSAGE['logout']['logbackin']) . ' '; ?>
<a href="index.php">
<?php echo gdrcd_filter('out', $PARAMETERS['info']['homepage_name']); ?>
</a>
</span>
<span class="logout_text"><?php echo gdrcd_filter('out', $MESSAGE['logout']['greeting']); ?></span>
</div>
</body>
</html>
<?php
/*Chiudo la connessione al database*/
gdrcd_close_connection($handleDBConnection);
/** * Per ottimizzare le risorse impiegate le liberiamo dopo che non ne abbiamo più bisogno
* @author Blancks
*/
unset($MESSAGE);
unset($PARAMETERS);
session_unset();
session_destroy();
?>