summaryrefslogtreecommitdiff
path: root/www-ssl/inc
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
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')
-rwxr-xr-xwww-ssl/inc/flag/de.gifbin0 -> 321 bytes
-rwxr-xr-xwww-ssl/inc/flag/en.gifbin0 -> 2430 bytes
-rwxr-xr-xwww-ssl/inc/footer.php7
-rwxr-xr-xwww-ssl/inc/funktion_lang.php20
4 files changed, 21 insertions, 6 deletions
diff --git a/www-ssl/inc/flag/de.gif b/www-ssl/inc/flag/de.gif
new file mode 100755
index 00000000..15739e2e
--- /dev/null
+++ b/www-ssl/inc/flag/de.gif
Binary files differ
diff --git a/www-ssl/inc/flag/en.gif b/www-ssl/inc/flag/en.gif
new file mode 100755
index 00000000..34936ee3
--- /dev/null
+++ b/www-ssl/inc/flag/en.gif
Binary files differ
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"> &#169; copyleft - <a href="mailto:erzengel@lists.ccc.de">Kontakt</a></h5>
- <? include( "./inc/funktion_counter.php"); ?>
+ <h5 align="center"> &#169; 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);