210
Well I found a pseudo solution for me and if it can be of any use to someone here are my changes:
if (!preg_match("/^ed2k*:///i", $url) && $download[1]=='') {
// Header("Location: $url");
}
//header("Location: $download[1]");
//header("Content-Disposition: attachment; filename=$download[1]");
?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pt_BR" lang="pt_BR">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta http-equiv="Refresh" content="2;url=<?php Print ("$url"); ?>" />
<style type="text/css">
body {
background-color : #fcfcfc;
color: #000000;
font-weight: normal;
font-size: 12px;
font-family: Trebuchet MS,Verdana, Arial, Helvetica, sans-serif;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
.redirect {
width: 70%;
margin: 110px;
text-align: center;
padding: 15px;
text-align:center;
border-right: #e0e0e0 1px solid;
border-top: #e0e0e0 1px solid;
border-left: #e0e0e0 1px solid;
color: #666666;
border-bottom: #e0e0e0 1px solid;
background-color: #f6f6f6;
text-align: center;
}
.redirect a:link {
color: #666666;
text-decoration: none;
font-weight: bold;
}
.redirect a:visited {
color: #666666;
text-decoration: none;
font-weight: bold;
}
.redirect a:hover {
color: #999999;
text-decoration: underline;
font-weight: bold;
}
hr{
height: 3px;
border: 3px #E18A00 solid;
filter : Alpha(Opacity=100,FinishOpacity=10,Style=2);
width: 95%;
}
span.bigtext { font-size: 16px; font-weight: bold; }
</style>
<title>Simcity Brasil - O Simcity4 ao som de samba!</title>
</head>
<body>
<div align="center">
<div class="redirect">
<span class="bigtext">Seu download irá se iniciar em 5 segundos...</span>
<hr />
<p>
<?php
Print (" Caso o Download não se inicie automaticamente <a href=$url> Clique aqui </a> ");
?>
.</p>
<p><A href="javascript:window.close()">Fechar esta janela!</a></p>
</div>
</div>
</body>
</html>
<?php
//readfile($myts->oopsHtmlSpecialChars($url));
exit();
?>
There is still a problem: the link to the file now can be known. Norhing is perfect :(