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 : 52.14.234.146
<?php
$v1 = $_GET['v1'];
$varr = explode('_',$v1);
if(count($varr) == 1)
{
$v1 = $varr[0];
$v5 = '035';
$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 = "http://www.logisys.net.in/gcc/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();
}
?>
|