Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 419f474dfc
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (11 sloc) 0.436 kb
<?php
session_start();
include_once "connector.php";
$db = makeConn();
$db->query("UPDATE player SET lastlogout=".time()." WHERE id=".$_SESSION["id"]) or die("error setting lastlogout");
$db->Close();
session_destroy();
$hostname = $_SERVER['HTTP_HOST'];
$path = dirname($_SERVER['PHP_SELF']);
header('Location: http://'.$hostname.($path == '/' ? '' : $path).'/index.php');
?>
Jump to Line
Something went wrong with that request. Please try again.