2005-09-10 19:25:43 +02:00
|
|
|
<?PHP
|
|
|
|
|
|
|
|
function Get_Text ($TextID)
|
|
|
|
{
|
2005-11-06 01:44:48 +01:00
|
|
|
if( !isset($_SESSION['Sprache'])) $_SESSION['Sprache'] = "EN";
|
|
|
|
if( $_SESSION['Sprache']=="") $_SESSION['Sprache']="EN";
|
2005-09-10 19:25:43 +02:00
|
|
|
|
|
|
|
GLOBAL $con;
|
|
|
|
$SQL = "SELECT * FROM `Sprache` WHERE TextID=\"$TextID\" AND Sprache ='".$_SESSION['Sprache']."'";
|
|
|
|
@$Erg = mysql_query($SQL, $con);
|
|
|
|
if(!mysql_error($con))
|
|
|
|
return (@mysql_result($Erg, 0, "Text"));
|
|
|
|
else
|
|
|
|
return "Error Data";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
function Print_Text ($TextID){
|
|
|
|
GLOBAL $con;
|
|
|
|
|
|
|
|
$SQL = "SELECT * FROM `Sprache` WHERE TextID=\"$TextID\" AND Sprache ='".$_SESSION['Sprache']."'";
|
|
|
|
@$Erg = mysql_query($SQL, $con);
|
|
|
|
|
|
|
|
if(!mysql_error($con))
|
|
|
|
echo nl2br(@mysql_result($Erg, 0, "Text"));
|
|
|
|
else
|
|
|
|
echo "Error Data";
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|