-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathexit.php
More file actions
29 lines (25 loc) · 708 Bytes
/
exit.php
File metadata and controls
29 lines (25 loc) · 708 Bytes
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
<?PHP
/*
* phpDHCPAdmin
* Jason Gerfen [jason.gerfen@gmail.com]
*
* exit.php - exit the application
*/
// load our config data
if( file_exists( "scripts/inc.config.php" ) ) {
require 'scripts/inc.config.php';
// ensure we are being called from our configured host
if( $defined['hostname'] === $_SERVER['SERVER_NAME'] ) {
$exit = new ExitApp;
$session = new dbSession;
$exit->ExitApplication( $_SESSION['token'] );
$session->destroy( session_id() );
@header( "Location: index.php?skin=$_GET[skin]" );
$debug->ShowDebug( $_GET, $_POST, $_REQUEST, $_SESSION );
} else {
// Possible XSS attack
}
} else {
// File is missing for configuration params
}
?>