diff options
Diffstat (limited to 'www-ssl')
-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); |