X-Git-Url: https://defaria.com/gitweb/?a=blobdiff_plain;f=web%2Fphp%2Fclearscm.php;h=e43d016881e8d5cd4375385cdd19893b61fdcc67;hb=7435988c124aa8e03ac4dbfc9b2ccc8e98df8871;hp=d59f2e718f6d966ea1a59bfcc43b3bb60d9ff552;hpb=7156527746ad1d3a0af416f5a836f6e4ea43ab1c;p=clearscm.git
diff --git a/web/php/clearscm.php b/web/php/clearscm.php
index d59f2e7..e43d016 100644
--- a/web/php/clearscm.php
+++ b/web/php/clearscm.php
@@ -14,6 +14,8 @@
////////////////////////////////////////////////////////////////////////////////
include_once "scm.php";
+date_default_timezone_set('America/Los_Angeles');
+
$base = $_SERVER['DOCUMENT_ROOT'];
function menu_css () {
@@ -67,7 +69,7 @@ function menu () {
Triggers
Evil Twin Finder
GUI DiffBL
- View Ager
+ View Ager
Open Source Builds
@@ -87,7 +89,7 @@ function menu () {
@@ -261,10 +263,7 @@ function display_contents_as_snippet ($contents) {
print "";
} // display_contents_as_snippet
-function display_code ($file,
- $machine = "clearscm.com",
- $port = ":8080",
- $path = "/viewvc/clearscm.com/") {
+function display_code ($file) {
display_contents_as_code (getSCMFile ($file));
} # display_code
@@ -295,22 +294,13 @@ function scm_man ($file) {
$end_of_index = 0;
$pre_just_ended = 0;
- $url = "/gitweb/?p=.git;a=blob_plain;f=$file;hb=HEAD";
- $history = "/gitweb/?p=.git;a=history;f=$file;hb=HEAD";
+ $url = "/gitweb/?p=clearscm.git;a=blob_plain;f=$file;hb=HEAD";
+ $history = "/gitweb/?p=clearscm.git;a=history;f=$file;hb=HEAD";
// Now get the output and write it out
while (!feof ($stdout)) {
$line = fgets ($stdout);
- if (preg_match ("//", $line)) {
- $end_of_index = 1;
- continue;
- }
-
- if (!$end_of_index) {
- continue;
- } // if
-
// Filter some CVS keywords properly
$line = preg_replace ("/\\\$Revision\:\s*(\S*)\s*\\\$/",
"Revision $1",