cvs: php-gtk-web /include prepend.php
[email protected] ("Steph Fox") Tue, 11 Jul 2006 00:18:30 -0000
| Newsgroups | php.gtk.webmaster |
|---|---|
| Message-ID | <cvssfox1152577110@cvsserver> |
sfox Tue Jul 11 00:18:30 2006 UTC
Modified files:
/php-gtk-web/include prepend.php
Log:
This is either an inspired move or a very bad idea. Only a server refresh will tell!
http://cvs.php.net/viewvc.cgi/php-gtk-web/include/prepend.php?r1=1.4&r2=1.5&diff_format=u
Index: php-gtk-web/include/prepend.php
diff -u php-gtk-web/include/prepend.php:1.4 php-gtk-web/include/prepend.php:1.5
--- php-gtk-web/include/prepend.php:1.4 Thu May 15 05:08:22 2003
+++ php-gtk-web/include/prepend.php Tue Jul 11 00:18:30 2006
@@ -1,5 +1,11 @@
<?php
+if (isset($_SERVER['PATH_INFO'])) {
+ $clean = str_replace($_SERVER['PATH_INFO'], '', $_SERVER['PHP_SELF']);
+ header("Location: $clean");
+ exit;
+}
+
require_once 'site.php';
require_once 'layout.php';