File: logout.php

package info (click to toggle)
ganglia-web 3.7.6%2Bdebian-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,368 kB
  • sloc: javascript: 27,575; php: 17,272; sh: 346; makefile: 82; xml: 42
file content (8 lines) | stat: -rw-r--r-- 229 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
<?php
require_once 'eval_conf.php';

$auth = GangliaAuth::getInstance();
$auth->destroyAuthCookie();
$redirect_to = isset( $_SERVER['HTTP_REFERER'] ) ? $_SERVER['HTTP_REFERER'] : 'index.php';
header("Location: $redirect_to");
?>