From 16c500db669f013e5b2e601b968f785af64f0f2e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= <andreas.solberg@uninett.no>
Date: Fri, 26 Sep 2008 13:54:03 +0000
Subject: [PATCH] Adding information about installation directory.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@898 44740490-163a-0410-bde0-09ae8108e29a
---
 templates/default/frontpage.php | 4 ++++
 www/index.php                   | 2 ++
 2 files changed, 6 insertions(+)

diff --git a/templates/default/frontpage.php b/templates/default/frontpage.php
index 0f55210fc..babad7c51 100644
--- a/templates/default/frontpage.php
+++ b/templates/default/frontpage.php
@@ -32,6 +32,10 @@ $icon_disabled = '<img src="/' . $this->data['baseurlpath'] . 'resources/icons/d
 
 		<p><?php echo $this->t('intro'); ?></p>
 		
+		<div>
+			<code style="background: white; border: 1px solid #ccc; padding: 1em; color: #555" ><?php echo $this->data['directory']; ?></code>
+		</div>
+		
 		<h2><?php echo $this->t('useful_links_header'); ?></h2>
 			<ul>
 			<?php
diff --git a/www/index.php b/www/index.php
index df0e7af41..f8295edf3 100644
--- a/www/index.php
+++ b/www/index.php
@@ -233,6 +233,8 @@ $t->data['links_doc'] = $linksdoc;
 $t->data['enablematrix'] = $enablematrix;
 $t->data['funcmatrix'] = $funcmatrix;
 
+$t->data['directory'] = dirname(dirname(__FILE__));
+
 $t->show();
 
 
-- 
GitLab