Commit 84de3cd4 authored by egon w. stemle's avatar egon w. stemle
Browse files

Set all files to CRLF (dos) new line; remove BOM from utf-8 files

parent e532484d
<?php
session_set_cookie_params(86400);
session_start();
header('Cache-Control: private, max-age=300');
// server adresses
// ANNIS installation -- called from script 'F_openannis_wide.php'
//$annis_server = "http://sdcsfe03.eurac.edu/annis/";
$annis_server = "https://merlin-platform.eu/annis/";
// SOLR installation -- called from scripts 'F_showkwic.php', 'F_showdocuments.php' and 'F_showstatistics.php'.
$solr_server = "http://sdcsfe03.eurac.edu/solr/final/";
// available languages
$language_glosses = array('cz' => 'czech', 'de' => 'german', 'en' => 'english', 'it' => 'italian');
$languages = array_keys($language_glosses);
// set this as default - if in doubt
$lang_default = 'en';
// handle language selection - POST has precedence over GET
if(isset($_GET['lang']) and in_array(strtolower($_GET['lang']), $languages)) {
$_SESSION['lang'] = strtolower($_GET['lang']);
}
if(isset($_POST['language']) and in_array(strtolower($_POST['language']), $languages)) {
$_SESSION['lang'] = strtolower($_POST['language']);
}
// define LANG constant only if it exists in $languages array, otherwise lang_default
$_SESSION['lang'] = in_array($_SESSION['lang'], $languages) ? $_SESSION['lang'] : $lang_default;
require('A_translations.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>MERLIN</title>
<meta name="Author" content="Verena Lyding, Karin Schöne, Katrin Wisniewski">
<meta name="Publisher" content="European Academy of Bozen/Bolzano">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/style.css" type="text/css">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="shortlink" href="https://merlin-platform.eu">
<script src="//code.jquery.com/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="js/jquery.atooltip.js"></script>
<script type="text/javascript" src="js/utils_MERLIN.js"></script>
</head>
<?php
session_set_cookie_params(86400);
session_start();
header('Cache-Control: private, max-age=300');
// server adresses
// ANNIS installation -- called from script 'F_openannis_wide.php'
//$annis_server = "http://sdcsfe03.eurac.edu/annis/";
$annis_server = "https://merlin-platform.eu/annis/";
// SOLR installation -- called from scripts 'F_showkwic.php', 'F_showdocuments.php' and 'F_showstatistics.php'.
$solr_server = "http://sdcsfe03.eurac.edu/solr/final/";
// available languages
$language_glosses = array('cz' => 'czech', 'de' => 'german', 'en' => 'english', 'it' => 'italian');
$languages = array_keys($language_glosses);
// set this as default - if in doubt
$lang_default = 'en';
// handle language selection - POST has precedence over GET
if(isset($_GET['lang']) and in_array(strtolower($_GET['lang']), $languages)) {
$_SESSION['lang'] = strtolower($_GET['lang']);
}
if(isset($_POST['language']) and in_array(strtolower($_POST['language']), $languages)) {
$_SESSION['lang'] = strtolower($_POST['language']);
}
// define LANG constant only if it exists in $languages array, otherwise lang_default
$_SESSION['lang'] = in_array($_SESSION['lang'], $languages) ? $_SESSION['lang'] : $lang_default;
require('A_translations.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>MERLIN</title>
<meta name="Author" content="Verena Lyding, Karin Schöne, Katrin Wisniewski">
<meta name="Publisher" content="European Academy of Bozen/Bolzano">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/style.css" type="text/css">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="shortlink" href="https://merlin-platform.eu">
<script src="//code.jquery.com/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="js/jquery.atooltip.js"></script>
<script type="text/javascript" src="js/utils_MERLIN.js"></script>
</head>
<?php
require('_includes/head.php');
?>
<body>
<div id="wrapper">
<?php
$current_script = "F_simplesearch.php";
if(isset($_POST)){
if(array_key_exists("curscr", $_POST)){
//var_dump($_POST);
if(! preg_match("/^F_/", $_POST['curscr'])){
$current_script = $_SESSION['lang']."/".$_POST['curscr'];
}
else{
$current_script = $_POST['curscr'];
}
}
}
// form data
require('A_forms.php');
// header menu
require('F_headermenu.php');
// main page content
require($current_script);
// footer
require('F_footer.php');
?>
</div> <!-- wrapper end -->
</body>
<?php
require('_includes/tail.php');
?>
<?php
require('_includes/head.php');
?>
<body>
<div id="wrapper">
<?php
$current_script = "F_simplesearch.php";
if(isset($_POST)){
if(array_key_exists("curscr", $_POST)){
//var_dump($_POST);
if(! preg_match("/^F_/", $_POST['curscr'])){
$current_script = $_SESSION['lang']."/".$_POST['curscr'];
}
else{
$current_script = $_POST['curscr'];
}
}
}
// form data
require('A_forms.php');
// header menu
require('F_headermenu.php');
// main page content
require($current_script);
// footer
require('F_footer.php');
?>
</div> <!-- wrapper end -->
</body>
<?php
require('_includes/tail.php');
?>
<?php
require('_includes/head.php');
?>
<body>
<div id="wrapper">
<?php
// form data
require('A_forms.php');
// header menu
require('F_headermenu.php');
$current_script = $_SESSION['lang'].'/help.php';
require($current_script);
// footer
require('F_footer.php');
?>
</div> <!-- wrapper end -->
</body>
<?php
require('_includes/tail.php');
?>
<?php
require('_includes/head.php');
?>
<body>
<div id="wrapper">
<?php
// form data
require('A_forms.php');
// header menu
require('F_headermenu.php');
$current_script = $_SESSION['lang'].'/help.php';
require($current_script);
// footer
require('F_footer.php');
?>
</div> <!-- wrapper end -->
</body>
<?php
require('_includes/tail.php');
?>
//js-function for automatic population of:
//js-function for automatic population of:
// 1) POS dropdown list in relation to the selected text language and interface language, and
// 2) feature details in relation to the selected feature category (e.g. grammar, orthography, etc.) and interface language
......@@ -854,4 +854,4 @@ function setOptions(chosen, lang, target) {
selbox.options[selbox.options.length] = new Option('VER:remo | verb passato remoto', 'VER:remo');
}
}
}
\ No newline at end of file
}
//js-function for automatic population of:
//js-function for automatic population of:
// - tasks in relation to the selected text language and interface language
// the function is called onChange of the select list (dropdown) for the text language
......@@ -166,4 +166,4 @@ function setOptions(chosen,lang,target) {
selbox.options[selbox.options.length] = new Option("B2 - essay: Clothes make the man", "B2PS0201_saty");
}
}
}
\ No newline at end of file
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment