Add index and function library files, add page title config
Add index and function library files, add page title config

--- a/config.inc.php
+++ b/config.inc.php
@@ -40,5 +40,13 @@
  */
 $gitphp_conf['gittmp'] = "/tmp/gitweb";
 
+/*
+ * title
+ * The string that will be used as the page title
+ * The variable '$gitphp_appstring' will expand to
+ * the name (gitphp) and version
+ */
+$gitphp_conf['title'] = "gitphp :: $gitphp_appstring";
+
 ?>
 

file:b/gitphp.lib.php (new)
--- /dev/null
+++ b/gitphp.lib.php
@@ -1,1 +1,25 @@
+<?php
+/*
+ *  gitphp.lib.php
+ *  gitphp: A PHP git repository browser
+ *  Component: Function library
+ *
+ *  Copyright (C) 2006 Christopher Han <xiphux@gmail.com>
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU Library General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
 
+?>
+

file:b/index.php (new)
--- /dev/null
+++ b/index.php
@@ -1,1 +1,28 @@
+<?php
+ ob_start();
+ $version = "v01a";
+ $gitphp_appstring = "gitphp $version";
+/*
+ *  index.php
+ *  gitphp: A PHP git repository browser
+ *  Component: Index script
+ *
+ *  Copyright (C) 2006 Christopher Han <xiphux@gmail.com>
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU Library General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
 
+?>
+

comments