$get_download=$_GET["download"];
$get_date=substr($get_download, 0, 15);
$de_get_date=base64_decode($get_date);
$current_date=date("Y/m/d");
if($de_get_date!=$current_date)
{
if($current_lang=='fr')
{
echo"S'il vous plaît Connectez-vous avant le téléchargement.";
}
else if($current_lang=='us')
{
echo"Please Login before download";
}
else if($current_lang=='th')
{
echo"Please Login before download";
}
}
else
{
$de_file_name=substr($get_download, 16);
$get_file_name=base64_decode($de_file_name);
// header("location: http://127.0.0.1/sacha/letter/$get_file_name");
header("location: http://sacha-champa.org/g/letter/$get_file_name");
}
?>