<?php

// local file path to location of the autosaved sds file (should work over a network share as well)
// (or or a URL path like "http://www.example.com/ffdb/" - create an alias to the autosave folder...)
// (use double slashes for local windows paths):

//$fflocation = "C:\\local_path\\Autosave_folder\\";
$fflocation = "\\\\DynaServerHost\\Sharename\\";

$showplanets		= 1; 				// set to zero to disable planet display
$showbases		= 1;				// set to zero to disable base display

$pagecomp		= 0;				// set to 1 to compress pages if php is configured '--with-zlib' (0 to disable) (or use zlib.output_compression - in the php.ini file - preferred)
$usepost		= 1;				// set to 1 to enable the '_$POST' method in the map script - necessary for some servers. (0 to disable)
			
$cssloc			= "common.css";		// path to css on webserver

$webmaproot		= "http://www.example.com/webmap_op_ff/";  // url to root webmap folder
$forumsroot		= "http://www.example.com/forum/"; // SMF forum root
$useforumslink		= 1; // show a link to the SMF forum

$usekills		= 0;
if ($usekills == 1) {
$killsdbhostname     	= "localhost";			// The kills MySQL db servers hostname OR IP address
$killsdbport		= "3306";			// The kills MySQL db server port number
$killsdb		= "killsdb";			// The name of the MySQL kills database
$killsdbuser     	= "username";			// The MySQL user to connect as
$killsdbpass 		= "password";				// The password for that user
}

$usets			= 1;				// Use TS webpost page
if ($usets == 1) {				
$TSlink      		= "http://www.example.com/tsinfo/";	// TS webpost page address
}

$usejavairc		= 1;
if ($usejavairc == 1) {				
$d2IRCserver		= "irc.dynaverse.net";		// IRC server in use by D2 server
$d2IRCserverport	= 6999;
$d2IRCGenChan		= "#General@D2ServerNameNoSpaces";
}

// Emipre/Cartel Names
$empstring = array();
$empstring[0] = "United Federation of Planets";
$empstring[1] = "Klingon Empire";
$empstring[2] = "Romulan Star Empire";
$empstring[3] = "Lyran Star Empire";
$empstring[4] = "Hydran Kingdom";
$empstring[5] = "Gorn Confederation";
$empstring[6] = "Interstellar Concordium";
$empstring[7] = "Kzinti Hegemony";
$empstring[8] = "Orion Cartel";
$empstring[9] = "Korgath Cartel";
$empstring[10] = "Prime Cartel";
$empstring[11] = "TigerHeart Cartel";
$empstring[12] = "BeastRaiders Cartel";
$empstring[13] = "Syndicate Cartel";
$empstring[14] = "WyldeFire Cartel";
$empstring[15] = "Camboro Cartel";
$empstring[16] = "Rogue Pirates";
$empstring[17] = "Monsters";
$empstring[18] = "Tholian Holdfast";
$empstring[19] = "Lyran Democratic League";
$empstring[20] = "WYN Star Cluster";
$empstring[21] = "Jindarian";
$empstring[22] = "Andromedans";
$empstring[23] = "Neutral";
$empstring[24] = "Mirror";
$empstring[25] = "All Races";

$empcolor = array();
$empcolor[0] = "#0000FF";  //Federation
$empcolor[1] = "#FF0000";  //Klingon
$empcolor[2] = "#00FF00";  //Romulan
$empcolor[3] = "#FFCC33";  //Lyran
$empcolor[4] = "#660099";  //Hydran
$empcolor[5] = "#996600";  //Gorn
$empcolor[6] = "#FF66CC";  //ISC
$empcolor[7] = "#00FFFF";  //Mirak
$empcolor[8] = "#0000FF";  //Orion
$empcolor[9] = "#FF0000";  //Orion
$empcolor[10] = "#00FF00";  //Orion
$empcolor[11] = "#FFCC33";  //Orion
$empcolor[12] = "#660099";  //Orion
$empcolor[13] = "#996600";  //Orion
$empcolor[14] = "#FF66CC";  //Orion
$empcolor[15] = "#00FFFF";  //Orion
$empcolor[16] = "#CCCCCC";  //NeutralRace
$empcolor[17] = "#CCCCCC";  //NeutralRace
$empcolor[18] = "#CCCCCC";  //NeutralRace
$empcolor[19] = "#CCCCCC";  //NeutralRace
$empcolor[20] = "#CCCCCC";  //NeutralRace
$empcolor[21] = "#CCCCCC";  //NeutralRace
$empcolor[22] = "#CCCCCC";  //NeutralRace
$empcolor[23] = "#CCCCCC";  //NeutralRace
$empcolor[24] = "#CCCCCC";  //NeutralRace
$empcolor[25] = "#CCCCCC";  //NeutralRace

// ******* DO NOT EDIT BELOW ***************

include_once('ffdecode.php');

$hexname = array();
$hexregion = array();

for ($mdx = 0; $mdx <= $dbdecarray['mapnumcolumns']-1; $mdx++) {
	for ($mdy = 0; $mdy <= $dbdecarray['mapnumrows']-1; $mdy++) {
		$hexname[$mdx][$mdy] = "";
		$hexregion[$mdx][$mdy] = "";
	}
}

// ******* OK TO EDIT BELOW ***************


// planet names

//$hexname[5][7] = "Earth";
//$hexname[19][3] = "Lyra";

// region names

//$hexregion[5][7] = "Federation Core";

?>