admin
Karma: 101
|
Re:direct download links - "illegal download - 2009/06/25 21:52
I'm not certain, the code gets quite complex and its whole aim is to avoid direct downloading!
But I suggest trying modifications in ../com_remository/p-classes/remositoryFile.php around lines 376 to 384, the basicDownloadLink method. You could change it to:
| Code: |
public function basicDownloadLink ($autodown) {
// Force autodown so as to get direct download links
$autodown = true;
if
($autodown) $function = 'download';
else $function = 'startdown';
if
($this->islocal AND $autodown) $fname = $this->realname;
else $fname = null;
$repository = remositoryRepository::getInstance();
$downlink = $repository->
RemositoryBasicFunctionURL($function,$this->id, null, null, null, $fname);
return
$downlink;
}
|
You still won't get a permanent link, the link will only be valid for about a day before the check code changes.
Martin Brampton aka Counterpoint http://aliro.org http://black-sheep-research.com |