//$dip = $_SERVER['REMOTE_ADDR']; //$ip = $_SERVER['REMOTE_ADDR']; //if ($ip == "84.32.228.150") //{} //else {Header( "Location: http://www.suo.lt/index_under.php" ); } $linkai = explode( '/', $_SERVER['REQUEST_URI'] ); if ($linkai[1] == '') {Header( "Location: http://www.suo.lt/index_languages.php" ); } if ($linkai[1] == 'lt') { if (!isset($linkai[2])) $linkai[2] = 'pradzia' ;} if ($linkai[1] == 'en') { if (!isset($linkai[2])) $linkai[2] = 'home' ;} //charset=utf-8 if ($linkai[1] == 'lt') {$car_kodas = 'windows-1257'; $Head_title = 'www.suo.lt'; $eil="SET NAMES 'cp1257';";} else if ($linkai[1] == 'en') {$car_kodas = 'windows-1257'; $Head_title = 'www.suo.lt'; $eil="SET NAMES 'cp1257';";} //echo $linkai[3]; include('funkcijos.php'); include('config.php'); mysql_connect("$host","$user","$pass"); mysql_select_db("$database"); $mln = $linkai[1]; if (!isset($id)) $id = '4' ; if (isset($mln)){ mysql_query($eil); if ($mln == "lt") {$mtable = 'px_meniu_lt';} else if ($mln == "en") {$mtable = 'px_meniu_en';} else {$mtable = 'px_meniu_lt'; $mln = "lt";} } if ($mln == 'lt') { if ($linkai[3] == '') { if ($linkai[2] == 'naujienos') {$id = '4';} if ($linkai[2] == 'kontaktai') {$id = '5';} if ($linkai[2] == 'veislynas') {$id = '6';} if ($linkai[2] == 'paslaugos') {$id = '7';} if ($linkai[2] == 'kuryba') {$id = '8';} if ($linkai[2] == 'nuorodos') {$id = '9';} } else $id = $linkai[3]; } if ($mln == 'en') { if ($linkai[3] == '') { if ($linkai[2] == 'news') {$id = '4';} if ($linkai[2] == 'contacts') {$id = '5';} if ($linkai[2] == 'kennel') {$id = '6';} if ($linkai[2] == 'services') {$id = '7';} if ($linkai[2] == 'creation') {$id = '8';} if ($linkai[2] == 'links') {$id = '9';} } else $id = $linkai[3]; } if (!isset($m)) $m = 6; $using_ie6 = (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6.') !== FALSE); ?>
if ($mln == 'lt') {echo('');}
if ($mln == 'en') {echo('');}
?>
|