<?php # Transitional; supports both template APIs
-# 2006 Public Domain
-#
-# This file was placed into the public domain on November 16th, 2008 by its
-# sole author Jason Woofenden, so that if you need similar behavior, you can
-# copy this file into your website, and change it as needed.
+# This program is in the public domain within the United States. Additionally,
+# we waive copyright and related rights in the work worldwide through the CC0
+# 1.0 Universal public domain dedication, which can be found at
+# http://creativecommons.org/publicdomain/zero/1.0/
+
# This file is meant to run for every page view. It finds PHP and HTML files
# that match the basename of the url, and loads/executes them. It also allows
} else { # no dest arg
$basename = $_SERVER['REDIRECT_URL'];
+ $basename = preg_replace('|[?].*|', '', $basename); # apache 2.4.17
$basename = preg_replace('|.*/|', '', $basename);
$basename = preg_replace('|\.html?$|', '', $basename);
if($basename == '') {