diff --git a/show.php b/show.php index f960ec6..f0bf6f0 100644 --- a/show.php +++ b/show.php @@ -52,6 +52,10 @@ if(!isset($_SESSION['titlesLoaded'])) $_SESSION['titlesLoaded'] = 0; $presFile = str_replace('..','',(string)$_SESSION['currentPres']); // anti-hack $presFile = "$presentationDir/$presFile".'.xml'; + + if (!file_exists($presFile)) { + $presFile = "$baseDir/tools/missing.xml"; + } // Load in the presentation $fh = fopen($presFile, "rb"); diff --git a/tools/missing.xml b/tools/missing.xml new file mode 100644 index 0000000..b4506b4 --- /dev/null +++ b/tools/missing.xml @@ -0,0 +1,9 @@ + + + + + +The desired slide is missing. Please contact the author (with the URL) so that he or she may update this talk. + + +