summaryrefslogtreecommitdiff
path: root/www-ssl/inc/funktion_lang.php
diff options
context:
space:
mode:
authorcookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8>2005-11-17 01:02:00 +0000
committercookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8>2005-11-17 01:02:00 +0000
commit8bb5717076bf061ef094dc41cd7c0fb05708dd43 (patch)
tree17f4933f1a0b5ba762e2579dacc7c6fc4b20ca07 /www-ssl/inc/funktion_lang.php
parent3814ce59d234396c59ddf7fb0624589d566756e1 (diff)
sprach kann jetzt immer geaendert werden
git-svn-id: svn://svn.cccv.de/engel-system@65 29ba0400-6e00-0410-a75a-ca02368028f8
Diffstat (limited to 'www-ssl/inc/funktion_lang.php')
-rwxr-xr-xwww-ssl/inc/funktion_lang.php20
1 files changed, 16 insertions, 4 deletions
diff --git a/www-ssl/inc/funktion_lang.php b/www-ssl/inc/funktion_lang.php
index 42de5df8..1314c4ac 100755
--- a/www-ssl/inc/funktion_lang.php
+++ b/www-ssl/inc/funktion_lang.php
@@ -1,12 +1,17 @@
<?PHP
-if( !isset($_SESSION['Sprache'])) $_SESSION['Sprache'] = "EN";
-if( $_SESSION['Sprache']=="") $_SESSION['Sprache']="EN";
function Get_Text ($TextID)
{
-
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']."'";
@$Erg = mysql_query($SQL, $con);
// if(!mysql_error($con))
@@ -23,7 +28,14 @@ function Get_Text ($TextID)
function Print_Text ($TextID)
{
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']."'";
@$Erg = mysql_query($SQL, $con);