BLACKSITE
:
3.139.237.5
:
103.154.184.216 / www.astitvaad.com
:
Linux vps.readyhost.in 4.18.0-553.6.1.el8.x86_64 #1 SMP Thu May 30 04:13:58 UTC 2024 x86_64
:
/
home
/
astitvaad
/
public_html
/
admin
/
Upload File:
files >> /home/astitvaad/public_html/admin/meeting.php
<?php session_start(); if(!isset($_SESSION['username'])) { header("location:login.php"); exit(); } ?> <?php include '../includes/connection.php'; if(isset($_POST['submit'])) { $date=$_POST['date']; $agenda = $_POST['agenda']; $photo=$_FILES['photo']['name']; $tmp_name=$_FILES['photo']['tmp_name']; $remarks=$_POST['remarks']; $sql="INSERT INTO meeting(date,agenda,photo,remarks) VALUES('$date','$agenda','$photo','$remarks')"; $result= mysql_query($sql); $moved= move_uploaded_file($tmp_name, "../images/".$photo); if($moved) { echo ("<SCRIPT LANGUAGE='JavaScript'> window.alert('Meeting has been Added') window.location.href='meeting.php'; </SCRIPT>"); } else { echo ("<SCRIPT LANGUAGE='JavaScript'> window.alert('Plz Try Again') window.location.href='meeting.php'; </SCRIPT>"); } } ?> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>ScDisabilities</title> <?php include 'link.php';?> <link rel="shortcut icon" href="../images/favicon.png"> </head> <body> <div id="wrapper"> <nav class="navbar navbar-default top-navbar" role="navigation"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".sidebar-collapse"> <span class="sr-only"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand waves-effect waves-dark" href="dashboard.php"><i class="large material-icons"></i> <strong>ScDisabilities</strong></a> <div id="sideNav" href=""><i class="material-icons dp48"></i></div> </div> </nav> <div id="wrapper"> <nav class="navbar navbar-default top-navbar" role="navigation"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".sidebar-collapse"> <span class="sr-only"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand waves-effect waves-dark" href="dashboard.php"><i class="large material-icons"></i> <strong>ScDisabilities</strong></a> <div id="sideNav" href=""><i class="material-icons dp48"></i></div> </div> <a href="logout.php" class="pull-right"><img src="exit.jpg" width="50" class="pull-right"> <a href="changepassword.php" class="pull-right"><img src="changepass.jpg" width="50" class="pull-right"> </nav> <?php include 'header.php'?> <div id="page-wrapper" > <div class="header"> </div> <div id="page-inner"> <div class="row"> <div class="col-lg-12"> <div class="card"> <img src="../images/logo.png"width="120px"height="60px"> <div class="card-action"><h3 align="center"> <font color="#008000">Meeting Form</font></h3> </div> <div class="card-content"> <form class="col s12" method="post" enctype="multipart/form-data"> <div class="row"> <div class="input-field col s6"> <input id="" type="date" name="date" class="validate"> <label for="title"><font size="3px">Uploaded Date</font></label> </div> <div class="input-field col s6"> <input id="" type="text" name="agenda" class="validate"> <label for="title"><font size="3px">Agenda</font></label> </div> </div> <div class="file-field input-field"> <div class="btn"> <span>Upload Image From Here</span> <input type="file" name="photo"> </div> <div class="file-path-wrapper"> <input class="file-path validate" type="text" name="photo" placeholder="Upload one or more files"> </div> </div> <div class="row"> <div class="input-field col s6"> <input id="" type="text" name="remarks" class="validate"> <label for="title"><font size="3px">Remarks</font></label> </div> </div> <input type="submit" name="submit" value="submit"> </form> <div class="clearBoth"></div> </div> </div> </div> </div> <?php include 'footer.php';?> </div> </div> </div> <?php include 'script.php';?> </body> </html>