Shell File Manager
<?php $page = 'download' ?>
<?php $page2 = 'Certifications' ?>
<?php
session_start();
include_once('../include/config.php');
$log_status = $_GET['log_status'];
if ($log_status == '') {
header("Location: ../Login/login-user.php");
}
if ($log_status == $_SESSION['log_status']) {
$result = mysqli_query($connection, "SELECT * FROM usertable where log_status='$log_status'");
$row = mysqli_fetch_array($result);
$user_id = $row['id'];
// print_r($user_id);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<title>CamScan FZCO |Downloads</title>
<?php
include('../include/header.php');
include('../include/nav.php');
?>
<body>
<section id="gallery" class="gallery">
<div class="container" data-aos="fade-up">
<div class="section-title ">
<h2>Certification</h2>
<div style="text-align: left;">
<?php
$certificat = "SELECT * FROM certifications where user_id=$user_id ";
$certificat_run = mysqli_query($connection, $certificat);
if (mysqli_num_rows($certificat_run) > 0) {
foreach ($certificat_run as $certificatfor) {
// print_r($pritems1);
$result = $certificatfor['result'];
if ($result == 1) {
?>
<h5> Congratulations , you have passed the exam provided by CamScan FZCO . can receive and print the certificate by clicking on <a href="Certificate/Class1/Certificate.php?user_id=<?php print_r($user_id); ?>&log_status=<?php print_r($log_status); ?>"> Download <center> <img src="../assets/img/website/pass.gif" alt="this slowpoke moves" width="400" /> </center> </a> </h5>
<?php
} else {
?>
<h5> Unfortunately, You failed the exam provided by CamScan FZCO <center> <img src="../assets/img/website/fail.gif" alt="this slowpoke moves" width="400" /> </center>
</h5>
<?php
}
}
}
?>
</div>
</div>
</div>
</section><!-- End Gallery Section -->
</main><!-- End #main -->
<!-- ======= Footer ======= -->
<?php
include '../include/footer.php';
?>
</body>
</html>
<?php
} else {
header("Location: ../Login/login-user.php");
}
?>
Shell File Manager Version 1.1, Coded By Shell
Email: [email protected]