Dre4m Shell
Server IP : 127.0.0.2  /  Your IP : 18.217.119.115
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//product-edit.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Joel Levitt, maintenance management, maintenance management consulting, tpms</title>
<link href="css/style.css" type="text/css" rel="stylesheet">
</head>
<script language="JavaScript">

function validateform()
{
	  if (document.getElementById("productname").value == "")
		{
	  alert("Please Enter a Product Name");
	  document.getElementById("productname").focus();
	  return false;
	  }
	  if(document.getElementById("CategoryName").value == "")
	  {
	  alert("Please select  CategoryName");
	  document.getElementById("CategoryName").focus();
	  return false;
	  }
	  /* if(document.getElementById("title").value == "")
	  {
	  alert("Please provide Session Title");
	  document.getElementById("title").focus();
	  return false;
	  }
	   if(document.getElementById("location").value == "")
	  {
	  alert("Please provide Session Location");
	  document.getElementById("location").focus();
	  return false;
	  }*/
	return true;

}
</script>
<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');
	      require_once('include/db-config.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="product-edit-action.php" method="post" enctype="multipart/form-data"  id="pass" name="pass" onSubmit="return validateform();">                        
									<table border="0" cellpadding="0" cellspacing="0" class="normal_text">
										<tr><td class="mainhead" valign="top" colspan="2">EDIT PRODUCT</td></tr>
										<tr><td style="height:10px;"></td></tr>
										<tr>
											<?php
											$sql="select ID,ProductName,Status,ShortDescription,LongDescription,ThirdPartyURL,DownloadURL,DownloadFlag,OriginalPrice,SalesPrice,FreeSampleFlag,ProductPhoto,QtyPerPackage,SortOrder,TrialAvail,Trialurl, MeetingDefender from productnew where ID=".$_GET['id'];
											$result=mysqli_query($conn,$sql);
										     while($row=mysqli_fetch_array($result))
										       {
											    $PID=$row['ID'];
											    $ProductName=$row['ProductName'];
											    $Status=$row['Status'];
												$ShortDescription=$row['ShortDescription'];
												$LongDescription=$row['LongDescription'];
												$ThirdPartyURL=$row['ThirdPartyURL'];
												$OriginalPrice=$row['OriginalPrice'];
												$SalesPrice=$row['SalesPrice'];
												$FreeSampleFlag=$row['FreeSampleFlag'];
												$ProductPhoto=$row['ProductPhoto'];
												$QtyPerPackage=$row['QtyPerPackage'];
												$SortOrder=$row['SortOrder'];
												$downloadurl=$row['DownloadURL'];
												$downloadableflag=$row['DownloadFlag'];
												$trialavail=$row['TrialAvail'];
												$downloadtrialurl=$row['Trialurl'];
												$meetingdefender=$row['MeetingDefender'];
												//echo "test".$trialavail;
											   }
											  
											   
                                            ?>
                                          </tr>
										<tr><td style="height:20px;"></td></tr>
										<tr>
											<td class="textnormal" style="padding-left:20px; padding-right:10px;" valign="top">Product Name</td>
											<td><input type="text" style="width:400px;" name="productname" id="productname" value="<?php echo $ProductName;?>">
                                            </td>
										</tr>
                                        <tr><td style="height:20px;"></td></tr>
                                        <tr>
											<td class="textnormal" style="padding-left:20px; padding-right:10px;" valign="top">Status</td>
											<td>
                                            	<select name="status" id="status" style="width:150px;">
                                                	<option value="1" <?php if($Status == '1') echo "selected"; ?>>Active</option>
                                                    <option value="0" <?php if($Status == '0') echo "selected"; ?>>Inactive</option>
                                                    <option value="2" <?php if($Status == '2') echo "selected"; ?>>Backordered</option>
                                                </select>
                                                <br><font color="#999999">Only 'Active' status session will be listed in session page</font>
                                            </td>
										</tr>
										
                                        <tr><td style="height:20px;"></td></tr>
										<tr>
											<td class="textnormal" style="padding-left:20px; padding-right:10px;" valign="top">Product Categories:  </td>
											<td>
											
											
											<?php 
											
											//   $sql="select ID,CategoryName,SortOrder from categories_new";
											  $sql="select ID,CategoryName,SortOrder from categories_new where CategoryName='Books' ";
											  $result=mysqli_query($conn,$sql);
											
							        	       while($row=mysqli_fetch_array($result))
										        {
											  $CategoryName=$row['CategoryName'];
											  $ID=$row['ID'];
											   $checked = "checked";
										     ?>
                                             <!-- <?php 
											 $sql1="select CategoryID from product_categoires where ProductID=".$_GET['id'] ." and CategoryID = ".$ID;
											  $result1=mysqli_query($conn,$sql1);
											  $checked = "";
											  if($row1=mysqli_fetch_array($result1))
										      {
											     $CategoryID=$row1['CategoryID'];
												  $checked = "checked";
												 
											  }
												 
											 ?> -->
                                             <input type="checkbox"  name="comp[]" id="<?php echo $CategoryName;?>" value="<?php echo $ID;?>" checked ><?php echo $CategoryName;?><br />
                                          	<?php } ?>										
											 
                                             <font color="#999999">Categories are used by the front-end for customer display.</font>
                                            </td>
										</tr>
                                        <tr><td style="height:20px;"></td></tr>
										<tr>
											<td class="textnormal" style="padding-left:20px; padding-right:10px;" valign="top">Short Description: </td>
											<td><textarea rows="5" cols="60" name="shortdescription" id="shortdescription"><?php echo $ShortDescription;?></textarea>
                                            <br><font color="#999999">Can contain HTML.</font>
                                            </td>
										</tr>
                                        <tr><td style="height:20px;"></td></tr>
										<tr>
											<td class="textnormal" style="padding-left:20px; padding-right:10px;" valign="top">Long Description:</td>
											<td><textarea rows="10" cols="100" name="longdescription" id="longdescription"><?php echo $LongDescription;?></textarea></textarea>
                                             <br><font color="#999999">Can contain HTML.</font>
                                            </td>
										</tr>
										<tr><td style="height:20px;"></td></tr>
										<tr>
											<td class="textnormal" style="padding-left:20px; padding-right:10px;" valign="top">Amazon URL:   	</td>
											<td><input type="text" style="width:400px;" name="thirdpartyurl" id="thirdpartyurl" value="<?php echo $ThirdPartyURL;?>">
                                            <br><font color="#999999">If this field is left blank, customer's will be able to add this product to the maintrainer cart.</font>
                                            </td>
										</tr>
                                        <tr><td style="height:20px;"></td></tr>
                                          <!-- <tr>
											<td class="textnormal" style="padding-left:20px; padding-right:10px;" valign="top">Downloadable URL:  	</td>
											<td><input type="text" style="width:400px;" name="downloadableurl" id="downloadableurl" value="<?php echo $downloadurl;?>">
                                            </td>
										</tr>
                                        <tr><td style="height:20px;"></td></tr> -->
                                        <!-- <tr>
											<td class="textnormal" style="padding-left:20px; padding-right:10px;" valign="top">Downloadable:	
											</td>
											<td><input type="checkbox"  name="downloadable" id="downloadable" <?php if ($downloadableflag==0) {   } else { echo 'checked="checked"';}?>>
                                             <br><font color="#999999">If checked, customer will be able to download above link.</font>
                                            </td>
										</tr> -->
                                        <tr><td style="height:20px;"></td></tr>
                                        <!--trail available starts-->
                                        <?php
										if($downloadableflag == 1)
										{
										?>
                                        <tr>
											<td class="textnormal" style="padding-left:20px; padding-right:10px;" valign="top">Is Trial Available:	
											</td>
											<td><input type="checkbox"  name="istrialavailable" id="istrialavailable" <?php if ($trialavail==0) {   } else { echo 'checked="checked"';}?>/>
                                            </td>
										</tr>
                                        <tr><td style="height:20px;"></td></tr>
                                        
                                       <!-- <table border="0" cellpadding="0" cellspacing="0" class="normal_text" width="100%">
                                              <tr>
                                               <td style="padding-left:125px;"></td>
                                                <td class="textnormal">Download URL of Trial:	
                                                 <input type="text" style="width:400px;" name="trailurl" id="trailurl" value="">
                                                </td>
											 </tr>
                                            </table>-->
                                      	<tr>
											<td class="textnormal" style="padding-left:20px; padding-right:10px;" valign="top">Download URL of Trial</td>  	
											<td><input type="text" style="width:400px;" name="trialurldownload" id="trialurldownload" value="<?php echo $downloadtrialurl;?>">
                                            </td>
										</tr>
                                        <tr><td style="height:20px;"></td></tr>
                                        <?php
										}
										?>
                                        <!--trail available ends-->
										 <tr>
											<td class="textnormal" style="padding-left:20px; padding-right:10px;" valign="top">Original Price: </td>
											<td><input type="text" style="width:100px;" name="originalprice" id="originalprice" value="<?php echo $OriginalPrice;?>">
                                             <br><font color="#999999">Price of one package. DO NOT enter a dollar sign ($)</font>
                                            </td>
										</tr> 
                                        <tr><td style="height:20px;"></td></tr>
										<tr>
											<td class="textnormal" style="padding-left:20px; padding-right:10px;" valign="top">Sale Price: </td>
											<td><input type="text" style="width:100px;" name="saleprice" id="saleprice" value="<?php echo $SalesPrice;?>">
                                           <br><font color="#999999">Sale Price of one package. If not on sale, this should be the same as original price.<br /> DO NOT enter a dollar sign ($)</font>
                                            </td>
										</tr>
                                         <tr><td style="height:20px;"></td></tr>
										<!-- <tr>
											<td class="textnormal" style="padding-left:20px; padding-right:10px;" valign="top">Allow Free Sample:	
											</td>
											<td><input type="checkbox"  name="freesample" id="freesample" <?php if ($FreeSampleFlag==0) {   } else { echo 'checked="checked"';}?>>
                                             <br><font color="#999999">If checked, customer will be able to order a sample for free, plus shipping.</font>
                                            </td>
										</tr> -->
                                        <tr><td style="height:20px;"></td></tr>
										<tr>
											<td class="textnormal" style="padding-left:20px; padding-right:10px;" valign="top">Product Photo</td>
											<td><input type="file" name="imagefile" id="imagefile"/> <br />
                                            <img src="../public/assets/images/productimages/<?php echo $ProductPhoto;?>" height="50" width="50" style="padding:10px;"  name="img1" id="img1"/>
                                          
                                            </td>
										</tr>
                                        
                                        <tr><td style="height:20px;"></td></tr>
										<!-- <tr>
											<td class="textnormal" style="padding-left:20px; padding-right:10px;" valign="top">Quantity Per Package:</td>
											<td><input type="text" style="width:100px;" name="quantityperpackage" id="quantityperpackage" value="<?php echo $QtyPerPackage;?>">
                                            <br><font color="#999999">Quantity in each package or minimum order quantity.</font>
                                            </td>
										</tr> -->
                                        
                                        <tr><td style="height:20px;"></td></tr>
										<tr>
											<td class="textnormal" style="padding-left:20px; padding-right:10px;" valign="top">Sort Order:</td>
											<td><input type="text" style="width:100px;" name="sortorder" id="sortorder" value="<?php echo $SortOrder;?>">
                                            
                                            </td>
										</tr>
										<tr><td style="height:20px;"></td></tr>
										<tr>
											<td class="textnormal" style="padding-left:20px; padding-right:10px;" valign="top">Show Meeting Defender Site:</td>
											<td><input type="checkbox"  name="meetingdefender" id="meetingdefender" <?php if ($meetingdefender==0) {   } else { echo 'checked="checked"';}?>>
                                            
                                            </td>
										</tr>
										
										
                                        
                                        <tr><td style="height:20px;"></td></tr>
										
										<tr>
											<td class="textnormal">&nbsp;</td>
											<td><input type="submit" id="Add" name="Add" value=" Submit " class="bttn">
                                           <input type="hidden" name="imagefile" id="imagefile" />
                                            <input type="hidden" name="id" id="id" value="<?php echo $PID;?>" />
                                            <input type="hidden" name="img" id="img" value="<?php echo $ProductPhoto;?>" />
                                            <input type="hidden" name="catid" id="catid" value="<?php echo $CategoryID;?>" />
											&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