Name

MV_PREV_PAGE — contains the relative pathname of the last page read

SYNOPSIS

DESCRIPTION

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.

VARIABLE TYPE

Global variable

EXAMPLES

Example: Reading the value of MV_PREV_PAGE

Add the following to a test Interchange page:

Previous filename: 

NOTES

This variable is not intended to be written to.

AVAILABILITY

MV_PREV_PAGE is available in Interchange versions:

4.6.0-5.9.0 (git-head)

SOURCE

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+##;

AUTHORS

Interchange Development Group

SEE ALSO

MV_PAGE(7ic)

DocBook! Interchange!