Download with only one parameter
Status: Beta
Brought to you by:
tsdogs
To allow the download with only one parameter, to have a even shorter url, modify index.php in www directory.
Add the following lines, below the $action ifconditions:
if(isset($_GET['i']) && (!isset($_GET['r'])))
{
$action = 'd';
}
In file lib/modules/default/files.inc.php, change line 266 to:
$finfo[0]['downloadlink']= app()->config['WWW_SERVER'].app()->config['WWW_ROOT'].'/?'.$i.'='.$finfo[0]['id'];
Anonymous