[grisbi-cvs] grisbi-web/newsportal/lib/captcha captcha.php, 1.1, 1.2

NIEL GĂ©rald gegeweb at users.sourceforge.net
Wed May 26 23:19:36 CEST 2010


Update of /cvsroot/grisbi/grisbi-web/newsportal/lib/captcha
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv28122/newsportal/lib/captcha

Modified Files:
	captcha.php 
Log Message:

Captcha work ! Applause !


Index: captcha.php
===================================================================
RCS file: /cvsroot/grisbi/grisbi-web/newsportal/lib/captcha/captcha.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- captcha.php	24 May 2010 15:03:50 -0000	1.1
+++ captcha.php	26 May 2010 21:19:34 -0000	1.2
@@ -28,8 +28,8 @@
 define("CAPTCHA_COOKIE", "captcha_solved");   // to unlock captcha protection
 define("CAPTCHA_DATA_URLS", 0);               // RFC2397-URLs exclude MSIE users
 define("CAPTCHA_TEMP_DIR", "/tmp/captcha");
-define("CAPTCHA_BASE_URL", "http://$_SERVER[SERVER_NAME]:$_SERVER[SERVER_PORT]/" . substr(realpath(__FILE__), strlen($_SERVER["DOCUMENT_ROOT"])));
-
+//define("CAPTCHA_BASE_URL", "http://$_SERVER[SERVER_NAME]:$_SERVER[SERVER_PORT]/" . substr(realpath(__FILE__), strlen($_SERVER["DOCUMENT_ROOT"])));
+define("CAPTCHA_BASE_URL", "forums/lib/captcha/captcha.php");
 
 /* static - (you could instantiate it, but...) */
 class captcha {
@@ -250,7 +250,7 @@
       }
       while (($size > $maxsize) && ($quality >= 16));
       imagedestroy($img);
-#print_r($s_debug);
+//print_r($s_debug);
       return($jpeg);
    }
 
@@ -289,6 +289,7 @@
    /* sends it */
    function get_image($id) {
       $dir = CAPTCHA_TEMP_DIR;
+      //$dir = "/tmp/captha";
       $fn = "$dir/$id";
       
       #-- find it



More information about the cvs mailing list