getRow('SELECT * FROM news WHERE id=?', array($id), DB_FETCHMODE_OBJECT); $en_id = $row->language == 'en' ? $row->id : $row->en_id; if( $lang == 'en' ) $id = $en_id; else $id =& $db->getOne('SELECT id FROM news WHERE en_id=? AND language=?', array($en_id, $lang) ); if( !is_object($row) ) header( 'Location: http://'.getLanguageHost($lang).'/main/404.php' ); else header( 'Location: http://'.getLanguageHost($lang)."/news/articles/$id.php" ); exit; ?>