<commit_before><?php defined('SYSPATH') or die('No direct script access.');

/**
 * Fixup $_SERVER headers
 */
$headers = apache_request_headers();
foreach($headers as $k => $v)
{
	if( strpos($k,'EVE') == 0 )
	{
		$_SERVER['HTTP_' . $k] = $v;
	}
}

//CCP putting xml tags in header fix
if( isset($_SERVER['HTTP_EVE_SHIPTYPENAME']) )
{
	$_SERVER['HTTP_EVE_SHIPTYPENAME'] = str_replace('*','',strip_tags($_SERVER['HTTP_EVE_SHIPTYPENAME']));
}

if( isset($_SERVER['HTTP_EVE_REGIONNAME']) )
{
	$_SERVER['HTTP_EVE_REGIONNAME'] = str_replace('*','',strip_tags($_SERVER['HTTP_EVE_REGIONNAME']));
}

if( isset($_SERVER['HTTP_EVE_SOLARSYSTEMNAME']) )
{
	$_SERVER['HTTP_EVE_SOLARSYSTEMNAME'] = str_replace('*','',strip_tags($_SERVER['HTTP_EVE_SOLARSYSTEMNAME']));
}

// -- Environment setup --------------------------------------------------------

// Load the core Kohana class
require SYSPATH.'classes/kohana/core'.EXT;

if (is_file(APPPATH.'classes/kohana'.EXT))
{
	// Application extends the core
	require APPPATH.'classes/kohana'.EXT;
}
else
{
	// Load empty core extension
	require SYSPATH.'classes/kohana'.EXT; 
}

/**
 * Set the default time zone.
 *
 * @see  http://kohanaframework.org/guide/using.configuration
 * @see  http://php.net/timezones
 */
date_default_timezone_set('UTC');

/**
 * Set the default locale.
 *
 * @see  http://kohanaframework.org/guide/using.configuration
 * @see  http://php.net/setlocale
 */
setlocale(LC_ALL, 'en_US.utf-8');

/**
 * Enable the Kohana auto-loader.
 *
 * @see  http://kohanaframework.org/guide/using.autoloading
 * @see  http://php.net/spl_autoload_register
 */
spl_autoload_register(array('Kohana', 'auto_load'));

/**
 * Enable the Kohana auto-loader for unserialization.
 *
 * @see  http://php.net/spl_autoload_call
 * @see  http://php.net/manual/var.configuration.php#unserialize-callback-func
 */
ini_set('unserialize_callback_func', 'spl_autoload_call');

/**
 * Set the mb_substitute_character to "none"
 *
 * @link http://www.php.net/manual/function.mb-substitute-character.php
 */
mb_substitute_character('none');
// -- Configuration and initialization -----------------------------------------

/**
 * Set the default language
 */
I18n::lang('en-us');

if (isset($_SERVER['SERVER_PROTOCOL']))
{
	// Replace the default protocol.
	HTTP::$protocol = $_SERVER['SERVER_PROTOCOL'];
}

/**
 * Set Kohana::$environment if a 'KOHANA_ENV' environment variable has been supplied.
 *
 * Note: If you supply an invalid environment name, a PHP warning will be thrown
 * saying "Couldn't find constant Kohana::<INVALID_ENV_NAME>"
 */
 
Kohana::$environment = ($_SERVER['SERVER_NAME'] !== 'localhost') ? Kohana::PRODUCTION : Kohana::DEVELOPMENT;

if( !isset($_SERVER['HTTP_EVE_SOLARSYSTEMID']) && isset($_SERVER['HTTP_EVE_SOLARSYSTEMNAME']) )
{
	require 'systemReference.php';
	$_SERVER['HTTP_EVE_SOLARSYSTEMID'] = $systems[ $_SERVER['HTTP_EVE_SOLARSYSTEMNAME'] ];
}
/*
if( Kohana::$environment == Kohana::DEVELOPMENT && strpos($_SERVER['HTTP_USER_AGENT'],'EVE-IGB') === false )
{
  $_SERVER['HTTP_EVE_CORPID'] = 389326446;
  $_SERVER['HTTP_EVE_CHARID'] = 460256976;
  $_SERVER['HTTP_EVE_CHARNAME'] = 'Messoroz ROCKS';
  $_SERVER['HTTP_EVE_TRUSTED'] = 'Yes';
  //$_SERVER['HTTP_EVE_TRUSTED'] = 'No';
  $_SERVER['HTTP_USER_AGENT'] = 'Boo EVE-IGB';
  $_SERVER['HTTP_EVE_SHIPTYPEID'] = 1252;
  $lol = false;
	if( $lol )
	{
		$_SERVER['HTTP_EVE_SOLARSYSTEMNAME'] = 'Fricoure';
		$_SERVER['HTTP_EVE_SOLARSYSTEMID'] = 30002734;
	}
	else
	{
  $_SERVER['HTTP_EVE_SOLARSYSTEMNAME'] = 'J100549';
  $_SERVER['HTTP_EVE_SOLARSYSTEMID'] = 31002019;
	}
}*/
define('SIGGY_VERSION', '2.13.3h');
if( Kohana::$environment == Kohana::PRODUCTION)
{
	define('WIN_DEV', true);
	define('CACHE_METHOD', 'memcache');
}
else
{
	define('WIN_DEV', true);
	define('CACHE_METHOD', 'default');
}



Cookie::$salt = 'y[$e.swbDs@|Gd(ndtUSy^';
/**
 * Initialize Kohana, setting the default options.
 *
 * The following options are available:
 *
 * - string   base_url    path, and optionally domain, of your application   NULL
 * - string   index_file  name of your index file, usually "index.php"       index.php
 * - string   charset     internal character set used for input and output   utf-8
 * - string   cache_dir   set the internal cache directory                   APPPATH/cache
 * - boolean  errors      enable or disable error handling                   TRUE
 * - boolean  profile     enable or disable internal profiling               TRUE
 * - boolean  caching     enable or disable internal caching                 FALSE
 */
$initOptions = array(
  'base_url'   => 'http://siggy.borkedlabs.com',<commit_msg>Bump version to 2.14<commit_after><?php defined('SYSPATH') or die('No direct script access.');

/**
 * Fixup $_SERVER headers
 */
$headers = apache_request_headers();
foreach($headers as $k => $v)
{
	if( strpos($k,'EVE') == 0 )
	{
		$_SERVER['HTTP_' . $k] = $v;
	}
}

//CCP putting xml tags in header fix
if( isset($_SERVER['HTTP_EVE_SHIPTYPENAME']) )
{
	$_SERVER['HTTP_EVE_SHIPTYPENAME'] = str_replace('*','',strip_tags($_SERVER['HTTP_EVE_SHIPTYPENAME']));
}

if( isset($_SERVER['HTTP_EVE_REGIONNAME']) )
{
	$_SERVER['HTTP_EVE_REGIONNAME'] = str_replace('*','',strip_tags($_SERVER['HTTP_EVE_REGIONNAME']));
}

if( isset($_SERVER['HTTP_EVE_SOLARSYSTEMNAME']) )
{
	$_SERVER['HTTP_EVE_SOLARSYSTEMNAME'] = str_replace('*','',strip_tags($_SERVER['HTTP_EVE_SOLARSYSTEMNAME']));
}

// -- Environment setup --------------------------------------------------------

// Load the core Kohana class
require SYSPATH.'classes/kohana/core'.EXT;

if (is_file(APPPATH.'classes/kohana'.EXT))
{
	// Application extends the core
	require APPPATH.'classes/kohana'.EXT;
}
else
{
	// Load empty core extension
	require SYSPATH.'classes/kohana'.EXT; 
}

/**
 * Set the default time zone.
 *
 * @see  http://kohanaframework.org/guide/using.configuration
 * @see  http://php.net/timezones
 */
date_default_timezone_set('UTC');

/**
 * Set the default locale.
 *
 * @see  http://kohanaframework.org/guide/using.configuration
 * @see  http://php.net/setlocale
 */
setlocale(LC_ALL, 'en_US.utf-8');

/**
 * Enable the Kohana auto-loader.
 *
 * @see  http://kohanaframework.org/guide/using.autoloading
 * @see  http://php.net/spl_autoload_register
 */
spl_autoload_register(array('Kohana', 'auto_load'));

/**
 * Enable the Kohana auto-loader for unserialization.
 *
 * @see  http://php.net/spl_autoload_call
 * @see  http://php.net/manual/var.configuration.php#unserialize-callback-func
 */
ini_set('unserialize_callback_func', 'spl_autoload_call');

/**
 * Set the mb_substitute_character to "none"
 *
 * @link http://www.php.net/manual/function.mb-substitute-character.php
 */
mb_substitute_character('none');
// -- Configuration and initialization -----------------------------------------

/**
 * Set the default language
 */
I18n::lang('en-us');

if (isset($_SERVER['SERVER_PROTOCOL']))
{
	// Replace the default protocol.
	HTTP::$protocol = $_SERVER['SERVER_PROTOCOL'];
}

/**
 * Set Kohana::$environment if a 'KOHANA_ENV' environment variable has been supplied.
 *
 * Note: If you supply an invalid environment name, a PHP warning will be thrown
 * saying "Couldn't find constant Kohana::<INVALID_ENV_NAME>"
 */
 
Kohana::$environment = ($_SERVER['SERVER_NAME'] !== 'localhost') ? Kohana::PRODUCTION : Kohana::DEVELOPMENT;

if( !isset($_SERVER['HTTP_EVE_SOLARSYSTEMID']) && isset($_SERVER['HTTP_EVE_SOLARSYSTEMNAME']) )
{
	require 'systemReference.php';
	$_SERVER['HTTP_EVE_SOLARSYSTEMID'] = $systems[ $_SERVER['HTTP_EVE_SOLARSYSTEMNAME'] ];
}
/*
if( Kohana::$environment == Kohana::DEVELOPMENT && strpos($_SERVER['HTTP_USER_AGENT'],'EVE-IGB') === false )
{
  $_SERVER['HTTP_EVE_CORPID'] = 389326446;
  $_SERVER['HTTP_EVE_CHARID'] = 460256976;
  $_SERVER['HTTP_EVE_CHARNAME'] = 'Mess<NAME>';
  $_SERVER['HTTP_EVE_TRUSTED'] = 'Yes';
  //$_SERVER['HTTP_EVE_TRUSTED'] = 'No';
  $_SERVER['HTTP_USER_AGENT'] = 'Boo EVE-IGB';
  $_SERVER['HTTP_EVE_SHIPTYPEID'] = 1252;
  $lol = false;
	if( $lol )
	{
		$_SERVER['HTTP_EVE_SOLARSYSTEMNAME'] = 'Fricoure';
		$_SERVER['HTTP_EVE_SOLARSYSTEMID'] = 30002734;
	}
	else
	{
  $_SERVER['HTTP_EVE_SOLARSYSTEMNAME'] = 'J100549';
  $_SERVER['HTTP_EVE_SOLARSYSTEMID'] = 31002019;
	}
}*/
define('SIGGY_VERSION', '2.14');
if( Kohana::$environment == Kohana::PRODUCTION)
{
	define('WIN_DEV', true);
	define('CACHE_METHOD', 'memcache');
}
else
{
	define('WIN_DEV', true);
	define('CACHE_METHOD', 'default');
}



Cookie::$salt = 'y[$e.swbDs@|Gd(ndtUSy^';
/**
 * Initialize Kohana, setting the default options.
 *
 * The following options are available:
 *
 * - string   base_url    path, and optionally domain, of your application   NULL
 * - string   index_file  name of your index file, usually "index.php"       index.php
 * - string   charset     internal character set used for input and output   utf-8
 * - string   cache_dir   set the internal cache directory                   APPPATH/cache
 * - boolean  errors      enable or disable error handling                   TRUE
 * - boolean  profile     enable or disable internal profiling               TRUE
 * - boolean  caching     enable or disable internal caching                 FALSE
 */
$initOptions = array(
  'base_url'   => 'http://siggy.borkedlabs.com',
{'fraction_non_alphanumeric': 0.18148388492321005, 'fraction_numerical': 0.011680726800778715, 'mean_word_length': 4.022813688212928, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '324851', 'n_tokens_mistral': 3351, 'n_tokens_neox': 3184, 'n_words': 603}