<?php 
session_start();
//ini_set('display_errors',1);
error_reporting(0);
if($_GET['sid']){ session_id($_GET['sid']); }

$tmp_hackq = strtolower($_SERVER['QUERY_STRING']);

if( strstr($tmp_hackq, 'http:') 
		or strstr($tmp_hackq,'ftp.')
		or  strstr($tmp_hackq,'https:') 

	){ die();	}

$arr_za_mah = array('enclosed', 'outfile', 'delete', 'drop', 'update', 'terminate', 'unlink','replace','http://','https://','ftp://','ftp.','http', ' xor ');

if($_GET)
{
	foreach($_GET as $k=>$v)
	{
		$searchw_chek = strtolower($v);
		foreach($arr_za_mah as $kar => $var)
		{
			if(strstr($searchw_chek, $var))
			{
				$new_str = substr($var,0,1);
				$new_str .= ' '.substr($var, 1);
				$_GET[$v] = str_ireplace($var, $new_str, $v);
				
				die();
			}
		}
	}
}

// Emulate register_globals on



include_once('functions/register_globals.php');

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<?php 


// if(!$lang) { $lang=1; }

if(!$_SERVER['QUERY_STRING'] and file_exists('intro.php')){
	include('intro.php');
	exit;
}

include_once('index_top_include.php');
  

if($arr_p['id_index_tmpl']!=0){ $INDEX_TMPL=$arr_p['id_index_tmpl']; }

include_once('index_tmpl_'.$INDEX_TMPL.'.php');


// echo $_SERVER['QUERY_STRING'];

echo ("\n".'<!-- index_tmpl_'.$INDEX_TMPL.'.php -->'."\n");
echo ('<!-- '.$vutrechen_tmpl.' -->'."\n");
echo ('<!-- '.$arr_menu[$_GET['m']]['linkc'].' -->');
 
 ?>
</body>
</html>
