fehler in der Language werden jetzt ausgewertet
git-svn-id: svn://svn.cccv.de/engel-system@145 29ba0400-6e00-0410-a75a-ca02368028f8
This commit is contained in:
parent
9bdd58a89a
commit
e7c842098d
|
@ -27,15 +27,17 @@
|
||||||
$url = $_SERVER['PHP_SELF'];
|
$url = $_SERVER['PHP_SELF'];
|
||||||
|
|
||||||
$message = "";
|
$message = "";
|
||||||
if (isset($_SERVER['PHP_AUTH_USER']))
|
|
||||||
$message .= "Person: ".$_SERVER['PHP_AUTH_USER']."\n";
|
|
||||||
$message .= "URL: $url\n";
|
|
||||||
if (isset($_SERVER['HTTP_USER_AGENT']) && strstr($_SERVER['HTTP_USER_AGENT'], 'Firefox') === false)
|
|
||||||
$message .= "UA: ".$_SERVER['HTTP_USER_AGENT']."\n";
|
|
||||||
if (isset($_SERVER['HTTP_REFERER']))
|
|
||||||
$message .= "Referer: ".$_SERVER['HTTP_REFERER']."\n";
|
|
||||||
foreach($error_messages as $value)
|
foreach($error_messages as $value)
|
||||||
$message .= $value."\n";
|
$message .= $value."\n";
|
||||||
|
$message .= "\n\n\n\n\n";
|
||||||
|
|
||||||
|
if( isset( $_SESSION))
|
||||||
|
foreach ($_SESSION as $k => $v )
|
||||||
|
$message .= "_SESSION: $k = $v\n";
|
||||||
|
if( isset( $_SESSION['CVS']))
|
||||||
|
foreach ($_SESSION['CVS'] as $k => $v )
|
||||||
|
if( strlen($k)>3 )
|
||||||
|
$message .= "_SESSION['CVS']: $k = $v\n";
|
||||||
foreach ($_SERVER as $k => $v )
|
foreach ($_SERVER as $k => $v )
|
||||||
$message .= "_SERVER: $k = $v\n";
|
$message .= "_SERVER: $k = $v\n";
|
||||||
if( isset( $_POST))
|
if( isset( $_POST))
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
function Get_Text ($TextID)
|
function Get_Text ($TextID)
|
||||||
{
|
{
|
||||||
GLOBAL $con;
|
GLOBAL $con, $error_messages;
|
||||||
|
|
||||||
if( !isset($_SESSION['Sprache']))
|
if( !isset($_SESSION['Sprache']))
|
||||||
$_SESSION['Sprache'] = "EN";
|
$_SESSION['Sprache'] = "EN";
|
||||||
|
@ -14,12 +14,12 @@ function Get_Text ($TextID)
|
||||||
|
|
||||||
$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_num_rows( $Erg) == 1)
|
if( mysql_num_rows( $Erg) == 1)
|
||||||
return (@mysql_result($Erg, 0, "Text"));
|
return (@mysql_result($Erg, 0, "Text"));
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// die("Error Data, '$TextID' found ". mysql_num_rows( $Erg). "x");
|
array_push($error_messages, "Get_Text, '$TextID' found ". mysql_num_rows( $Erg). "x in Sprache Database Table for Language (".$_SESSION['Sprache'].")\n");
|
||||||
return "Error Data, '$TextID' found ". mysql_num_rows( $Erg). "x";
|
return "Error Data, '$TextID' found ". mysql_num_rows( $Erg). "x";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ function Get_Text ($TextID)
|
||||||
|
|
||||||
function Print_Text ($TextID)
|
function Print_Text ($TextID)
|
||||||
{
|
{
|
||||||
GLOBAL $con;
|
GLOBAL $con, $error_messages;
|
||||||
|
|
||||||
if( !isset($_SESSION['Sprache']))
|
if( !isset($_SESSION['Sprache']))
|
||||||
$_SESSION['Sprache'] = "EN";
|
$_SESSION['Sprache'] = "EN";
|
||||||
|
@ -39,11 +39,11 @@ function Print_Text ($TextID)
|
||||||
$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_num_rows( $Erg) == 1)
|
if( mysql_num_rows( $Erg) == 1)
|
||||||
echo nl2br(@mysql_result($Erg, 0, "Text"));
|
echo nl2br(@mysql_result($Erg, 0, "Text"));
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
array_push($error_messages, "Get_Text, '$TextID' found ". mysql_num_rows( $Erg). "x in Sprache Database Table for Language (".$_SESSION['Sprache'].")\n");
|
||||||
echo "Error Data, '$TextID' found ". mysql_num_rows( $Erg). "x";
|
echo "Error Data, '$TextID' found ". mysql_num_rows( $Erg). "x";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue