summaryrefslogtreecommitdiffstats
path: root/examples
diff options
authorfche <fche>2008-11-19 17:58:05 +0000
committerfche <fche>2008-11-19 17:58:05 +0000
commit4b1ee6da7ad282f2fd11a1aaf8f6224c49ba20b5 (patch)
tree4c66810e629332ea2c500116d54cb5cd7f47aaf9 /examples
parentnone (diff)
none
Diffstat (limited to 'examples')
-rw-r--r--examples/.htaccess2
-rw-r--r--examples/gitweb.php8
2 files changed, 5 insertions, 5 deletions
diff --git a/examples/.htaccess b/examples/.htaccess
index de498648..dc030302 100644
--- a/examples/.htaccess
+++ b/examples/.htaccess
@@ -1,3 +1,3 @@
1RewriteEngine On 1RewriteEngine On
2RewriteBase /systemtap/examples/ 2RewriteBase /systemtap/examples/
3RewriteRule ^(.*)$ http://sources.redhat.com/git/?p=systemtap.git;a=tree;hb=head;f=testsuite/systemtap.examples/$1 [NE] 3RewriteRule ^(.*)$ gitweb.php?file=$1 [NE]
diff --git a/examples/gitweb.php b/examples/gitweb.php
index 6d0fb9e6..d65f04b4 100644
--- a/examples/gitweb.php
+++ b/examples/gitweb.php
@@ -1,10 +1,10 @@
1<?php 1<?php
2$uri0 = $_SERVER["REQUEST_URI"]; 2$uri = $_SERVER["REQUEST_URI"];
3$uri1 = $_SERVER["QUERY_STRING"]; 3# $uri1 = $_SERVER["QUERY_STRING"];
4$uri = $_REQUEST["file"]; 4# $uri = $_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$gitfile1 = "testsuite/systemtap.examples/$gitfile0"; 7$gitfile1 = "testsuite/systemtap.examples/$gitfile0";
8echo ("$uri0 $uri1 $uri $gitfile0 $gitfile1\n"); 8# echo ("$uri0 $uri1 $uri $gitfile0 $gitfile1\n");
9exec ("git --git-dir=/git/systemtap.git show HEAD:$gitfile1"); 9exec ("git --git-dir=/git/systemtap.git show HEAD:$gitfile1");
10?> 10?>