D0R4H4X0R SH3LL

Server Information

Server: LiteSpeed
System: Linux ezra.momentumhosting.cloud 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64
User: equalcompa ( 1022 )
PHP Version: 8.2.28
Python Version: Python is not available
Disabled Functions:Cron, Curl, Ftp, GCC, Mail, Mysql, PKEXEC, Perl, Python, SendMail, Ssh, Wget, dl, exec, passthru, popen, posix_getpwuid, posix_kill, posix_mkfifo, posix_setegid, posix_seteuid, posix_setgid, posix_setpgid, posix_setsid, posix_setuid, posix_uname, proc_close, proc_open, shell_exec, show_source, system

Features

Command Line

Find Longest Directory Path

Scan New PHP Files

Upload File

Directory: /home/equalcompa/domains/equalcompassion.org/public_html/admin-portal/

Current File : /home/equalcompa/domains/equalcompassion.org/public_html/admin-portal/certificate.php

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Certificate Design</title>
<style>
body {
    font-family: 'Arial Rounded MT Bold', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
}

.certificate {
    position: relative; /* Required for absolute positioning */
    width: 100%;
    max-width: 800px;
    margin: 50px auto;
    background-color: #fff;
    border: 10px solid #E95928;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.certificate::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 20px;
    width: 200px; /* Adjust size as needed */
    height: auto;
    background: url('../logo.png')100% 100%; /* Replace 'logo.png' with your logo image */
    opacity: 0.9; /* Adjust opacity as needed */
    pointer-events: none; /* Prevents the watermark from interfering with clicks */
    z-index: -1; /* Ensure the watermark is behind other content */
}

.certificate-header,
.certificate-footer {
    text-align: center;
}

.certificate-title {
    font-size: 32px;
    font-weight: bold;
    color: #E95928;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.certificate-details,
.certificate-text {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
}

.certificate-name {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);
}

.certificate-footer {
    font-size: 18px;
    color: #333;
}

.certificate-signature {
    margin-top: 30px;
    text-align: center;
}

.certificate-signature img {
    width: 200px;
    height: auto;
}

/* Media Query for Responsiveness */
@media screen and (max-width: 600px) {
    .certificate {
        padding: 20px;
		width:300px;
    }
    .certificate-title {
        font-size: 24px;
    }
    .certificate-name {
        font-size: 28px;
    }
    .certificate-details,
    .certificate-text,
    .certificate-footer {
        font-size: 16px;
    }
}

	.btn{
		width:300px;
		padding:10px;
	}
	
	/* Other styles */

.back-button {
    position: absolute;
    top: 20px;
	margin-bottom:20px;
    left: 20px;
    padding: 10px 20px;
    background-color: #E95928;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.back-button:hover {
    background-color: #cc421f;
}

</style>
<script>
function goBack() {
    window.history.back();
}

</script>
</head>
<body>
<button class="back-button" onclick="goBack()">Back</button>
<br><br>
<?php
 include('./ant.php');
 function addTwoYears($dateString) {
    // Create a DateTime object from the input date string
    $date = DateTime::createFromFormat('M d, Y', $dateString);

    // Add 2 years
    $date->modify('+2 years');

    // Format the date back to 'M d, Y'
    return $date->format('M d, Y');
}

// Example usage
$originalDate = date('M d, Y');
$newDate = addTwoYears($originalDate); 
 
 
 if(isset($_REQUEST['del'])){
 mysqli_query($con,"update students set cstatus='Issued' where stud_id='".$_REQUEST['del']."'");
 $dy=date('M d, Y');
 mysqli_query($con,"insert into certificate(stud_id,issueddate,expirydate) values('".$_REQUEST['del']."','".$dy."','".$newDate."')");
 $qs=mysqli_query($con,"select * from students where stud_id='".$_REQUEST['del']."'");
 $rw=mysqli_fetch_assoc($qs);
 }elseif(isset($_REQUEST['v'])){
	  $dy=date('M d, Y');
 $qs=mysqli_query($con,"select * from students where stud_id='".$_REQUEST['v']."'");
 $rw=mysqli_fetch_assoc($qs);	 
 }

 ?>
<div class="certificate">
    <div class="certificate-header">
	<img src="../logo.png" height="40px"/>
        <h1 class="certificate-title">Certificate of Achievement</h1>
        <p class="certificate-details">This is to certify that</p>
        <h2 class="certificate-name"><?php echo $rw['fname']; ?></h2>
        <p class="certificate-text">Has successfully completed the <?php echo $rw['course']; ?></p>
    </div>
    <div class="certificate-footer">
        <p>Issued on <?php echo $dy; ?></p>
    </div>
 
</div>
<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript" src="qrcode.js"></script>
<div style="padding:15px;">
<h2>QR Code for <?php echo $rw['fname']; ?>.</h2>
<p>Click on the Download Button below to Download Code.</p>
<input id="text" type="text" hidden value="https://fairiesaidcare.org/verify/?c=<?php echo $rw['stud_id']; ?>" style="width:80%" /><br />
<div id="qrcode" style="width:300px; height:300px; margin-top:15px;"></div>
<button class="btn" onclick="downloadQR()">Download</button>

<script type="text/javascript">
var qrcode = new QRCode(document.getElementById("qrcode"), {
    width: 300,
    height: 300
});

function makeCode() {
    var elText = document.getElementById("text");

    if (!elText.value) {
        alert("Input a text");
        elText.focus();
        return;
    }

    qrcode.makeCode(elText.value);
}

makeCode();

$("#text").on("blur", function() {
    makeCode();
}).on("keydown", function(e) {
    if (e.keyCode == 13) {
        makeCode();
    }
});

function downloadQR() {
    var qrImage = document.getElementById("qrcode").getElementsByTagName("img")[0];
    var canvas = document.createElement('canvas');
    canvas.width = qrImage.width;
    canvas.height = qrImage.height;
    var context = canvas.getContext('2d');
    context.drawImage(qrImage, 0, 0);

    var link = document.createElement('a');
    link.download = '<?php echo $rw['fname']; ?>.png';
    link.href = canvas.toDataURL('image/png');
    link.click();
}
</script>
</body>
</html>
Directory drwxr-xr-x
css DIR
Directory drwxr-xr-x
icons DIR
Directory drwxr-xr-x
images DIR
Directory drwxr-xr-x
js DIR
Directory drwxr-xr-x
uploads DIR
Directory drwxr-xr-x
vendor DIR
Directory drwxr-xr-x
addproj.php 16.670 KB
File -rw-r--r--
addstud.php 16.539 KB
File -rw-r--r--
ant.php 0.714 KB
File -rw-r--r--
certificate.php 5.538 KB
File -rw-r--r--
dashboard.php 12.578 KB
File -rw-r--r--
download.php 12.431 KB
File -rw-r--r--
eproj.php 16.734 KB
File -rw-r--r--
estud.php 16.702 KB
File -rw-r--r--
File -rw-r--r--
form-element.php 109.741 KB
File -rw-r--r--
gen.html 1.176 KB
File -rw-r--r--
gen.php 1.170 KB
File -rw-r--r--
index.php 4.959 KB
File -rw-r--r--
issue.php 12.453 KB
File -rw-r--r--
issuedc.php 11.827 KB
File -rw-r--r--
jquery.min.js 91.442 KB
File -rw-r--r--
logout.php 0.085 KB
File -rw-r--r--
pending.php 11.983 KB
File -rw-r--r--
qr.php 5.052 KB
File -rw-r--r--
qrcode.js 32.391 KB
File -rw-r--r--
qrcode.min.js 19.460 KB
File -rw-r--r--
reset.php 6.757 KB
File -rw-r--r--
save_blog.php 2.091 KB
File -rw-r--r--
save_proj.php 2.097 KB
File -rw-r--r--
sidebar.php 2.344 KB
File -rw-r--r--
table1.php 115.450 KB
File -rw-r--r--
tables.php 208.188 KB
File -rw-r--r--
tick.gif 317.185 KB
File -rw-r--r--
trash.php 13.152 KB
File -rw-r--r--
update_blog.php 1.989 KB
File -rw-r--r--
File -rw-r--r--
vstud.php 12.438 KB
File -rw-r--r--
widget.php 160.418 KB
File -rw-r--r--
D0R4H4X0R SH3LL