<?php
	/*
	** File: welcome
	** Description: default screen for site
	** Version: $Revision: 1.12 $
	** Created: 05/18/1999
	** Author: Leon Atkinson
	** Email: leon@clearink.com
	** CVS Author: $Author: leon $
	** Last Revised: $Date: 1999/11/04 21:35:46 $
	**
	** Log : $Log: welcome,v $
	** Log : Revision 1.12  1999/11/04 21:35:46  leon
	** Log : Cleaned up the use of paths.  Paths are now all set in index.php3 as
	** Log : constants.  Example settings for Apache/Unix, Apache/Win32, and IIS.
	** Log :
	** Log : Revision 1.11  1999/10/16 01:04:03  jj
	** Log : Finally got the random item generator, etc. to work without error under all of
	** Log : the strange case.
	** Log :
	** Log : Revision 1.10  1999/10/14 23:16:53  jj
	** Log : Did slightly better error checking so that no errors occur when the database is
	** Log : empty (as far as items are concerned).
	** Log :
	** Log : Revision 1.9  1999/10/11 23:04:13  leon
	** Log : Removed all require()'s, added block to stop double include()'s
	** Log :
	** Log : Require wasn't giving any performance advantage because it was always
	** Log : being called with a variable.  Futhermore, using return inside a
	** Log : require()'d file does not work in PHP4.
	** Log :
	** Log : Revision 1.8  1999/10/05 23:58:46  leon
	** Log : Added double-include protection to item functions.  Added examples of using
	** Log : RandomItem and SpecialItem to the welcome page.
	** Log :
	** Log : Revision 1.7  1999/10/05 23:39:40  leon
	** Log : Cleaned up loop that generates the sid, parameterized pool of characters
	** Log : and length of session ID.
	** Log :
	** Log : Revision 1.6  1999/10/04 20:03:47  leon
	** Log : This is the first step in re-organizing include files.  The browser cloaking
	** Log : variables have been moved in to include/init.  Whether they are generated
	** Log : at all is controlled by constant in global_settings.  They get set into
	** Log : constants just to be proper, since they shouldn't be changed.  Also, the
	** Log : check_sid module has been moved into include/init, which gets rid of an
	** Log : include().
	** Log :
	** Log : Revision 1.5  1999/09/09 20:34:20  leon
	** Log : Added support for an index-based search.
	** Log : Constants in global_settings controls whether the index is used or
	** Log : not.  You can build/re-build the index through a link on the
	** Log : admin menu.
	** Log :
	** Log : Revision 1.4  1999/08/18 22:32:23  leon
	** Log : Returning opening PHP tag to XML-friendly tag
	** Log :
	** Log : Revision 1.3  1999/07/28 19:27:35  leon
	** Log : Mass update based on code donation from a live project
	** Log :
	**
	** Copyright (c) 1999 Working Dogs.  All rights reserved.
	*/


?>
This is the home of a default installation of the Open Source project FreeTrade.<BR>
<BR>
All materials in this project are offered under a 
<A HREF="http://www.working-dogs.com/freetrade/license">BSD-style license</A>.
This allows you to do just about anything with the source code.  We believe this project
conforms to the <A HREF="http://www.opensource.org/">Open Source</A> standard.<BR>
<BR>
This project is made available 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
<A HREF="http://www.working-dogs.com/freetrade/license">FreeTrade License</A>
for more details.<BR>

<BR>

<?
	/*
	** Debug Information
	*/

	print("SERVER_NAME: " . SERVER_NAME . "<BR>\n");
	print("SCRIPT_NAME: " . SCRIPT_NAME . "<BR>\n");
	print("APPLICATION_ROOT: " . APPLICATION_ROOT . "<BR>\n");
	print("EXTERNAL_PATH: " . EXTERNAL_PATH . "<BR>\n");
	print("<BR>\n");

	if(GENERATE_CLOAKING_CONSTANTS)
	{
		print("Browser_Name: " . BROWSER_NAME . "<BR>\n");
		print("Browser_Version: " . BROWSER_VERSION . "<BR>\n");
		print("Browser_Platform: " . BROWSER_PLATFORM . "<BR>\n");
		print("Browser_JavaScriptOK: " . BROWSER_JAVASCRIPTOK . "<BR>\n");
		print("Browser_CSSOK: " . BROWSER_CSSOK . "<BR>\n");
		print("Browser_FileUpload : " . BROWSER_FILEUPLOAD . "<BR>\n");
	}

	print("Session ID: $sid <BR>\n");
	print("Session ID Size: " . SESSION_SIZE . "<BR>\n");
	print("Session Characters: " . SESSION_CHARACTERS . "<BR>\n");
	print("Session Characters Length: " . SESSION_CHARACTERS_LEN . "<BR>\n");
	
	
	
	/*
	** Random Item
	*/
	include(APPLICATION_ROOT . "/modules/include/item_functions");
	if ($itemID=RandomItem())
	{
		$RandomItem = GetItemInfo($itemID);
		print("Random Item: ");
		print("<A HREF=\"" . 
			ScreenURL('item', FALSE, array('item'=>$RandomItem['ID']))."\">" . 
			$RandomItem['Name']. "</A><BR>\n");
	}
	else 
	{
		print("Random Item: no items defined.<BR>\n");
	}


	/*
	** Special Item
	*/
	if ( $SpecialItem = GetItemInfo(SpecialItem()) )
	{
		print("Special Item: ");
		print("<A HREF=\"".ScreenURL('item', FALSE, array('item'=>$SpecialItem['ID']))."\">" . 
			$SpecialItem['Name']. "</A><BR>\n");
	}
	else 
	{
		print("Special Item: no special items defined.<BR>\n");
	}
	
?>
