Commit d7346de0 authored by Stephan Kreutzer's avatar Stephan Kreutzer

Update from live instance.

parent 7b0f1da0
/* Copyright (C) 2012-2017 Stephan Kreutzer
*
* This file is part of refugee-it.de.
*
* refugee-it.de is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License version 3 or any later version,
* as published by the Free Software Foundation.
*
* refugee-it.de is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License 3 for more details.
*
* You should have received a copy of the GNU Affero General Public License 3
* along with refugee-it.de. If not, see <http://www.gnu.org/licenses/>.
*/
var xmlhttp = null;
// Mozilla
if (window.XMLHttpRequest)
{
xmlhttp = new XMLHttpRequest();
}
// IE
else if (window.ActiveXObject)
{
xmlhttp = new ActiveXObject('Microsoft.XMLHTTP');
}
var basePath = "";
{
var scripts = document.getElementsByTagName("script");
// 'scripts' contains always the last script tag that was loaded.
var myPath = scripts[scripts.length-1].src;
basePath = myPath.substring(0, myPath.lastIndexOf('/'));
}
// 'file://' is bad.
if (basePath.substring(0, 7) == "file://")
{
basePath = basePath.substr(8);
basePath = "http://" + basePath;
}
function requestVote(handle, handle_voter)
{
if (xmlhttp == null)
{
return;
}
{
xmlhttp.open('GET', basePath + "/voterflow/api/vote.php?handle=" + handle, true);
xmlhttp.setRequestHeader('Accept',
'application/xml');
xmlhttp.onreadystatechange = function() { resultVote(handle, handle_voter); };
xmlhttp.send();
}
}
function resultVote(handle, handle_voter)
{
if (xmlhttp.readyState != 4)
{
// Waiting...
}
if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
{
if (xmlhttp.responseText == '')
{
return;
}
var dom = xmlhttp.responseXML.documentElement;
var name = dom.getElementsByTagName('name').item(0).firstChild.data;
var description = dom.getElementsByTagName('description').item(0).firstChild.data;
if (name == null ||
description == null)
{
return -1;
}
document.getElementById('vote-name').innerHTML = name;
document.getElementById('vote-description').innerHTML = description;
var optionsElement = dom.getElementsByTagName('vote-options').item(0);
if (optionsElement == null)
{
return -1;
}
var optionLink = optionsElement.getAttribute("xlink:href");
if (optionLink == null ||
xmlhttp == null)
{
return;
}
xmlhttp.open('GET', basePath + "/voterflow/api/vote_options.php?handle=" + handle, true);
xmlhttp.setRequestHeader('Accept',
'application/xml');
xmlhttp.onreadystatechange = function() { resultVoteOptions(handle, handle_voter); };
xmlhttp.send();
}
}
function resultVoteOptions(handle, handle_voter)
{
if (xmlhttp.readyState != 4)
{
// Waiting...
}
if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
{
if (xmlhttp.responseText == '')
{
return -1;
}
var dom = xmlhttp.responseXML.documentElement;
var options = dom.getElementsByTagName('option');
if (options == null)
{
return -1;
}
var optionsElement = document.getElementById('vote-options');
if (optionsElement == null)
{
return -1;
}
for (var i = 0; i < options.length; i++)
{
optionsElement.innerHTML += "<div class=\"option\"><a href=\"#\" onclick=\"requestCast('" + handle + "', '" + handle_voter + "', " + options.item(i).getElementsByTagName('id').item(0).textContent + ");\">" + options.item(i).getElementsByTagName('caption').item(0).textContent + "</a></div>";
}
}
}
function requestCast(handle, handle_voter, option)
{
if (xmlhttp == null)
{
return;
}
{
xmlhttp.open('POST', basePath + "/voterflow/api/casts.php?handle=" + handle, true);
xmlhttp.setRequestHeader('Content-Type',
'application/x-www-form-urlencoded');
xmlhttp.setRequestHeader('Accept',
'application/xml');
xmlhttp.onreadystatechange = resultCast;
xmlhttp.send('handle_voter=' + encodeURIComponent(handle_voter) + '&' +
'id_vote_option=' + encodeURIComponent(option));
}
}
function resultCast(handle, handle_voter)
{
if (xmlhttp.readyState != 4)
{
// Waiting...
}
if (xmlhttp.readyState == 4 && xmlhttp.status == 201)
{
var voteOptionsElement = document.getElementById('vote-options');
if (voteOptionsElement != null)
{
voteOptionsElement.innerHTML = "";
}
var confirmedElement = document.getElementById('confirmed');
if (confirmedElement != null)
{
confirmedElement.setAttribute("style", "visibility: visible;");
}
}
}
<?php
/* Copyright (C) 2016-2017 Stephan Kreutzer
*
* This file is part of refugee-it.de.
*
* refugee-it.de is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License version 3 or any later version,
* as published by the Free Software Foundation.
*
* refugee-it.de is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License 3 for more details.
*
* You should have received a copy of the GNU Affero General Public License 3
* along with refugee-it.de. If not, see <http://www.gnu.org/licenses/>.
*/
$handle = null;
$handle_voter = null;
if (isset($_GET['handle']) === true)
{
if (ctype_alnum($_GET['handle']) === true)
{
$handle = $_GET['handle'];
}
}
if ($handle === null)
{
http_response_code(409);
echo "'handle' is missing or corrupt.";
exit(-1);
}
if (isset($_GET['handle_voter']) === true)
{
if (ctype_alnum($_GET['handle_voter']) === true)
{
$handle_voter = $_GET['handle_voter'];
}
}
if ($handle_voter === null)
{
http_response_code(409);
echo "'handle_voter' is missing or corrupt.";
exit(-1);
}
require_once(dirname(__FILE__)."/../libraries/languagelib.inc.php");
require_once(getLanguageFile("index"));
$direction = getCurrentLanguageDirection();
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n".
"<!DOCTYPE html\n".
" PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n".
" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n".
"<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"".getCurrentLanguage()."\" lang=\"".getCurrentLanguage()."\">\n".
" <head>\n".
" <meta http-equiv=\"content-type\" content=\"application/xhtml+xml; charset=UTF-8\"/>\n".
" <title>".LANG_PAGETITLE."</title>\n".
" <link rel=\"stylesheet\" type=\"text/css\" href=\"../mainstyle.css\"/>\n".
" <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"/>\n".
" <script type=\"text/javascript\" src=\"./client.js\"></script>\n".
" </head>\n".
" <body onload=\"requestVote('".htmlspecialchars($handle, ENT_COMPAT | ENT_HTML401, "UTF-8")."', '".htmlspecialchars($handle_voter, ENT_COMPAT | ENT_HTML401, "UTF-8")."');\">\n";
if ($direction === LanguageDefinition::DirectionRTL)
{
echo " <div id=\"content_rtl\">\n";
}
else
{
echo " <div id=\"content\">\n";
}
require_once("../language_selector.inc.php");
echo getHTMLLanguageSelector("index.php?handle=".htmlspecialchars($handle, ENT_COMPAT | ENT_HTML401, "UTF-8")."&amp;handle_voter=".htmlspecialchars($handle_voter, ENT_COMPAT | ENT_HTML401, "UTF-8"));
echo "<div>\n".
" <h1>".LANG_HEADER."</h1>\n".
" <div>\n".
" <h2 id=\"vote-name\"></h2>\n".
" <p id=\"vote-description\"></p>\n".
" <div id=\"vote-options\"></div>\n".
" <div id=\"confirmed\" style=\"visibility: hidden;\">".LANG_THANKS."</div>\n".
" </div>\n".
"</div>\n";
echo " </div>\n".
" </body>\n".
"</html>\n".
"\n";
?>
<FilesMatch "(.*)" >
Deny from all
</FilesMatch>
\ No newline at end of file
<?php
/* Copyright (C) 2017 Stephan Kreutzer
*
* This file is part of refugee-it.de.
*
* refugee-it.de is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License version 3 or any later version,
* as published by the Free Software Foundation.
*
* refugee-it.de is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License 3 for more details.
*
* You should have received a copy of the GNU Affero General Public License 3
* along with refugee-it.de. If not, see <http://www.gnu.org/licenses/>.
*/
define("LANG_PAGETITLE", "Abstimmung");
define("LANG_HEADER", "Abstimmung");
define("LANG_THANKS", "Danke!");
?>
<?php
/* Copyright (C) 2017 Stephan Kreutzer
*
* This file is part of refugee-it.de.
*
* refugee-it.de is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License version 3 or any later version,
* as published by the Free Software Foundation.
*
* refugee-it.de is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License 3 for more details.
*
* You should have received a copy of the GNU Affero General Public License 3
* along with refugee-it.de. If not, see <http://www.gnu.org/licenses/>.
*/
define("LANG_PAGETITLE", "Vote");
define("LANG_HEADER", "Vote");
define("LANG_THANKS", "Thanks!");
?>
<?php
/* Copyright (C) 2016-2018 Stephan Kreutzer
/* Copyright (C) 2016-2019 Stephan Kreutzer
*
* This file is part of refugee-it.de.
*
......@@ -61,27 +61,54 @@ else
echo "<div>\n".
" <h1>".LANG_HEADER."</h1>\n".
" <div>\n".
" <h2>".LANG_HEADER_NOTESYSTEM."</h2>\n".
" <h2>".LANG_HEADER_SCHREIBUEBUNGSBLAETTER."</h2>\n".
" <p>\n".
" ".LANG_DESCRIPTION_NOTESYSTEM."\n".
" ".LANG_DESCRIPTION_SCHREIBUEBUNGSBLAETTER."\n".
" </p>\n".
" <ul>\n".
" <li>\n".
" <a href=\"https://gitlab.com/refugee-it/note_system/-/archive/master/note_system-master.zip\">note_system-master.zip</a>\n".
" Commit 3: <a href=\"https://github.com/refugee-it/schreibuebungsblaetter/releases/download/2017-06-04/schreibuebungsblaetter-3.zip\">schreibuebungsblaetter-3.zip</a> (".LANG_SCHREIBUEBUNGSBLAETTER_COMMIT_3_SIZE." MB)\n".
" </li>\n".
" <li>\n".
" Commit 2: <a href=\"https://github.com/refugee-it/schreibuebungsblaetter/releases/download/2016-10-03/schreibuebungsblaetter-2.zip\">schreibuebungsblaetter-2.zip</a> (".LANG_SCHREIBUEBUNGSBLAETTER_COMMIT_2_SIZE." MB)\n".
" </li>\n".
" </ul>\n".
" </div>\n".
" <div>\n".
" <h2>".LANG_HEADER_SCHREIBUEBUNGSBLAETTER."</h2>\n".
" <h2>".LANG_HEADER_WIKTIONARY."</h2>\n".
" <p>\n".
" ".LANG_DESCRIPTION_SCHREIBUEBUNGSBLAETTER."\n".
" ".LANG_DESCRIPTION_WIKTIONARY."\n".
" </p>\n".
" <ul>\n".
" <li>\n".
" Commit 3: <a href=\"https://github.com/refugee-it/schreibuebungsblaetter/releases/download/2017-06-04/schreibuebungsblaetter-3.zip\">schreibuebungsblaetter-3.zip</a> (".LANG_SCHREIBUEBUNGSBLAETTER_COMMIT_3_SIZE." MB)\n".
" <a href=\"./downloads/de_ar_substantive_artikel.html\">".LANG_WIKTIONARY_XHTML_DE_AR_NOUNS_ARTICLE."</a>\n".
" </li>\n".
" <li>\n".
" Commit 2: <a href=\"https://github.com/refugee-it/schreibuebungsblaetter/releases/download/2016-10-03/schreibuebungsblaetter-2.zip\">schreibuebungsblaetter-2.zip</a> (".LANG_SCHREIBUEBUNGSBLAETTER_COMMIT_2_SIZE." MB)\n".
" <a href=\"./downloads/de_ar_substantive_artikel_eindeutig.html\">".LANG_WIKTIONARY_XHTML_DE_AR_NOUNS_ARTICLE_UNIQUE."</a>\n".
" </li>\n".
" <li>\n".
" <a href=\"./downloads/de_substantive_artikel.html\">".LANG_WIKTIONARY_XHTML_DE_NOUNS_ARTICLE."</a>\n".
" </li>\n".
" <li>\n".
" <a href=\"./downloads/de_substantive_artikel_eindeutig.html\">".LANG_WIKTIONARY_XHTML_DE_NOUNS_ARTICLE_UNIQUE."</a>\n".
" </li>\n".
" <li>\n".
" <a href=\"./downloads/de_substantive_artikel_der.html\">".LANG_WIKTIONARY_XHTML_DE_NOUNS_ARTICLE_DER."</a>\n".
" </li>\n".
" <li>\n".
" <a href=\"./downloads/de_substantive_artikel_der_eindeutig.html\">".LANG_WIKTIONARY_XHTML_DE_NOUNS_ARTICLE_DER_UNIQUE."</a>\n".
" </li>\n".
" <li>\n".
" <a href=\"./downloads/de_substantive_artikel_die.html\">".LANG_WIKTIONARY_XHTML_DE_NOUNS_ARTICLE_DIE."</a>\n".
" </li>\n".
" <li>\n".
" <a href=\"./downloads/de_substantive_artikel_die_eindeutig.html\">".LANG_WIKTIONARY_XHTML_DE_NOUNS_ARTICLE_DIE_UNIQUE."</a>\n".
" </li>\n".
" <li>\n".
" <a href=\"./downloads/de_substantive_artikel_das.html\">".LANG_WIKTIONARY_XHTML_DE_NOUNS_ARTICLE_DAS."</a>\n".
" </li>\n".
" <li>\n".
" <a href=\"./downloads/de_substantive_artikel_das_eindeutig.html\">".LANG_WIKTIONARY_XHTML_DE_NOUNS_ARTICLE_DAS_UNIQUE."</a>\n".
" </li>\n".
" </ul>\n".
" </div>\n".
......@@ -92,10 +119,24 @@ echo "<div>\n".
" </p>\n".
" <ul>\n".
" <li>\n".
" Commit 8: <a href=\"https://github.com/refugee-it/clients/releases/download/2018-03-17/clients-1.zip\">langsam_gesprochene_nachrichten_downloader_1</a> (md5sum <code>69f19b8204648e0ec5857fc60ce815a7</code>)\n".
" </li>\n".
" <li>\n".
" Commit 1: <a href=\"https://github.com/refugee-it/clients/releases/download/2016-04-19/clients-1.zip\">langsam_gesprochene_nachrichten_downloader_1</a> (md5sum <code>4ee712b84ea400fafecf1eea26bf9989</code>)\n".
" </li>\n".
" </ul>\n".
" </div>\n".
" <div>\n".
" <h2>".LANG_HEADER_NOTESYSTEM."</h2>\n".
" <p>\n".
" ".LANG_DESCRIPTION_NOTESYSTEM."\n".
" </p>\n".
" <ul>\n".
" <li>\n".
" <a href=\"https://github.com/refugee-it/note_system/archive/master.zip\">note_system-master.zip</a>\n".
" </li>\n".
" </ul>\n".
" </div>\n".
"</div>\n";
echo " </div>\n".
......
<?php
/* Copyright (C) 2016-2017 Stephan Kreutzer
/* Copyright (C) 2016-2019 Stephan Kreutzer
*
* This file is part of refugee-it.de.
*
......@@ -27,7 +27,19 @@ define("LANG_DESCRIPTION_SCHREIBUEBUNGSBLAETTER", "Schreibübungsblätter für d
define("LANG_SCHREIBUEBUNGSBLAETTER_COMMIT_2_SIZE", "8,9");
define("LANG_SCHREIBUEBUNGSBLAETTER_COMMIT_3_SIZE", "22,2");
define("LANG_HEADER_NOTESYSTEM", "Notizverwaltungssystem");
define("LANG_DESCRIPTION_NOTESYSTEM", "Mit dem Online-Notizverwaltungssystem können Notizen zu Personen erfasst und Dokumente hinterlegt werden. Damit können Flüchtlingshelfer die Betreuung einer Unterkunft oder Daten zu Kursteilnehmern organisieren. Es gibt auch ein etwas älteres <a href=\"https://vimeo.com/201595517\">Demo-Video</a> über das System.");
define("LANG_DESCRIPTION_NOTESYSTEM", "Mit dem Online-Notizverwaltungssystem können Notizen zu Personen erfasst und Dokumente hinterlegt werden. Damit können Flüchtlingshelfer die Betreuung einer Unterkunft oder Daten zu Kursteilnehmern organisieren. Es gibt auch ein etwas älteres <a href=\"https://www.bitchute.com/video/il4KSccowCyG\">Demo-Video</a> über das System.");
define("LANG_HEADER_WIKTIONARY", "Deutsche Substantive mit Artikel");
define("LANG_DESCRIPTION_WIKTIONARY", "Listen deutscher Substantive mit Artikel, Stand 2018-05-01.");
define("LANG_WIKTIONARY_XHTML_DE_AR_NOUNS_ARTICLE", "Deutsche Substantive mit Artikel und arabischer Übersetzung");
define("LANG_WIKTIONARY_XHTML_DE_AR_NOUNS_ARTICLE_UNIQUE", "Unmehrdeutige deutsche Substantive mit Artikel und arabischer Übersetzung");
define("LANG_WIKTIONARY_XHTML_DE_NOUNS_ARTICLE", "Deutsche Substantive mit Artikel");
define("LANG_WIKTIONARY_XHTML_DE_NOUNS_ARTICLE_UNIQUE", "Unmehrdeutige deutsche Substantive mit Artikel");
define("LANG_WIKTIONARY_XHTML_DE_NOUNS_ARTICLE_DER", "Deutsche Substantive mit männlichem Artikel");
define("LANG_WIKTIONARY_XHTML_DE_NOUNS_ARTICLE_DER_UNIQUE", "Unmehrdeutige deutsche Substantive mit männlichem Artikel");
define("LANG_WIKTIONARY_XHTML_DE_NOUNS_ARTICLE_DIE", "Deutsche Substantive mit weiblichem Artikel");
define("LANG_WIKTIONARY_XHTML_DE_NOUNS_ARTICLE_DIE_UNIQUE", "Unmehrdeutige deutsche Substantive mit weiblichem Artikel");
define("LANG_WIKTIONARY_XHTML_DE_NOUNS_ARTICLE_DAS", "Deutsche Substantive mit sächlichem Artikel");
define("LANG_WIKTIONARY_XHTML_DE_NOUNS_ARTICLE_DAS_UNIQUE", "Unmehrdeutige deutsche Substantive mit sächlichem Artikel");
......
<?php
/* Copyright (C) 2016-2017 Stephan Kreutzer
/* Copyright (C) 2016-2019 Stephan Kreutzer
*
* This file is part of refugee-it.de.
*
......@@ -27,7 +27,19 @@ define("LANG_DESCRIPTION_SCHREIBUEBUNGSBLAETTER", "Training pages for writing th
define("LANG_SCHREIBUEBUNGSBLAETTER_COMMIT_2_SIZE", "8.9");
define("LANG_SCHREIBUEBUNGSBLAETTER_COMMIT_3_SIZE", "22.2");
define("LANG_HEADER_NOTESYSTEM", "Note Management System");
define("LANG_DESCRIPTION_NOTESYSTEM", "With the online note management system, one can compose notes about persons and attach documents to them, so volunteers can organize their help for people in a refugee camp or data of course attendees. Also, there’s a slightly outdated <a href=\"https://vimeo.com/201595517\">demo video</a> (in German language) about the system.");
define("LANG_DESCRIPTION_NOTESYSTEM", "With the online note management system, one can compose notes about persons and attach documents to them, so volunteers can organize their help for people in a refugee camp or data of course attendees. Also, there’s a slightly outdated <a href=\"https://www.bitchute.com/video/il4KSccowCyG/\">demo video</a> (in German language) about the system.");
define("LANG_HEADER_WIKTIONARY", "German Nouns With Article");
define("LANG_DESCRIPTION_WIKTIONARY", "Lists of German nouns with article, version 2018-05-01.");
define("LANG_WIKTIONARY_XHTML_DE_AR_NOUNS_ARTICLE", "German nouns with article and Arabic translation");
define("LANG_WIKTIONARY_XHTML_DE_AR_NOUNS_ARTICLE_UNIQUE", "Unique German nouns with article and Arabic translation");
define("LANG_WIKTIONARY_XHTML_DE_NOUNS_ARTICLE", "German nouns with article");
define("LANG_WIKTIONARY_XHTML_DE_NOUNS_ARTICLE_UNIQUE", "Unique German nouns with article");
define("LANG_WIKTIONARY_XHTML_DE_NOUNS_ARTICLE_DER", "German nouns with male article");
define("LANG_WIKTIONARY_XHTML_DE_NOUNS_ARTICLE_DER_UNIQUE", "Unique German nouns with male article");
define("LANG_WIKTIONARY_XHTML_DE_NOUNS_ARTICLE_DIE", "German nouns with female article");
define("LANG_WIKTIONARY_XHTML_DE_NOUNS_ARTICLE_DIE_UNIQUE", "Unique German nouns with female article");
define("LANG_WIKTIONARY_XHTML_DE_NOUNS_ARTICLE_DAS", "German nouns with neuter article");
define("LANG_WIKTIONARY_XHTML_DE_NOUNS_ARTICLE_DAS_UNIQUE", "Unique German nouns with neuter article");
......
Markdown is supported
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