web/html/participate/schedule index.php,1.8,1.9

Patrick Barnes (nman64) fedora-extras-commits at redhat.com
Thu Dec 8 03:05:04 UTC 2005


Author: nman64

Update of /cvs/fedora/web/html/participate/schedule
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv18254/schedule

Modified Files:
	index.php 
Log Message:
Without header() working...


Index: index.php
===================================================================
RCS file: /cvs/fedora/web/html/participate/schedule/index.php,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- index.php	8 Dec 2005 02:38:53 -0000	1.8
+++ index.php	8 Dec 2005 03:05:01 -0000	1.9
@@ -1,3 +1,41 @@
 <?php
-  header("Location: http://". $_SERVER['HTTP_HOST'] ."/About/schedule");
+//
+// Easily-changeable template for redirection.
+//
+
+$NEWURL="http://fedora.redhat.com/About/schedule/";
+
+include("site.inc");
+
+$template = new Page;
+$template->initCommon();
+$template->displayHeader();
+
+?>
+<h1>This Page Has Moved</h1>
+
+<p>
+The new location is:
+</p>
+
+<ul>
+ <li><a href="<?php echo $NEWURL; ?>"><?php echo $NEWURL; ?></a></li>
+</ul>
+
+<p>
+Please update your links or bookmarks accordingly.
+</p>
+
+<?php
+
+$filename = $_SERVER['DOCUMENT_ROOT'].$_SERVER['PHP_SELF'];
+if (file_exists($filename)) {
+    $moddate=filemtime($filename);
+} else {
+    $moddate=time();
+}
+$moddate=$moddate - date("Z", $moddate);
+
+$template->displayFooter('$Date$moddate) .' UTC $');
+
 ?>




More information about the fedora-extras-commits mailing list