elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.


 


  Mostrar Mensajes
Páginas: [1] 2 3 4 5 6 7 8 9 10 11 12
1  Programación / Desarrollo Web / ¿Programar HTML5? en: 21 Mayo 2013, 15:31
Hace poco me entere de que una enpresa española llamada "geeksphone" habia lanzado a la venta unos moviles con firefox OS. Derrepente pensé: "Eh, ¿Por que no programar alguna aplicacion para este sistema operativo?. Entonces investigé y descubrí que estaba hecho en HTML5. Y no entiendo nada, ¿HTML no es un lenguaje de desarrollo web? Se HTML pero no se como programar una aplicacion con este lenguaje y todo lo que encuentro por internet es HTML para desarrollo web... Estoy un poco confuso. ¿Hay algun tutorial o algo?
2  Programación / Desarrollo Web / Re: ¿ Como cambiar el fondo de color ? en: 19 Marzo 2013, 16:27
Código
  1. http://css3maker.com/css-gradient.html
3  Programación / Desarrollo Web / Re: Lista Negra por enviar emails desconocidos en: 7 Marzo 2013, 21:50
A la primera pregunta: Haz una lista en un array y cuando se registre un usuario añades su mail a la lista.


A lo otro: Tu manda el mail, si existe solo tiene que ir a la dirección que contiene el mail que tu mandas y que confirmara el registro. Si no responde en dos días, borras los datos y te olvidas.

Tambien puedes confirmar si el mail es verdadero verificando:
Que la dirección por lo menos contenga 5 caracteres (Suma de u@d.c),
Que los caracteres antes y después de la arroba (@), sean letras, números y caracteres permitidos (".""_""-", etc).
Que incluya la arroba @
Que incluya por lo menos 1 punto (usuario@dominio"."com





También te dejo este código para confirmar (No he tenido tiempo de mirarmelo, asi que no se si funciona):

Código
  1. <?php
  2.  
  3. if (!$HTTP_POST_VARS){
  4. echo "<html><body>
  5. <form action=p2.php method=POST>
  6. <input type=text name=mail>
  7. <input type=submit name=boton value=Aceptar>
  8. </form>
  9. </html>";
  10. }
  11.  
  12. else {
  13. ValidateMail($mail);
  14.  
  15. // Step 1 -- Initialize the script
  16. // The first step in any script, of course, is to initialize any variables you'll be using. In this case, declare any global variables you'll be using:
  17.  
  18.        function ValidateMail($Email) {
  19.            global $HTTP_HOST;
  20.    $result = array();
  21.  
  22. // Step 2 -- Check the e-mail address format
  23.  
  24. // Next, you'll use our regular expression to determine if the e-mail address is properly formatted. If the e-mail address is not valid, return in error:
  25. if (!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $Email)) {
  26.  
  27.  $result[0]=false;
  28.        $result[1]="$Email is not properly formatted";
  29.        return $result;
  30.    }
  31.  
  32. // Step 3 -- Find the address of the mail server
  33.  
  34. // Now, split apart the e-mail address and use the domain name to search for a mail server you can use to further check the e-mail address. If no mail server is found, you'll just use the domain address as a mail server address:
  35.  
  36. // Note: In the event that the optional step 4 is not followed, the else portion of this step must return in error in order for the script to function properly.
  37.  
  38.   list ( $Username, $Domain ) = split ("@",$Email);
  39.  
  40.   if (getmxrr($Domain, $MXHost))  {
  41.  
  42.        $ConnectAddress = $MXHost[0];
  43.    } else {
  44.  
  45.        $ConnectAddress = $Domain;
  46.  
  47.    }
  48.  
  49. // Step 4 -- Connect to mail server and check e-mail address (OPTIONAL)
  50.  
  51. // Finally, once you have the best guess at a mail server, it's time to open a connection and talk to the server. As I stated earlier, this step is optional. After every command you send, you'll need to read a kilobyte (1024 bytes) of data from the server. It should be more than enough to receive the complete response from the server for that command.
  52.  
  53. // Note that you'll store the output from the server in three separate variables: $To, $From and $Out. This is done so you can check the responses after you close the connection, to see if you actually have a real e-mail address or not.
  54.  
  55. // If the script cannot connect at all, or the e-mail address wasn't valid, set the $result array to the proper values:
  56.  
  57.        $Connect = fsockopen ( $ConnectAddress, 25 );
  58.  
  59.    if ($Connect) {
  60.  
  61.        if (ereg("^220", $Out = fgets($Connect, 1024))) {
  62.  
  63.           fputs ($Connect, "HELO $HTTP_HOST\r\n");
  64.           $Out = fgets ( $Connect, 1024 );
  65.           fputs ($Connect, "MAIL FROM: <{$Email}>\r\n");
  66.           $From = fgets ( $Connect, 1024 );
  67.           fputs ($Connect, "RCPT TO: <{$Email}>\r\n");
  68.           $To = fgets ($Connect, 1024);
  69.           fputs ($Connect, "QUIT\r\n");
  70.           fclose($Connect);
  71.            if (!ereg ("^250", $From) ||
  72. !ereg ( "^250", $To )) {
  73.               $result[0]=false;
  74.               $result[1]="Server rejected address";
  75.               return $result;
  76.  
  77.            }
  78.        } else {
  79.  
  80.            $result[0] = false;
  81.            $result[1] = "No response from server";
  82.            return $result;
  83.          }
  84.  
  85.    }  else {
  86.  
  87.        $result[0]=false;
  88.        $result[1]="Can not connect E-Mail server.";
  89.        return $result;
  90.    }
  91.  
  92. // Step 5 -- Return the results
  93.  
  94. // Finally, our last and easiest step is to return the results and finish:
  95.    $result[0]=true;
  96.    $result[1]="$Email appears to be valid.";
  97.    return $result;
  98. } // end of function
  99. }
  100. ?>




Un saludo!!   ;D
4  Programación / Desarrollo Web / Re: Lista Negra por enviar emails desconocidos en: 7 Marzo 2013, 07:31
Y tu petición es...?
5  Programación / Desarrollo Web / Re: teclado virtual para evitar los keyloggers en: 5 Marzo 2013, 22:03
Interesante. Cuando haga mi pagina web pondré esto seguro.
6  Programación / Desarrollo Web / Re: ¿Se pueden hacer saltos de linea en las variables? en: 28 Febrero 2013, 17:14
Gracias.
Por cierto, si lo quiero poner en negrita o con cualquier otra variacion de la letra lo tendría que poner en la variable, en innerHTML o en div?
7  Programación / Desarrollo Web / ¿Se pueden hacer saltos de linea en las variables? en: 28 Febrero 2013, 16:37
Código
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>Documento sin título</title>
  6.  
  7.  
  8.  
  9. <script language="javascript">
  10. function fuerza() {
  11. var aceleracion = document.getElementById('aceleracion').value;
  12. var masa = document.getElementById('masa').value;
  13. var fuerza = masa * aceleracion;
  14.  
  15.  
  16.  
  17.                var resultado = "Fuerza (f) = masa (m) * aceleración (a)" +
  18.                "m = " + masa +
  19.                "a = " + aceleracion +
  20.                "f = m * a" +  
  21.                "f =" + masa + " * " + aceleracion +
  22.                "f = " + fuerza;
  23.                document.getElementById('resultadofinal').innerHTML=resultado;
  24. }
  25. </script>
  26. </head>
  27.  
  28. <body>
  29.  
  30.  
  31.    Aceleración: <input type="text" name="aceleracion" id="aceleracion" size="8" maxlength="30">
  32.    Masa: <input type="text" name="masa" id="masa" size="8" maxlength="30">
  33.    <input type="button" onclick="fuerza()" value="confirmar">
  34.    </br>
  35.    </br>
  36.    </br>
  37.    <div id="resultadofinal"></div>
  38.  
  39.  
  40.  
  41. </body>
  42. </html>
  43.  



en la parte de:
Código
  1.                var resultado = "Fuerza (f) = masa (m) * aceleración (a)" +
  2.                "m = " + masa +
  3.                "a = " + aceleracion +
  4.                "f = m * a" +  
  5.                "f =" + masa + " * " + aceleracion +
  6.                "f = " + fuerza;


¿Como podría meter saltos de línea? ya he probado con "<br>/n"





Un saludo, gracias por leer y espero tu respuesta!!!    ;D
8  Programación / Java / Re: Variables... no lo entiendo. en: 27 Febrero 2013, 22:00
No tengo mas dudas. Gracias por la ayuda!
9  Programación / Desarrollo Web / Re: [PHP + JS] Error simple. Pero yo no lo encuentro. en: 27 Febrero 2013, 21:53
Entonces para que sirve PHP? Si se puede hacer con JS lo mismo
10  Programación / Desarrollo Web / Re: [PHP + JS] Error simple. Pero yo no lo encuentro. en: 27 Febrero 2013, 20:16
Muchas gracias a los dos. Supongo que aun tengo que practicar mucho.
11  Programación / Desarrollo Web / [PHP + JS] Error simple. Pero yo no lo encuentro. en: 27 Febrero 2013, 16:59
Estaba practicando con PHP + JS e intenté hacer esto... pero no funciona.



Código
  1. <head>
  2. <title>Velocidad</title>
  3. <head/>
  4.  
  5. <script type="text/javascript">
  6. fuction velocidad () {
  7. var espacio = <?php echo $_REQUEST['espacio']; ?>
  8. var tiempo = <?php echo $_REQUEST['tiempo']; ?>
  9. var velocidad = espacio / tiempo;
  10. "respuesta:" + velocidad;
  11. document.write ("respuesta:" + velocidad);
  12. }
  13. </script>
  14.  
  15. <body>
  16. <form action="#" method="GET">
  17. Tiempo: <input type="text" name="tiempo" size="8" maxlength="30">
  18. Espacio: <input type="text" name="espacio" size="8" maxlength="30">
  19. <input type="button" onclick="velocidad()" value="confirmar">
  20. </form>
  21.  
  22. </body>




Un saludo, gracias por leer y espero tu respuesta!! :D
12  Comunicaciones / Chats; IRC y Messengers / Re: Correos electrónicos completamente anónimos con Tor Mail en: 27 Febrero 2013, 16:22
Será tu ordenador, tu conexión a internet o a lo mejor tienes un virus.
13  Programación / Desarrollo Web / Re: ¿Qué error(es) hay en esta plantilla HTML + CSS? en: 27 Febrero 2013, 07:19
Lo siento. aun no he visto el codigo, estoy bastante ocupado. Pero mañana si eso corrijo o sugiero algo.

14  Programación / Desarrollo Web / Re: ¿Qué error(es) hay en esta plantilla HTML + CSS? en: 26 Febrero 2013, 17:57
Pones comentarios en ingles sin saber mucho y tambien dices que hay plantillas y de mas cosas que faltan... te recomiendo hacer lo que te falta y escribir en española para no liarte, haber si el problema va a ser ese.


PD: PHP y JS tambien van en desarrollo web.
15  Programación / Java / Re: Variables... no lo entiendo. en: 26 Febrero 2013, 07:29
Gracias por la explicacion! Ahora lo tengo mas claro. Pero sigen habiendo muchas variables que sirven para lo mismo, entonces, ¿Por que hay tantas que hacen lo mismo?.
Páginas: [1] 2 3 4 5 6 7 8 9 10 11 12
Powered by SMF 1.1.18 | SMF © 2006-2008, Simple Machines