<commit_before><?php
/*
 * Codengine
 * FilePath: app/route.php
*/

$controller_default_name = 'controller_'.$_CONFIG['route_controller_default'];

$loaded = 0;

foreach ($controllers as $val)
{
	if($i != 0 && $i != 1 && $val != $controller_default_name.'.php')
	{
		$name = array();
		$name = explode(".", $val);
		$name_before = $name[0];
		$name = 'controller_'.$name[0];
		if($_CONFIG['route_enhanced_mode'] === true)
		{
			$request    = $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
			$request    = str_replace($_CONFIG['url'], "", $request);
			$params		= split("/", $request);
			// print_r($params);
			$safe_pages_old = scandir("app/controllers");
			$safe_pages_old = array_slice($safe_pages_old, 2);
			$safe_pages = array();
			foreach ($safe_pages_old as $value_pages)
			{
				$value_pages_new = explode('.', $value_pages);
				array_push($safe_pages, $value_pages_new[0]);
			}
			if(in_array($params[1], $safe_pages) && $params[1] == $name_before)
			{
				REQUIRE_ONCE 'controllers/'.$val;
				if($_CONFIG['upload']['enabled'] === true && $_CONFIG['language']['enabled'] === true)
					${$name} = new $name(array( "Sec" => $Sec,"DB" => $DB,"params" => $params,"upload" => $Upload,"language" => $Language ));
				else if($_CONFIG['upload']['enabled'] === true)
					${$name} = new $name(array( "Sec" => $Sec,"DB" => $DB,"params" => $params,"upload" => $Upload ));
				else
					${$name} = new $name(array( "Sec" => $Sec,"DB" => $DB,"params" => $params ));<commit_msg>added language package<commit_after><?php
/*
 * Codengine
 * FilePath: app/route.php
*/

$controller_default_name = 'controller_'.$_CONFIG['route_controller_default'];

$loaded = 0;

foreach ($controllers as $val)
{
	if($i != 0 && $i != 1 && $val != $controller_default_name.'.php')
	{
		$name = array();
		$name = explode(".", $val);
		$name_before = $name[0];
		$name = 'controller_'.$name[0];
		if($_CONFIG['route_enhanced_mode'] === true)
		{
			$request    = $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
			$request    = str_replace($_CONFIG['url'], "", $request);
			$params		= split("/", $request);
			// print_r($params);
			$safe_pages_old = scandir("app/controllers");
			$safe_pages_old = array_slice($safe_pages_old, 2);
			$safe_pages = array();
			foreach ($safe_pages_old as $value_pages)
			{
				$value_pages_new = explode('.', $value_pages);
				array_push($safe_pages, $value_pages_new[0]);
<<<<<<< HEAD
			}
			if(in_array($params[1], $safe_pages) && $params[1] == $name_before)
=======
			}			if(in_array($params[1], $safe_pages) && $params[1] == $name_before)
>>>>>>> ae274e07434f94337e3dd927fb5f9dd7d77ec20b
			{
				REQUIRE_ONCE 'controllers/'.$val;
				if($_CONFIG['upload']['enabled'] === true && $_CONFIG['language']['enabled'] === true)
					${$name} = new $name(array( "Sec" => $Sec,"DB" => $DB,"params" => $params,"upload" => $Upload,"language" => $Language ));
				else if($_CONFIG['upload']['enabled'] === true)
					${$name} = new $name(array( "Sec" => $Sec,"DB" => $DB,"params" => $params,"upload" => $Upload ));
				else
					${$name} = new $name(array( "Sec" => $Sec,"DB" => $DB,"params" => $params ));
{'fraction_non_alphanumeric': 0.23768394113883556, 'fraction_numerical': 0.014075495841330775, 'mean_word_length': 4.706204379562044, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 34, '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': '708581', 'n_tokens_mistral': 1273, 'n_tokens_neox': 1130, 'n_words': 192}