index.php: anmeldefehler beseitigt

secure.php: debug messeges deaktiviert


git-svn-id: svn://svn.cccv.de/engel-system@23 29ba0400-6e00-0410-a75a-ca02368028f8
This commit is contained in:
cookie 2005-11-06 18:06:42 +00:00
parent 59948c9d8c
commit 8517a467e0
2 changed files with 12 additions and 3 deletions

View File

@ -2,6 +2,9 @@
//soll dein funktion entahlten die alle übergebenen parameter überprüft
//'`'"
if( $DEBUG)
echo "secure.php START<br>\n";
foreach ($_GET as $k => $v)
{
$v = htmlspecialchars($v);
@ -13,7 +16,9 @@ foreach ($_GET as $k => $v)
exit;
}
$_GET[$k] = $v;
echo "GET $k=\"$v\"<br>";
if( $DEBUG)
echo "GET $k=\"$v\"<br>";
}
foreach ($_POST as $k => $v)
@ -26,7 +31,11 @@ foreach ($_POST as $k => $v)
exit;
}
$_POST[$k] = $v;
echo "POST $k=\"$v\"<br>";
if( $DEBUG)
echo "POST $k=\"$v\"<br>";
}
if( $DEBUG)
echo "secure.php END<br>\n";
?>

View File

@ -7,7 +7,7 @@ include ("./inc/crypt.php");
session_start(); // alte Session - falls vorhanden - wiederherstellen...
if (!IsSet($_SESSION['UID'])) {
if ( IsSet($_POST["user"])) {
$sql = "select * from User where Nick = '". $_POST["user"]. "'";