MV_PREV_PAGE — contains the relative pathname of the last page read
This variable contains relative, system-wide path of the previous page served, without the suffix. The variable is not set in the configuration files, but is manipulated by the Interchange daemon while it is runnning.
Example: Reading the value of MV_PREV_PAGE
Add the following to a test Interchange page:
Previous filename: @@MV_PREV_PAGE@@
Interchange 5.7.0:
Source: lib/Vend/Util.pm (rev. 2.120 from Sat Sep 27 00:01:21 2008)
Line 1105 (context shows lines 1095-1109 in readin():1090)
my($fn, $contents, $gate, $pathdir, $dir, $level);
local($/);
if($file =~ m{[\[<]}) {
::logGlobal("Possible code/SQL injection attempt with file name '%s'", $file);
$file = escape_chars($file);
::logGlobal("Suspect file changed to '%s'", $file);
}
$Global::Variable->{MV_PREV_PAGE} = $Global::Variable->{MV_PAGE}
if defined $Global::Variable->{MV_PAGE};
$Global::Variable->{MV_PAGE} = $file;
$file =~ s#^\s+##;