mirror of
https://github.com/php/web-pres2.git
synced 2026-03-23 23:12:07 +01:00
Added missing.xml to show when an XML file is missing. Not yet tested.
This commit is contained in:
4
show.php
4
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");
|
||||
|
||||
9
tools/missing.xml
Normal file
9
tools/missing.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<slide title="Missing Slide">
|
||||
|
||||
<break lines="5" />
|
||||
|
||||
<example fontsize="1.8em" marginleft="1.2em" marginright="0.5em">
|
||||
The desired slide is missing. Please contact the author (with the URL) so that he or she may update this talk.
|
||||
</example>
|
||||
|
||||
</slide>
|
||||
Reference in New Issue
Block a user