|
|
@ -1,12 +1,17 @@
|
|
|
|
<?PHP
|
|
|
|
<?PHP
|
|
|
|
|
|
|
|
|
|
|
|
if( !isset($_SESSION['Sprache'])) $_SESSION['Sprache'] = "EN";
|
|
|
|
|
|
|
|
if( $_SESSION['Sprache']=="") $_SESSION['Sprache']="EN";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function Get_Text ($TextID)
|
|
|
|
function Get_Text ($TextID)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
GLOBAL $con;
|
|
|
|
GLOBAL $con;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if( !isset($_SESSION['Sprache']))
|
|
|
|
|
|
|
|
$_SESSION['Sprache'] = "EN";
|
|
|
|
|
|
|
|
if( $_SESSION['Sprache']=="")
|
|
|
|
|
|
|
|
$_SESSION['Sprache']="EN";
|
|
|
|
|
|
|
|
if( isset($_GET["SetLanguage"]))
|
|
|
|
|
|
|
|
$_SESSION['Sprache']= $_GET["SetLanguage"];
|
|
|
|
|
|
|
|
|
|
|
|
$SQL = "SELECT * FROM `Sprache` WHERE TextID=\"$TextID\" AND Sprache ='".$_SESSION['Sprache']."'";
|
|
|
|
$SQL = "SELECT * FROM `Sprache` WHERE TextID=\"$TextID\" AND Sprache ='".$_SESSION['Sprache']."'";
|
|
|
|
@$Erg = mysql_query($SQL, $con);
|
|
|
|
@$Erg = mysql_query($SQL, $con);
|
|
|
|
// if(!mysql_error($con))
|
|
|
|
// if(!mysql_error($con))
|
|
|
@ -24,6 +29,13 @@ function Print_Text ($TextID)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
GLOBAL $con;
|
|
|
|
GLOBAL $con;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if( !isset($_SESSION['Sprache']))
|
|
|
|
|
|
|
|
$_SESSION['Sprache'] = "EN";
|
|
|
|
|
|
|
|
if( $_SESSION['Sprache']=="")
|
|
|
|
|
|
|
|
$_SESSION['Sprache']="EN";
|
|
|
|
|
|
|
|
if( isset($_GET["SetLanguage"]))
|
|
|
|
|
|
|
|
$_SESSION['Sprache']= $_GET["SetLanguage"];
|
|
|
|
|
|
|
|
|
|
|
|
$SQL = "SELECT * FROM `Sprache` WHERE TextID=\"$TextID\" AND Sprache ='".$_SESSION['Sprache']."'";
|
|
|
|
$SQL = "SELECT * FROM `Sprache` WHERE TextID=\"$TextID\" AND Sprache ='".$_SESSION['Sprache']."'";
|
|
|
|
@$Erg = mysql_query($SQL, $con);
|
|
|
|
@$Erg = mysql_query($SQL, $con);
|
|
|
|
|
|
|
|
|
|
|
|