<?php #-*-Mode: php; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
/*
jjfMapper, a cartography program for PHP 4.
Copyright (C) 2004 John J Foerch
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 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
*/
/* JJFMapper invocation script for web.
*/
//error_reporting(E_ALL);
//ini_set ('display_errors', '1');
//ini_set ('memory_limit','20M');
//set_time_limit(0);
$jjfmapper_version = 14;
define ('LF',"\n");//a small convenience
define ('TAB',"\t");
/* Set up constants JJFM_BASEDIR and JJFM_LIBDIR. As with other directory
* constants, these have no trailing directory separator.
*/
$jjfm_basedir = dirname(__FILE__);
/* JJFMapper uses '/' as a directory separator throughout. PHP allows the use
* of that separator in Windows, and this ensures that instruction documents
* made on a POSIX system will work on a Windows system and vice versa.
*/
if (DIRECTORY_SEPARATOR != '/')
{
$jjfm_basedir = str_replace (DIRECTORY_SEPARATOR, '/', $jjfm_basedir);
}
if (substr ($jjfm_basedir, -1) == '/')
{
$jjfm_basedir = substr ($jjfm_basedir, 0, strlen ($jjfm_basedir) - 1);
}
define ('JJFM_BASEDIR',$jjfm_basedir);
define ('JJFM_LIBDIR',$jjfm_basedir.'/lib');
include_once (JJFM_BASEDIR.'/site_config.php');
include_once (JJFM_LIBDIR.'/jjfmapper.class.php');
?>