2013-09-18 01:38:36 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Load a string by key.
|
2013-10-13 00:52:44 +02:00
|
|
|
*
|
2013-09-18 01:38:36 +02:00
|
|
|
* @param string $textid
|
|
|
|
* @param string $sprache
|
|
|
|
*/
|
|
|
|
function Sprache($textid, $sprache) {
|
2013-10-13 00:52:44 +02:00
|
|
|
$sprache_source = sql_select("
|
|
|
|
SELECT *
|
|
|
|
FROM `Sprache`
|
|
|
|
WHERE `TextID`='" . sql_escape($textid) . "'
|
|
|
|
AND `Sprache`='" . sql_escape($sprache) . "'
|
|
|
|
LIMIT 1
|
|
|
|
");
|
|
|
|
if ($sprache_source === false)
|
2013-09-18 01:38:36 +02:00
|
|
|
return false;
|
2013-10-13 00:52:44 +02:00
|
|
|
if (count($sprache_source) == 1)
|
2013-09-18 01:38:36 +02:00
|
|
|
return $sprache_source[0];
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|