Changed to use git backend
[clearscm.git] / web / php / scm.php
diff --git a/web/php/scm.php b/web/php/scm.php
new file mode 100644 (file)
index 0000000..15ba134
--- /dev/null
@@ -0,0 +1,23 @@
+<?php
+////////////////////////////////////////////////////////////////////////////////
+//
+// File:        $RCSfile: scm.php,v $
+// Revision:    $Revision: 1.0 $
+// Description: SCM routines
+// Author:      Andrew@DeFaria.com
+// Created:     Thu Oct 10 16:29:35 PDT 2013
+// Modified:    $Date: $
+// Language:    Php
+//
+// (c) Copyright 2013, ClearSCM Inc., all rights reserved
+//
+////////////////////////////////////////////////////////////////////////////////
+function getSCMFile ($file) {
+  $url = "http://clearscm.com/gitweb/?p=.git;a=blob_plain;f=$file;hb=HEAD";
+
+  $contents = @file ($url)
+    or die ("$url not found");
+
+  return $contents;
+} // getSCMFile
+?>