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:
parent
59948c9d8c
commit
8517a467e0
|
@ -2,6 +2,9 @@
|
||||||
//soll dein funktion entahlten die alle übergebenen parameter überprüft
|
//soll dein funktion entahlten die alle übergebenen parameter überprüft
|
||||||
//'`'"
|
//'`'"
|
||||||
|
|
||||||
|
if( $DEBUG)
|
||||||
|
echo "secure.php START<br>\n";
|
||||||
|
|
||||||
foreach ($_GET as $k => $v)
|
foreach ($_GET as $k => $v)
|
||||||
{
|
{
|
||||||
$v = htmlspecialchars($v);
|
$v = htmlspecialchars($v);
|
||||||
|
@ -13,7 +16,9 @@ foreach ($_GET as $k => $v)
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
$_GET[$k] = $v;
|
$_GET[$k] = $v;
|
||||||
echo "GET $k=\"$v\"<br>";
|
|
||||||
|
if( $DEBUG)
|
||||||
|
echo "GET $k=\"$v\"<br>";
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($_POST as $k => $v)
|
foreach ($_POST as $k => $v)
|
||||||
|
@ -26,7 +31,11 @@ foreach ($_POST as $k => $v)
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
$_POST[$k] = $v;
|
$_POST[$k] = $v;
|
||||||
echo "POST $k=\"$v\"<br>";
|
|
||||||
|
if( $DEBUG)
|
||||||
|
echo "POST $k=\"$v\"<br>";
|
||||||
}
|
}
|
||||||
|
if( $DEBUG)
|
||||||
|
echo "secure.php END<br>\n";
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -7,7 +7,7 @@ include ("./inc/crypt.php");
|
||||||
|
|
||||||
session_start(); // alte Session - falls vorhanden - wiederherstellen...
|
session_start(); // alte Session - falls vorhanden - wiederherstellen...
|
||||||
|
|
||||||
if (!IsSet($_SESSION['UID'])) {
|
if ( IsSet($_POST["user"])) {
|
||||||
|
|
||||||
$sql = "select * from User where Nick = '". $_POST["user"]. "'";
|
$sql = "select * from User where Nick = '". $_POST["user"]. "'";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue