Got the main.php URL Rewrite redirection going.
What would be really nice, admittedly largely a vanity thing, would be if the index file was in an admin configurable variable or constant.
Such that something like $res[$k]->download_url = $GLOBALS['WWW_ROOT'] .'index.php?t=getfile&id='. $v->id;
was $res[$k]->download_url = $GLOBALS['WWW_INDEX'] .'?t=getfile&id='. $v->id;
where $GLOBALS['WWW_INDEX'] = $GLOBALS['WWW_ROOT'] .$ADMIN_SELECTED_NAME;
or ...
$res[$k]->download_url = $GLOBALS['WWW_ROOT'] . $GLOBALS['WWW_INDEX'] .'?t=getfile&id='. $v->id;
where $GLOBALS['WWW_INDEX'] = $ADMIN_SELECTED_NAME; and $ADMIN_SELECTED_NAME of course defaults to 'index.php' if not set in both instances.
This would stop the link jumping on every url.
Admitted a long shot request which would need changing several lines of code where index.php is hard coded but would be a nice touch though.
I can dream.
[Updated on: Sat, 02 April 2011 17:59]
Report message to a moderator