<commit_before><?php
/* $Header: /cvsroot/tikiwiki/tiki/db/local_multi.php,v 1.2 2004-04-26 21:40:55 mose Exp $

	-----------------------------------------------------------
  -> Multi-tiki trick for virtualhosting

	$tikidomain variable is the setting from apache
	directive ServerName

	-----------------------------------------------------------
	-> Multi-trick for subdirs
	
	You may want to substitute something else instead of
  SERVER_NAME and HTTP_HOST environment variables if you use
	subdirs. For example you can have
	* http://mysite.com/tiki1
	* http://mysite.com/tiki2
	* http://mysite.com/tiki3

	the use 

	$tikipath = $_SERVER['REQUEST_URI'];
	// or
	$tikipath = $_SERVER['PHP_SELF'];
	// and
	$tikidomain = $tikipath[0];

	then $tikidomain variable will be the name of the top dir

*/

if (isset($tikidomain_multi) and $tikidomain_multi) {
	if (isset($_SERVER['SERVER_NAME'])) {
		$tikidomain = $_SERVER['SERVER_NAME'];
	} elseif (isset($_SERVER['HTTP_HOST'])) {
		$tikidomain = $_SERVER['HTTP_HOST'];
	} else {
		die("No possible action.");
	}

	$file_multi = dirname(__FILE__). "/$tikidomain/local.php";
	if (file_exists($file_multi)) {
		$file_local_php = $file_multi;
	}
}
?><commit_msg>changed the multitiki trick, not finished<commit_after><?php
/* $Header: /cvsroot/tikiwiki/tiki/db/local_multi.php,v 1.3 2004-04-29 15:09:53 mose Exp $

	-----------------------------------------------------------
  -> Multi-tiki trick for virtualhosting

	$tikidomain variable is the setting from apache
	directive ServerName

	-----------------------------------------------------------
	-> Multi-trick for subdirs
	
	You may want to substitute something else instead of
  SERVER_NAME and HTTP_HOST environment variables if you use
	subdirs. For example you can have
	* http://mysite.com/tiki1
	* http://mysite.com/tiki2
	* http://mysite.com/tiki3

	the use 

	$tikipath = $_SERVER['REQUEST_URI'];
	// or
	$tikipath = $_SERVER['PHP_SELF'];
	// and
	$tikidomain = $tikipath[0];

	then $tikidomain variable will be the name of the top dir

*/

// if (isset($tikidomain_multi) and $tikidomain_multi) {
	if (isset($_SERVER['SERVER_NAME'])) {
		$tikidomain = $_SERVER['SERVER_NAME'];
	} elseif (isset($_SERVER['HTTP_HOST'])) {
		$tikidomain = $_SERVER['HTTP_HOST'];
	} else {
		die("No possible action.");
	}

	$file_multi = "db/$tikidomain/local.php";
	if (is_file($file_multi)) {
		$file_local_php = $file_multi;
	}
// }
?>
{'fraction_non_alphanumeric': 0.22624434389140272, 'fraction_numerical': 0.016454134101192924, 'mean_word_length': 2.673716012084592, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '1023803', 'n_tokens_mistral': 870, 'n_tokens_neox': 819, 'n_words': 192}