sprach kann jetzt immer geaendert werden

git-svn-id: svn://svn.cccv.de/engel-system@65 29ba0400-6e00-0410-a75a-ca02368028f8
This commit is contained in:
cookie 2005-11-17 01:02:00 +00:00
parent 3814ce59d2
commit 8bb5717076
4 changed files with 21 additions and 6 deletions

BIN
www-ssl/inc/flag/de.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 321 B

BIN
www-ssl/inc/flag/en.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

@ -110,8 +110,11 @@ if( isset($_SESSION['UID']))
</tr> </tr>
<tr> <tr>
<td colspan="2"> <td colspan="2">
<h5 align="center"> &#169; copyleft - <a href="mailto:erzengel@lists.ccc.de">Kontakt</a></h5> <h5 align="center"> &#169; copyleft - <a href="mailto:erzengel@lists.ccc.de">Kontakt</a>
<? include( "./inc/funktion_counter.php"); ?> <?
include( "./inc/funktion_counter.php");
include( "./inc/funktion_flag.php");
?></h5>
</td> </td>
</tr> </tr>
</table> </table>

View File

@ -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))
@ -23,7 +28,14 @@ function Get_Text ($TextID)
function Print_Text ($TextID) 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);