diff options
| author | fche <fche> | 2008-11-19 18:16:21 +0000 | 
|---|---|---|
| committer | fche <fche> | 2008-11-19 18:16:21 +0000 | 
| commit | 17a68493116e1b6ea24edd0e1fa4473f0733abb5 (patch) | |
| tree | f046a6f126a2a3f544f7375e1eca9561236a6485 /examples | |
| parent | none (diff) | |
none
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/.htaccess | 1 | ||||
| -rw-r--r-- | examples/gitweb.php | 1 | 
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 @@ | |||
| 1 | RewriteEngine On | 1 | RewriteEngine On | 
| 2 | RewriteBase /systemtap/examples/ | 2 | RewriteBase /systemtap/examples/ | 
| 3 | RewriteRule ^examples/$ gitweb.php?file=index.html | ||
| 4 | RewriteRule ^(.*)$ gitweb.php?file=$1 [NE] | 3 | RewriteRule ^(.*)$ 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); | 
| 7 | if ($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); | 
