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:
Interchange 5.9.0:
Source: lib/Vend/Util.pm
Line 1180 (context shows lines 1170-1184 in readin():1165)
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+##;