Fargo
11-13-2004, 12:39 AM
Well, just when I thought I was in the clear...
The code that im working on requires me to send the pagename as a variable in the construct_page_nav() syntax. This works out just fine as a standalone php file, but its going to cause a little problem when I convert it over to a module.
Im trying to prevent creation of unnecessary CMPS pages so if its possible, is there any way to retrieve the url of the current page and assign it to a variable?
current call to construct_page_nav is this:
$pagenav = construct_page_nav($rows,"game_info.php?$session[sessionurl]siteid=$siteid&do=screenshots", "&pp=$perpage");
but I would really like to do something like this:
$pagenav = construct_page_nav($rows,"$thispage?$session[sessionurl]siteid=$siteid&do=screenshots", "&pp=$perpage");
The code that im working on requires me to send the pagename as a variable in the construct_page_nav() syntax. This works out just fine as a standalone php file, but its going to cause a little problem when I convert it over to a module.
Im trying to prevent creation of unnecessary CMPS pages so if its possible, is there any way to retrieve the url of the current page and assign it to a variable?
current call to construct_page_nav is this:
$pagenav = construct_page_nav($rows,"game_info.php?$session[sessionurl]siteid=$siteid&do=screenshots", "&pp=$perpage");
but I would really like to do something like this:
$pagenav = construct_page_nav($rows,"$thispage?$session[sessionurl]siteid=$siteid&do=screenshots", "&pp=$perpage");