fehler in der Language werden jetzt ausgewertet

git-svn-id: svn://svn.cccv.de/engel-system@145 29ba0400-6e00-0410-a75a-ca02368028f8
main
cookie 19 years ago
parent 9bdd58a89a
commit e7c842098d

@ -27,15 +27,17 @@
$url = $_SERVER['PHP_SELF'];
$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)
$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 )
$message .= "_SERVER: $k = $v\n";
if( isset( $_POST))
@ -43,7 +45,7 @@
$message .= "_POST: $k = $v\n";
if( isset( $_GET))
foreach ($_GET as $k => $v )
$message .= "_GET: $k = $v\n";
$message .= "_GET: $k = $v\n";
send_message($message);

@ -3,7 +3,7 @@
function Get_Text ($TextID)
{
GLOBAL $con;
GLOBAL $con, $error_messages;
if( !isset($_SESSION['Sprache']))
$_SESSION['Sprache'] = "EN";
@ -14,12 +14,12 @@ function Get_Text ($TextID)
$SQL = "SELECT * FROM `Sprache` WHERE TextID=\"$TextID\" AND Sprache ='".$_SESSION['Sprache']."'";
@$Erg = mysql_query($SQL, $con);
// if(!mysql_error($con))
if( mysql_num_rows( $Erg) == 1)
return (@mysql_result($Erg, 0, "Text"));
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";
}
@ -27,7 +27,7 @@ function Get_Text ($TextID)
function Print_Text ($TextID)
{
GLOBAL $con;
GLOBAL $con, $error_messages;
if( !isset($_SESSION['Sprache']))
$_SESSION['Sprache'] = "EN";
@ -39,11 +39,11 @@ function Print_Text ($TextID)
$SQL = "SELECT * FROM `Sprache` WHERE TextID=\"$TextID\" AND Sprache ='".$_SESSION['Sprache']."'";
@$Erg = mysql_query($SQL, $con);
// if(!mysql_error($con))
if( mysql_num_rows( $Erg) == 1)
echo nl2br(@mysql_result($Erg, 0, "Text"));
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";
}
}

Loading…
Cancel
Save