Changeset 55
- Timestamp:
- 06/25/05 16:14:05
- Files:
-
- trunk/index.php (modified) (1 diff)
- trunk/viewSource.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/index.php
r2 r55 19 19 20 20 // get requested file 21 if( isset( $_GET["file"] ) ) 22 $file = $_GET["file"]; 23 elseif( isset( $HTTP_GET_VARS["file"] ) ) 24 $file = $HTTP_GET_VARS["file"]; 21 $file = isset( $_GET["file"] ) 22 ? $_GET['file'] 23 : false; 25 24 26 25 // instantiate renderer trunk/viewSource.php
r50 r55 1 1 <?PHP 2 2 /** 3 * ++Display pretty version of XML source3 * Display pretty version of XML source 4 4 * Just open this file with viewSource.php?file=example.xml to view the XML source of a file 5 5 * Config is in config/xmlPretty.xml and the HTML template in templates/xmlPretty.tmpl 6 6 * 7 * $Id$7 * $Id$ 8 8 * 9 9 * @package patXMLRenderer … … 22 22 include( "include/patXMLPretty.php" ); 23 23 24 if( !isset( $file ) || $file == "" ) 25 $file = "index.xml"; 24 $file = isset( $_GET['file'] ) 25 ? $_GET['file'] 26 : 'index.xml'; 26 27 27 28 if( !file_exists( $xmlDir."/".$file ) )
