summaryrefslogtreecommitdiff
path: root/config.class
diff options
context:
space:
mode:
Diffstat (limited to 'config.class')
-rw-r--r--config.class36
1 files changed, 36 insertions, 0 deletions
diff --git a/config.class b/config.class
new file mode 100644
index 0000000..0998c28
--- /dev/null
+++ b/config.class
@@ -0,0 +1,36 @@
+<?php
+/*
+** $Id$
+**
+** ITools - the Internet Tools Library
+**
+** Copyright (C) 1995-2003 by the ITools Authors.
+** This program is free software; you can redistribute it and/or
+** modify it under the terms of either the GNU General Public License
+** or the GNU Lesser General Public License, as published by the Free
+** Software Foundation. See http://www.gnu.org/licenses/ for details.
+**
+** Class it_config: Server-wide ITools Configuration
+** Can be overloaded as needed by applications
+*/
+
+/**
+ * Class it_config: Server-wide ITools Configuration
+ * Can be overloaded as needed by applications
+ */
+class it_config
+{
+ /* Generic Paraphernalia (readable) */
+ var $project_root; /* string: usually /www/gna.ch */
+
+/**
+ * Constructor: Initializes public fields
+ */
+function it_config()
+{
+ $this->project_root = dirname($_SERVER['DOCUMENT_ROOT']);
+}
+
+} /* End Class it_config */
+
+?>