Removed /usr/local from CDPATH
[clearscm.git] / web / php / scm.php
1 <?php
2 ////////////////////////////////////////////////////////////////////////////////
3 //
4 // File:        $RCSfile: scm.php,v $
5 // Revision:    $Revision: 1.0 $
6 // Description: SCM routines
7 // Author:      Andrew@DeFaria.com
8 // Created:     Thu Oct 10 16:29:35 PDT 2013
9 // Modified:    $Date: $
10 // Language:    Php
11 //
12 // (c) Copyright 2013, ClearSCM Inc., all rights reserved
13 //
14 ////////////////////////////////////////////////////////////////////////////////
15 function getSCMFile ($file) {
16   $url = "http://clearscm.com/gitweb/?p=clearscm.git;a=blob_plain;f=$file;hb=HEAD";
17
18   $contents = @file ($url)
19     or die ("$url not found");
20
21   return $contents;
22 } // getSCMFile
23 ?>