|
|
|
|
|
Re: Classes declared multiple times? [message #164918 is a reply to message #164917] |
Sat, 02 April 2011 13:32 |
|
Dayo
Messages: 101 Registered: April 2011
Karma: 0
|
Senior Member |
|
|
Collisions everywhere!!!
Looks like it is basically impossible to call index.php and fudapi.inc.php in the same flow with the problem being the way db.inc is handled by the software.
I.E. it appears in some form or another several times in different places.
I hope in the upcoming version, a Dont Repeat Yourself and/or Duplication Is Evil approach is embraced.
I'll have been home and dry if the db.inc simply lived in one location and every call to it was conditional.
So close yet so far. Damn!!!
Any one have any luck in taming this db class?
[Updated on: Sat, 02 April 2011 13:33] Report message to a moderator
|
|
|
|
|
|
Re: Classes declared multiple times? [message #164925 is a reply to message #164921] |
Sat, 02 April 2011 17:54 |
|
Dayo
Messages: 101 Registered: April 2011
Karma: 0
|
Senior Member |
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|