fix _FILE_ and add no-wrapper tag user/StephenGWills/egweb
authorStephen Wills <swills@beyond-print.com>
Thu, 10 Jan 2013 22:44:18 +0000 (17:44 -0500)
committerStephen Wills <swills@beyond-print.com>
Thu, 10 Jan 2013 22:44:18 +0000 (17:44 -0500)
downloads.php

index f5aa998..ae4fcca 100644 (file)
@@ -7,11 +7,14 @@
 </head>
 <body>
 <div id="wrap">
-<?php include "/var/www/open-ils.org/incl/header.php" ;?>
-<?php include "/var/www/open-ils.org/incl/news_box.php" ;?>
-<?php include "/var/www/open-ils.org/incl/sidebar.php" ;?>
-<?php include "/var/www/open-ils.org/incl/downloads_sidebar.php" ;?>
+<?php if($_REQUEST['n'] != 't') { ?>
+<?php define('DOCUMENT_ROOT', dirname(realpath(__FILE__)).'/'); ?>
+<?php include DOCUMENT_ROOT . "/incl/header.php" ;?>
+<?php include DOCUMENT_ROOT . "/incl/news_box.php" ;?>
+<?php include DOCUMENT_ROOT . "/incl/sidebar.php" ;?>
+<?php include DOCUMENT_ROOT . "/incl/downloads_sidebar.php" ;?>
 <!--end side-->
+<?php } ?>
 <div id="pagebody">
 <h1>Evergreen Downloads</h1>
 <p class="content">Evergreen depends on the following technologies Perl, C, JavaScript, XML, XPath, XSLT, XMPP, <a href="opensrf.php">OpenSRF</a>, Apache, mod_perl, and PostgreSQL.</p>
 <ul class="bullet"><li> For Evergreen commits, subscribe to <a href="http://list.georgialibraries.org/mailman/listinfo/open-ils-commits">open-ils-commits</a></li><li> For OpenSRF commits, subscribe to  <a href="http://list.georgialibraries.org/mailman/listinfo/opensrf-commits">opensrf-commits</a></li></ul>
 </div>
 <!--end pagebody-->
-<?php include "/var/www/open-ils.org/incl/footer.php"; ?>
+<?php include DOCUMENT_ROOT . "/incl/footer.php"; ?>
 </div>
 <!--end wrapper-->
 </body></html>