svn: /web/pres2/trunk/ show.php tools/missing.xml
| From: | Philip Olson | Date: | Mon, 20 Sep 2010 04:40:21 +0000 |
| Subject: | svn: /web/pres2/trunk/ show.php tools/missing.xml | ||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-1664@lists.php.net to get a copy of this message | ||
philip Mon, 20 Sep 2010 04:40:21 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=303595
Log:
Added missing.xml to show when an XML file is missing. Not yet tested.
Changed paths:
U web/pres2/trunk/show.php
A web/pres2/trunk/tools/missing.xml
Modified: web/pres2/trunk/show.php
===================================================================
--- web/pres2/trunk/show.php 2010-09-20 04:30:01 UTC (rev 303594)
+++ web/pres2/trunk/show.php 2010-09-20 04:40:21 UTC (rev 303595)
@@ -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");
Added: web/pres2/trunk/tools/missing.xml
===================================================================
--- web/pres2/trunk/tools/missing.xml (rev 0)
+++ web/pres2/trunk/tools/missing.xml 2010-09-20 04:40:21 UTC (rev 303595)
@@ -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>
Property changes on: web/pres2/trunk/tools/missing.xml
___________________________________________________________________
Added: svn:keywords
+ Id Rev Revision Date LastChangedDate LastChangedRevision Author LastChangedBy HeadURL URL
Added: svn:eol-style
+ native