Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 18.118.137.13
Current Path : /var/www/html/acu/ |
| Current File : /var/www/html/acu/docverify.php |
<?php
$v1 = $_GET['v1'];
$varr = explode('_',$v1);
if(count($varr) == 1)
{
$v1 = $varr[0];
$v5 = '040';
$v6 = 'MC';
}
else
{
$v1 = $varr[2];
$v5 = $varr[0];
$v6 = $varr[1];
}
$v2 = $_GET['v2'];//exam A
$v3 = $_GET['v3'];//year 20172
$v4 = substr($v3,-1);//type 2
$v3 = substr($v3, 0, -1);
//mc_033_regno_exam_year_type.pdf
$filename = $v6.'_'.$v5.'_'.$v1.'_'.$v2.'_'.$v3.'_'.$v4.'.pdf';
//var_dump($filename);
$url = "https://university-marks-cards.s3.ap-south-1.amazonaws.com/040/doc_verify/".$filename;
Redirect($url, true);
function Redirect($url, $permanent = false)
{
if (headers_sent() === false)
{
header('Location: ' . $url, true, ($permanent === true) ? 301 : 302);
}
else
{
echo "header sent";
}
exit();
}
?>
|