You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
464 B
PHP
24 lines
464 B
PHP
<?php
|
|
|
|
/**
|
|
* Load a string by key.
|
|
*
|
|
* @param string $textid
|
|
* @param string $sprache
|
|
*/
|
|
function Sprache($textid, $sprache) {
|
|
$sprache_source = sql_select("
|
|
SELECT *
|
|
FROM `Sprache`
|
|
WHERE `TextID`='" . sql_escape($textid) . "'
|
|
AND `Sprache`='" . sql_escape($sprache) . "'
|
|
LIMIT 1
|
|
");
|
|
if ($sprache_source === false)
|
|
return false;
|
|
if (count($sprache_source) == 1)
|
|
return $sprache_source[0];
|
|
return null;
|
|
}
|
|
|
|
?>
|