|
551
|
Programación / Programación Visual Basic / Re: Ayuda Para crear password con oportunidades limitadas..
|
en: 5 Diciembre 2006, 03:12 am
|
que onda men tengo mucho que no ando por esta zona VB. bueno solo pon una variable que es lo mas facil que se me ocurre dim control as Integer
Private Sub Clave_KeyPress(KeyAscii As Integer) If KeyAscii = 13 Then If Clave.Text = "RMR" Then Unload Me FrmReloj.Show Else MsgBox "Contraseña incorrecta",vbcritical,"Acceso Denegado" control=control+1 if control=3 then End end if End If End If End Sub
Nota: siempre es bueno que acomodes tu codigo es algo que yo no hago pero creeme que es recomendable para la gente que vea tu code sera mas facil de entenderlo
|
|
|
553
|
Media / Diseño Gráfico / Re: Avatar nuevo - Opinion
|
en: 5 Diciembre 2006, 01:03 am
|
.:wvb:. no cabe duda que tu eres uno de los mejores diseñadores que andan por aqui, jeje aver si un dia me enseño a diseñar bien na mas se manejar el Fireworks
|
|
|
554
|
Programación / PHP / Re: Miren esto que me pusieron en mi web php
|
en: 1 Diciembre 2006, 09:00 am
|
este es el codigo de la que guarda <html> <head> <title>Acorder Manager</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head>
<body> <?php $hora =date('d/m/Y - H:i:s'); // lo mas nuevo if((strlen(trim($nombre))==0)||(strlen(trim($mail))==0)||(strlen(trim($edad))==0)||(strlen(trim($des))==0)||(strlen(trim($pais))==0)) { echo'
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Acoerder Manager</title> <style type="text/css"> <!-- .Estilo2 { font-size: 9px; color: #A36929; font-family: Verdana, Arial, Helvetica, sans-serif; } .Estilo4 { font-size: 10; font-weight: bold; } .Estilo5 {color: #D59753} --> a,a:link { color: #D59753; text-decoration: none; } a:hover { color: #ff9900; text-decoration: none; } </style> </head> </html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> </head> <body bgcolor="#6B2101"> <style> select { background:#993300; color:#D7B344; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px; } input { background:#993300; color:#D7B344; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px; } </style> <table width="750" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td><img src="img/cabezera.jpg" width="250" height="80" /><img src="img/cabesera.jpg" width="500" height="80" /></td> </tr> </table> <table width="750" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="336"><div align="center"> <table width="750" border="0" cellpadding="0" cellspacing="0"> <tr bgcolor="#993300"> <td height="20"> <div align="center"><a href="new.php"><img src="img/new.jpg" alt="Descubre las trascripciones mas nuevas" width="100" height="20" border="0"></a><a href="colabora.php"><img src="img/colabora.jpg" alt="Tu puedes subir tus trascripciones en colabora" width="100" height="20" border="0" /></a><a href="peticiones.php"><img src="img/peticiones.jpg" alt="No esta solo pidela" width="100" height="20" border="0"></a> <a href="top20.php"><img src="img/top20.jpg" alt="Los mas popular de acoder manager" width="100" height="20" border="0"></a><a href="http://ladinastia.webcindario.com/acordermanager.exe"><img src="img/descargar.jpg" alt="Descarga Acorder Manager" width="100" height="20" border="0"></a> <a href="chat.php"><img src="img/chat.jpg" alt="Chat" width="100" height="20" border="0"></a> <a href="ligue.php"><img src="img/ligue.jpg" width="100" height="20" border="0" /></a></div></td> </tr> </table> <br /><br /> <table width="750" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="247"> <!-- agregar php --> <font color="#D59753" face="verdana" size="1"> <center> <b>! Un error ocurrio ¡<b><bR><BR> no se agrego tu perfil ya que dejaste campos vacios </center> </font> </td> </tr> </table> <p><font color="#993300" size="1" face="Verdana, Arial, Helvetica, sans-serif">©Ldc y Red Mx Derechos reservados 2006</font></p> </div></td> </tr> </table> </body> </html> ';
} else { /***Esta parte solo abre un archivo de control***************/ $archivo = 'ligue.txt'; $fp = fopen('ligue.txt','r'); $texto = fread($fp, filesize($archivo)); if($texto>9){ $numero=1; $file = fopen("ligue.txt","w"); fwrite($file,($numero)); fclose($file); }else{ $numero=$texto+1; $file = fopen("ligue.txt","w"); fwrite($file,($numero)); fclose($file); }; /***************************************************/ if ($numero== "1") { $datos='<font face="verdana" size="1"> Nombre: <b>'.htmlspecialchars($nombre).'</b><br> Edad: <b>'.htmlspecialchars($edad).'</b><br> E-mail: <b>'.htmlspecialchars($mail).'</b><br> Pais: <b>'.htmlspecialchars($pais).'</b><br> Algo sobre mi:<br><b>'.htmlspecialchars($des).'</b><br> <br></font>'; if($photo!=""){ $datos=''.$datos.'<img src="'.htmlspecialchars($photo).'"></img>'; } $file = fopen("l1.txt","w");//escribimo el nuevo numero fwrite($file,($datos)); fclose($file); }; if ($numero== "2") { $datos='<font face="verdana" size="1"> Nombre: <b>'.htmlspecialchars($nombre).'</b><br> Edad: <b>'.htmlspecialchars($edad).'</b><br> E-mail: <b>'.htmlspecialchars($mail).'</b><br> Pais: <b>'.htmlspecialchars($pais).'</b><br> Algo sobre mi:<br><b>'.htmlspecialchars($des).'</b><br> <br></font>'; if($photo!=""){ $datos=''.$datos.'<img src="'.htmlspecialchars($photo).'"></img>'; } $file = fopen("l2.txt","w");//escribimo el nuevo numero fwrite($file,($datos)); fclose($file); }; if ($numero== "3") { $datos='<font face="verdana" size="1"> Nombre: <b>'.htmlspecialchars($nombre).'</b><br> Edad: <b>'.htmlspecialchars($edad).'</b><br> E-mail: <b>'.htmlspecialchars($mail).'</b><br> Pais: <b>'.htmlspecialchars($pais).'</b><br> Algo sobre mi:<br><b>'.htmlspecialchars($des).'</b><br> <br></font>'; if($photo!=""){ $datos=''.$datos.'<img src="'.htmlspecialchars($photo).'"></img>'; } $file = fopen("l3.txt","w");//escribimo el nuevo numero fwrite($file,($datos)); fclose($file); }; if ($numero== "4") { $datos='<font face="verdana" size="1"> Nombre: <b>'.htmlspecialchars($nombre).'</b><br> Edad: <b>'.htmlspecialchars($edad).'</b><br> E-mail: <b>'.htmlspecialchars($mail).'</b><br> Pais: <b>'.htmlspecialchars($pais).'</b><br> Algo sobre mi:<br><b>'.htmlspecialchars($des).'</b><br> <br></font>'; if($photo!=""){ $datos=''.$datos.'<img src="'.htmlspecialchars($photo).'"></img>'; } $file = fopen("l4.txt","w");//escribimo el nuevo numero fwrite($file,($datos)); fclose($file); }; if ($numero== "5") { $datos='<font face="verdana" size="1"> Nombre: <b>'.htmlspecialchars($nombre).'</b><br> Edad: <b>'.htmlspecialchars($edad).'</b><br> E-mail: <b>'.htmlspecialchars($mail).'</b><br> Pais: <b>'.htmlspecialchars($pais).'</b><br> Algo sobre mi:<br><b>'.htmlspecialchars($des).'</b><br> <br></font>'; if($photo!=""){ $datos=''.$datos.'<img src="'.htmlspecialchars($photo).'"></img>'; } $file = fopen("l5.txt","w");//escribimo el nuevo numero fwrite($file,($datos)); fclose($file); }; if ($numero== "6") { $datos='<font face="verdana" size="1"> Nombre: <b>'.htmlspecialchars($nombre).'</b><br> Edad: <b>'.htmlspecialchars($edad).'</b><br> E-mail: <b>'.htmlspecialchars($mail).'</b><br> Pais: <b>'.htmlspecialchars($pais).'</b><br> Algo sobre mi:<br><b>'.htmlspecialchars($des).'</b><br> <br></font>'; if($photo!=""){ $datos=''.$datos.'<img src="'.htmlspecialchars($photo).'"></img>'; } $file = fopen("l6.txt","w");//escribimo el nuevo numero fwrite($file,($datos)); fclose($file); }; if ($numero== "7") { $datos='<font face="verdana" size="1"> Nombre: <b>'.htmlspecialchars($nombre).'</b><br> Edad: <b>'.htmlspecialchars($edad).'</b><br> E-mail: <b>'.htmlspecialchars($mail).'</b><br> Pais: <b>'.htmlspecialchars($pais).'</b><br> Algo sobre mi:<br><b>'.htmlspecialchars($des).'</b><br> <br></font>'; if($photo!=""){ $datos=''.$datos.'<img src="'.htmlspecialchars($photo).'"></img>'; } $file = fopen("l7.txt","w");//escribimo el nuevo numero fwrite($file,($datos)); fclose($file); }; if ($numero== "8") { $datos='<font face="verdana" size="1"> Nombre: <b>'.htmlspecialchars($nombre).'</b><br> Edad: <b>'.htmlspecialchars($edad).'</b><br> E-mail: <b>'.htmlspecialchars($mail).'</b><br> Pais: <b>'.htmlspecialchars($pais).'</b><br> Algo sobre mi:<br><b>'.htmlspecialchars($des).'</b><br> <br></font>'; if($photo!=""){ $datos=''.$datos.'<img src="'.htmlspecialchars($photo).'"></img>'; } $file = fopen("l8.txt","w");//escribimo el nuevo numero fwrite($file,($datos)); fclose($file); }; if ($numero== "9") { $datos='<font face="verdana" size="1"> Nombre: <b>'.htmlspecialchars($nombre).'</b><br> Edad: <b>'.htmlspecialchars($edad).'</b><br> E-mail: <b>'.htmlspecialchars($mail).'</b><br> Pais: <b>'.htmlspecialchars($pais).'</b><br> Algo sobre mi:<br><b>'.htmlspecialchars($des).'</b><br> <br></font>'; if($photo!=""){ $datos=''.$datos.'<img src="'.htmlspecialchars($photo).'"></img>'; } $file = fopen("l9.txt","w");//escribimo el nuevo numero fwrite($file,($datos)); fclose($file); }; if ($numero== "10") { $datos='<font face="verdana" size="1"> Nombre: <b>'.htmlspecialchars($nombre).'</b><br> Edad: <b>'.htmlspecialchars($edad).'</b><br> E-mail: <b>'.htmlspecialchars($mail).'</b><br> Pais: <b>'.htmlspecialchars($pais).'</b><br> Algo sobre mi:<br><b>'.htmlspecialchars($des).'</b><br> <br></font>'; if($photo!=""){ $datos=''.$datos.'<img src="'.htmlspecialchars($photo).'"></img>'; } $file = fopen("l10.txt","w");//escribimo el nuevo numero fwrite($file,($datos)); fclose($file); }; echo('
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Acoerder Manager</title> <style type="text/css"> <!-- .Estilo2 { font-size: 9px; color: #A36929; font-family: Verdana, Arial, Helvetica, sans-serif; } .Estilo4 { font-size: 10; font-weight: bold; } .Estilo5 {color: #D59753} --> a,a:link { color: #D59753; text-decoration: none; } a:hover { color: #ff9900; text-decoration: none; } </style> </head> </html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> </head> <body bgcolor="#6B2101"> <style> select { background:#993300; color:#D7B344; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px; } input { background:#993300; color:#D7B344; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px; } </style> <table width="750" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td><img src="img/cabezera.jpg" width="250" height="80" /><img src="img/cabesera.jpg" width="500" height="80" /></td> </tr> </table> <table width="750" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="336"><div align="center"> <table width="750" border="0" cellpadding="0" cellspacing="0"> <tr bgcolor="#993300"> <td height="20"> <div align="center"><a href="new.php"><img src="img/new.jpg" alt="Descubre las trascripciones mas nuevas" width="100" height="20" border="0"></a><a href="colabora.php"><img src="img/colabora.jpg" alt="Tu puedes subir tus trascripciones en colabora" width="100" height="20" border="0" /></a><a href="peticiones.php"><img src="img/peticiones.jpg" alt="No esta solo pidela" width="100" height="20" border="0"></a> <a href="top20.php"><img src="img/top20.jpg" alt="Los mas popular de acoder manager" width="100" height="20" border="0"></a><a href="http://ladinastia.webcindario.com/acordermanager.exe"><img src="img/descargar.jpg" alt="Descarga Acorder Manager" width="100" height="20" border="0"></a> <a href="chat.php"><img src="img/chat.jpg" alt="Chat" width="100" height="20" border="0"></a> <a href="ligue.php"><img src="img/ligue.jpg" width="100" height="20" border="0" /></a></div></td> </tr> </table> <br /><br /> <table width="750" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="247"> <!-- agregar php --> <font color="#D59753" face="verdana" size="1"> <center> Hola '.htmlspecialchars($nombre).' tu perfil fue agregado exitosamente <br><br> <a href="ligue.php">Clicl aqui para ver tu perfil</a> </center> </font> </td> </tr> </table> <p><font color="#993300" size="1" face="Verdana, Arial, Helvetica, sans-serif">©Ldc y Red Mx Derechos reservados 2006</font></p> </div></td> </tr> </table> </body> </html> '); }; ?> </body> </html>
taria bien apreder eso ya que el PHP me enseñe yo solo mas o menos ya le se pero me falta tadavia.
|
|
|
557
|
Programación / PHP / Re: Miren esto que me pusieron en mi web php
|
en: 30 Noviembre 2006, 22:28 pm
|
jajajaja siguen la mata dando miren a este hijo de p**a Nombre: <b>Mexico *****</b> Edad: 32 E-mail: sdaas@asdsa.xokm Pais: sdfsfd Algo sobre mi: <script> document.location.href=\'http://red_mx.esgay.com/\'; </script>
la neta no me ofende antes le doy las gracias por visitar mi web como puede ver el agradabler caballero segui los consejos de azielito y le puse ese pequeño codigo para los caracteres especiales de html asi que no le salio la maldad al chavo
|
|
|
560
|
Programación / PHP / Re: Miren esto que me pusieron en mi web php
|
en: 29 Noviembre 2006, 18:08 pm
|
no pos has de cuenta que el nombre lo mando a una variable de ahi digamos ago esto <?php
$texto= '<font color="#ff0000">Hola me llamo <b>'.$nombre.'</b>';
todo eso lo guardo en el txt asi se me hizo mas facil ya que las bases de datos en ese servicor como que no andan muy bien asi que este code: <script language=\"javascript\"> for (;;) { alert(); } </script> tambien se toma como si fuera de la web entonces esto implico un gran error de seguridad biendolo de eso forma asi que en la tarde lo acomodo bueno estubo bien para apreder mas...
|
|
|
|
|
|
|