note 125599 added to function.taint
| From: | Anonymous@php.net | Date: | Sun, 13 Dec 2020 17:58:07 +0000 |
| Subject: | note 125599 added to function.taint | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-215978@lists.php.net to get a copy of this message | ||
The answer of your question is:
<?php
session_start();
session_destroy();
?>
<meta charset="UTF-8">
<html>
<form method="GET" action="datos.php">
<?php
if(isset($_GET['usuario'])){
if(strcmp("ana",$_GET['usuario'])==0){
if(strcmp("abc123.",$_GET['contraseña'])==0){
$_SESSION['usuario']=$_GET['usuario'];
}
else{
echo"
<script>
alert ('Usuario o contraseña incorrectos');
window.location='login.php';
</script>"
;}
}
if(strcmp("xan",$_GET['usuario'])==0){
if(strcmp("abc123.",$_GET['contraseña'])==0){
$_SESSION['usuario']=$_GET['usuario'];
}
else{
echo"
<script>
alert ('Usuario o contraseña incorrectos');
window.location='login.php';
</script>"
;}
}
}
if(isset($_SESSION['usuario'])){
//lo que se muestra na la pagina.
$conexion=mysqli_connect("localhost","root","","folla14")or
die(mysqli_error());
if($conexion){
mysqli_set_charset($conexion,"UTF8");
echo "
<input type='submit' value='Lista completa'
name='listac'>
"
;}
}
else{
echo"
<script>
alert ('Usuario o contraseña incorrectos');
window.location='login.php';
</script>";
}
?>
----
Server IP: 45.112.84.4
Probable Submitter: 45.112.85.244 (proxied: 81.34.218.208)
----
Manual Page -- http://php.net/manual/en/function.taint.php
Edit -- https://master.php.net/note/edit/125599
Del: integrated -- https://master.php.net/note/delete/125599/integrated
Del: useless -- https://master.php.net/note/delete/125599/useless
Del: bad code -- https://master.php.net/note/delete/125599/bad+code
Del: spam -- https://master.php.net/note/delete/125599/spam
Del: non-english -- https://master.php.net/note/delete/125599/non-english
Del: in docs -- https://master.php.net/note/delete/125599/in+docs
Del: other reasons-- https://master.php.net/note/delete/125599
Reject -- https://master.php.net/note/reject/125599
Search -- https://master.php.net/manage/user-notes.php