Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/itworks/public_html/inc/class_core.php on line 165
Crear un captcha en vb + imagemagick
Han ocurrido los siguientes errores:
Warning [2] Cannot modify header information - headers already sent by (output started at /home/itworks/public_html/inc/class_core.php:165) - Line: 1558 - File: inc/functions.php PHP 5.3.10 (Linux)
File Line Function
[PHP]   errorHandler->error
/inc/functions.php 1558 header
/inc/class_session.php 360 my_setcookie
/inc/class_session.php 98 session->load_guest
/global.php 56 session->init
/showthread.php 21 require_once
Warning [2] Cannot modify header information - headers already sent by (output started at /home/itworks/public_html/inc/class_core.php:165) - Line: 1558 - File: inc/functions.php PHP 5.3.10 (Linux)
File Line Function
[PHP]   errorHandler->error
/inc/functions.php 1558 header
/inc/class_session.php 365 my_setcookie
/inc/class_session.php 98 session->load_guest
/global.php 56 session->init
/showthread.php 21 require_once
Warning [2] Cannot modify header information - headers already sent by (output started at /home/itworks/public_html/inc/class_core.php:165) - Line: 1558 - File: inc/functions.php PHP 5.3.10 (Linux)
File Line Function
[PHP]   errorHandler->error
/inc/functions.php 1558 header
/inc/class_session.php 106 my_setcookie
/global.php 56 session->init
/showthread.php 21 require_once
Warning [2] Cannot modify header information - headers already sent by (output started at /home/itworks/public_html/inc/class_core.php:165) - Line: 352 - File: inc/plugins/google_seo/redirect.php PHP 5.3.10 (Linux)
File Line Function
[PHP]   errorHandler->error
/inc/plugins/google_seo/redirect.php 352 header
/inc/plugins/google_seo/redirect.php 340 google_seo_redirect_header
[PHP]   google_seo_redirect_hook
/inc/class_plugins.php 101 call_user_func_array
/global.php 96 pluginSystem->run_hooks
/showthread.php 21 require_once
Warning [2] Cannot modify header information - headers already sent by (output started at /home/itworks/public_html/inc/class_core.php:165) - Line: 1558 - File: inc/functions.php PHP 5.3.10 (Linux)
File Line Function
[PHP]   errorHandler->error
/inc/functions.php 1558 header
/inc/functions.php 1619 my_setcookie
/inc/functions_indicators.php 54 my_set_array_cookie
/showthread.php 456 mark_thread_read



tumblr statistics


Enviar Respuesta 
 
Calificación:
  • 0 Votos - 0 Media
  • 1
  • 2
  • 3
  • 4
  • 5
Crear un captcha en vb + imagemagick
29-06-2010, 02:46 PM (Este mensaje fue modificado por última vez en: 29-06-2010 02:46 PM por xaviclave.)
Mensaje: #1
Crear un captcha en vb + imagemagick
Os dejo un ejemplo de como crear una imagen captcha el resultado lo he dejado abajo.

Cita:comando = ""

' ruta de imagemagick
comando = "C:\imagemagick\convert.exe"

' tamaño de la imagen
comando = comando + " -size 280x70 xc:white -fill black -stroke black -strokewidth 2"

' tipo de fuente
comando = comando + " -font arial -pointsize 52"

' texto interior
comando = comando + " -fill yellow -draw ""rotate 30 translate 40,30 Text 0, 0 '1'"" "
comando = comando + " -fill black -draw ""rotate -10 translate 60,50 text 0,0 '2'"" "
comando = comando + " -fill red -draw ""rotate 5 translate 90,40 text 0,0 '3'"" "
comando = comando + " -fill orange -draw ""rotate -10 translate 120,80 text 0,0 '4'"" "
comando = comando + " -fill blue -draw ""rotate -5 translate 160,60 text 0,0 '5'"" "
comando = comando + " -fill cyan -draw ""rotate -0 translate 190,60 text 0,0 '6'"" "
comando = comando + " -fill white -draw ""rotate 2 translate 220,60 text 0,0 '7'"" "

' lineas interiores
comando = comando + " -fill none -strokewidth 2 "
comando = comando + " -draw ""bezier 20,270 45,10 100,70 140,10 "" "
comando = comando + " -strokewidth 3 -draw ""polyline 150,0 200,60 280,30"" "

' crear onda
comando = comando + " -wave 4x50 -swirl 25 "

' ruta del destino de la imagen
comando = comando + "c:\imagemagick\captcha.gif"

Shell comando


Archivo(s) Adjuntos Miniatura(s)
   
Encuentra todos los mensajes de este usuario
Cita este mensaje en tu respuesta
Enviar Respuesta 


Salto de Foro:


Contáctanos | Servidores web | Volver Arriba | Volver al Contenido | Modo (Archivo) Simple | Sindicación RSS