summaryrefslogtreecommitdiffstats
path: root/examples
diff options
authorfche <fche>2008-11-19 18:16:21 +0000
committerfche <fche>2008-11-19 18:16:21 +0000
commit17a68493116e1b6ea24edd0e1fa4473f0733abb5 (patch)
treef046a6f126a2a3f544f7375e1eca9561236a6485 /examples
parentnone (diff)
none
Diffstat (limited to 'examples')
-rw-r--r--examples/.htaccess1
-rw-r--r--examples/gitweb.php1
2 files changed, 1 insertions, 1 deletions
diff --git a/examples/.htaccess b/examples/.htaccess
index f3263877..dc030302 100644
--- a/examples/.htaccess
+++ b/examples/.htaccess
@@ -1,4 +1,3 @@
1RewriteEngine On 1RewriteEngine On
2RewriteBase /systemtap/examples/ 2RewriteBase /systemtap/examples/
3RewriteRule ^examples/$ gitweb.php?file=index.html
4RewriteRule ^(.*)$ gitweb.php?file=$1 [NE] 3RewriteRule ^(.*)$ gitweb.php?file=$1 [NE]
diff --git a/examples/gitweb.php b/examples/gitweb.php
index 86647038..465c6a52 100644
--- a/examples/gitweb.php
+++ b/examples/gitweb.php
@@ -4,6 +4,7 @@ $uri1 = $_SERVER["QUERY_STRING"];
4$uri2 = $_REQUEST["file"]; 4$uri2 = $_REQUEST["file"];
5# $uri = "/systemtap/examples/index.html"; 5# $uri = "/systemtap/examples/index.html";
6$gitfile0 = ereg_replace (".*/examples/", "", $uri); 6$gitfile0 = ereg_replace (".*/examples/", "", $uri);
7if ($gitfile0 == "") { $gitfile0 = "index.html"; }
7$gitfile1 = "testsuite/systemtap.examples/$gitfile0"; 8$gitfile1 = "testsuite/systemtap.examples/$gitfile0";
8# echo ("$uri $uri1 $uri2 $gitfile0 $gitfile1\n"); 9# echo ("$uri $uri1 $uri2 $gitfile0 $gitfile1\n");
9$pathparts = pathinfo($gitfile1); 10$pathparts = pathinfo($gitfile1);