<?php
// NIKAcore: core classes for PHP websites
//
// Copyright (C) 2003 NIKA Consulting, Inc.
//
// This file is part of NIKAcore.
//
// NIKAcore is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License as published by the Free
// Software Foundation; either version 2.1 of the License, or (at your option)
// any later version.
//
// NIKAcore 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 Lesser General Public License for
// more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with NIKAcore; if not, write to the Free Software Foundation, Inc., 59
// Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
// Contact hide@address.com with comments, questions, or patches.
class Habitat {
function Habitat() {
$this->server_vars = $_SERVER;
$this->urlmapFilename = 'site.urlmap';
}
function getServerVar($key) { return $this->server_vars[$key]; }
function getDocumentRoot() { return $this->getServerVar('DOCUMENT_ROOT'); }
function getRequestUri() { return $this->getServerVar('REQUEST_URI'); }
function getUrlmapFilename() { return $this->urlmapFilename; }
}
?>