Fixed typo in menu
[clearscm.git] / web / php / clearscm.php
index d59f2e7..e43d016 100644 (file)
@@ -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 () {
                     <li><a href="/clearcase/triggers.php">Triggers</a></li>
                     <li><a href="/php/scm_man.php?file=cc/etf.pl">Evil Twin Finder</a></li>
                     <li><a href="/php/scm_man.php?file=cc/diffbl.pl">GUI DiffBL</a></li>
-                    <li><a href="/php/scm_man.php?file=cc/viewager.cgi">View Ager</a></li>
+                    <li><a href="/php/scm_man.php?file=clearadm/viewager.cgi">View Ager</a></li>
                     <li><a href="/clearcase/OpenSourceBuild.php/">Open Source Builds</a></li>
                   </ul>
                 </div>
@@ -87,7 +89,7 @@ function menu () {
               <div class="imsc">
                 <div class="imsubc" style="width:140px;top:-23px;left:132px;">
                   <ul style="">
-                    <li><a href="/gitweb/?p=.git;a=tree">Respository</a></li>
+                    <li><a href="/gitweb/?p=clearscm.git">Repository</a></li>
                   </ul>
                 </div>
               </div>
@@ -261,10 +263,7 @@ function display_contents_as_snippet ($contents) {
   print "</div>";
 } // 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 ("/<!-- INDEX END -->/", $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 <a href=\"$history\">$1</a>",