Add header/footer templates
[gitphp.git] / index.php
blob:a/index.php -> blob:b/index.php
--- a/index.php
+++ b/index.php
@@ -24,5 +24,30 @@
  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  */
 
+ /*
+  * Configuration
+  */
+ include_once('config.inc.php');
+
+ /*
+  * Instantiate Smarty
+  */
+ include_once($gitphp_conf['smarty_prefix'] . "Smarty.class.php");
+ $tpl =& new Smarty;
+ $tpl->load_filter('output','trimwhitespace');
+
+ /*
+  * Function library
+  */
+ include_once('gitphp.lib.php');
+
+ $tpl->clear_all_assign();
+ $tpl->assign("title",$gitphp_conf['title']);
+ $tpl->display("header.tpl");
+
+ $tpl->display("footer.tpl");
+
+ ob_end_flush();
+
 ?>
 

comments