diff options
author | cookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8> | 2005-11-17 01:02:00 +0000 |
---|---|---|
committer | cookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8> | 2005-11-17 01:02:00 +0000 |
commit | 8bb5717076bf061ef094dc41cd7c0fb05708dd43 (patch) | |
tree | 17f4933f1a0b5ba762e2579dacc7c6fc4b20ca07 | |
parent | 3814ce59d234396c59ddf7fb0624589d566756e1 (diff) |
sprach kann jetzt immer geaendert werden
git-svn-id: svn://svn.cccv.de/engel-system@65 29ba0400-6e00-0410-a75a-ca02368028f8
-rwxr-xr-x | www-ssl/inc/flag/de.gif | bin | 0 -> 321 bytes | |||
-rwxr-xr-x | www-ssl/inc/flag/en.gif | bin | 0 -> 2430 bytes | |||
-rwxr-xr-x | www-ssl/inc/footer.php | 7 | ||||
-rwxr-xr-x | www-ssl/inc/funktion_lang.php | 20 |
4 files changed, 21 insertions, 6 deletions
diff --git a/www-ssl/inc/flag/de.gif b/www-ssl/inc/flag/de.gif Binary files differnew file mode 100755 index 00000000..15739e2e --- /dev/null +++ b/www-ssl/inc/flag/de.gif diff --git a/www-ssl/inc/flag/en.gif b/www-ssl/inc/flag/en.gif Binary files differnew file mode 100755 index 00000000..34936ee3 --- /dev/null +++ b/www-ssl/inc/flag/en.gif diff --git a/www-ssl/inc/footer.php b/www-ssl/inc/footer.php index 348871ac..5e193086 100755 --- a/www-ssl/inc/footer.php +++ b/www-ssl/inc/footer.php @@ -110,8 +110,11 @@ if( isset($_SESSION['UID'])) </tr> <tr> <td colspan="2"> - <h5 align="center"> © copyleft - <a href="mailto:erzengel@lists.ccc.de">Kontakt</a></h5> - <? include( "./inc/funktion_counter.php"); ?> + <h5 align="center"> © copyleft - <a href="mailto:erzengel@lists.ccc.de">Kontakt</a> + <? + include( "./inc/funktion_counter.php"); + include( "./inc/funktion_flag.php"); + ?></h5> </td> </tr> </table> 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); |