1
Minichat o MC / [PROBLEMA] Error al quitar el award.
« en: 12 de Abril de 2009, 20:52:32 pm »
¡Hola!
Utilizo el MC v3 de Ramfu; me permite perfectamente poner los awards, pero al querer quitarlos
me lleva al error 404... :S
Espero que me puedan ayudar
Gracias
Un saludo.
Utilizo el MC v3 de Ramfu; me permite perfectamente poner los awards, pero al querer quitarlos
me lleva al error 404... :S
Espero que me puedan ayudar
GraciasUn saludo.
Código: [Seleccionar]
<?
include("conectar.php");
include("clean.php");
$mode = clean($_GET[mode]);
?>
<title>Administración de awards</title>
<style type="text/css">
<--
body {
background-color: #FFFFFF;
}
body,td,th {
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #000000;
font-size: 10px;
}
.Estilo1 {
color: #990000;
font-weight: bold;
}
.Estilo3 {
color: #000000;
font-size: 10px;
font-weight: bold;
}
.Estilo4 {color: #003399}
.Estilo5 {font-size: 10px}
-->
</style>
<div align="center">
<table width="686" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"">
<!--DWLayoutTable-->
<tr>
<td width="686" height="207" valign="top" bgcolor="#FFFFFF"><div align="center">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="686" height="188" align="center" valign="top" bgcolor="#FFFFFF"><div align="center">
<p class="Estilo19"><span class="style1">:: QUITAR AWARD A UN USUARIO ::</span> </p>
<p><strong>Desde aqui puedes quitar award a un usuario:</strong></p>
<form id="form1" name="form1" method="post" action="panel.php?mostrar=quitaraward&<? echo session_name()."=".session_id() ?>">
Usuario:<br />
<label>
<input name="nick" type="text" id="nick" />
</label>
<br />
<br />
<input name="submit" type="submit" class="Boton" value="Ver awards asignados" />
<br />
<br /><?
$nick = clean($_POST[nick]);
$sqlsearch = mysql_query("select * from usr_badge where nick = '$nick'");
$sqlcheck = @mysql_num_rows($sqlsearch);
if($sqlcheck==0)
echo("Lo sentimos, este usuario no tiene ningún award!");
else
{
echo("Haga clic en la imagen del award para eliminarla.<br /><br />");
while($badge = @mysql_fetch_array($sqlsearch))
{
echo('<a href="quitaraward.php&id='.$badge[id].'"><img src="'.$badge[badge].'" title="'.$badge[reason].'" /></a> ');
}
}
$id = clean($_GET[id]);
$deleteit = mysql_query("delete from usr_badge where id = '$id'");
echo("El award ha sido eliminada con éxito.");
echo("<br /><br /><a href=\"badge.php\">Regresar a la administración de awards</a>");
?>
</form>
</div></td>
</tr>
</table>
<p> </div></td>
</tr>
</table>
<script language="Javascript">
<-- Begin
document.oncontextmenu = function(){return false}
// End -->
</script>




