wmdeit_kaform_ownhistory/index.php

98 lines
2.5 KiB
PHP
Raw Normal View History

2022-08-13 10:39:28 +02:00
<!doctype html>
<?php
// parse the locale.yaml file and get the variables
2022-08-13 10:39:28 +02:00
include "Spyc.php";
$localeYaml = Spyc::YAMLLoad('locale.yaml');
2022-08-13 10:39:28 +02:00
$lang=$_GET['lang'];
// optional code for reading the accept language header
2022-08-13 10:39:28 +02:00
/*
$acceptlang='de-DE';
// get the accept-language header
foreach (getallheaders() as $name => $value) {
if ($name == 'Accept-Language'){
// echo "$name $value";
$acceptlang = $value;
}
}
echo "$acceptlang";
2022-08-13 10:39:28 +02:00
print "oi $lang oi";
*/
if ( in_array ($lang, array('en-US'))){
$loc1 = "$lang".".utf8";
$loc = $lang;
}
else
$loc = "de-DE";
2022-08-13 11:44:10 +02:00
//$loc = "en-US";
2022-08-17 13:52:28 +02:00
//print "$loc $loc1";
2022-08-13 10:39:28 +02:00
$domain = "messages";
setlocale(LC_MESSAGES, $loc);
setlocale(LC_ALL, $loc);
$results = putenv("LC_ALL=$loc");
$results = putenv("LC_MESSAGES=$loc");
$results = bindtextdomain($domain,"./locale");
?>
<html >
<head>
<title>$localeYaml['title'][$loc]</title>
2022-08-13 10:39:28 +02:00
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Kube CSS -->
<link rel="stylesheet" href="css/kube.min.css">
<link rel="stylesheet" href="addons/kube-addons.min.css" />
<link rel="stylesheet" href="master.css" />
</head>
<body>
<div class="page is-container">
<div class="main-sidebar text-centered">
<img class="wmdelogo" alt="wikimedia logo" src="Wikimedia_Deutschland-Logo.svg"/>
</div>
<div class="main-content">
<div class="is-row" style="border:0px solid blue">
<div class="is-col is-70">
<?php include "form.php" ?>
</div>
<div class="is-col is-30">
2022-08-17 13:52:28 +02:00
<?php echo _($localeYaml['header2_header'][$loc])?><BR>
<?php echo _($localeYaml['header2_1'][$loc])?><BR>
<?php echo _($localeYaml['header2_2'][$loc])?><BR>
<?php echo _($localeYaml['header2_3'][$loc])?><BR>
<?php echo _($localeYaml['header2_4'][$loc])?><BR>
<?php echo _($localeYaml['header2_5'][$loc])?><BR>
<?php echo _($localeYaml['header2_6'][$loc])?><BR><BR>
<?php echo _($localeYaml['header2_note'][$loc])?><BR>
2022-08-13 10:39:28 +02:00
</div>
</div>
<?php echo _($localeYaml['impressum'][$loc])?>: <a href="https://www.wikimedia.de/impressum/">https://www.wikimedia.de/impressum</a><br>
<?php echo _($localeYaml['privacy'][$loc])?>: <a href="https://www.wikimedia.de/datenschutz/">https://www.wikimedia.de/datenschutz</a>
2022-08-13 10:39:28 +02:00
</div>
</div>
<script src="js/kube.min.js"></script>
<script src="addons/upload/kube.upload.min.js"></script>
<script src="addons/kube-addons.min.js"></script>
<script src="kaform.js"></script>
<script src="iban.js/iban.js"></script>
</body>
</html>