[Openupload-svn-update] SF.net SVN: openupload:[314] trunk/www/plugins/captcha.php
Status: Beta
Brought to you by:
tsdogs
|
From: <ts...@us...> - 2009-05-08 20:40:38
|
Revision: 314
http://openupload.svn.sourceforge.net/openupload/?rev=314&view=rev
Author: tsdogs
Date: 2009-05-08 20:40:20 +0000 (Fri, 08 May 2009)
Log Message:
-----------
fix Notice about missing constant, preventing display when display_errors is on.
Modified Paths:
--------------
trunk/www/plugins/captcha.php
Modified: trunk/www/plugins/captcha.php
===================================================================
--- trunk/www/plugins/captcha.php 2009-05-08 20:39:00 UTC (rev 313)
+++ trunk/www/plugins/captcha.php 2009-05-08 20:40:20 UTC (rev 314)
@@ -1,5 +1,8 @@
<?php
+/* disable error reporting to the browser */
+ini_set('display_errors',0);
+
/* this generates a chiper and sets the session relative chiper protection */
include ('../config.inc.php');
@@ -10,7 +13,7 @@
$img->ttf_file = $CONFIG['INSTALL_ROOT'].'/plugins/securimage/elephant.ttf';
$img->code_length = 6;
$img->image_width = 200;
-$img->image_type = SI_IMAGE_JPG;
+$img->image_type = 'SI_IMAGE_JPG';
$img->show();
-?>
\ No newline at end of file
+?>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|