Skip to content

Instantly share code, notes, and snippets.

function ign_filter_downloads() //callback routine called by file_download
{
global $id, $file_error, $ign_user, $pretext, $s;
if(empty($id)) {
//no $id means we need to reparse the URL...
extract($pretext);
if($prefs['permlink_mode']=='messy') {
$id = gps('id'); //get $id from GET
} else { //we need to parse the uri