One Hat Cyber Team
Your IP :
216.73.217.146
Server IP :
50.6.229.107
Server :
Linux server.hostburly.com 5.14.0-611.38.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Mar 10 17:21:28 EDT 2026 x86_64
Server Software :
Apache
PHP Version :
8.2.30
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
andjemzt
/
nportal.andjemztech.com
/
e-logbook
/
Edit File:
accept.php
<?php include_once 'includes/connection.php'; include_once 'includes/functions.php'; include_once 'includes/email_functions.php'; ?> <script src="vendor/jquery-3.2.1.min.js"></script> <script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script> <?php if(isset($_GET["accept"])&&isset($_GET["rqid"])){ $accept = $_GET["accept"]; $rqid = $_GET["rqid"]; ?> <input type="hidden" id="logid" value="<?php echo $rqid;?>"> <?php if($logbook=get_current_logbook_by_id($connect, $rqid)){ if($logbook["accept_link"]==1){ ?> <script> alert("This Candidate has already been accepted by you"); setTimeout(function(){ window.location = 'index.php'; }, 3000); </script> <?php // sleep(3); // header("Location: http://www.niqs.org.ng"); }elseif($logbook["accept_link"]==0){ ?> <script> alert("this Candidate has already been Rejected by you"); setTimeout(function(){ window.location = 'index.php'; }, 3000); </script> <?php }elseif($logbook["accept_link"]==substr($accept, 0,strlen($accept)-32 )){ if("ed2b5c0139cec8ad2873829dc1117d50"==substr($accept,-32)){ //accept ?> <script> var logbook_id=$('#logid').val(); $.ajax({ type: "POST", url: "ajax/ajaxurl.php", data: {accept_candidate:logbook_id}, dataType: "text", cache: true, success: function(response){ if (response === "true") { swal('Candidate Accepted!', 'Candidate has been added to the list of Candidates you are to supervise ', 'success'); window.location = 'supervisor.php'; }else{ swal('Error!', 'Something went wrong', 'error'); } } }) </script> <?php }else{ //reject ?> <script> var logbook_id=$('#logid').val(); $.ajax({ type: "POST", url: "ajax/ajaxurl.php", data: {reject_candidate:logbook_id}, dataType: "text", cache: true, success: function(response){ if (response === "true") { swal('Candidate Rejected', ' ', 'success'); setTimeout( function() { var links="index.php"; window.location = 'e-logbook/supervisor.php'; }, 3000); }else{ swal('Error!', 'Something went wrong', 'error'); } } }) </script> <?php } }else{ ?> <script> window.location = 'index.php'; </script> <?php } }else{ ?> <script> window.location = 'index.php'; </script> <?php } }else{ ?> <script> window.location = 'index.php'; </script> <?php } ?>
Simpan