diff --git a/www-ssl/inc/error_handler.php b/www-ssl/inc/error_handler.php index 95a2ea84..ac90d1e7 100755 --- a/www-ssl/inc/error_handler.php +++ b/www-ssl/inc/error_handler.php @@ -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); diff --git a/www-ssl/inc/funktion_lang.php b/www-ssl/inc/funktion_lang.php index 1314c4ac..044da6a5 100755 --- a/www-ssl/inc/funktion_lang.php +++ b/www-ssl/inc/funktion_lang.php @@ -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"; } }